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

Function leftDirDblArea

source/MRMesh/MRMeshMath.cpp:140–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140Vector3f leftDirDblArea( const MeshTopology & topology, const VertCoords & points, EdgeId e )
141{
142 VertId a, b, c;
143 topology.getLeftTriVerts( e, a, b, c );
144 assert( a.valid() && b.valid() && c.valid() );
145 const auto & ap = points[a];
146 const auto & bp = points[b];
147 const auto & cp = points[c];
148 return cross( bp - ap, cp - ap );
149}
150
151Vector<Vector3f, VertId> dirDblAreas( const MeshTopology & topology, const VertCoords & points, const VertBitSet * region )
152{

Callers 4

leftDirDblAreaMethod · 0.85
dirDblAreaFunction · 0.85
dirDblAreaFunction · 0.85
leftNormalFunction · 0.85

Calls 3

crossFunction · 0.70
getLeftTriVertsMethod · 0.45
validMethod · 0.45

Tested by

no test coverage detected