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

Public Member Functions

auto assign_from_another (_other:&meshlib::GeneralOffsetParameters) -> &mut meshlib::GeneralOffsetParameters
auto mode () const -> &meshlib::OffsetMode
auto mode_mut () -> &mut meshlib::OffsetMode
void set_mode (value:meshlib::OffsetMode)
auto out_sharp_edges () const -> *const *mut meshlib::ffi::MR_UndirectedEdgeBitSet
auto out_sharp_edges_mut () -> *mut *mut meshlib::ffi::MR_UndirectedEdgeBitSet
void set_out_sharp_edges (value:Option<&mut meshlib::UndirectedEdgeBitSet >)
auto out_voxel_per_face () const -> *const *mut meshlib::ffi::MR_Vector_MR_VoxelId_MR_FaceId
auto out_voxel_per_face_mut () -> *mut *mut meshlib::ffi::MR_Vector_MR_VoxelId_MR_FaceId
void set_out_voxel_per_face (value:Option<&mut meshlib::Vector_MR_VoxelId_MR_FaceId >)
auto min_new_vert_dev () const -> &f32
auto min_new_vert_dev_mut () -> &mut f32
void set_min_new_vert_dev (value:f32)
auto max_new_rank2_vert_dev () const -> &f32
auto max_new_rank2_vert_dev_mut () -> &mut f32
void set_max_new_rank2_vert_dev (value:f32)
auto max_new_rank3_vert_dev () const -> &f32
auto max_new_rank3_vert_dev_mut () -> &mut f32
void set_max_new_rank3_vert_dev (value:f32)
auto max_old_vert_pos_correction () const -> &f32
auto max_old_vert_pos_correction_mut () -> &mut f32
void set_max_old_vert_pos_correction (value:f32)
auto voxel_clamp () const -> &bool
auto voxel_clamp_mut () -> &mut bool
void set_voxel_clamp (value:bool)
auto max_deleted_component_faces () const -> &core::ffi::c_int
auto max_deleted_component_faces_mut () -> &mut core::ffi::c_int
void set_max_deleted_component_faces (value:core::ffi::c_int)
auto sign_detection_mode () const -> &meshlib::SignDetectionMode
auto sign_detection_mode_mut () -> &mut meshlib::SignDetectionMode
void set_sign_detection_mode (value:meshlib::SignDetectionMode)
auto close_holes_in_hole_winding_number () const -> &bool
auto close_holes_in_hole_winding_number_mut () -> &mut bool
void set_close_holes_in_hole_winding_number (value:bool)
auto winding_number_threshold () const -> &f32
auto winding_number_threshold_mut () -> &mut f32
void set_winding_number_threshold (value:f32)
auto winding_number_beta () const -> &f32
auto winding_number_beta_mut () -> &mut f32
void set_winding_number_beta (value:f32)
auto fwn () const -> &meshlib::std_shared_ptr_MR_IFastWindingNumber
auto fwn_mut () -> &mut meshlib::std_shared_ptr_MR_IFastWindingNumber
void set_fwn (value:&meshlib::std_shared_ptr_MR_IFastWindingNumber)
auto memory_efficient () const -> &bool
auto memory_efficient_mut () -> &mut bool
void set_memory_efficient (value:bool)
auto voxel_size () const -> &f32
auto voxel_size_mut () -> &mut f32
void set_voxel_size (value:f32)
auto call_back () const -> &meshlib::std_function_bool_from_float
auto call_back_mut () -> &mut meshlib::std_function_bool_from_float
void set_call_back (value:&meshlib::std_function_bool_from_float)
auto upcast_to_base_shell_parameters () const -> &meshlib::BaseShellParameters
auto upcast_to_base_shell_parameters_mut () -> &mut meshlib::BaseShellParameters
auto upcast_to_offset_parameters () const -> &meshlib::OffsetParameters
auto upcast_to_offset_parameters_mut () -> &mut meshlib::OffsetParameters
auto upcast_to_sharp_offset_parameters () const -> &meshlib::SharpOffsetParameters
auto upcast_to_sharp_offset_parameters_mut () -> &mut meshlib::SharpOffsetParameters

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::GeneralOffsetParameters >
static auto construct_from_another (_other:&meshlib::GeneralOffsetParameters) -> meshlib::Owned< meshlib::GeneralOffsetParameters >
static auto static_downcast_from_base_shell_parameters (object:&meshlib::BaseShellParameters) -> &Self
static auto static_downcast_from_base_shell_parameters_mut (object:&mut meshlib::BaseShellParameters) -> &mut Self
static auto static_downcast_from_offset_parameters (object:&meshlib::OffsetParameters) -> &Self
static auto static_downcast_from_offset_parameters_mut (object:&mut meshlib::OffsetParameters) -> &mut Self
static auto static_downcast_from_sharp_offset_parameters (object:&meshlib::SharpOffsetParameters) -> &Self
static auto static_downcast_from_sharp_offset_parameters_mut (object:&mut meshlib::SharpOffsetParameters) -> &mut Self
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

