Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| float | cotan (self, ConstUndirectedEdgeId ue) |
| float | edgeLengthAfterFlip (self, ConstEdgeId e) |
| bool | isDelone (self, ConstUndirectedEdgeId ue, float threshold=0) |
| float | leftCotan (self, ConstEdgeId e) |
| ConstUndirectedEdgeScalars | edgeLengths (self) |
| ConstMeshTopology | topology (self) |
Static Public Member Functions | |
| EdgeLengthMesh | fromMesh (ConstMesh mesh) |
Static Protected Attributes | |
| typing | _offsetof_edgeLengths = 152 |
| typing | _offsetof_topology = 0 |
Generated from: MR::EdgeLengthMesh Unlike the classic mesh that stores coordinates of its vertices, this class stores the lengths of all edges. It can be used for construction of intrinsic Intrinsic Delaunay Triangulations.
| mrmeshpy.ConstEdgeLengthMesh.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstEdgeLengthMesh) -> None 2. __init__(self: meshlib.mrmeshpy.ConstEdgeLengthMesh, arg0: meshlib.mrmeshpy.ConstEdgeLengthMesh) -> None Implicit copy constructor. 3. __init__(self: meshlib.mrmeshpy.ConstEdgeLengthMesh, topology: meshlib.mrmeshpy.ConstMeshTopology, edgeLengths: meshlib.mrmeshpy.ConstUndirectedEdgeScalars) -> None Implicit aggregate constructor. 4. __init__(self: meshlib.mrmeshpy.ConstEdgeLengthMesh, : meshlib.mrmeshpy.ConstEdgeLengthMesh) -> None
| float mrmeshpy.ConstEdgeLengthMesh.cotan | ( | self, | |
| ConstUndirectedEdgeId | ue ) |
computes sum of cotangents of the angle in the left and right triangles opposite to given edge, consider cotangents zero for not existing triangles
| float mrmeshpy.ConstEdgeLengthMesh.edgeLengthAfterFlip | ( | self, | |
| ConstEdgeId | e ) |
given the edge with left and right triangular faces, which form together a quadrangle, returns the length of geodesic line on original mesh between the vertices of the quadrangle opposite to given edge; returns std::nullopt if the geodesic line does not go fully inside the quadrangle
| ConstUndirectedEdgeScalars mrmeshpy.ConstEdgeLengthMesh.edgeLengths | ( | self | ) |
Reimplemented in mrmeshpy.EdgeLengthMesh, and mrmeshpy.EdgeLengthMesh.
|
static |
construct EdgeLengthMesh from an ordinary mesh
| bool mrmeshpy.ConstEdgeLengthMesh.isDelone | ( | self, | |
| ConstUndirectedEdgeId | ue, | ||
| float | threshold = 0 ) |
returns true if given edge satisfies Delaunay conditions, returns false if the edge needs to be flipped to satisfy Delaunay conditions, passing negative threshold makes more edges satisfy Delaunay conditions
| float mrmeshpy.ConstEdgeLengthMesh.leftCotan | ( | self, | |
| ConstEdgeId | e ) |
computes cotangent of the angle in the left( e ) triangle opposite to e, and returns 0 if left face does not exist
| ConstMeshTopology mrmeshpy.ConstEdgeLengthMesh.topology | ( | self | ) |
Reimplemented in mrmeshpy.EdgeLengthMesh, and mrmeshpy.EdgeLengthMesh.
|
staticprotected |
|
staticprotected |