Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::SharpOffsetParameters > |
| static auto | construct_from_another (_other:&meshlib::SharpOffsetParameters) -> meshlib::Owned< meshlib::SharpOffsetParameters > |
| 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 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 |
Generated from class MR::SharpOffsetParameters. Base classes: Direct: (non-virtual) MR::OffsetParameters Indirect: (non-virtual) MR::BaseShellParameters Derived classes: Direct: (non-virtual) MR::GeneralOffsetParameters
Generated from class MR::SharpOffsetParameters. Heap-allocated instances are held in Owned<SharpOffsetParameters>.
| auto meshlib::SharpOffsetParameters::assign_from_another | ( | _other:&meshlib::SharpOffsetParameters | ) | -> &mut meshlib::SharpOffsetParameters |
Generated from method MR::SharpOffsetParameters::operator=.
Calls MR_SharpOffsetParameters_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::SharpOffsetParameters::call_back | ( | ) | const -> &meshlib::std_function_bool_from_float |
Progress callback Returns a pointer to a member variable of class MR::SharpOffsetParameters named callBack.
Calls MR_SharpOffsetParameters_Get_callBack(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::call_back_mut | ( | ) | -> &mut meshlib::std_function_bool_from_float |
Progress callback Returns a mutable pointer to a member variable of class MR::SharpOffsetParameters named callBack.
Calls MR_SharpOffsetParameters_GetMutable_callBack(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named closeHolesInHoleWindingNumber.
Calls MR_SharpOffsetParameters_Get_closeHolesInHoleWindingNumber(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named closeHolesInHoleWindingNumber.
Calls MR_SharpOffsetParameters_GetMutable_closeHolesInHoleWindingNumber(). The reference to this object might be preserved as the return value.
|
static |
Generated from constructor MR::SharpOffsetParameters::SharpOffsetParameters.
Calls MR_SharpOffsetParameters_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named fwn.
Calls MR_SharpOffsetParameters_Get_fwn(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named fwn.
Calls MR_SharpOffsetParameters_GetMutable_fwn(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named maxDeletedComponentFaces.
Calls MR_SharpOffsetParameters_Get_maxDeletedComponentFaces(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named maxDeletedComponentFaces.
Calls MR_SharpOffsetParameters_GetMutable_maxDeletedComponentFaces(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named maxNewRank2VertDev.
Calls MR_SharpOffsetParameters_Get_maxNewRank2VertDev(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named maxNewRank2VertDev.
Calls MR_SharpOffsetParameters_GetMutable_maxNewRank2VertDev(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named maxNewRank3VertDev.
Calls MR_SharpOffsetParameters_Get_maxNewRank3VertDev(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named maxNewRank3VertDev.
Calls MR_SharpOffsetParameters_GetMutable_maxNewRank3VertDev(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named maxOldVertPosCorrection.
Calls MR_SharpOffsetParameters_Get_maxOldVertPosCorrection(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named maxOldVertPosCorrection.
Calls MR_SharpOffsetParameters_GetMutable_maxOldVertPosCorrection(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::memory_efficient | ( | ) | const -> &bool |
use FunctionVolume for voxel grid representation:
Calls MR_SharpOffsetParameters_Get_memoryEfficient(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::memory_efficient_mut | ( | ) | -> &mut bool |
use FunctionVolume for voxel grid representation:
Calls MR_SharpOffsetParameters_GetMutable_memoryEfficient(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named minNewVertDev.
Calls MR_SharpOffsetParameters_Get_minNewVertDev(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named minNewVertDev.
Calls MR_SharpOffsetParameters_GetMutable_minNewVertDev(). The reference to this object might be preserved as the return value.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_SharpOffsetParameters_DefaultConstruct().
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named outSharpEdges.
Calls MR_SharpOffsetParameters_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.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named outSharpEdges.
Calls MR_SharpOffsetParameters_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.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named outVoxelPerFace.
Calls MR_SharpOffsetParameters_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.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named outVoxelPerFace.
Calls MR_SharpOffsetParameters_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.
| void meshlib::SharpOffsetParameters::set_call_back | ( | value:&meshlib::std_function_bool_from_float | ) |
Progress callback Modifies a member variable of class MR::SharpOffsetParameters named callBack.
Calls MR_SharpOffsetParameters_Set_callBack(). The reference to the parameter value might be preserved in this object in element callBack.
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named closeHolesInHoleWindingNumber.
Calls MR_SharpOffsetParameters_Set_closeHolesInHoleWindingNumber().
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named fwn.
Calls MR_SharpOffsetParameters_Set_fwn(). The reference to the parameter value might be preserved in this object in element fwn.
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named maxDeletedComponentFaces.
Calls MR_SharpOffsetParameters_Set_maxDeletedComponentFaces().
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named maxNewRank2VertDev.
Calls MR_SharpOffsetParameters_Set_maxNewRank2VertDev().
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named maxNewRank3VertDev.
Calls MR_SharpOffsetParameters_Set_maxNewRank3VertDev().
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named maxOldVertPosCorrection.
Calls MR_SharpOffsetParameters_Set_maxOldVertPosCorrection().
| void meshlib::SharpOffsetParameters::set_memory_efficient | ( | value:bool | ) |
use FunctionVolume for voxel grid representation:
Calls MR_SharpOffsetParameters_Set_memoryEfficient().
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named minNewVertDev.
Calls MR_SharpOffsetParameters_Set_minNewVertDev().
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named outSharpEdges.
Calls MR_SharpOffsetParameters_Set_outSharpEdges(). The reference to the parameter value might be preserved in this object in element outSharpEdges.
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named outVoxelPerFace.
Calls MR_SharpOffsetParameters_Set_outVoxelPerFace(). The reference to the parameter value might be preserved in this object in element outVoxelPerFace.
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named signDetectionMode.
Calls MR_SharpOffsetParameters_Set_signDetectionMode(). The reference to the parameter value might be preserved in this object in element signDetectionMode.
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named voxelClamp.
Calls MR_SharpOffsetParameters_Set_voxelClamp().
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named voxelSize.
Calls MR_SharpOffsetParameters_Set_voxelSize().
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named windingNumberBeta.
Calls MR_SharpOffsetParameters_Set_windingNumberBeta().
| void meshlib::SharpOffsetParameters::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::SharpOffsetParameters named windingNumberThreshold.
Calls MR_SharpOffsetParameters_Set_windingNumberThreshold().
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named signDetectionMode.
Calls MR_SharpOffsetParameters_Get_signDetectionMode(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named signDetectionMode.
Calls MR_SharpOffsetParameters_GetMutable_signDetectionMode(). The reference to this object might be preserved as the return value.
|
static |
Static downcast from the base class MR::BaseShellParameters.
Calls MR_SharpOffsetParameters_StaticDowncastFrom_MR_BaseShellParameters(). Undefined behavior if the object isn't actually a SharpOffsetParameters.
|
static |
Static downcast from the base class MR::BaseShellParameters.
Calls MR_SharpOffsetParameters_MutableStaticDowncastFrom_MR_BaseShellParameters(). Undefined behavior if the object isn't actually a SharpOffsetParameters.
|
static |
Static downcast from the base class MR::OffsetParameters.
Calls MR_SharpOffsetParameters_StaticDowncastFrom_MR_OffsetParameters(). Undefined behavior if the object isn't actually a SharpOffsetParameters.
|
static |
Static downcast from the base class MR::OffsetParameters.
Calls MR_SharpOffsetParameters_MutableStaticDowncastFrom_MR_OffsetParameters(). Undefined behavior if the object isn't actually a SharpOffsetParameters.
| auto meshlib::SharpOffsetParameters::upcast_to_base_shell_parameters | ( | ) | const -> &meshlib::BaseShellParameters |
Upcasts to the base class MR::BaseShellParameters.
Calls MR_SharpOffsetParameters_UpcastTo_MR_BaseShellParameters().
| auto meshlib::SharpOffsetParameters::upcast_to_base_shell_parameters_mut | ( | ) | -> &mut meshlib::BaseShellParameters |
Upcasts to the base class MR::BaseShellParameters.
Calls MR_SharpOffsetParameters_MutableUpcastTo_MR_BaseShellParameters().
| auto meshlib::SharpOffsetParameters::upcast_to_offset_parameters | ( | ) | const -> &meshlib::OffsetParameters |
Upcasts to the base class MR::OffsetParameters.
Calls MR_SharpOffsetParameters_UpcastTo_MR_OffsetParameters().
| auto meshlib::SharpOffsetParameters::upcast_to_offset_parameters_mut | ( | ) | -> &mut meshlib::OffsetParameters |
Upcasts to the base class MR::OffsetParameters.
Calls MR_SharpOffsetParameters_MutableUpcastTo_MR_OffsetParameters().
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named voxelClamp.
Calls MR_SharpOffsetParameters_Get_voxelClamp(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named voxelClamp.
Calls MR_SharpOffsetParameters_GetMutable_voxelClamp(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named voxelSize.
Calls MR_SharpOffsetParameters_Get_voxelSize(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named voxelSize.
Calls MR_SharpOffsetParameters_GetMutable_voxelSize(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named windingNumberBeta.
Calls MR_SharpOffsetParameters_Get_windingNumberBeta(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named windingNumberBeta.
Calls MR_SharpOffsetParameters_GetMutable_windingNumberBeta(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named windingNumberThreshold.
Calls MR_SharpOffsetParameters_Get_windingNumberThreshold(). The reference to this object might be preserved as the return value.
| auto meshlib::SharpOffsetParameters::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::SharpOffsetParameters named windingNumberThreshold.
Calls MR_SharpOffsetParameters_GetMutable_windingNumberThreshold(). The reference to this object might be preserved as the return value.