public OBB(Dynamic.Tekla.Structures.Geometry3d.OBB obb) { var args = new object[1]; args[0] = Dynamic.Tekla.Structures.Geometry3d.OBB_.GetTSObject(obb); this.teklaObject = TSActivator.CreateInstance("Tekla.Structures.Geometry3d.OBB", args); }
public static Dynamic.Tekla.Structures.Geometry3d.LineSegment LineSegmentToObb( Dynamic.Tekla.Structures.Geometry3d.LineSegment lineSegment_, Dynamic.Tekla.Structures.Geometry3d.OBB obb_) { var lineSegment = Dynamic.Tekla.Structures.Geometry3d.LineSegment_.GetTSObject(lineSegment_); var obb = Dynamic.Tekla.Structures.Geometry3d.OBB_.GetTSObject(obb_); var result = MethodInvoker.InvokeStaticMethod("Tekla.Structures.Geometry3d.Intersection", "LineSegmentToObb", lineSegment, obb); var _result = Dynamic.Tekla.Structures.Geometry3d.LineSegment_.FromTSObject(result); return(_result); }
public System.Boolean Intersects( Dynamic.Tekla.Structures.Geometry3d.OBB obb_) { var obb = Dynamic.Tekla.Structures.Geometry3d.OBB_.GetTSObject(obb_); try { var result = (System.Boolean)teklaObject.Intersects(obb); return(result); } catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException ex) { throw DynamicAPINotFoundException.CouldNotFindMethod(nameof(Intersects), ex); } }