MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.BasinVolumeCalculator Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, BasinVolumeCalculator arg0)
 
bool addTerrainTri (self, std_array_Vector3_float_3 t, float level)
 
float getVolume (self)
 

Detailed Description

Generated from:  MR::BasinVolumeCalculator

the class to compute the volume of water some basin can accumulate,
considering that water upper surface has constant z-level

Constructor & Destructor Documentation

◆ __init__() [1/2]

None meshlib.mrmeshpy.BasinVolumeCalculator.__init__ ( self)
Implicit default constructor.

◆ __init__() [2/2]

None meshlib.mrmeshpy.BasinVolumeCalculator.__init__ ( self,
BasinVolumeCalculator arg0 )
Implicit copy constructor.

Member Function Documentation

◆ addTerrainTri()

bool meshlib.mrmeshpy.BasinVolumeCalculator.addTerrainTri ( self,
std_array_Vector3_float_3 t,
float level )
pass every triangle of the basin here, and the water level;
\\return true if the triangle is at least partially below the water level and influences on the volume

◆ getVolume()

float meshlib.mrmeshpy.BasinVolumeCalculator.getVolume ( self)
call it after all addTerrainTri to get the volume

The documentation for this class was generated from the following file: