polyline that stores points of type V Generated from class MR.Polyline2. This is the non-const half of the class.
More...
Inheritance diagram for MR.Polyline2:Public Member Functions | |
| unsafe | Polyline2 () |
| Constructs an empty (default-constructed) instance. | |
| unsafe | Polyline2 (MR._ByValue_Polyline2 _other) |
Generated from constructor MR.Polyline2.Polyline2. | |
| Polyline2 (Const_Polyline2 _other) | |
Generated from constructor MR.Polyline2.Polyline2. | |
| Polyline2 (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 | |
Static Public Member Functions | |
| static unsafe implicit | operator Polyline2 (MR.Std.Const_Vector_MRVector2f contour) |
creates polyline from one contour (open or closed) Generated from constructor MR.Polyline2.Polyline2. | |
| static unsafe implicit | operator Polyline2 (MR.Std.Const_Vector_StdVectorMRVector2f contours) |
creates polyline from several contours (each can be open or closed) Generated from constructor MR.Polyline2.Polyline2. | |
Properties | |
| new unsafe MR.PolylineTopology | topology [get, protected set] |
| new unsafe MR.VertCoords2 | points [get, protected set] |
polyline that stores points of type V Generated from class MR.Polyline2. This is the non-const half of the class.
|
inline |
Constructs an empty (default-constructed) instance.
|
inline |
Generated from constructor MR.Polyline2.Polyline2.
|
inline |
Generated from constructor MR.Polyline2.Polyline2.
|
inline |
Generated from constructor MR.Polyline2.Polyline2.
|
inline |
creates polyline from one contour (open or closed) Generated from constructor MR.Polyline2.Polyline2.
|
inline |
creates polyline from several contours (each can be open or closed) Generated from constructor MR.Polyline2.Polyline2.
|
inline |
creates comp2firstVert.size()-1 not-closed polylines each pair (a,b) of indices in
| comp2firstVert | defines vertex range of a polyline [a,b) |
| ps | point coordinates Generated from constructor MR.Polyline2.Polyline2. |
|
inline |
adds path to this polyline
MR.Polyline2.addFromEdgePath.
|
inline |
adds general path = start-path-end (where both start and end are optional) to this polyline
MR.Polyline2.addFromGeneralSurfacePath.
|
inline |
adds connected line in this, passing progressively via points *[vs, vs+num)
if num > 2 && vs[0] == vs[num-1] then a closed line is created
MR.Polyline2.addFromPoints.
|
inline |
adds connected line in this, passing progressively via points *[vs, vs+num)
if closed argument is true then the last and the first points will be additionally connected
MR.Polyline2.addFromPoints.
|
inline |
adds path to this polyline
MR.Polyline2.addFromSurfacePath.
|
inline |
appends polyline (from) in addition to this polyline: creates new edges, verts and points;
| outVmap,outEmap | (optionally) returns mappings: from.id -> this.id Generated from method MR.Polyline2.addPart. |
|
inline |
appends polyline (from) in addition to this polyline: creates new edges, verts and points Generated from method MR.Polyline2.addPartByMask.
|
inline |
Generated from method MR.Polyline2.operator=.
|
inline |
Invalidates caches (e.g. aabb-tree) after a change in polyline Generated from method MR.Polyline2.invalidateCaches.
|
inlinestatic |
creates polyline from one contour (open or closed) Generated from constructor MR.Polyline2.Polyline2.
|
inlinestatic |
creates polyline from several contours (each can be open or closed) Generated from constructor MR.Polyline2.Polyline2.
|
inline |
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.
Generated from method MR.Polyline2.splitEdge.
|
inline |
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.
|
inline |
applies given transformation to all valid polyline vertices Generated from method MR.Polyline2.transform.
|
getprotected set |
|
getprotected set |