|
|
unsafe | Polyline2 () |
| | Constructs an empty (default-constructed) instance.
|
| |
|
unsafe | Polyline2 (MR._ByValue_Polyline2 _other) |
| | Generated from constructor MR.Polyline2.Polyline2.
|
| |
|
unsafe | Polyline2 (MR.Std.Const_Vector_MRVector2f contour) |
| | creates polyline from one contour (open or closed) Generated from constructor MR.Polyline2.Polyline2.
|
| |
|
unsafe | Polyline2 (MR.Std.Const_Vector_StdVectorMRVector2f contours) |
| | creates polyline from several contours (each can be open or closed) Generated from constructor MR.Polyline2.Polyline2.
|
| |
| unsafe | Polyline2 (MR.Std.Const_Vector_MRVertId comp2firstVert, MR._ByValue_VertCoords2 ps) |
| | creates comp2firstVert.size()-1 not-closed polylines each pair (a,b) of indices in
|
| |
|
unsafe MR.Polyline2 | assign (MR._ByValue_Polyline2 _other) |
| | Generated from method MR.Polyline2.operator=.
|
| |
| unsafe MR.EdgeId | addFromPoints (MR.Vector2f? vs, ulong num, bool closed) |
| | adds connected line in this, passing progressively via points *[vs, vs+num)
|
| |
| unsafe MR.EdgeId | addFromPoints (MR.Vector2f? vs, ulong num) |
| | adds connected line in this, passing progressively via points *[vs, vs+num)
|
| |
| unsafe void | addPart (MR.Const_Polyline2 from, MR.VertMap? outVmap=null, MR.WholeEdgeMap? outEmap=null) |
| | appends polyline (from) in addition to this polyline: creates new edges, verts and points;
|
| |
|
unsafe void | addPartByMask (MR.Const_Polyline2 from, MR.Const_UndirectedEdgeBitSet mask, MR.VertMap? outVmap=null, MR.EdgeMap? outEmap=null) |
| | appends polyline (from) in addition to this polyline: creates new edges, verts and points Generated from method MR.Polyline2.addPartByMask.
|
| |
|
unsafe void | pack (MR.VertMap? outVmap=null, MR.WholeEdgeMap? outEmap=null) |
| | tightly packs all arrays eliminating lone edges and invalid verts and points, optionally returns mappings: old.id -> new.id Generated from method MR.Polyline2.pack.
|
| |
|
unsafe void | transform (in MR.AffineXf2f xf) |
| | applies given transformation to all valid polyline vertices Generated from method MR.Polyline2.transform.
|
| |
|
unsafe MR.EdgeId | splitEdge (MR.EdgeId e, in MR.Vector2f newVertPos) |
| | split given edge on two parts: dest(returned-edge) = org(e) - newly created vertex, org(returned-edge) = org(e-before-split), dest(e) = dest(e-before-split) Generated from method MR.Polyline2.splitEdge.
|
| |
|
unsafe MR.EdgeId | splitEdge (MR.EdgeId e) |
| | Generated from method MR.Polyline2.splitEdge.
|
| |
|
unsafe void | invalidateCaches () |
| | Invalidates caches (e.g. aabb-tree) after a change in polyline Generated from method MR.Polyline2.invalidateCaches.
|
| |
| unsafe MR.EdgeId | addFromEdgePath (MR.Const_Mesh mesh, MR.Std.Const_Vector_MREdgeId path) |
| | adds path to this polyline
|
| |
| unsafe MR.EdgeId | addFromSurfacePath (MR.Const_Mesh mesh, MR.Std.Const_Vector_MREdgePoint path) |
| | adds path to this polyline
|
| |
| unsafe MR.EdgeId | addFromGeneralSurfacePath (MR.Const_Mesh mesh, MR.Const_MeshTriPoint start, MR.Std.Const_Vector_MREdgePoint path, MR.Const_MeshTriPoint end) |
| | adds general path = start-path-end (where both start and end are optional) to this polyline
|
| |
|
virtual void | Dispose () |
| |
|
unsafe | Const_Polyline2 () |
| | Constructs an empty (default-constructed) instance.
|
| |
|
unsafe | Const_Polyline2 (MR._ByValue_Polyline2 _other) |
| | Generated from constructor MR.Polyline2.Polyline2.
|
| |
|
unsafe | Const_Polyline2 (MR.Std.Const_Vector_MRVector2f contour) |
| | creates polyline from one contour (open or closed) Generated from constructor MR.Polyline2.Polyline2.
|
| |
|
unsafe | Const_Polyline2 (MR.Std.Const_Vector_StdVectorMRVector2f contours) |
| | creates polyline from several contours (each can be open or closed) Generated from constructor MR.Polyline2.Polyline2.
|
| |
| unsafe | Const_Polyline2 (MR.Std.Const_Vector_MRVertId comp2firstVert, MR._ByValue_VertCoords2 ps) |
| | creates comp2firstVert.size()-1 not-closed polylines each pair (a,b) of indices in
|
| |
|
unsafe MR.Vector2f | orgPnt (MR.EdgeId e) |
| | returns coordinates of the edge origin Generated from method MR.Polyline2.orgPnt.
|
| |
|
unsafe MR.Vector2f | destPnt (MR.EdgeId e) |
| | returns coordinates of the edge destination Generated from method MR.Polyline2.destPnt.
|
| |
|
unsafe MR.Vector2f | edgePoint (MR.EdgeId e, float f) |
| | returns a point on the edge: origin point for f=0 and destination point for f=1 Generated from method MR.Polyline2.edgePoint.
|
| |
|
unsafe MR.Vector2f | edgePoint (MR.Const_EdgePoint ep) |
| | computes coordinates of point given as edge and relative position on it Generated from method MR.Polyline2.edgePoint.
|
| |
|
unsafe MR.Vector2f | edgeCenter (MR.EdgeId e) |
| | returns edge's centroid Generated from method MR.Polyline2.edgeCenter.
|
| |
|
unsafe MR.Vector2f | edgeVector (MR.EdgeId e) |
| | returns vector equal to edge destination point minus edge origin point Generated from method MR.Polyline2.edgeVector.
|
| |
|
unsafe MR.LineSegm2f | edgeSegment (MR.EdgeId e) |
| | returns line segment of given edge Generated from method MR.Polyline2.edgeSegment.
|
| |
|
unsafe MR.EdgePoint | toEdgePoint (MR.VertId v) |
| | converts vertex into edge-point representation Generated from method MR.Polyline2.toEdgePoint.
|
| |
|
unsafe MR.EdgePoint | toEdgePoint (MR.EdgeId e, in MR.Vector2f p) |
| | converts edge and point's coordinates into edge-point representation Generated from method MR.Polyline2.toEdgePoint.
|
| |
|
unsafe float | edgeLength (MR.EdgeId e) |
| | returns Euclidean length of the edge Generated from method MR.Polyline2.edgeLength.
|
| |
|
unsafe float | edgeLengthSq (MR.EdgeId e) |
| | returns squared Euclidean length of the edge (faster to compute than length) Generated from method MR.Polyline2.edgeLengthSq.
|
| |
|
unsafe MR.Vector3f | loopDirArea (MR.EdgeId e) |
| | calculates directed loop area if iterating in e direction .z = FLT_MAX if e does not represent a loop Generated from method MR.Polyline2.loopDirArea.
|
| |
|
unsafe float | totalLength () |
| | returns total length of the polyline Generated from method MR.Polyline2.totalLength.
|
| |
|
unsafe float | averageEdgeLength () |
| | returns average edge length in the polyline Generated from method MR.Polyline2.averageEdgeLength.
|
| |
|
unsafe MR.Const_AABBTreePolyline2 | getAABBTree () |
| | returns cached aabb-tree for this polyline, creating it if it did not exist in a thread-safe manner Generated from method MR.Polyline2.getAABBTree.
|
| |
|
unsafe MR.? Const_AABBTreePolyline2 | getAABBTreeNotCreate () |
| | returns cached aabb-tree for this polyline, but does not create it if it did not exist Generated from method MR.Polyline2.getAABBTreeNotCreate.
|
| |
|
unsafe MR.Box2f | getBoundingBox () |
| | returns the minimal bounding box containing all valid vertices (implemented via getAABBTree()) Generated from method MR.Polyline2.getBoundingBox.
|
| |
| unsafe MR.Box2f | computeBoundingBox (MR.AffineXf2f? toWorld=null) |
| | passes through all valid points and finds the minimal bounding box containing all of them
|
| |
|
unsafe MR.Vector2f | findCenterFromPoints () |
| | Generated from method MR.Polyline2.findCenterFromPoints.
|
| |
| unsafe MR.Std.Vector_StdVectorMRVector2f | contours (MR.Std.Vector_StdVectorMRVertId? vertMap=null) |
| | convert Polyline to simple contour structures with vector of points inside
|
| |
|
unsafe ulong | heapBytes () |
| | returns the amount of memory this object occupies on heap Generated from method MR.Polyline2.heapBytes.
|
| |
polyline that stores points of type V Generated from class MR.Polyline2. This is the non-const half of the class.