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

Public Member Functions

 IFastWindingNumberByParts (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
void calcFromGridByParts (meshlib.std_function_expected_void_std_string_from_MR_VoxelScalars_rvalue_ref_const_MR_Vector3i_ref_int resFunc, meshlib.Vector3i dims, meshlib.AffineXf3f gridToMeshXf, float beta, int layerOverlap, meshlib.std_function_bool_from_float cb)
void calcFromGridWithDistancesByParts (meshlib.std_function_expected_void_std_string_from_MR_VoxelScalars_rvalue_ref_const_MR_Vector3i_ref_int resFunc, meshlib.Vector3i dims, meshlib.AffineXf3f gridToMeshXf, meshlib.DistanceToMeshOptions options, int layerOverlap, meshlib.std_function_bool_from_float cb)
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 that complements IFastWindingNumber with chunked processing variants of its methods Generated from class MR::IFastWindingNumberByParts. Derived classes: Direct: (non-virtual) MR::Cuda::FastWindingNumber

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

Constructor & Destructor Documentation

◆ IFastWindingNumberByParts()

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

◆ calcFromGridByParts()

void meshlib.IFastWindingNumberByParts.calcFromGridByParts ( meshlib.std_function_expected_void_std_string_from_MR_VoxelScalars_rvalue_ref_const_MR_Vector3i_ref_int resFunc,
meshlib.Vector3i dims,
meshlib.AffineXf3f gridToMeshXf,
float beta,
int layerOverlap,
meshlib.std_function_bool_from_float cb )

calculates winding numbers in each point from a three-dimensional grid

Parameters
resFunccallback that gets a block of resulting winding numbers
dimsdimensions of the grid
gridToMeshXftransform from integer grid locations to voxel's centers in mesh reference frame
betadetermines the precision of the approximation: the more the better, recommended value 2 or more
layerOverlapoverlap between two blocks of the grid, set as XY layer count Generated from method MR::IFastWindingNumberByParts::calcFromGridByParts.

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

◆ calcFromGridWithDistancesByParts()

void meshlib.IFastWindingNumberByParts.calcFromGridWithDistancesByParts ( meshlib.std_function_expected_void_std_string_from_MR_VoxelScalars_rvalue_ref_const_MR_Vector3i_ref_int resFunc,
meshlib.Vector3i dims,
meshlib.AffineXf3f gridToMeshXf,
meshlib.DistanceToMeshOptions options,
int layerOverlap,
meshlib.std_function_bool_from_float cb )

calculates distances with the sign obtained from generalized winding number in each point from a three-dimensional grid; if sqr(res) < minDistSq or sqr(res) >= maxDistSq, then NaN is returned for such point

Parameters
resFunccallback that gets a block of resulting winding numbers
dimsdimensions of the grid
gridToMeshXftransform from integer grid locations to voxel's centers in mesh reference frame
layerOverlapoverlap between two blocks of the grid, set as XY layer count Generated from method MR::IFastWindingNumberByParts::calcFromGridWithDistancesByParts.

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


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