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

Function area

source/MRMesh/MRMeshMath.cpp:190–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190double area( const MeshTopology & topology, const VertCoords & points, const FaceBitSet & fs )
191{
192 MR_TIMER;
193
194 return 0.5 * parallel_deterministic_reduce( tbb::blocked_range( 0_f, FaceId{ topology.faceSize() }, 1024 ), 0.0,
195 [&] ( const auto & range, double curr )
196 {
197 for ( FaceId f = range.begin(); f < range.end(); ++f )
198 if ( fs.test( f ) && topology.hasFace( f ) )
199 curr += dblArea( topology, points, f );
200 return curr;
201 },
202 [] ( auto a, auto b ) { return a + b; } );
203}
204
205double projArea( const MeshTopology & topology, const VertCoords & points, const Vector3f & dir, const FaceBitSet & fs )
206{

Callers 2

discreteMeanCurvatureFunction · 0.70
findCenterFromFacesFunction · 0.70

Calls 6

faceSizeMethod · 0.80
hasFaceMethod · 0.80
dblAreaFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected