MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.Polyline2:

Public Member Functions

None __init__ (self)
None __init__ (self, Const_std_vector_Vector2_float contour)
None __init__ (self, Const_std_vector_std_vector_Vector2_float contours)
None __init__ (self, Const_std_vector_Id_VertTag comp2firstVert, ConstVertCoords2 ps)
None __init__ (self, ConstPolyline2 arg0)
EdgeId addFromEdgePath (self, ConstMesh mesh, Const_std_vector_Id_EdgeTag path)
EdgeId addFromGeneralSurfacePath (self, ConstMesh mesh, ConstMeshTriPoint start, Const_std_vector_EdgePointT_float path, ConstMeshTriPoint end)
EdgeId addFromPoints (self, ConstVector2f vs, int num, bool closed)
EdgeId addFromPoints (self, ConstVector2f vs, int num)
EdgeId addFromSurfacePath (self, ConstMesh mesh, Const_std_vector_EdgePointT_float path)
None addPart (self, ConstPolyline2 from_, VertMap outVmap=None, WholeEdgeMap outEmap=None)
None addPartByMask (self, ConstPolyline2 from_, ConstUndirectedEdgeBitSet mask, VertMap outVmap=None, EdgeMap outEmap=None)
Polyline2 assign (self, ConstPolyline2 other)
None invalidateCaches (self)
None pack (self, VertMap outVmap=None, WholeEdgeMap outEmap=None)
EdgeId splitEdge (self, ConstEdgeId e, ConstVector2f newVertPos)
EdgeId splitEdge (self, ConstEdgeId e)
None transform (self, ConstAffineXf2f xf)
VertCoords2 points (self)
None points (self, ConstVertCoords2 arg1)
PolylineTopology topology (self)
None topology (self, ConstPolylineTopology arg1)
Public Member Functions inherited from mrmeshpy.ConstPolyline2
 __init__ (self, *args, **kwargs)
float averageEdgeLength (self)
Box2f computeBoundingBox (self, ConstAffineXf2f toWorld=None)
std_vector_std_vector_Vector2_float contours (self, std_vector_std_vector_Id_VertTag vertMap=None)
Vector2f destPnt (self, ConstEdgeId e)
Vector2f edgeCenter (self, ConstEdgeId e)
float edgeLength (self, ConstEdgeId e)
float edgeLengthSq (self, ConstEdgeId e)
Vector2f edgePoint (self, ConstEdgeId e, float f)
Vector2f edgePoint (self, ConstEdgePoint ep)
LineSegm2f edgeSegment (self, ConstEdgeId e)
Vector2f edgeVector (self, ConstEdgeId e)
Vector2f findCenterFromPoints (self)
ConstAABBTreePolyline2 getAABBTree (self)
ConstAABBTreePolyline2 getAABBTreeNotCreate (self)
Box2f getBoundingBox (self)
int heapBytes (self)
Vector3f loopDirArea (self, ConstEdgeId e)
Vector2f orgPnt (self, ConstEdgeId e)
EdgePoint toEdgePoint (self, ConstVertId v)
EdgePoint toEdgePoint (self, ConstEdgeId e, ConstVector2f p)
float totalLength (self)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstPolyline2
typing _offsetof_points = 88
typing _offsetof_topology = 0

Detailed Description

Generated from:  MR::Polyline2
Aliases:  PolylineTraits_Vector2f.Polyline

polyline that stores points of type V

Constructor & Destructor Documentation

◆ __init__() [1/6]

None mrmeshpy.Polyline2.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/6]

None mrmeshpy.Polyline2.__init__ ( self)

◆ __init__() [3/6]

None mrmeshpy.Polyline2.__init__ ( self,
Const_std_vector_Vector2_float contour )
creates polyline from one contour (open or closed)

◆ __init__() [4/6]

None mrmeshpy.Polyline2.__init__ ( self,
Const_std_vector_std_vector_Vector2_float contours )
creates polyline from several contours (each can be open or closed)

◆ __init__() [5/6]

None mrmeshpy.Polyline2.__init__ ( self,
Const_std_vector_Id_VertTag comp2firstVert,
ConstVertCoords2 ps )
creates comp2firstVert.size()-1 not-closed polylines
each pair (a,b) of indices in \\param comp2firstVert defines vertex range of a polyline [a,b)
\\param ps point coordinates

