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

Public Member Functions

 IComputePointsToDistanceVolume (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
boolean canCompute (meshlib.PointCloud cloud, meshlib.PointsToDistanceVolumeParams params)
meshlib.SimpleVolumeMinMax compute (meshlib.PointCloud cloud, meshlib.PointsToDistanceVolumeParams params)
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

abstract class for computing a volume of signed distances to points with normals Generated from class MR::IComputePointsToDistanceVolume. Derived classes: Direct: (non-virtual) MR::IComputePointsToDistanceFunctionVolume MR::IComputePointsToDistanceVolumeByParts Indirect: (non-virtual) MR::ComputePointsToDistanceVolume MR::Cuda::ComputePointsToDistanceVolume

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

Constructor & Destructor Documentation

◆ IComputePointsToDistanceVolume()

meshlib.IComputePointsToDistanceVolume.IComputePointsToDistanceVolume ( 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.

Member Function Documentation

◆ canCompute()

boolean meshlib.IComputePointsToDistanceVolume.canCompute ( meshlib.PointCloud cloud,
meshlib.PointsToDistanceVolumeParams params )

whether this implementation can process given input, e.g. it fits in GPU memory Generated from method MR::IComputePointsToDistanceVolume::canCompute.

Calls MR_IComputePointsToDistanceVolume_canCompute().

◆ compute()

meshlib.SimpleVolumeMinMax meshlib.IComputePointsToDistanceVolume.compute ( meshlib.PointCloud cloud,
meshlib.PointsToDistanceVolumeParams params )

makes the whole volume at once, which needs the entire grid in memory; the derived interfaces below offer cheaper ways to obtain the same data Generated from method MR::IComputePointsToDistanceVolume::compute.

Calls MR_IComputePointsToDistanceVolume_compute(). The C++ function returns expected<MR::SimpleVolumeMinMax, std::string>: the value is returned and an error is thrown as UnexpectedResultException.


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