allows the user to select in the parameters which offset algorithm to call Generated from class MR::GeneralOffsetParameters. Base classes: Direct: (non-virtual) MR::SharpOffsetParameters Indirect: (non-virtual) MR::BaseShellParameters MR::OffsetParameters

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

Member Function Documentation

◆ assign_from_another()

auto meshlib::GeneralOffsetParameters::assign_from_another ( _other:&meshlib::GeneralOffsetParameters ) -> &mut meshlib::GeneralOffsetParameters

Generated from method MR::GeneralOffsetParameters::operator=.

Calls MR_GeneralOffsetParameters_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ call_back()

auto meshlib::GeneralOffsetParameters::call_back ( ) const -> &meshlib::std_function_bool_from_float

Progress callback Returns a pointer to a member variable of class MR::GeneralOffsetParameters named callBack.

Calls MR_GeneralOffsetParameters_Get_callBack(). The reference to this object might be preserved as the return value.

◆ call_back_mut()

auto meshlib::GeneralOffsetParameters::call_back_mut ( ) -> &mut meshlib::std_function_bool_from_float

Progress callback Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named callBack.

Calls MR_GeneralOffsetParameters_GetMutable_callBack(). The reference to this object might be preserved as the return value.

◆ close_holes_in_hole_winding_number()

auto meshlib::GeneralOffsetParameters::close_holes_in_hole_winding_number ( ) const -> &bool

whether to construct closed mesh in signMode = SignDetectionModeShort::HoleWindingNumber Returns a pointer to a member variable of class MR::GeneralOffsetParameters named closeHolesInHoleWindingNumber.

Calls MR_GeneralOffsetParameters_Get_closeHolesInHoleWindingNumber(). The reference to this object might be preserved as the return value.

◆ close_holes_in_hole_winding_number_mut()

auto meshlib::GeneralOffsetParameters::close_holes_in_hole_winding_number_mut ( ) -> &mut bool

whether to construct closed mesh in signMode = SignDetectionModeShort::HoleWindingNumber Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named closeHolesInHoleWindingNumber.

Calls MR_GeneralOffsetParameters_GetMutable_closeHolesInHoleWindingNumber(). The reference to this object might be preserved as the return value.

◆ construct_from_another()

auto meshlib::GeneralOffsetParameters::construct_from_another ( _other:&meshlib::GeneralOffsetParameters ) -> meshlib::Owned< meshlib::GeneralOffsetParameters >
static

Generated from constructor MR::GeneralOffsetParameters::GeneralOffsetParameters.

Calls MR_GeneralOffsetParameters_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ fwn()

auto meshlib::GeneralOffsetParameters::fwn ( ) const -> &meshlib::std_shared_ptr_MR_IFastWindingNumber

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used this only used if signDetectionMode == SignDetectionMode::HoleWindingRule, otherwise it is ignored providing this will disable memoryEfficient (as if memoryEfficient == false) Returns a pointer to a member variable of class MR::GeneralOffsetParameters named fwn.

Calls MR_GeneralOffsetParameters_Get_fwn(). The reference to this object might be preserved as the return value.

◆ fwn_mut()

auto meshlib::GeneralOffsetParameters::fwn_mut ( ) -> &mut meshlib::std_shared_ptr_MR_IFastWindingNumber

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used this only used if signDetectionMode == SignDetectionMode::HoleWindingRule, otherwise it is ignored providing this will disable memoryEfficient (as if memoryEfficient == false) Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named fwn.

Calls MR_GeneralOffsetParameters_GetMutable_fwn(). The reference to this object might be preserved as the return value.

◆ max_deleted_component_faces()

auto meshlib::GeneralOffsetParameters::max_deleted_component_faces ( ) const -> &core::ffi::c_int

if positive, then after sharpening every connected component with not more than this number of triangles intersecting a larger component is deleted; such tiny fragments appear near sharp creases Returns a pointer to a member variable of class MR::GeneralOffsetParameters named maxDeletedComponentFaces.

Calls MR_GeneralOffsetParameters_Get_maxDeletedComponentFaces(). The reference to this object might be preserved as the return value.

◆ max_deleted_component_faces_mut()

auto meshlib::GeneralOffsetParameters::max_deleted_component_faces_mut ( ) -> &mut core::ffi::c_int

if positive, then after sharpening every connected component with not more than this number of triangles intersecting a larger component is deleted; such tiny fragments appear near sharp creases Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named maxDeletedComponentFaces.

Calls MR_GeneralOffsetParameters_GetMutable_maxDeletedComponentFaces(). The reference to this object might be preserved as the return value.

◆ max_new_rank2_vert_dev()

auto meshlib::GeneralOffsetParameters::max_new_rank2_vert_dev ( ) const -> &f32

maximal surface deviation to introduce new rank 2 vertex (on intersection of 2 planes), measured in voxelSize Returns a pointer to a member variable of class MR::GeneralOffsetParameters named maxNewRank2VertDev.

Calls MR_GeneralOffsetParameters_Get_maxNewRank2VertDev(). The reference to this object might be preserved as the return value.

◆ max_new_rank2_vert_dev_mut()

auto meshlib::GeneralOffsetParameters::max_new_rank2_vert_dev_mut ( ) -> &mut f32

maximal surface deviation to introduce new rank 2 vertex (on intersection of 2 planes), measured in voxelSize Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named maxNewRank2VertDev.

Calls MR_GeneralOffsetParameters_GetMutable_maxNewRank2VertDev(). The reference to this object might be preserved as the return value.

◆ max_new_rank3_vert_dev()

auto meshlib::GeneralOffsetParameters::max_new_rank3_vert_dev ( ) const -> &f32

maximal surface deviation to introduce new rank 3 vertex (on intersection of 3 planes), measured in voxelSize Returns a pointer to a member variable of class MR::GeneralOffsetParameters named maxNewRank3VertDev.

Calls MR_GeneralOffsetParameters_Get_maxNewRank3VertDev(). The reference to this object might be preserved as the return value.

◆ max_new_rank3_vert_dev_mut()

auto meshlib::GeneralOffsetParameters::max_new_rank3_vert_dev_mut ( ) -> &mut f32

maximal surface deviation to introduce new rank 3 vertex (on intersection of 3 planes), measured in voxelSize Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named maxNewRank3VertDev.

Calls MR_GeneralOffsetParameters_GetMutable_maxNewRank3VertDev(). The reference to this object might be preserved as the return value.

◆ max_old_vert_pos_correction()

auto meshlib::GeneralOffsetParameters::max_old_vert_pos_correction ( ) const -> &f32

correct positions of the input vertices using reference mesh by not more than this distance, measured in voxelSize; big correction can be wrong and result from self-intersections in the reference mesh Returns a pointer to a member variable of class MR::GeneralOffsetParameters named maxOldVertPosCorrection.

Calls MR_GeneralOffsetParameters_Get_maxOldVertPosCorrection(). The reference to this object might be preserved as the return value.

◆ max_old_vert_pos_correction_mut()

auto meshlib::GeneralOffsetParameters::max_old_vert_pos_correction_mut ( ) -> &mut f32

correct positions of the input vertices using reference mesh by not more than this distance, measured in voxelSize; big correction can be wrong and result from self-intersections in the reference mesh Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named maxOldVertPosCorrection.

Calls MR_GeneralOffsetParameters_GetMutable_maxOldVertPosCorrection(). The reference to this object might be preserved as the return value.

◆ memory_efficient()

auto meshlib::GeneralOffsetParameters::memory_efficient ( ) const -> &bool

