12struct [[nodiscard]] EdgeLengthMesh
14 MeshTopology topology;
18 [[nodiscard]]
MRMESH_API static EdgeLengthMesh fromMesh(
const Mesh& mesh );
26 [[nodiscard]]
float cotan( UndirectedEdgeId ue )
const { EdgeId e{ ue };
return leftCotan( e ) +
leftCotan( e.sym() ); }
31 [[nodiscard]]
bool isDelone( UndirectedEdgeId ue,
float threshold = 0 )
const {
return cotan( ue ) >= threshold; }
36 [[nodiscard]]
MRMESH_API std::optional<float> edgeLengthAfterFlip( EdgeId e )
const;
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRCameraOrientationPlugin.h:8
float cotan(MeshTopology topology, VertCoords points, UndirectedEdgeId ue)
UndirectedEdgeScalars edgeLengths(MeshTopology topology, VertCoords points)
float leftCotan(MeshTopology topology, VertCoords points, EdgeId e)