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

Public Member Functions

None __init__ (self)
None __init__ (self, Const_std_vector_Vector3_float contour)
None __init__ (self, Const_std_vector_std_vector_Vector3_float contours)
None __init__ (self, Const_std_vector_Id_VertTag comp2firstVert, ConstVertCoords ps)
None __init__ (self, ConstPolyline3 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, ConstVector3f vs, int num, bool closed)
EdgeId addFromPoints (self, ConstVector3f vs, int num)
EdgeId addFromSurfacePath (self, ConstMesh mesh, Const_std_vector_EdgePointT_float path)
None addPart (self, ConstPolyline3 from_, VertMap outVmap=None, WholeEdgeMap outEmap=None)
None addPartByMask (self, ConstPolyline3 from_, ConstUndirectedEdgeBitSet mask, VertMap outVmap=None, EdgeMap outEmap=None)
Polyline3 assign (self, ConstPolyline3 other)
None invalidateCaches (self)
None pack (self, VertMap outVmap=None, WholeEdgeMap outEmap=None)
EdgeId splitEdge (self, ConstEdgeId e, ConstVector3f newVertPos)
EdgeId splitEdge (self, ConstEdgeId e)
None transform (self, ConstAffineXf3f xf)
VertCoords points (self)
None points (self, ConstVertCoords arg1)
PolylineTopology topology (self)
None topology (self, ConstPolylineTopology arg1)
Public Member Functions inherited from mrmeshpy.ConstPolyline3
 __init__ (self, *args, **kwargs)
float averageEdgeLength (self)
Box3f computeBoundingBox (self, ConstAffineXf3f toWorld=None)
std_vector_std_vector_Vector3_float contours (self, std_vector_std_vector_Id_VertTag vertMap=None)
Vector3f destPnt (self, ConstEdgeId e)
Vector3f edgeCenter (self, ConstEdgeId e)
float edgeLength (self, ConstEdgeId e)
float edgeLengthSq (self, ConstEdgeId e)
Vector3f edgePoint (self, ConstEdgeId e, float f)
Vector3f edgePoint (self, ConstEdgePoint ep)
LineSegm3f edgeSegment (self, ConstEdgeId e)
Vector3f edgeVector (self, ConstEdgeId e)
Vector3f findCenterFromPoints (self)
ConstAABBTreePolyline3 getAABBTree (self)
ConstAABBTreePolyline3 getAABBTreeNotCreate (self)
Box3f getBoundingBox (self)
int heapBytes (self)
Vector3f loopDirArea (self, ConstEdgeId e)
Vector3f orgPnt (self, ConstEdgeId e)
EdgePoint toEdgePoint (self, ConstVertId v)
EdgePoint toEdgePoint (self, ConstEdgeId e, ConstVector3f p)
float totalLength (self)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

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

Detailed Description

Generated from:  MR::Polyline3
Aliases:  PolylineTraits_Vector3f.Polyline, std_shared_ptr_Polyline3, std_shared_ptr_const_Polyline3

polyline that stores points of type V

Constructor & Destructor Documentation

◆ __init__() [1/6]

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

◆ __init__() [2/6]

None mrmeshpy.Polyline3.__init__ ( self)

◆ __init__() [3/6]

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

◆ __init__() [4/6]

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

◆ __init__() [5/6]

None mrmeshpy.Polyline3.__init__ ( self,
Const_std_vector_Id_VertTag comp2firstVert,
ConstVertCoords 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.Polyline3.__init__ ( self,
ConstPolyline3 arg0 )
Implicit copy constructor.

Member Function Documentation

◆ addFromEdgePath()

EdgeId mrmeshpy.Polyline3.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.Polyline3.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.Polyline3.addFromPoints ( self,
ConstVector3f 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.Polyline3.addFromPoints ( self,
ConstVector3f 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.Polyline3.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.Polyline3.addPart ( self,
ConstPolyline3 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.Polyline3.addPartByMask ( self,
ConstPolyline3 from_,
ConstUndirectedEdgeBitSet mask,
VertMap outVmap = None,
EdgeMap outEmap = None )
appends polyline (from) in addition to this polyline: creates new edges, verts and points

◆ assign()

Polyline3 mrmeshpy.Polyline3.assign ( self,
ConstPolyline3 other )

◆ invalidateCaches()

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

◆ pack()

None mrmeshpy.Polyline3.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]

VertCoords mrmeshpy.Polyline3.points ( self)

Reimplemented from mrmeshpy.ConstPolyline3.

◆ points() [2/2]

None mrmeshpy.Polyline3.points ( self,
ConstVertCoords arg1 )

Reimplemented from mrmeshpy.ConstPolyline3.

◆ splitEdge() [1/2]

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

◆ splitEdge() [2/2]

EdgeId mrmeshpy.Polyline3.splitEdge ( self,
ConstEdgeId e,
ConstVector3f 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.Polyline3.topology ( self)

Reimplemented from mrmeshpy.ConstPolyline3.

◆ topology() [2/2]

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

Reimplemented from mrmeshpy.ConstPolyline3.

◆ transform()

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

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