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

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ cotan()

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

◆ edgeLengthAfterFlip()

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

◆ edgeLengths()

ConstUndirectedEdgeScalars mrmeshpy.ConstEdgeLengthMesh.edgeLengths ( self)

◆ fromMesh()

EdgeLengthMesh mrmeshpy.ConstEdgeLengthMesh.fromMesh ( ConstMesh mesh)
static
construct EdgeLengthMesh from an ordinary mesh

◆ isDelone()

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

◆ leftCotan()

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

◆ topology()

ConstMeshTopology mrmeshpy.ConstEdgeLengthMesh.topology ( self)

Member Data Documentation

◆ _offsetof_edgeLengths

typing mrmeshpy.ConstEdgeLengthMesh._offsetof_edgeLengths = 152
staticprotected

◆ _offsetof_topology

typing mrmeshpy.ConstEdgeLengthMesh._offsetof_topology = 0
staticprotected

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