MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / canonical

Method canonical

source/MRMesh/MRMeshTriPoint.cpp:65–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65MeshTriPoint MeshTriPoint::canonical( const MeshTopology & topology ) const
66{
67 const auto e0 = topology.edgeWithLeft( topology.left( e ) );
68 MeshTriPoint res = *this;
69 for ( int i = 0; i < 2 && res.e != e0; ++i )
70 {
71 res = res.lnext( topology );
72 }
73 assert( res.e == e0 );
74 return res;
75}
76
77std::array<WeightedVertex, 3> MeshTriPoint::getWeightedVerts( const MeshTopology & topology ) const
78{

Callers 1

serializeToJsonFunction · 0.80

Calls 3

edgeWithLeftMethod · 0.80
leftMethod · 0.80
lnextMethod · 0.45

Tested by

no test coverage detected