Public Member Functions | |
| EdgeLengthMesh (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner) | |
| EdgeLengthMesh () | |
| EdgeLengthMesh (meshlib.MeshTopology topology, meshlib.UndirectedEdgeScalars edgeLengths) | |
| EdgeLengthMesh (meshlib.EdgeLengthMesh _other) | |
| meshlib.EdgeLengthMesh | assignFromAnother (meshlib.EdgeLengthMesh _other) |
| float | leftCotan (meshlib.EdgeId e) |
| float | cotan (meshlib.UndirectedEdgeId ue) |
| boolean | isDelone (meshlib.UndirectedEdgeId ue, java.lang.Float threshold) |
| meshlib.std_optional_float | edgeLengthAfterFlip (meshlib.EdgeId e) |
| boolean | flipEdge (meshlib.EdgeId e) |
| meshlib.MeshTopology | topology () |
| void | setTopology (meshlib.MeshTopology value) |
| meshlib.UndirectedEdgeScalars | edgeLengths () |
| void | setEdgeLengths (meshlib.UndirectedEdgeScalars value) |
| Public Member Functions inherited from meshlib.CppObject | |
| final java.lang.foreign.MemorySegment | rawPointer () |
| final boolean | isOwned () |
| final void | close () |
| final java.lang.foreign.MemorySegment | release () |
Static Public Member Functions | |
| static meshlib.EdgeLengthMesh | fromMesh (meshlib.Mesh mesh) |
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) | |
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. Generated from class MR::EdgeLengthMesh.
Instances created here own their C++ objects, see CppObject.
| meshlib.EdgeLengthMesh.EdgeLengthMesh | ( | 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.EdgeLengthMesh.EdgeLengthMesh | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_EdgeLengthMesh_DefaultConstruct().
| meshlib.EdgeLengthMesh.EdgeLengthMesh | ( | meshlib.MeshTopology | topology, |
| meshlib.UndirectedEdgeScalars | edgeLengths ) |
Constructs MR::EdgeLengthMesh elementwise. The reference to the parameter topology might be preserved in the constructed object. The reference to the parameter edgeLengths might be preserved in the constructed object.
Calls MR_EdgeLengthMesh_ConstructFrom().
| meshlib.EdgeLengthMesh.EdgeLengthMesh | ( | meshlib.EdgeLengthMesh | _other | ) |
Generated from constructor MR::EdgeLengthMesh::EdgeLengthMesh. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
Calls MR_EdgeLengthMesh_ConstructFromAnother().
| meshlib.EdgeLengthMesh meshlib.EdgeLengthMesh.assignFromAnother | ( | meshlib.EdgeLengthMesh | _other | ) |
Generated from method MR::EdgeLengthMesh::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.
Calls MR_EdgeLengthMesh_AssignFromAnother().
| float meshlib.EdgeLengthMesh.cotan | ( | meshlib.UndirectedEdgeId | 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 Generated from method MR::EdgeLengthMesh::cotan.
Calls MR_EdgeLengthMesh_cotan().
| meshlib.std_optional_float meshlib.EdgeLengthMesh.edgeLengthAfterFlip | ( | meshlib.EdgeId | 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 Generated from method MR::EdgeLengthMesh::edgeLengthAfterFlip.
Calls MR_EdgeLengthMesh_edgeLengthAfterFlip().
| meshlib.UndirectedEdgeScalars meshlib.EdgeLengthMesh.edgeLengths | ( | ) |
Returns a pointer to a member variable of class MR::EdgeLengthMesh named edgeLengths. The reference to this object might be preserved as the return value.
Calls MR_EdgeLengthMesh_Get_edgeLengths().
| boolean meshlib.EdgeLengthMesh.flipEdge | ( | meshlib.EdgeId | e | ) |
given the edge with left and right triangular faces, which form together a quadrangle, rotates the edge counter-clockwise inside the quadrangle; the length of e becomes equal to the length of geodesic line between its new ends on original mesh; does not flip and returns false if the geodesic line does not go fully inside the quadrangle Generated from method MR::EdgeLengthMesh::flipEdge.
Calls MR_EdgeLengthMesh_flipEdge().
|
static |
construct EdgeLengthMesh from an ordinary mesh Generated from method MR::EdgeLengthMesh::fromMesh.
Calls MR_EdgeLengthMesh_fromMesh().
| boolean meshlib.EdgeLengthMesh.isDelone | ( | meshlib.UndirectedEdgeId | ue, |
| java.lang.Float | threshold ) |
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 Generated from method MR::EdgeLengthMesh::isDelone.
Calls MR_EdgeLengthMesh_isDelone().
| float meshlib.EdgeLengthMesh.leftCotan | ( | meshlib.EdgeId | e | ) |
computes cotangent of the angle in the left( e ) triangle opposite to e, and returns 0 if left face does not exist Generated from method MR::EdgeLengthMesh::leftCotan.
Calls MR_EdgeLengthMesh_leftCotan().
| void meshlib.EdgeLengthMesh.setEdgeLengths | ( | meshlib.UndirectedEdgeScalars | value | ) |
Modifies a member variable of class MR::EdgeLengthMesh named edgeLengths. The reference to the parameter value might be preserved in this object in element edgeLengths.
Calls MR_EdgeLengthMesh_Set_edgeLengths().
| void meshlib.EdgeLengthMesh.setTopology | ( | meshlib.MeshTopology | value | ) |
Modifies a member variable of class MR::EdgeLengthMesh named topology. The reference to the parameter value might be preserved in this object in element topology.
Calls MR_EdgeLengthMesh_Set_topology().
| meshlib.MeshTopology meshlib.EdgeLengthMesh.topology | ( | ) |
Returns a pointer to a member variable of class MR::EdgeLengthMesh named topology. The reference to this object might be preserved as the return value.
Calls MR_EdgeLengthMesh_Get_topology().