◆ __init__() [6/6]

None mrmeshpy.Polyline2.__init__ ( self,
ConstPolyline2 arg0 )
Implicit copy constructor.

Member Function Documentation

◆ addFromEdgePath()

EdgeId mrmeshpy.Polyline2.addFromEdgePath ( self,
ConstMesh mesh,
Const_std_vector_Id_EdgeTag path )
adds path to this polyline
\\return the edge from first new to second new vertex

◆ addFromGeneralSurfacePath()

EdgeId mrmeshpy.Polyline2.addFromGeneralSurfacePath ( self,
ConstMesh mesh,
ConstMeshTriPoint start,
Const_std_vector_EdgePointT_float path,
ConstMeshTriPoint end )
adds general path = start-path-end (where both start and end are optional) to this polyline
\\return the edge from first new to second new vertex

◆ addFromPoints() [1/2]

EdgeId mrmeshpy.Polyline2.addFromPoints ( self,
ConstVector2f vs,
int num )
adds connected line in this, passing progressively via points *[vs, vs+num)
\\details if num > 2 && vs[0] == vs[num-1] then a closed line is created
\\return the edge from first new to second new vertex

◆ addFromPoints() [2/2]

EdgeId mrmeshpy.Polyline2.addFromPoints ( self,
ConstVector2f vs,
int num,
bool closed )
adds connected line in this, passing progressively via points *[vs, vs+num)
\\details if closed argument is true then the last and the first points will be additionally connected
\\return the edge from first new to second new vertex

◆ addFromSurfacePath()

EdgeId mrmeshpy.Polyline2.addFromSurfacePath ( self,
ConstMesh mesh,
Const_std_vector_EdgePointT_float path )
adds path to this polyline
\\return the edge from first new to second new vertex

◆ addPart()

None mrmeshpy.Polyline2.addPart ( self,
ConstPolyline2 from_,
VertMap outVmap = None,
WholeEdgeMap outEmap = None )
appends polyline (from) in addition to this polyline: creates new edges, verts and points;
\\param outVmap,outEmap (optionally) returns mappings: from.id -> this.id

◆ addPartByMask()

None mrmeshpy.Polyline2.addPartByMask ( self,
ConstPolyline2 from_,
ConstUndirectedEdgeBitSet mask,
VertMap outVmap = None,
EdgeMap outEmap = None )
appends polyline (from) in addition to this polyline: creates new edges, verts and points

◆ assign()

Polyline2 mrmeshpy.Polyline2.assign ( self,
ConstPolyline2 other )

◆ invalidateCaches()

None mrmeshpy.Polyline2.invalidateCaches ( self)
Invalidates caches (e.g. aabb-tree) after a change in polyline

◆ pack()

None mrmeshpy.Polyline2.pack ( self,
VertMap outVmap = None,
WholeEdgeMap outEmap = None )
tightly packs all arrays eliminating lone edges and invalid verts and points,
optionally returns mappings: old.id -> new.id

◆ points() [1/2]

VertCoords2 mrmeshpy.Polyline2.points ( self)

Reimplemented from mrmeshpy.ConstPolyline2.

◆ points() [2/2]

None mrmeshpy.Polyline2.points ( self,
ConstVertCoords2 arg1 )

Reimplemented from mrmeshpy.ConstPolyline2.

◆ splitEdge() [1/2]

EdgeId mrmeshpy.Polyline2.splitEdge ( self,
ConstEdgeId e )
same, but split given edge on two equal parts

◆ splitEdge() [2/2]

EdgeId mrmeshpy.Polyline2.splitEdge ( self,
ConstEdgeId e,
ConstVector2f 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)

◆ topology() [1/2]

PolylineTopology mrmeshpy.Polyline2.topology ( self)

Reimplemented from mrmeshpy.ConstPolyline2.

◆ topology() [2/2]

None mrmeshpy.Polyline2.topology ( self,
ConstPolylineTopology arg1 )

Reimplemented from mrmeshpy.ConstPolyline2.

◆ transform()

None mrmeshpy.Polyline2.transform ( self,
ConstAffineXf2f xf )
applies given transformation to all valid polyline vertices

The documentation for this class was generated from the following file: