MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.BasinVolumeCalculator Class Reference
Inheritance diagram for meshlib.BasinVolumeCalculator:

Public Member Functions

 BasinVolumeCalculator (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 BasinVolumeCalculator ()
 BasinVolumeCalculator (meshlib.BasinVolumeCalculator _other)
meshlib.BasinVolumeCalculator assignFromAnother (meshlib.BasinVolumeCalculator _other)
boolean addTerrainTri (meshlib.std_array_MR_Vector3f_3 t, float level)
double getVolume ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

the class to compute the volume of water some basin can accumulate, considering that water upper surface has constant z-level Generated from class MR::BasinVolumeCalculator.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ BasinVolumeCalculator() [1/3]

meshlib.BasinVolumeCalculator.BasinVolumeCalculator ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ BasinVolumeCalculator() [2/3]

meshlib.BasinVolumeCalculator.BasinVolumeCalculator ( )

Constructs an empty (default-constructed) instance.

Calls MR_BasinVolumeCalculator_DefaultConstruct().

◆ BasinVolumeCalculator() [3/3]

meshlib.BasinVolumeCalculator.BasinVolumeCalculator ( meshlib.BasinVolumeCalculator _other)

Generated from constructor MR::BasinVolumeCalculator::BasinVolumeCalculator. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_BasinVolumeCalculator_ConstructFromAnother().

Member Function Documentation

◆ addTerrainTri()

boolean meshlib.BasinVolumeCalculator.addTerrainTri ( meshlib.std_array_MR_Vector3f_3 t,
float level )

pass every triangle of the basin here, and the water level;

Returns
true if the triangle is at least partially below the water level and influences on the volume Generated from method MR::BasinVolumeCalculator::addTerrainTri.

Calls MR_BasinVolumeCalculator_addTerrainTri().

◆ assignFromAnother()

meshlib.BasinVolumeCalculator meshlib.BasinVolumeCalculator.assignFromAnother ( meshlib.BasinVolumeCalculator _other)

Generated from method MR::BasinVolumeCalculator::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_BasinVolumeCalculator_AssignFromAnother().

◆ getVolume()

double meshlib.BasinVolumeCalculator.getVolume ( )

call it after all addTerrainTri to get the volume Generated from method MR::BasinVolumeCalculator::getVolume.

Calls MR_BasinVolumeCalculator_getVolume().


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