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

Function computeBasinVolume

source/MRMesh/MRBasinVolume.cpp:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62double computeBasinVolume( const Mesh& mesh, const FaceBitSet& faces, float level )
63{
64 MR_TIMER;
65 BasinVolumeCalculator calc;
66 for ( auto f : faces )
67 calc.addTerrainTri( mesh.getTriPoints( f ), level );
68 return calc.getVolume();
69}
70
71} //namespace MR

Callers 2

mergeMethod · 0.85
computeBasinVolumeMethod · 0.85

Calls 3

addTerrainTriMethod · 0.80
getTriPointsMethod · 0.80
getVolumeMethod · 0.80

Tested by

no test coverage detected