MeshLib Documentation
Loading...
Searching...
No Matches
MRBasinVolume.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4
5namespace MR
6{
7
11{
12public:
15 MRMESH_API bool addTerrainTri( Triangle3f t, float level );
16
18 [[nodiscard]] double getVolume() const { return sum_ / 6; }
19
20private:
21 double sum_ = 0;
22};
23
26[[nodiscard]] MRMESH_API double computeBasinVolume( const Mesh& mesh, const FaceBitSet& faces, float level );
27
28} //namespace MR
#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