use FunctionVolume for voxel grid representation:

  • memory consumption for voxel storage is approx. (dims.z / (2 * thread_count)) lesser
  • computations are about 15% slower (because some z-layers are computed twice) this setting is ignored (as if memoryEfficient == false) if a) signDetectionMode = SignDetectionMode::OpenVDB, or b) fwn is provided (CUDA computations require full memory storage) used only by mcOffsetMesh and sharpOffsetMesh methods Returns a pointer to a member variable of class MR::GeneralOffsetParameters named memoryEfficient.

Calls MR_GeneralOffsetParameters_Get_memoryEfficient(). The reference to this object might be preserved as the return value.

◆ memory_efficient_mut()

auto meshlib::GeneralOffsetParameters::memory_efficient_mut ( ) -> &mut bool

use FunctionVolume for voxel grid representation:

  • memory consumption for voxel storage is approx. (dims.z / (2 * thread_count)) lesser
  • computations are about 15% slower (because some z-layers are computed twice) this setting is ignored (as if memoryEfficient == false) if a) signDetectionMode = SignDetectionMode::OpenVDB, or b) fwn is provided (CUDA computations require full memory storage) used only by mcOffsetMesh and sharpOffsetMesh methods Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named memoryEfficient.

Calls MR_GeneralOffsetParameters_GetMutable_memoryEfficient(). The reference to this object might be preserved as the return value.

◆ min_new_vert_dev()

auto meshlib::GeneralOffsetParameters::min_new_vert_dev ( ) const -> &f32

minimal surface deviation to introduce new vertex in a voxel, measured in voxelSize Returns a pointer to a member variable of class MR::GeneralOffsetParameters named minNewVertDev.

Calls MR_GeneralOffsetParameters_Get_minNewVertDev(). The reference to this object might be preserved as the return value.

◆ min_new_vert_dev_mut()

auto meshlib::GeneralOffsetParameters::min_new_vert_dev_mut ( ) -> &mut f32

minimal surface deviation to introduce new vertex in a voxel, measured in voxelSize Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named minNewVertDev.

Calls MR_GeneralOffsetParameters_GetMutable_minNewVertDev(). The reference to this object might be preserved as the return value.

◆ mode()

auto meshlib::GeneralOffsetParameters::mode ( ) const -> &meshlib::OffsetMode

Returns a pointer to a member variable of class MR::GeneralOffsetParameters named mode.

Calls MR_GeneralOffsetParameters_Get_mode(). The reference to this object might be preserved as the return value.

◆ mode_mut()

auto meshlib::GeneralOffsetParameters::mode_mut ( ) -> &mut meshlib::OffsetMode

Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named mode.

Calls MR_GeneralOffsetParameters_GetMutable_mode(). The reference to this object might be preserved as the return value.

◆ new()

auto meshlib::GeneralOffsetParameters::new ( ) -> meshlib::Owned< meshlib::GeneralOffsetParameters >
static

Constructs an empty (default-constructed) instance.

Calls MR_GeneralOffsetParameters_DefaultConstruct().

◆ out_sharp_edges()

auto meshlib::GeneralOffsetParameters::out_sharp_edges ( ) const -> *const *mut meshlib::ffi::MR_UndirectedEdgeBitSet

if non-null then created sharp edges will be saved here Returns a pointer to a member variable of class MR::GeneralOffsetParameters named outSharpEdges.

