MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::IFastWindingNumberByParts Struct Reference
Inheritance diagram for meshlib::IFastWindingNumberByParts:

Public Member Functions

auto calc_from_grid_by_parts (resFunc:&meshlib::std_function_expected_void_std_string_from_MR_VoxelScalars_rvalue_ref_const_MR_Vector3i_ref_int, dims:&meshlib::Vector3i, gridToMeshXf:&meshlib::AffineXf3f, beta:f32, layerOverlap:core::ffi::c_int, cb:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::expected_void_std_string >
auto calc_from_grid_with_distances_by_parts (resFunc:&meshlib::std_function_expected_void_std_string_from_MR_VoxelScalars_rvalue_ref_const_MR_Vector3i_ref_int, dims:&meshlib::Vector3i, gridToMeshXf:&meshlib::AffineXf3f, options:&meshlib::DistanceToMeshOptions, layerOverlap:core::ffi::c_int, cb:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::expected_void_std_string >

Additional Inherited Members

Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)

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

Generated from class MR::IFastWindingNumberByParts. Heap-allocated instances are held in Owned<IFastWindingNumberByParts>.

Member Function Documentation

◆ calc_from_grid_by_parts()

auto meshlib::IFastWindingNumberByParts::calc_from_grid_by_parts ( resFunc:&meshlib::std_function_expected_void_std_string_from_MR_VoxelScalars_rvalue_ref_const_MR_Vector3i_ref_int ,
dims:&meshlib::Vector3i ,
gridToMeshXf:&meshlib::AffineXf3f ,
beta:f32 ,
layerOverlap:core::ffi::c_int ,
cb:&meshlib::std_function_bool_from_float  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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().

◆ calc_from_grid_with_distances_by_parts()

auto meshlib::IFastWindingNumberByParts::calc_from_grid_with_distances_by_parts ( resFunc:&meshlib::std_function_expected_void_std_string_from_MR_VoxelScalars_rvalue_ref_const_MR_Vector3i_ref_int ,
dims:&meshlib::Vector3i ,
gridToMeshXf:&meshlib::AffineXf3f ,
options:&meshlib::DistanceToMeshOptions ,
layerOverlap:core::ffi::c_int ,
cb:&meshlib::std_function_bool_from_float  ) -> meshlib::Owned< meshlib::expected_void_std_string >

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 documentation for this struct was generated from the following file: