Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::RebuildMeshSettings > |
| static auto | construct_from (preSubdivide:bool, voxelSize:f32, signMode:meshlib::SignDetectionModeShort, closeHolesInHoleWindingNumber:bool, offsetMode:meshlib::OffsetMode, outSharpEdges:Option<&mut meshlib::UndirectedEdgeBitSet >, windingNumberThreshold:f32, windingNumberBeta:f32, fwn:&meshlib::std_shared_ptr_MR_IFastWindingNumber, reduceAngleNumIters:core::ffi::c_int, decimate:bool, tinyEdgeLength:f32, progress:&meshlib::std_function_bool_from_float, onSignDetectionModeSelected:&meshlib::std_function_void_from_MR_SignDetectionMode) -> meshlib::Owned< meshlib::RebuildMeshSettings > |
| static auto | construct_from_another (_other:&meshlib::RebuildMeshSettings) -> meshlib::Owned< meshlib::RebuildMeshSettings > |
| 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::RebuildMeshSettings.
Generated from class MR::RebuildMeshSettings. Heap-allocated instances are held in Owned<RebuildMeshSettings>.
| auto meshlib::RebuildMeshSettings::assign_from_another | ( | _other:&meshlib::RebuildMeshSettings | ) | -> &mut meshlib::RebuildMeshSettings |
Generated from method MR::RebuildMeshSettings::operator=.
Calls MR_RebuildMeshSettings_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::RebuildMeshSettings::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::RebuildMeshSettings named closeHolesInHoleWindingNumber.
Calls MR_RebuildMeshSettings_Get_closeHolesInHoleWindingNumber(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::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::RebuildMeshSettings named closeHolesInHoleWindingNumber.
Calls MR_RebuildMeshSettings_GetMutable_closeHolesInHoleWindingNumber(). The reference to this object might be preserved as the return value.
|
static |
Constructs MR::RebuildMeshSettings elementwise.
Calls MR_RebuildMeshSettings_ConstructFrom(). The reference to the parameter signMode might be preserved in the constructed object. The reference to the parameter offsetMode might be preserved in the constructed object. The reference to the parameter outSharpEdges might be preserved in the constructed object. The reference to the parameter fwn might be preserved in the constructed object. The reference to the parameter progress might be preserved in the constructed object. The reference to the parameter onSignDetectionModeSelected might be preserved in the constructed object.
|
static |
Generated from constructor MR::RebuildMeshSettings::RebuildMeshSettings.
Calls MR_RebuildMeshSettings_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::RebuildMeshSettings::decimate | ( | ) | const -> &bool |
whether to decimate resulting mesh Returns a pointer to a member variable of class MR::RebuildMeshSettings named decimate.
Calls MR_RebuildMeshSettings_Get_decimate(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::decimate_mut | ( | ) | -> &mut bool |
whether to decimate resulting mesh Returns a mutable pointer to a member variable of class MR::RebuildMeshSettings named decimate.
Calls MR_RebuildMeshSettings_GetMutable_decimate(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::fwn | ( | ) | const -> &meshlib::std_shared_ptr_MR_IFastWindingNumber |
defines particular implementation of IFastWindingNumber interface that will compute windings (if required). If it is not specified, default FastWindingNumber is used Returns a pointer to a member variable of class MR::RebuildMeshSettings named fwn.
Calls MR_RebuildMeshSettings_Get_fwn(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::fwn_mut | ( | ) | -> &mut meshlib::std_shared_ptr_MR_IFastWindingNumber |
defines particular implementation of IFastWindingNumber interface that will compute windings (if required). If it is not specified, default FastWindingNumber is used Returns a mutable pointer to a member variable of class MR::RebuildMeshSettings named fwn.
Calls MR_RebuildMeshSettings_GetMutable_fwn(). The reference to this object might be preserved as the return value.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_RebuildMeshSettings_DefaultConstruct().
| auto meshlib::RebuildMeshSettings::offset_mode | ( | ) | const -> &meshlib::OffsetMode |
Returns a pointer to a member variable of class MR::RebuildMeshSettings named offsetMode.
Calls MR_RebuildMeshSettings_Get_offsetMode(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::offset_mode_mut | ( | ) | -> &mut meshlib::OffsetMode |
Returns a mutable pointer to a member variable of class MR::RebuildMeshSettings named offsetMode.
Calls MR_RebuildMeshSettings_GetMutable_offsetMode(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::on_sign_detection_mode_selected | ( | ) | const -> &meshlib::std_function_void_from_MR_SignDetectionMode |
this callback is invoked when SignDetectionMode is determined (useful if signMode = SignDetectionModeShort::Auto), but before actual work begins Returns a pointer to a member variable of class MR::RebuildMeshSettings named onSignDetectionModeSelected.
Calls MR_RebuildMeshSettings_Get_onSignDetectionModeSelected(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::on_sign_detection_mode_selected_mut | ( | ) | -> &mut meshlib::std_function_void_from_MR_SignDetectionMode |
this callback is invoked when SignDetectionMode is determined (useful if signMode = SignDetectionModeShort::Auto), but before actual work begins Returns a mutable pointer to a member variable of class MR::RebuildMeshSettings named onSignDetectionModeSelected.
Calls MR_RebuildMeshSettings_GetMutable_onSignDetectionModeSelected(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::out_sharp_edges | ( | ) | const -> *const *mut meshlib::ffi::MR_UndirectedEdgeBitSet |
if non-null then created sharp edges (only if offsetMode = OffsetMode::Sharpening) will be saved here Returns a pointer to a member variable of class MR::RebuildMeshSettings named outSharpEdges.
Calls MR_RebuildMeshSettings_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::RebuildMeshSettings::out_sharp_edges_mut | ( | ) | -> *mut *mut meshlib::ffi::MR_UndirectedEdgeBitSet |
if non-null then created sharp edges (only if offsetMode = OffsetMode::Sharpening) will be saved here Returns a mutable pointer to a member variable of class MR::RebuildMeshSettings named outSharpEdges.
Calls MR_RebuildMeshSettings_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::RebuildMeshSettings::pre_subdivide | ( | ) | const -> &bool |
whether to make subdivision of initial mesh before conversion to voxels, despite time and memory required for the subdivision, it typically makes the whole rebuilding faster (or even much faster in case of large initial triangles), because AABB tree contains small triangles in leaves, which is good for both 1) search for closest triangle because the closest box more frequently contains the closest triangle, 2) and winding number approximation because of more frequent usage of approximation for distant dipoles Returns a pointer to a member variable of class MR::RebuildMeshSettings named preSubdivide.
Calls MR_RebuildMeshSettings_Get_preSubdivide(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::pre_subdivide_mut | ( | ) | -> &mut bool |
whether to make subdivision of initial mesh before conversion to voxels, despite time and memory required for the subdivision, it typically makes the whole rebuilding faster (or even much faster in case of large initial triangles), because AABB tree contains small triangles in leaves, which is good for both 1) search for closest triangle because the closest box more frequently contains the closest triangle, 2) and winding number approximation because of more frequent usage of approximation for distant dipoles Returns a mutable pointer to a member variable of class MR::RebuildMeshSettings named preSubdivide.
Calls MR_RebuildMeshSettings_GetMutable_preSubdivide(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::progress | ( | ) | const -> &meshlib::std_function_bool_from_float |
To report algorithm's progress and cancel it on user demand Returns a pointer to a member variable of class MR::RebuildMeshSettings named progress.
Calls MR_RebuildMeshSettings_Get_progress(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::progress_mut | ( | ) | -> &mut meshlib::std_function_bool_from_float |
To report algorithm's progress and cancel it on user demand Returns a mutable pointer to a member variable of class MR::RebuildMeshSettings named progress.
Calls MR_RebuildMeshSettings_GetMutable_progress(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::reduce_angle_num_iters | ( | ) | const -> &core::ffi::c_int |
the number of iterations to minimize summed deviation of triangle-triangle angles from plane; this mode highlights sharp edges; if decimation is on, this mode is performed before and after decimation and further reduces the number of triangles Returns a pointer to a member variable of class MR::RebuildMeshSettings named reduceAngleNumIters.
Calls MR_RebuildMeshSettings_Get_reduceAngleNumIters(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::reduce_angle_num_iters_mut | ( | ) | -> &mut core::ffi::c_int |
the number of iterations to minimize summed deviation of triangle-triangle angles from plane; this mode highlights sharp edges; if decimation is on, this mode is performed before and after decimation and further reduces the number of triangles Returns a mutable pointer to a member variable of class MR::RebuildMeshSettings named reduceAngleNumIters.
Calls MR_RebuildMeshSettings_GetMutable_reduceAngleNumIters(). The reference to this object might be preserved as the return value.
| void meshlib::RebuildMeshSettings::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::RebuildMeshSettings named closeHolesInHoleWindingNumber.
Calls MR_RebuildMeshSettings_Set_closeHolesInHoleWindingNumber().
| void meshlib::RebuildMeshSettings::set_decimate | ( | value:bool | ) |
whether to decimate resulting mesh Modifies a member variable of class MR::RebuildMeshSettings named decimate.
Calls MR_RebuildMeshSettings_Set_decimate().
| void meshlib::RebuildMeshSettings::set_fwn | ( | value:&meshlib::std_shared_ptr_MR_IFastWindingNumber | ) |
defines particular implementation of IFastWindingNumber interface that will compute windings (if required). If it is not specified, default FastWindingNumber is used Modifies a member variable of class MR::RebuildMeshSettings named fwn.
Calls MR_RebuildMeshSettings_Set_fwn(). The reference to the parameter value might be preserved in this object in element fwn.
| void meshlib::RebuildMeshSettings::set_offset_mode | ( | value:meshlib::OffsetMode | ) |
Modifies a member variable of class MR::RebuildMeshSettings named offsetMode.
Calls MR_RebuildMeshSettings_Set_offsetMode(). The reference to the parameter value might be preserved in this object in element offsetMode.
| void meshlib::RebuildMeshSettings::set_on_sign_detection_mode_selected | ( | value:&meshlib::std_function_void_from_MR_SignDetectionMode | ) |
this callback is invoked when SignDetectionMode is determined (useful if signMode = SignDetectionModeShort::Auto), but before actual work begins Modifies a member variable of class MR::RebuildMeshSettings named onSignDetectionModeSelected.
Calls MR_RebuildMeshSettings_Set_onSignDetectionModeSelected(). The reference to the parameter value might be preserved in this object in element onSignDetectionModeSelected.
| void meshlib::RebuildMeshSettings::set_out_sharp_edges | ( | value:Option<&mut meshlib::UndirectedEdgeBitSet > | ) |
if non-null then created sharp edges (only if offsetMode = OffsetMode::Sharpening) will be saved here Modifies a member variable of class MR::RebuildMeshSettings named outSharpEdges.
Calls MR_RebuildMeshSettings_Set_outSharpEdges(). The reference to the parameter value might be preserved in this object in element outSharpEdges.
| void meshlib::RebuildMeshSettings::set_pre_subdivide | ( | value:bool | ) |
whether to make subdivision of initial mesh before conversion to voxels, despite time and memory required for the subdivision, it typically makes the whole rebuilding faster (or even much faster in case of large initial triangles), because AABB tree contains small triangles in leaves, which is good for both 1) search for closest triangle because the closest box more frequently contains the closest triangle, 2) and winding number approximation because of more frequent usage of approximation for distant dipoles Modifies a member variable of class MR::RebuildMeshSettings named preSubdivide.
Calls MR_RebuildMeshSettings_Set_preSubdivide().
| void meshlib::RebuildMeshSettings::set_progress | ( | value:&meshlib::std_function_bool_from_float | ) |
To report algorithm's progress and cancel it on user demand Modifies a member variable of class MR::RebuildMeshSettings named progress.
Calls MR_RebuildMeshSettings_Set_progress(). The reference to the parameter value might be preserved in this object in element progress.
| void meshlib::RebuildMeshSettings::set_reduce_angle_num_iters | ( | value:core::ffi::c_int | ) |
the number of iterations to minimize summed deviation of triangle-triangle angles from plane; this mode highlights sharp edges; if decimation is on, this mode is performed before and after decimation and further reduces the number of triangles Modifies a member variable of class MR::RebuildMeshSettings named reduceAngleNumIters.
Calls MR_RebuildMeshSettings_Set_reduceAngleNumIters().
| void meshlib::RebuildMeshSettings::set_sign_mode | ( | value:meshlib::SignDetectionModeShort | ) |
Modifies a member variable of class MR::RebuildMeshSettings named signMode.
Calls MR_RebuildMeshSettings_Set_signMode(). The reference to the parameter value might be preserved in this object in element signMode.
| void meshlib::RebuildMeshSettings::set_tiny_edge_length | ( | value:f32 | ) |
only if decimate = true: edges not longer than this value will be collapsed even if it results in appearance of a triangle with high aspect ratio Modifies a member variable of class MR::RebuildMeshSettings named tinyEdgeLength.
Calls MR_RebuildMeshSettings_Set_tinyEdgeLength().
| void meshlib::RebuildMeshSettings::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::RebuildMeshSettings named voxelSize.
Calls MR_RebuildMeshSettings_Set_voxelSize().
| void meshlib::RebuildMeshSettings::set_winding_number_beta | ( | value:f32 | ) |
if general winding number is used to differentiate inside from outside: determines the precision of fast approximation: the more the better, minimum value is 1 Modifies a member variable of class MR::RebuildMeshSettings named windingNumberBeta.
Calls MR_RebuildMeshSettings_Set_windingNumberBeta().
| void meshlib::RebuildMeshSettings::set_winding_number_threshold | ( | value:f32 | ) |
if general winding number is used to differentiate inside from outside: 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::RebuildMeshSettings named windingNumberThreshold.
Calls MR_RebuildMeshSettings_Set_windingNumberThreshold().
| auto meshlib::RebuildMeshSettings::sign_mode | ( | ) | const -> &meshlib::SignDetectionModeShort |
Returns a pointer to a member variable of class MR::RebuildMeshSettings named signMode.
Calls MR_RebuildMeshSettings_Get_signMode(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::sign_mode_mut | ( | ) | -> &mut meshlib::SignDetectionModeShort |
Returns a mutable pointer to a member variable of class MR::RebuildMeshSettings named signMode.
Calls MR_RebuildMeshSettings_GetMutable_signMode(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::tiny_edge_length | ( | ) | const -> &f32 |
only if decimate = true: edges not longer than this value will be collapsed even if it results in appearance of a triangle with high aspect ratio Returns a pointer to a member variable of class MR::RebuildMeshSettings named tinyEdgeLength.
Calls MR_RebuildMeshSettings_Get_tinyEdgeLength(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::tiny_edge_length_mut | ( | ) | -> &mut f32 |
only if decimate = true: edges not longer than this value will be collapsed even if it results in appearance of a triangle with high aspect ratio Returns a mutable pointer to a member variable of class MR::RebuildMeshSettings named tinyEdgeLength.
Calls MR_RebuildMeshSettings_GetMutable_tinyEdgeLength(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::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::RebuildMeshSettings named voxelSize.
Calls MR_RebuildMeshSettings_Get_voxelSize(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::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::RebuildMeshSettings named voxelSize.
Calls MR_RebuildMeshSettings_GetMutable_voxelSize(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::winding_number_beta | ( | ) | const -> &f32 |
if general winding number is used to differentiate inside from outside: determines the precision of fast approximation: the more the better, minimum value is 1 Returns a pointer to a member variable of class MR::RebuildMeshSettings named windingNumberBeta.
Calls MR_RebuildMeshSettings_Get_windingNumberBeta(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::winding_number_beta_mut | ( | ) | -> &mut f32 |
if general winding number is used to differentiate inside from outside: 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::RebuildMeshSettings named windingNumberBeta.
Calls MR_RebuildMeshSettings_GetMutable_windingNumberBeta(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::winding_number_threshold | ( | ) | const -> &f32 |
if general winding number is used to differentiate inside from outside: 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::RebuildMeshSettings named windingNumberThreshold.
Calls MR_RebuildMeshSettings_Get_windingNumberThreshold(). The reference to this object might be preserved as the return value.
| auto meshlib::RebuildMeshSettings::winding_number_threshold_mut | ( | ) | -> &mut f32 |
if general winding number is used to differentiate inside from outside: 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::RebuildMeshSettings named windingNumberThreshold.
Calls MR_RebuildMeshSettings_GetMutable_windingNumberThreshold(). The reference to this object might be preserved as the return value.