18 [[nodiscard]]
double getVolume()
const {
return sum_ / 6; }
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRBasinVolume.h:11
MRMESH_API bool addTerrainTri(Triangle3f t, float level)
double getVolume() const
call it after all addTerrainTri to get the volume
Definition MRBasinVolume.h:18
Definition MRCameraOrientationPlugin.h:8
Triangle3< float > Triangle3f
Definition MRMesh/MRMeshFwd.h:337
MRMESH_API double computeBasinVolume(const Mesh &mesh, const FaceBitSet &faces, float level)
Definition MRMesh/MRMesh.h:23