Calls MR_GeneralOffsetParameters_Get_outSharpEdges(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ out_sharp_edges_mut()

auto meshlib::GeneralOffsetParameters::out_sharp_edges_mut ( ) -> *mut *mut meshlib::ffi::MR_UndirectedEdgeBitSet

if non-null then created sharp edges will be saved here Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named outSharpEdges.

Calls MR_GeneralOffsetParameters_GetMutable_outSharpEdges(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ out_voxel_per_face()

auto meshlib::GeneralOffsetParameters::out_voxel_per_face ( ) const -> *const *mut meshlib::ffi::MR_Vector_MR_VoxelId_MR_FaceId

if non-null then for each output mesh face maps its voxel id Returns a pointer to a member variable of class MR::GeneralOffsetParameters named outVoxelPerFace.

Calls MR_GeneralOffsetParameters_Get_outVoxelPerFace(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ out_voxel_per_face_mut()

auto meshlib::GeneralOffsetParameters::out_voxel_per_face_mut ( ) -> *mut *mut meshlib::ffi::MR_Vector_MR_VoxelId_MR_FaceId

if non-null then for each output mesh face maps its voxel id Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named outVoxelPerFace.

Calls MR_GeneralOffsetParameters_GetMutable_outVoxelPerFace(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ set_call_back()

void meshlib::GeneralOffsetParameters::set_call_back ( value:&meshlib::std_function_bool_from_float )

Progress callback Modifies a member variable of class MR::GeneralOffsetParameters named callBack.

Calls MR_GeneralOffsetParameters_Set_callBack(). The reference to the parameter value might be preserved in this object in element callBack.

◆ set_close_holes_in_hole_winding_number()

void meshlib::GeneralOffsetParameters::set_close_holes_in_hole_winding_number ( value:bool )

whether to construct closed mesh in signMode = SignDetectionModeShort::HoleWindingNumber Modifies a member variable of class MR::GeneralOffsetParameters named closeHolesInHoleWindingNumber.

Calls MR_GeneralOffsetParameters_Set_closeHolesInHoleWindingNumber().

◆ set_fwn()

void meshlib::GeneralOffsetParameters::set_fwn ( value:&meshlib::std_shared_ptr_MR_IFastWindingNumber )

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used this only used if signDetectionMode == SignDetectionMode::HoleWindingRule, otherwise it is ignored providing this will disable memoryEfficient (as if memoryEfficient == false) Modifies a member variable of class MR::GeneralOffsetParameters named fwn.

Calls MR_GeneralOffsetParameters_Set_fwn(). The reference to the parameter value might be preserved in this object in element fwn.

◆ set_max_deleted_component_faces()

void meshlib::GeneralOffsetParameters::set_max_deleted_component_faces ( value:core::ffi::c_int )

if positive, then after sharpening every connected component with not more than this number of triangles intersecting a larger component is deleted; such tiny fragments appear near sharp creases Modifies a member variable of class MR::GeneralOffsetParameters named maxDeletedComponentFaces.

Calls MR_GeneralOffsetParameters_Set_maxDeletedComponentFaces().

◆ set_max_new_rank2_vert_dev()

void meshlib::GeneralOffsetParameters::set_max_new_rank2_vert_dev ( value:f32 )

maximal surface deviation to introduce new rank 2 vertex (on intersection of 2 planes), measured in voxelSize Modifies a member variable of class MR::GeneralOffsetParameters named maxNewRank2VertDev.

Calls MR_GeneralOffsetParameters_Set_maxNewRank2VertDev().

◆ set_max_new_rank3_vert_dev()

void meshlib::GeneralOffsetParameters::set_max_new_rank3_vert_dev ( value:f32 )

maximal surface deviation to introduce new rank 3 vertex (on intersection of 3 planes), measured in voxelSize Modifies a member variable of class MR::GeneralOffsetParameters named maxNewRank3VertDev.

Calls MR_GeneralOffsetParameters_Set_maxNewRank3VertDev().

◆ set_max_old_vert_pos_correction()

void meshlib::GeneralOffsetParameters::set_max_old_vert_pos_correction ( value:f32 )

correct positions of the input vertices using reference mesh by not more than this distance, measured in voxelSize; big correction can be wrong and result from self-intersections in the reference mesh Modifies a member variable of class MR::GeneralOffsetParameters named maxOldVertPosCorrection.

Calls MR_GeneralOffsetParameters_Set_maxOldVertPosCorrection().

◆ set_memory_efficient()

void meshlib::GeneralOffsetParameters::set_memory_efficient ( value:bool )

use FunctionVolume for voxel grid representation:

  • memory consumption for voxel storage is approx. (dims.z / (2 * thread_count)) lesser
  • computations are about 15% slower (because some z-layers are computed twice) this setting is ignored (as if memoryEfficient == false) if a) signDetectionMode = SignDetectionMode::OpenVDB, or b) fwn is provided (CUDA computations require full memory storage) used only by mcOffsetMesh and sharpOffsetMesh methods Modifies a member variable of class MR::GeneralOffsetParameters named memoryEfficient.

Calls MR_GeneralOffsetParameters_Set_memoryEfficient().

◆ set_min_new_vert_dev()

void meshlib::GeneralOffsetParameters::set_min_new_vert_dev ( value:f32 )

minimal surface deviation to introduce new vertex in a voxel, measured in voxelSize Modifies a member variable of class MR::GeneralOffsetParameters named minNewVertDev.

Calls MR_GeneralOffsetParameters_Set_minNewVertDev().

◆ set_mode()

void meshlib::GeneralOffsetParameters::set_mode ( value:meshlib::OffsetMode )

Modifies a member variable of class MR::GeneralOffsetParameters named mode.

Calls MR_GeneralOffsetParameters_Set_mode(). The reference to the parameter value might be preserved in this object in element mode.

◆ set_out_sharp_edges()

void meshlib::GeneralOffsetParameters::set_out_sharp_edges ( value:Option<&mut meshlib::UndirectedEdgeBitSet > )

if non-null then created sharp edges will be saved here Modifies a member variable of class MR::GeneralOffsetParameters named outSharpEdges.

Calls MR_GeneralOffsetParameters_Set_outSharpEdges(). The reference to the parameter value might be preserved in this object in element outSharpEdges.

◆ set_out_voxel_per_face()

void meshlib::GeneralOffsetParameters::set_out_voxel_per_face ( value:Option<&mut meshlib::Vector_MR_VoxelId_MR_FaceId > )

if non-null then for each output mesh face maps its voxel id Modifies a member variable of class MR::GeneralOffsetParameters named outVoxelPerFace.

Calls MR_GeneralOffsetParameters_Set_outVoxelPerFace(). The reference to the parameter value might be preserved in this object in element outVoxelPerFace.

◆ set_sign_detection_mode()

void meshlib::GeneralOffsetParameters::set_sign_detection_mode ( value:meshlib::SignDetectionMode )

determines the method to compute distance sign; offsetMesh implementing OffsetMode::Smooth supports only Unsigned, OpenVDB and HoleWindingRule here Modifies a member variable of class MR::GeneralOffsetParameters named signDetectionMode.

Calls MR_GeneralOffsetParameters_Set_signDetectionMode(). The reference to the parameter value might be preserved in this object in element signDetectionMode.

◆ set_voxel_clamp()

void meshlib::GeneralOffsetParameters::set_voxel_clamp ( value:bool )

if true, the displacement of a new vertex from the average point is shortened to keep the vertex within its voxel's box (so the geometry of a voxel can never reach another one), and the in-plane elevation check is skipped Modifies a member variable of class MR::GeneralOffsetParameters named voxelClamp.

Calls MR_GeneralOffsetParameters_Set_voxelClamp().

◆ set_voxel_size()

void meshlib::GeneralOffsetParameters::set_voxel_size ( value:f32 )

Size of voxel in grid conversions; The user is responsible for setting some positive value here Modifies a member variable of class MR::GeneralOffsetParameters named voxelSize.

Calls MR_GeneralOffsetParameters_Set_voxelSize().

◆ set_winding_number_beta()

void meshlib::GeneralOffsetParameters::set_winding_number_beta ( value:f32 )

only for SignDetectionMode::HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1 Modifies a member variable of class MR::GeneralOffsetParameters named windingNumberBeta.

Calls MR_GeneralOffsetParameters_Set_windingNumberBeta().

◆ set_winding_number_threshold()

void meshlib::GeneralOffsetParameters::set_winding_number_threshold ( value:f32 )

only for SignDetectionMode::HoleWindingRule: positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Modifies a member variable of class MR::GeneralOffsetParameters named windingNumberThreshold.

Calls MR_GeneralOffsetParameters_Set_windingNumberThreshold().

◆ sign_detection_mode()

auto meshlib::GeneralOffsetParameters::sign_detection_mode ( ) const -> &meshlib::SignDetectionMode

determines the method to compute distance sign; offsetMesh implementing OffsetMode::Smooth supports only Unsigned, OpenVDB and HoleWindingRule here Returns a pointer to a member variable of class MR::GeneralOffsetParameters named signDetectionMode.

Calls MR_GeneralOffsetParameters_Get_signDetectionMode(). The reference to this object might be preserved as the return value.

◆ sign_detection_mode_mut()

auto meshlib::GeneralOffsetParameters::sign_detection_mode_mut ( ) -> &mut meshlib::SignDetectionMode

determines the method to compute distance sign; offsetMesh implementing OffsetMode::Smooth supports only Unsigned, OpenVDB and HoleWindingRule here Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named signDetectionMode.

Calls MR_GeneralOffsetParameters_GetMutable_signDetectionMode(). The reference to this object might be preserved as the return value.

◆ static_downcast_from_base_shell_parameters()

auto meshlib::GeneralOffsetParameters::static_downcast_from_base_shell_parameters ( object:&meshlib::BaseShellParameters ) -> &Self
static

Static downcast from the base class MR::BaseShellParameters.

Calls MR_GeneralOffsetParameters_StaticDowncastFrom_MR_BaseShellParameters(). Undefined behavior if the object isn't actually a GeneralOffsetParameters.

Note
This function is unsafe.

◆ static_downcast_from_base_shell_parameters_mut()

auto meshlib::GeneralOffsetParameters::static_downcast_from_base_shell_parameters_mut ( object:&mut meshlib::BaseShellParameters ) -> &mut Self
static

Static downcast from the base class MR::BaseShellParameters.

Calls MR_GeneralOffsetParameters_MutableStaticDowncastFrom_MR_BaseShellParameters(). Undefined behavior if the object isn't actually a GeneralOffsetParameters.

Note
This function is unsafe.

◆ static_downcast_from_offset_parameters()

auto meshlib::GeneralOffsetParameters::static_downcast_from_offset_parameters ( object:&meshlib::OffsetParameters ) -> &Self
static

Static downcast from the base class MR::OffsetParameters.

Calls MR_GeneralOffsetParameters_StaticDowncastFrom_MR_OffsetParameters(). Undefined behavior if the object isn't actually a GeneralOffsetParameters.

Note
This function is unsafe.

◆ static_downcast_from_offset_parameters_mut()

auto meshlib::GeneralOffsetParameters::static_downcast_from_offset_parameters_mut ( object:&mut meshlib::OffsetParameters ) -> &mut Self
static

Static downcast from the base class MR::OffsetParameters.

Calls MR_GeneralOffsetParameters_MutableStaticDowncastFrom_MR_OffsetParameters(). Undefined behavior if the object isn't actually a GeneralOffsetParameters.

Note
This function is unsafe.

◆ static_downcast_from_sharp_offset_parameters()

auto meshlib::GeneralOffsetParameters::static_downcast_from_sharp_offset_parameters ( object:&meshlib::SharpOffsetParameters ) -> &Self
static

Static downcast from the base class MR::SharpOffsetParameters.

Calls MR_GeneralOffsetParameters_StaticDowncastFrom_MR_SharpOffsetParameters(). Undefined behavior if the object isn't actually a GeneralOffsetParameters.

Note
This function is unsafe.

◆ static_downcast_from_sharp_offset_parameters_mut()

auto meshlib::GeneralOffsetParameters::static_downcast_from_sharp_offset_parameters_mut ( object:&mut meshlib::SharpOffsetParameters ) -> &mut Self
static

Static downcast from the base class MR::SharpOffsetParameters.

Calls MR_GeneralOffsetParameters_MutableStaticDowncastFrom_MR_SharpOffsetParameters(). Undefined behavior if the object isn't actually a GeneralOffsetParameters.

Note
This function is unsafe.

◆ upcast_to_base_shell_parameters()

auto meshlib::GeneralOffsetParameters::upcast_to_base_shell_parameters ( ) const -> &meshlib::BaseShellParameters

Upcasts to the base class MR::BaseShellParameters.

Calls MR_GeneralOffsetParameters_UpcastTo_MR_BaseShellParameters().

◆ upcast_to_base_shell_parameters_mut()

auto meshlib::GeneralOffsetParameters::upcast_to_base_shell_parameters_mut ( ) -> &mut meshlib::BaseShellParameters

Upcasts to the base class MR::BaseShellParameters.

Calls MR_GeneralOffsetParameters_MutableUpcastTo_MR_BaseShellParameters().

◆ upcast_to_offset_parameters()

auto meshlib::GeneralOffsetParameters::upcast_to_offset_parameters ( ) const -> &meshlib::OffsetParameters

Upcasts to the base class MR::OffsetParameters.

Calls MR_GeneralOffsetParameters_UpcastTo_MR_OffsetParameters().

◆ upcast_to_offset_parameters_mut()

auto meshlib::GeneralOffsetParameters::upcast_to_offset_parameters_mut ( ) -> &mut meshlib::OffsetParameters

Upcasts to the base class MR::OffsetParameters.

Calls MR_GeneralOffsetParameters_MutableUpcastTo_MR_OffsetParameters().

◆ upcast_to_sharp_offset_parameters()

auto meshlib::GeneralOffsetParameters::upcast_to_sharp_offset_parameters ( ) const -> &meshlib::SharpOffsetParameters

Upcasts to the base class MR::SharpOffsetParameters.

Calls MR_GeneralOffsetParameters_UpcastTo_MR_SharpOffsetParameters().

◆ upcast_to_sharp_offset_parameters_mut()

auto meshlib::GeneralOffsetParameters::upcast_to_sharp_offset_parameters_mut ( ) -> &mut meshlib::SharpOffsetParameters

Upcasts to the base class MR::SharpOffsetParameters.

Calls MR_GeneralOffsetParameters_MutableUpcastTo_MR_SharpOffsetParameters().

◆ voxel_clamp()

auto meshlib::GeneralOffsetParameters::voxel_clamp ( ) const -> &bool

if true, the displacement of a new vertex from the average point is shortened to keep the vertex within its voxel's box (so the geometry of a voxel can never reach another one), and the in-plane elevation check is skipped Returns a pointer to a member variable of class MR::GeneralOffsetParameters named voxelClamp.

Calls MR_GeneralOffsetParameters_Get_voxelClamp(). The reference to this object might be preserved as the return value.

◆ voxel_clamp_mut()

auto meshlib::GeneralOffsetParameters::voxel_clamp_mut ( ) -> &mut bool

if true, the displacement of a new vertex from the average point is shortened to keep the vertex within its voxel's box (so the geometry of a voxel can never reach another one), and the in-plane elevation check is skipped Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named voxelClamp.

Calls MR_GeneralOffsetParameters_GetMutable_voxelClamp(). The reference to this object might be preserved as the return value.

◆ voxel_size()

auto meshlib::GeneralOffsetParameters::voxel_size ( ) const -> &f32

Size of voxel in grid conversions; The user is responsible for setting some positive value here Returns a pointer to a member variable of class MR::GeneralOffsetParameters named voxelSize.

Calls MR_GeneralOffsetParameters_Get_voxelSize(). The reference to this object might be preserved as the return value.

◆ voxel_size_mut()

auto meshlib::GeneralOffsetParameters::voxel_size_mut ( ) -> &mut f32

Size of voxel in grid conversions; The user is responsible for setting some positive value here Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named voxelSize.

Calls MR_GeneralOffsetParameters_GetMutable_voxelSize(). The reference to this object might be preserved as the return value.

◆ winding_number_beta()

auto meshlib::GeneralOffsetParameters::winding_number_beta ( ) const -> &f32

only for SignDetectionMode::HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1 Returns a pointer to a member variable of class MR::GeneralOffsetParameters named windingNumberBeta.

Calls MR_GeneralOffsetParameters_Get_windingNumberBeta(). The reference to this object might be preserved as the return value.

◆ winding_number_beta_mut()

auto meshlib::GeneralOffsetParameters::winding_number_beta_mut ( ) -> &mut f32

only for SignDetectionMode::HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1 Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named windingNumberBeta.

Calls MR_GeneralOffsetParameters_GetMutable_windingNumberBeta(). The reference to this object might be preserved as the return value.

◆ winding_number_threshold()

auto meshlib::GeneralOffsetParameters::winding_number_threshold ( ) const -> &f32

only for SignDetectionMode::HoleWindingRule: positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Returns a pointer to a member variable of class MR::GeneralOffsetParameters named windingNumberThreshold.

Calls MR_GeneralOffsetParameters_Get_windingNumberThreshold(). The reference to this object might be preserved as the return value.

◆ winding_number_threshold_mut()

auto meshlib::GeneralOffsetParameters::winding_number_threshold_mut ( ) -> &mut f32

only for SignDetectionMode::HoleWindingRule: positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Returns a mutable pointer to a member variable of class MR::GeneralOffsetParameters named windingNumberThreshold.

Calls MR_GeneralOffsetParameters_GetMutable_windingNumberThreshold(). The reference to this object might be preserved as the return value.


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