MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstPolyline3 Class Reference
Inheritance diagram for mrmeshpy.ConstPolyline3:

Public Member Functions

 __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)
ConstVertCoords points (self)
ConstPolylineTopology topology (self)

Static Protected Attributes

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__()

mrmeshpy.ConstPolyline3.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstPolyline3) -> None

2. __init__(self: meshlib.mrmeshpy.ConstPolyline3, contour: meshlib.mrmeshpy.Const_std_vector_Vector3_float) -> None

creates polyline from one contour (open or closed)

3. __init__(self: meshlib.mrmeshpy.ConstPolyline3, contours: meshlib.mrmeshpy.Const_std_vector_std_vector_Vector3_float) -> None

creates polyline from several contours (each can be open or closed)

4. __init__(self: meshlib.mrmeshpy.ConstPolyline3, comp2firstVert: meshlib.mrmeshpy.Const_std_vector_Id_VertTag, ps: meshlib.mrmeshpy.ConstVertCoords) -> None

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

5. __init__(self: meshlib.mrmeshpy.ConstPolyline3, arg0: meshlib.mrmeshpy.ConstPolyline3) -> None

Implicit copy constructor.

6. __init__(self: meshlib.mrmeshpy.ConstPolyline3, : meshlib.mrmeshpy.ConstPolyline3) -> None

Member Function Documentation

◆ averageEdgeLength()

float mrmeshpy.ConstPolyline3.averageEdgeLength ( self)
returns average edge length in the polyline

◆ computeBoundingBox()

Box3f mrmeshpy.ConstPolyline3.computeBoundingBox ( self,
ConstAffineXf3f toWorld = None )
passes through all valid points and finds the minimal bounding box containing all of them
\\details if toWorld transformation is given then returns minimal bounding box in world space

◆ contours()

std_vector_std_vector_Vector3_float mrmeshpy.ConstPolyline3.contours ( self,
std_vector_std_vector_Id_VertTag vertMap = None )
convert Polyline to simple contour structures with vector of points inside
\\details if all even edges are consistently oriented, then the output contours will be oriented the same
\\param vertMap optional output map for for each contour point to corresponding VertId

◆ destPnt()

Vector3f mrmeshpy.ConstPolyline3.destPnt ( self,
ConstEdgeId e )
returns coordinates of the edge destination

◆ edgeCenter()

Vector3f mrmeshpy.ConstPolyline3.edgeCenter ( self,
ConstEdgeId e )
returns edge's centroid

◆ edgeLength()

float mrmeshpy.ConstPolyline3.edgeLength ( self,
ConstEdgeId e )
returns Euclidean length of the edge

◆ edgeLengthSq()

float mrmeshpy.ConstPolyline3.edgeLengthSq ( self,
ConstEdgeId e )
returns squared Euclidean length of the edge (faster to compute than length)

◆ edgePoint() [1/2]

Vector3f mrmeshpy.ConstPolyline3.edgePoint ( self,
ConstEdgeId e,
float f )
returns a point on the edge: origin point for f=0 and destination point for f=1

◆ edgePoint() [2/2]

Vector3f mrmeshpy.ConstPolyline3.edgePoint ( self,
ConstEdgePoint ep )
computes coordinates of point given as edge and relative position on it

◆ edgeSegment()

LineSegm3f mrmeshpy.ConstPolyline3.edgeSegment ( self,
ConstEdgeId e )
returns line segment of given edge

◆ edgeVector()

Vector3f mrmeshpy.ConstPolyline3.edgeVector ( self,
ConstEdgeId e )
returns vector equal to edge destination point minus edge origin point

◆ findCenterFromPoints()

Vector3f mrmeshpy.ConstPolyline3.findCenterFromPoints ( self)
computes average position of all valid polyline vertices

◆ getAABBTree()

ConstAABBTreePolyline3 mrmeshpy.ConstPolyline3.getAABBTree ( self)
returns cached aabb-tree for this polyline, creating it if it did not exist in a thread-safe manner

◆ getAABBTreeNotCreate()

ConstAABBTreePolyline3 mrmeshpy.ConstPolyline3.getAABBTreeNotCreate ( self)
returns cached aabb-tree for this polyline, but does not create it if it did not exist

◆ getBoundingBox()

Box3f mrmeshpy.ConstPolyline3.getBoundingBox ( self)
returns the minimal bounding box containing all valid vertices (implemented via getAABBTree())

◆ heapBytes()

int mrmeshpy.ConstPolyline3.heapBytes ( self)
returns the amount of memory this object occupies on heap

◆ loopDirArea()

Vector3f mrmeshpy.ConstPolyline3.loopDirArea ( self,
ConstEdgeId e )
calculates directed loop area if iterating in `e` direction
.z = FLT_MAX if `e` does not represent a loop

◆ orgPnt()

Vector3f mrmeshpy.ConstPolyline3.orgPnt ( self,
ConstEdgeId e )
returns coordinates of the edge origin

◆ points()

ConstVertCoords mrmeshpy.ConstPolyline3.points ( self)

Reimplemented in mrmeshpy.Polyline3, and mrmeshpy.Polyline3.

◆ toEdgePoint() [1/2]

EdgePoint mrmeshpy.ConstPolyline3.toEdgePoint ( self,
ConstEdgeId e,
ConstVector3f p )
converts edge and point's coordinates into edge-point representation

◆ toEdgePoint() [2/2]

EdgePoint mrmeshpy.ConstPolyline3.toEdgePoint ( self,
ConstVertId v )
converts vertex into edge-point representation

◆ topology()

ConstPolylineTopology mrmeshpy.ConstPolyline3.topology ( self)

Reimplemented in mrmeshpy.Polyline3, and mrmeshpy.Polyline3.

◆ totalLength()

float mrmeshpy.ConstPolyline3.totalLength ( self)
returns total length of the polyline

Member Data Documentation

◆ _offsetof_points

typing mrmeshpy.ConstPolyline3._offsetof_points = 88
staticprotected

◆ _offsetof_topology

typing mrmeshpy.ConstPolyline3._offsetof_topology = 0
staticprotected

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