Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::FixMeshDegeneraciesParams) -> &mut meshlib::FixMeshDegeneraciesParams |
| auto | max_deviation () const -> &f32 |
| auto | max_deviation_mut () -> &mut f32 |
| void | set_max_deviation (value:f32) |
| auto | tiny_edge_length () const -> &f32 |
| auto | tiny_edge_length_mut () -> &mut f32 |
| void | set_tiny_edge_length (value:f32) |
| auto | critical_tri_aspect_ratio () const -> &f32 |
| auto | critical_tri_aspect_ratio_mut () -> &mut f32 |
| void | set_critical_tri_aspect_ratio (value:f32) |
| auto | max_angle_change () const -> &f32 |
| auto | max_angle_change_mut () -> &mut f32 |
| void | set_max_angle_change (value:f32) |
| auto | stabilizer () const -> &f32 |
| auto | stabilizer_mut () -> &mut f32 |
| void | set_stabilizer (value:f32) |
| auto | region () const -> *const *mut meshlib::ffi::MR_FaceBitSet |
| auto | region_mut () -> *mut *mut meshlib::ffi::MR_FaceBitSet |
| void | set_region (value:Option<&mut meshlib::FaceBitSet >) |
| auto | mode () const -> &meshlib::FixMeshDegeneraciesParams_Mode |
| auto | mode_mut () -> &mut meshlib::FixMeshDegeneraciesParams_Mode |
| void | set_mode (value:meshlib::FixMeshDegeneraciesParams_Mode) |
| auto | mimic_patch () const -> &bool |
| auto | mimic_patch_mut () -> &mut bool |
| void | set_mimic_patch (value:bool) |
| auto | protect_attribute_borders () const -> &bool |
| auto | protect_attribute_borders_mut () -> &mut bool |
| void | set_protect_attribute_borders (value:bool) |
| auto | cb () const -> &meshlib::std_function_bool_from_float |
| auto | cb_mut () -> &mut meshlib::std_function_bool_from_float |
| void | set_cb (value:&meshlib::std_function_bool_from_float) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::FixMeshDegeneraciesParams > |
| static auto | construct_from (maxDeviation:f32, tinyEdgeLength:f32, criticalTriAspectRatio:f32, maxAngleChange:f32, stabilizer:f32, region:Option<&mut meshlib::FaceBitSet >, mode:meshlib::FixMeshDegeneraciesParams_Mode, mimicPatch:bool, protectAttributeBorders:bool, cb:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::FixMeshDegeneraciesParams > |
| static auto | construct_from_another (_other:&meshlib::FixMeshDegeneraciesParams) -> meshlib::Owned< meshlib::FixMeshDegeneraciesParams > |
| 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::FixMeshDegeneraciesParams.
Generated from class MR::FixMeshDegeneraciesParams. Heap-allocated instances are held in Owned<FixMeshDegeneraciesParams>.
| auto meshlib::FixMeshDegeneraciesParams::assign_from_another | ( | _other:&meshlib::FixMeshDegeneraciesParams | ) | -> &mut meshlib::FixMeshDegeneraciesParams |
Generated from method MR::FixMeshDegeneraciesParams::operator=.
Calls MR_FixMeshDegeneraciesParams_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::FixMeshDegeneraciesParams::cb | ( | ) | const -> &meshlib::std_function_bool_from_float |
Returns a pointer to a member variable of class MR::FixMeshDegeneraciesParams named cb.
Calls MR_FixMeshDegeneraciesParams_Get_cb(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::cb_mut | ( | ) | -> &mut meshlib::std_function_bool_from_float |
Returns a mutable pointer to a member variable of class MR::FixMeshDegeneraciesParams named cb.
Calls MR_FixMeshDegeneraciesParams_GetMutable_cb(). The reference to this object might be preserved as the return value.
|
static |
Constructs MR::FixMeshDegeneraciesParams elementwise.
Calls MR_FixMeshDegeneraciesParams_ConstructFrom(). The reference to the parameter region might be preserved in the constructed object. The reference to the parameter mode might be preserved in the constructed object. The reference to the parameter cb might be preserved in the constructed object.
|
static |
Generated from constructor MR::FixMeshDegeneraciesParams::FixMeshDegeneraciesParams.
Calls MR_FixMeshDegeneraciesParams_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::FixMeshDegeneraciesParams::critical_tri_aspect_ratio | ( | ) | const -> &f32 |
the algorithm will ignore dihedral angle check if one of triangles had aspect ratio equal or more than this value; and the algorithm will permit temporary increase in aspect ratio after collapse, if before collapse one of the triangles had larger aspect ratio Returns a pointer to a member variable of class MR::FixMeshDegeneraciesParams named criticalTriAspectRatio.
Calls MR_FixMeshDegeneraciesParams_Get_criticalTriAspectRatio(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::critical_tri_aspect_ratio_mut | ( | ) | -> &mut f32 |
the algorithm will ignore dihedral angle check if one of triangles had aspect ratio equal or more than this value; and the algorithm will permit temporary increase in aspect ratio after collapse, if before collapse one of the triangles had larger aspect ratio Returns a mutable pointer to a member variable of class MR::FixMeshDegeneraciesParams named criticalTriAspectRatio.
Calls MR_FixMeshDegeneraciesParams_GetMutable_criticalTriAspectRatio(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::max_angle_change | ( | ) | const -> &f32 |
Permit edge flips if it does not change dihedral angle more than on this value Returns a pointer to a member variable of class MR::FixMeshDegeneraciesParams named maxAngleChange.
Calls MR_FixMeshDegeneraciesParams_Get_maxAngleChange(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::max_angle_change_mut | ( | ) | -> &mut f32 |
Permit edge flips if it does not change dihedral angle more than on this value Returns a mutable pointer to a member variable of class MR::FixMeshDegeneraciesParams named maxAngleChange.
Calls MR_FixMeshDegeneraciesParams_GetMutable_maxAngleChange(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::max_deviation | ( | ) | const -> &f32 |
maximum permitted deviation from the original surface Returns a pointer to a member variable of class MR::FixMeshDegeneraciesParams named maxDeviation.
Calls MR_FixMeshDegeneraciesParams_Get_maxDeviation(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::max_deviation_mut | ( | ) | -> &mut f32 |
maximum permitted deviation from the original surface Returns a mutable pointer to a member variable of class MR::FixMeshDegeneraciesParams named maxDeviation.
Calls MR_FixMeshDegeneraciesParams_GetMutable_maxDeviation(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::mimic_patch | ( | ) | const -> &bool |
trying to stay close to initial surface when patching also disables smoothing on patch Returns a pointer to a member variable of class MR::FixMeshDegeneraciesParams named mimicPatch.
Calls MR_FixMeshDegeneraciesParams_Get_mimicPatch(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::mimic_patch_mut | ( | ) | -> &mut bool |
trying to stay close to initial surface when patching also disables smoothing on patch Returns a mutable pointer to a member variable of class MR::FixMeshDegeneraciesParams named mimicPatch.
Calls MR_FixMeshDegeneraciesParams_GetMutable_mimicPatch(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::mode | ( | ) | const -> &meshlib::FixMeshDegeneraciesParams_Mode |
Returns a pointer to a member variable of class MR::FixMeshDegeneraciesParams named mode.
Calls MR_FixMeshDegeneraciesParams_Get_mode(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::mode_mut | ( | ) | -> &mut meshlib::FixMeshDegeneraciesParams_Mode |
Returns a mutable pointer to a member variable of class MR::FixMeshDegeneraciesParams named mode.
Calls MR_FixMeshDegeneraciesParams_GetMutable_mode(). The reference to this object might be preserved as the return value.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_FixMeshDegeneraciesParams_DefaultConstruct().
| auto meshlib::FixMeshDegeneraciesParams::protect_attribute_borders | ( | ) | const -> &bool |
only for fixMeshDataDegeneracies (fixMeshDegeneracies ignores it): never flip the edges between faces with different colors or texture ids, the selected edges and the creases, so that the fixing does not move them, but their vertices can still shift by up to max( maxDeviation, tinyEdgeLength ) in the collapses of nearby edges; a degenerate triangle with the longest edge among them is then fixed only if its opposite vertex is within max( maxDeviation, tinyEdgeLength ) from that edge, or by Mode::RemeshPatch Returns a pointer to a member variable of class MR::FixMeshDegeneraciesParams named protectAttributeBorders.
Calls MR_FixMeshDegeneraciesParams_Get_protectAttributeBorders(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::protect_attribute_borders_mut | ( | ) | -> &mut bool |
only for fixMeshDataDegeneracies (fixMeshDegeneracies ignores it): never flip the edges between faces with different colors or texture ids, the selected edges and the creases, so that the fixing does not move them, but their vertices can still shift by up to max( maxDeviation, tinyEdgeLength ) in the collapses of nearby edges; a degenerate triangle with the longest edge among them is then fixed only if its opposite vertex is within max( maxDeviation, tinyEdgeLength ) from that edge, or by Mode::RemeshPatch Returns a mutable pointer to a member variable of class MR::FixMeshDegeneraciesParams named protectAttributeBorders.
Calls MR_FixMeshDegeneraciesParams_GetMutable_protectAttributeBorders(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::region | ( | ) | const -> *const *mut meshlib::ffi::MR_FaceBitSet |
degenerations will be fixed only in given region, it is updated during the operation Returns a pointer to a member variable of class MR::FixMeshDegeneraciesParams named region.
Calls MR_FixMeshDegeneraciesParams_Get_region(). 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::FixMeshDegeneraciesParams::region_mut | ( | ) | -> *mut *mut meshlib::ffi::MR_FaceBitSet |
degenerations will be fixed only in given region, it is updated during the operation Returns a mutable pointer to a member variable of class MR::FixMeshDegeneraciesParams named region.
Calls MR_FixMeshDegeneraciesParams_GetMutable_region(). 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::FixMeshDegeneraciesParams::set_cb | ( | value:&meshlib::std_function_bool_from_float | ) |
Modifies a member variable of class MR::FixMeshDegeneraciesParams named cb.
Calls MR_FixMeshDegeneraciesParams_Set_cb(). The reference to the parameter value might be preserved in this object in element cb.
| void meshlib::FixMeshDegeneraciesParams::set_critical_tri_aspect_ratio | ( | value:f32 | ) |
the algorithm will ignore dihedral angle check if one of triangles had aspect ratio equal or more than this value; and the algorithm will permit temporary increase in aspect ratio after collapse, if before collapse one of the triangles had larger aspect ratio Modifies a member variable of class MR::FixMeshDegeneraciesParams named criticalTriAspectRatio.
Calls MR_FixMeshDegeneraciesParams_Set_criticalTriAspectRatio().
| void meshlib::FixMeshDegeneraciesParams::set_max_angle_change | ( | value:f32 | ) |
Permit edge flips if it does not change dihedral angle more than on this value Modifies a member variable of class MR::FixMeshDegeneraciesParams named maxAngleChange.
Calls MR_FixMeshDegeneraciesParams_Set_maxAngleChange().
| void meshlib::FixMeshDegeneraciesParams::set_max_deviation | ( | value:f32 | ) |
maximum permitted deviation from the original surface Modifies a member variable of class MR::FixMeshDegeneraciesParams named maxDeviation.
Calls MR_FixMeshDegeneraciesParams_Set_maxDeviation().
| void meshlib::FixMeshDegeneraciesParams::set_mimic_patch | ( | value:bool | ) |
trying to stay close to initial surface when patching also disables smoothing on patch Modifies a member variable of class MR::FixMeshDegeneraciesParams named mimicPatch.
Calls MR_FixMeshDegeneraciesParams_Set_mimicPatch().
| void meshlib::FixMeshDegeneraciesParams::set_mode | ( | value:meshlib::FixMeshDegeneraciesParams_Mode | ) |
Modifies a member variable of class MR::FixMeshDegeneraciesParams named mode.
Calls MR_FixMeshDegeneraciesParams_Set_mode(). The reference to the parameter value might be preserved in this object in element mode.
| void meshlib::FixMeshDegeneraciesParams::set_protect_attribute_borders | ( | value:bool | ) |
only for fixMeshDataDegeneracies (fixMeshDegeneracies ignores it): never flip the edges between faces with different colors or texture ids, the selected edges and the creases, so that the fixing does not move them, but their vertices can still shift by up to max( maxDeviation, tinyEdgeLength ) in the collapses of nearby edges; a degenerate triangle with the longest edge among them is then fixed only if its opposite vertex is within max( maxDeviation, tinyEdgeLength ) from that edge, or by Mode::RemeshPatch Modifies a member variable of class MR::FixMeshDegeneraciesParams named protectAttributeBorders.
Calls MR_FixMeshDegeneraciesParams_Set_protectAttributeBorders().
| void meshlib::FixMeshDegeneraciesParams::set_region | ( | value:Option<&mut meshlib::FaceBitSet > | ) |
degenerations will be fixed only in given region, it is updated during the operation Modifies a member variable of class MR::FixMeshDegeneraciesParams named region.
Calls MR_FixMeshDegeneraciesParams_Set_region(). The reference to the parameter value might be preserved in this object in element region.
| void meshlib::FixMeshDegeneraciesParams::set_stabilizer | ( | value:f32 | ) |
Small stabilizer is important to achieve good results on completely planar mesh parts, if your mesh is not-planer everywhere, then you can set it to zero Modifies a member variable of class MR::FixMeshDegeneraciesParams named stabilizer.
Calls MR_FixMeshDegeneraciesParams_Set_stabilizer().
| void meshlib::FixMeshDegeneraciesParams::set_tiny_edge_length | ( | value:f32 | ) |
edges not longer than this value will be collapsed ignoring normals and aspect ratio checks Modifies a member variable of class MR::FixMeshDegeneraciesParams named tinyEdgeLength.
Calls MR_FixMeshDegeneraciesParams_Set_tinyEdgeLength().
| auto meshlib::FixMeshDegeneraciesParams::stabilizer | ( | ) | const -> &f32 |
Small stabilizer is important to achieve good results on completely planar mesh parts, if your mesh is not-planer everywhere, then you can set it to zero Returns a pointer to a member variable of class MR::FixMeshDegeneraciesParams named stabilizer.
Calls MR_FixMeshDegeneraciesParams_Get_stabilizer(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::stabilizer_mut | ( | ) | -> &mut f32 |
Small stabilizer is important to achieve good results on completely planar mesh parts, if your mesh is not-planer everywhere, then you can set it to zero Returns a mutable pointer to a member variable of class MR::FixMeshDegeneraciesParams named stabilizer.
Calls MR_FixMeshDegeneraciesParams_GetMutable_stabilizer(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::tiny_edge_length | ( | ) | const -> &f32 |
edges not longer than this value will be collapsed ignoring normals and aspect ratio checks Returns a pointer to a member variable of class MR::FixMeshDegeneraciesParams named tinyEdgeLength.
Calls MR_FixMeshDegeneraciesParams_Get_tinyEdgeLength(). The reference to this object might be preserved as the return value.
| auto meshlib::FixMeshDegeneraciesParams::tiny_edge_length_mut | ( | ) | -> &mut f32 |
edges not longer than this value will be collapsed ignoring normals and aspect ratio checks Returns a mutable pointer to a member variable of class MR::FixMeshDegeneraciesParams named tinyEdgeLength.
Calls MR_FixMeshDegeneraciesParams_GetMutable_tinyEdgeLength(). The reference to this object might be preserved as the return value.