Additional Inherited Members | |
| Protected Member Functions inherited from meshlib.CppObject | |
| CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner) | |
polyline that stores points of type V Generated from class MR::Polyline3.
Instances created here own their C++ objects, see CppObject.
| meshlib.Polyline3.Polyline3 | ( | java.lang.foreign.MemorySegment | ptr, |
| boolean | owned, | ||
| java.lang.Object | owner ) |
Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.
| meshlib.Polyline3.Polyline3 | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Polyline3_DefaultConstruct().
| meshlib.Polyline3.Polyline3 | ( | meshlib.Polyline3 | _other | ) |
Generated from constructor MR::Polyline3::Polyline3. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
Calls MR_Polyline3_ConstructFromAnother().
| meshlib.Polyline3.Polyline3 | ( | meshlib.std_vector_MR_Vector3f | contour | ) |
creates polyline from one contour (open or closed) Generated from constructor MR::Polyline3::Polyline3. The reference to the parameter contour might be preserved in the constructed object.
Calls MR_Polyline3_Construct_1_std_vector_MR_Vector3f().
| meshlib.Polyline3.Polyline3 | ( | meshlib.std_vector_std_vector_MR_Vector3f | contours | ) |
creates polyline from several contours (each can be open or closed) Generated from constructor MR::Polyline3::Polyline3. The reference to the parameter contours might be preserved in the constructed object.
Calls MR_Polyline3_Construct_1_std_vector_std_vector_MR_Vector3f().
| meshlib.Polyline3.Polyline3 | ( | meshlib.std_vector_MR_VertId | comp2firstVert, |
| meshlib.VertCoords | ps ) |
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::Polyline3::Polyline3. The reference to the parameter comp2firstVert might be preserved in the constructed object. The reference to the parameter ps might be preserved in the constructed object. |
Calls MR_Polyline3_Construct_2().
| meshlib.EdgeId meshlib.Polyline3.addFromEdgePath | ( | meshlib.Mesh | mesh, |
| meshlib.std_vector_MR_EdgeId | path ) |
adds path to this polyline
Calls MR_Polyline3_addFromEdgePath().
| meshlib.EdgeId meshlib.Polyline3.addFromGeneralSurfacePath | ( | meshlib.Mesh | mesh, |
| meshlib.MeshTriPoint | start, | ||
| meshlib.std_vector_MR_EdgePoint | path, | ||
| meshlib.MeshTriPoint | end ) |
adds general path = start-path-end (where both start and end are optional) to this polyline
Calls MR_Polyline3_addFromGeneralSurfacePath().
| meshlib.EdgeId meshlib.Polyline3.addFromPoints | ( | meshlib.Vector3f | vs, |
| long | num ) |
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
Calls MR_Polyline3_addFromPoints_2().
| meshlib.EdgeId meshlib.Polyline3.addFromPoints | ( | meshlib.Vector3f | vs, |
| long | num, | ||
| boolean | closed ) |
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
Calls MR_Polyline3_addFromPoints_3().
| meshlib.EdgeId meshlib.Polyline3.addFromSurfacePath | ( | meshlib.Mesh | mesh, |
| meshlib.std_vector_MR_EdgePoint | path ) |
adds path to this polyline
Calls MR_Polyline3_addFromSurfacePath().
| void meshlib.Polyline3.addPart | ( | meshlib.Polyline3 | from, |
| meshlib.VertMap | outVmap, | ||
| meshlib.WholeEdgeMap | outEmap ) |
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::Polyline3::addPart. |
Calls MR_Polyline3_addPart().
| void meshlib.Polyline3.addPartByMask | ( | meshlib.Polyline3 | from, |
| meshlib.UndirectedEdgeBitSet | mask, | ||
| meshlib.VertMap | outVmap, | ||
| meshlib.EdgeMap | outEmap ) |
appends polyline (from) in addition to this polyline: creates new edges, verts and points Generated from method MR::Polyline3::addPartByMask.
Calls MR_Polyline3_addPartByMask().
| meshlib.Polyline3 meshlib.Polyline3.assignFromAnother | ( | meshlib.Polyline3 | _other | ) |
Generated from method MR::Polyline3::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.
Calls MR_Polyline3_AssignFromAnother().
| float meshlib.Polyline3.averageEdgeLength | ( | ) |
returns average edge length in the polyline Generated from method MR::Polyline3::averageEdgeLength.
Calls MR_Polyline3_averageEdgeLength().
| meshlib.Box3f meshlib.Polyline3.computeBoundingBox | ( | meshlib.AffineXf3f | toWorld | ) |
passes through all valid points and finds the minimal bounding box containing all of them
if toWorld transformation is given then returns minimal bounding box in world space Generated from method MR::Polyline3::computeBoundingBox.
Calls MR_Polyline3_computeBoundingBox().
| meshlib.std_vector_std_vector_MR_Vector3f meshlib.Polyline3.contours | ( | meshlib.std_vector_std_vector_MR_VertId | vertMap | ) |
convert Polyline to simple contour structures with vector of points inside
if all even edges are consistently oriented, then the output contours will be oriented the same
| vertMap | optional output map for for each contour point to corresponding VertId Generated from method MR::Polyline3::contours. |
Calls MR_Polyline3_contours().
| meshlib.Vector3f meshlib.Polyline3.destPnt | ( | meshlib.EdgeId | e | ) |
returns coordinates of the edge destination Generated from method MR::Polyline3::destPnt.
Calls MR_Polyline3_destPnt().
| meshlib.Vector3f meshlib.Polyline3.edgeCenter | ( | meshlib.EdgeId | e | ) |
returns edge's centroid Generated from method MR::Polyline3::edgeCenter.
Calls MR_Polyline3_edgeCenter().
| float meshlib.Polyline3.edgeLength | ( | meshlib.EdgeId | e | ) |
returns Euclidean length of the edge Generated from method MR::Polyline3::edgeLength.
Calls MR_Polyline3_edgeLength().
| float meshlib.Polyline3.edgeLengthSq | ( | meshlib.EdgeId | e | ) |
returns squared Euclidean length of the edge (faster to compute than length) Generated from method MR::Polyline3::edgeLengthSq.
Calls MR_Polyline3_edgeLengthSq().
| meshlib.Vector3f meshlib.Polyline3.edgePoint | ( | meshlib.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::Polyline3::edgePoint.
Calls MR_Polyline3_edgePoint_2().
| meshlib.Vector3f meshlib.Polyline3.edgePoint | ( | meshlib.EdgePoint | ep | ) |
computes coordinates of point given as edge and relative position on it Generated from method MR::Polyline3::edgePoint.
Calls MR_Polyline3_edgePoint_1().
| meshlib.LineSegm3f meshlib.Polyline3.edgeSegment | ( | meshlib.EdgeId | e | ) |
returns line segment of given edge Generated from method MR::Polyline3::edgeSegment.
Calls MR_Polyline3_edgeSegment().
| meshlib.Vector3f meshlib.Polyline3.edgeVector | ( | meshlib.EdgeId | e | ) |
returns vector equal to edge destination point minus edge origin point Generated from method MR::Polyline3::edgeVector.
Calls MR_Polyline3_edgeVector().
| meshlib.Vector3f meshlib.Polyline3.findCenterFromPoints | ( | ) |
computes average position of all valid polyline vertices Generated from method MR::Polyline3::findCenterFromPoints.
Calls MR_Polyline3_findCenterFromPoints().
| meshlib.AABBTreePolyline3 meshlib.Polyline3.getAABBTree | ( | ) |
returns cached aabb-tree for this polyline, creating it if it did not exist in a thread-safe manner Generated from method MR::Polyline3::getAABBTree.
Calls MR_Polyline3_getAABBTree().
| meshlib.AABBTreePolyline3 meshlib.Polyline3.getAABBTreeNotCreate | ( | ) |
returns cached aabb-tree for this polyline, but does not create it if it did not exist Generated from method MR::Polyline3::getAABBTreeNotCreate.
Calls MR_Polyline3_getAABBTreeNotCreate().
| meshlib.Box3f meshlib.Polyline3.getBoundingBox | ( | ) |
returns the minimal bounding box containing all valid vertices (implemented via getAABBTree()) Generated from method MR::Polyline3::getBoundingBox.
Calls MR_Polyline3_getBoundingBox().
| long meshlib.Polyline3.heapBytes | ( | ) |
returns the amount of memory this object occupies on heap Generated from method MR::Polyline3::heapBytes.
Calls MR_Polyline3_heapBytes().
| void meshlib.Polyline3.invalidateCaches | ( | ) |
Invalidates caches (e.g. aabb-tree) after a change in polyline Generated from method MR::Polyline3::invalidateCaches.
Calls MR_Polyline3_invalidateCaches().
| meshlib.Vector3f meshlib.Polyline3.loopDirArea | ( | meshlib.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::Polyline3::loopDirArea.
Calls MR_Polyline3_loopDirArea().
| meshlib.Vector3f meshlib.Polyline3.orgPnt | ( | meshlib.EdgeId | e | ) |
returns coordinates of the edge origin Generated from method MR::Polyline3::orgPnt.
Calls MR_Polyline3_orgPnt().
| void meshlib.Polyline3.pack | ( | meshlib.VertMap | outVmap, |
| meshlib.WholeEdgeMap | outEmap ) |
tightly packs all arrays eliminating lone edges and invalid verts and points, optionally returns mappings: old.id -> new.id Generated from method MR::Polyline3::pack.
Calls MR_Polyline3_pack().
| meshlib.VertCoords meshlib.Polyline3.points | ( | ) |
Returns a pointer to a member variable of class MR::Polyline3 named points. The reference to this object might be preserved as the return value.
Calls MR_Polyline3_Get_points().
| void meshlib.Polyline3.setPoints | ( | meshlib.VertCoords | value | ) |
Modifies a member variable of class MR::Polyline3 named points. The reference to the parameter value might be preserved in this object in element points.
Calls MR_Polyline3_Set_points().
| void meshlib.Polyline3.setTopology | ( | meshlib.PolylineTopology | value | ) |
Modifies a member variable of class MR::Polyline3 named topology. The reference to the parameter value might be preserved in this object in element topology.
Calls MR_Polyline3_Set_topology().
| meshlib.EdgeId meshlib.Polyline3.splitEdge | ( | meshlib.EdgeId | e | ) |
same, but split given edge on two equal parts Generated from method MR::Polyline3::splitEdge.
Calls MR_Polyline3_splitEdge_1().
| meshlib.EdgeId meshlib.Polyline3.splitEdge | ( | meshlib.EdgeId | e, |
| meshlib.Vector3f | 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::Polyline3::splitEdge.
Calls MR_Polyline3_splitEdge_2().
| meshlib.EdgePoint meshlib.Polyline3.toEdgePoint | ( | meshlib.EdgeId | e, |
| meshlib.Vector3f | p ) |
converts edge and point's coordinates into edge-point representation Generated from method MR::Polyline3::toEdgePoint.
Calls MR_Polyline3_toEdgePoint_2().
| meshlib.EdgePoint meshlib.Polyline3.toEdgePoint | ( | meshlib.VertId | v | ) |
converts vertex into edge-point representation Generated from method MR::Polyline3::toEdgePoint.
Calls MR_Polyline3_toEdgePoint_1().
| meshlib.PolylineTopology meshlib.Polyline3.topology | ( | ) |
Returns a pointer to a member variable of class MR::Polyline3 named topology. The reference to this object might be preserved as the return value.
Calls MR_Polyline3_Get_topology().
| float meshlib.Polyline3.totalLength | ( | ) |
returns total length of the polyline Generated from method MR::Polyline3::totalLength.
Calls MR_Polyline3_totalLength().
| void meshlib.Polyline3.transform | ( | meshlib.AffineXf3f | xf | ) |
applies given transformation to all valid polyline vertices Generated from method MR::Polyline3::transform.
Calls MR_Polyline3_transform().