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

Function getVertexAsMeshTriPoint

source/MRMesh/MRMeshTriPoint.cpp:118–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118MeshTriPoint getVertexAsMeshTriPoint( const MeshTopology & topology, EdgeId e, VertId v )
119{
120 VertId tv[3];
121 topology.getLeftTriVerts( e, tv );
122 if ( tv[0] == v )
123 return MeshTriPoint( e, { 0, 0 } );
124 if ( tv[1] == v )
125 return MeshTriPoint( e, { 1, 0 } );
126 if ( tv[2] == v )
127 return MeshTriPoint( e, { 0, 1 } );
128 return {};
129}
130
131static bool vertEdge2MeshTriPoints( const MeshTopology & topology, VertId av, const MeshEdgePoint & be, MeshTriPoint & a, MeshTriPoint & b )
132{

Callers 1

fromSameTriangleFunction · 0.85

Calls 2

MeshTriPointClass · 0.70
getLeftTriVertsMethod · 0.45

Tested by

no test coverage detected