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

Public Member Functions

auto assign_from_another (_other:&meshlib::self_intersections::Settings) -> &mut meshlib::self_intersections::Settings
auto touch_is_intersection () const -> &bool
auto touch_is_intersection_mut () -> &mut bool
void set_touch_is_intersection (value:bool)
auto method () const -> &meshlib::self_intersections::Settings_Method
auto method_mut () -> &mut meshlib::self_intersections::Settings_Method
void set_method (value:meshlib::self_intersections::Settings_Method)
auto relax_iterations () const -> &core::ffi::c_int
auto relax_iterations_mut () -> &mut core::ffi::c_int
void set_relax_iterations (value:core::ffi::c_int)
auto max_expand () const -> &core::ffi::c_int
auto max_expand_mut () -> &mut core::ffi::c_int
void set_max_expand (value:core::ffi::c_int)
auto subdivide_edge_len () const -> &f32
auto subdivide_edge_len_mut () -> &mut f32
void set_subdivide_edge_len (value:f32)
auto mimic_patch () const -> &bool
auto mimic_patch_mut () -> &mut bool
void set_mimic_patch (value:bool)
auto callback () const -> &meshlib::std_function_bool_from_float
auto callback_mut () -> &mut meshlib::std_function_bool_from_float
void set_callback (value:&meshlib::std_function_bool_from_float)
auto new2_old () const -> *const *mut meshlib::ffi::MR_FaceMap
auto new2_old_mut () -> *mut *mut meshlib::ffi::MR_FaceMap
void set_new2_old (value:Option<&mut meshlib::FaceMap >)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::self_intersections::Settings >
static auto construct_from (touchIsIntersection:bool, method:meshlib::self_intersections::Settings_Method, relaxIterations:core::ffi::c_int, maxExpand:core::ffi::c_int, subdivideEdgeLen:f32, mimicPatch:bool, callback:&meshlib::std_function_bool_from_float, new2Old:Option<&mut meshlib::FaceMap >) -> meshlib::Owned< meshlib::self_intersections::Settings >
static auto construct_from_another (_other:&meshlib::self_intersections::Settings) -> meshlib::Owned< meshlib::self_intersections::Settings >
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

Setting set for mesh self-intersections fix Generated from class MR::SelfIntersections::Settings.

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

Member Function Documentation

◆ assign_from_another()

auto meshlib::self_intersections::Settings::assign_from_another ( _other:&meshlib::self_intersections::Settings ) -> &mut meshlib::self_intersections::Settings

Generated from method MR::SelfIntersections::Settings::operator=.

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

◆ callback()

auto meshlib::self_intersections::Settings::callback ( ) const -> &meshlib::std_function_bool_from_float

Callback function Returns a pointer to a member variable of class MR::SelfIntersections::Settings named callback.

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

◆ callback_mut()

auto meshlib::self_intersections::Settings::callback_mut ( ) -> &mut meshlib::std_function_bool_from_float

Callback function Returns a mutable pointer to a member variable of class MR::SelfIntersections::Settings named callback.

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

◆ construct_from()

auto meshlib::self_intersections::Settings::construct_from ( touchIsIntersection:bool ,
method:meshlib::self_intersections::Settings_Method ,
relaxIterations:core::ffi::c_int ,
maxExpand:core::ffi::c_int ,
subdivideEdgeLen:f32 ,
mimicPatch:bool ,
callback:&meshlib::std_function_bool_from_float ,
new2Old:Option<&mut meshlib::FaceMap >  ) -> meshlib::Owned< meshlib::self_intersections::Settings >
static

Constructs MR::SelfIntersections::Settings elementwise.

Calls MR_SelfIntersections_Settings_ConstructFrom(). The reference to the parameter method might be preserved in the constructed object. The reference to the parameter callback might be preserved in the constructed object. The reference to the parameter new2Old might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::SelfIntersections::Settings::Settings.

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

◆ max_expand()

auto meshlib::self_intersections::Settings::max_expand ( ) const -> &core::ffi::c_int

Maximum expand count (edge steps from self-intersecting faces), should be >= 0 Returns a pointer to a member variable of class MR::SelfIntersections::Settings named maxExpand.

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

◆ max_expand_mut()

auto meshlib::self_intersections::Settings::max_expand_mut ( ) -> &mut core::ffi::c_int

Maximum expand count (edge steps from self-intersecting faces), should be >= 0 Returns a mutable pointer to a member variable of class MR::SelfIntersections::Settings named maxExpand.

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

◆ method()

auto meshlib::self_intersections::Settings::method ( ) const -> &meshlib::self_intersections::Settings_Method

Returns a pointer to a member variable of class MR::SelfIntersections::Settings named method.

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

◆ method_mut()

auto meshlib::self_intersections::Settings::method_mut ( ) -> &mut meshlib::self_intersections::Settings_Method

Returns a mutable pointer to a member variable of class MR::SelfIntersections::Settings named method.

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

◆ mimic_patch()

auto meshlib::self_intersections::Settings::mimic_patch ( ) const -> &bool

trying to stay close to initial surface when patching Returns a pointer to a member variable of class MR::SelfIntersections::Settings named mimicPatch.

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

◆ mimic_patch_mut()

auto meshlib::self_intersections::Settings::mimic_patch_mut ( ) -> &mut bool

trying to stay close to initial surface when patching Returns a mutable pointer to a member variable of class MR::SelfIntersections::Settings named mimicPatch.

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

◆ new()

auto meshlib::self_intersections::Settings::new ( ) -> meshlib::Owned< meshlib::self_intersections::Settings >
static

Constructs an empty (default-constructed) instance.

Calls MR_SelfIntersections_Settings_DefaultConstruct().

◆ new2_old()

auto meshlib::self_intersections::Settings::new2_old ( ) const -> *const *mut meshlib::ffi::MR_FaceMap

optional output of Method::SelfBoolean: for every face of the fixed mesh, the face of the original mesh that it is (a part of); not set by the other methods Returns a pointer to a member variable of class MR::SelfIntersections::Settings named new2Old.

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

◆ new2_old_mut()

auto meshlib::self_intersections::Settings::new2_old_mut ( ) -> *mut *mut meshlib::ffi::MR_FaceMap

optional output of Method::SelfBoolean: for every face of the fixed mesh, the face of the original mesh that it is (a part of); not set by the other methods Returns a mutable pointer to a member variable of class MR::SelfIntersections::Settings named new2Old.

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

◆ relax_iterations()

auto meshlib::self_intersections::Settings::relax_iterations ( ) const -> &core::ffi::c_int

Maximum relax iterations Returns a pointer to a member variable of class MR::SelfIntersections::Settings named relaxIterations.

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

◆ relax_iterations_mut()

auto meshlib::self_intersections::Settings::relax_iterations_mut ( ) -> &mut core::ffi::c_int

Maximum relax iterations Returns a mutable pointer to a member variable of class MR::SelfIntersections::Settings named relaxIterations.

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

◆ set_callback()

void meshlib::self_intersections::Settings::set_callback ( value:&meshlib::std_function_bool_from_float )

Callback function Modifies a member variable of class MR::SelfIntersections::Settings named callback.

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

◆ set_max_expand()

void meshlib::self_intersections::Settings::set_max_expand ( value:core::ffi::c_int )

Maximum expand count (edge steps from self-intersecting faces), should be >= 0 Modifies a member variable of class MR::SelfIntersections::Settings named maxExpand.

Calls MR_SelfIntersections_Settings_Set_maxExpand().

◆ set_method()

void meshlib::self_intersections::Settings::set_method ( value:meshlib::self_intersections::Settings_Method )

Modifies a member variable of class MR::SelfIntersections::Settings named method.

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

◆ set_mimic_patch()

void meshlib::self_intersections::Settings::set_mimic_patch ( value:bool )

trying to stay close to initial surface when patching Modifies a member variable of class MR::SelfIntersections::Settings named mimicPatch.

Calls MR_SelfIntersections_Settings_Set_mimicPatch().

◆ set_new2_old()

void meshlib::self_intersections::Settings::set_new2_old ( value:Option<&mut meshlib::FaceMap > )

optional output of Method::SelfBoolean: for every face of the fixed mesh, the face of the original mesh that it is (a part of); not set by the other methods Modifies a member variable of class MR::SelfIntersections::Settings named new2Old.

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

◆ set_relax_iterations()

void meshlib::self_intersections::Settings::set_relax_iterations ( value:core::ffi::c_int )

Maximum relax iterations Modifies a member variable of class MR::SelfIntersections::Settings named relaxIterations.

Calls MR_SelfIntersections_Settings_Set_relaxIterations().

◆ set_subdivide_edge_len()

void meshlib::self_intersections::Settings::set_subdivide_edge_len ( value:f32 )

Edge length for subdivision of holes covers (0.0f means auto) FLT_MAX to disable subdivision Modifies a member variable of class MR::SelfIntersections::Settings named subdivideEdgeLen.

Calls MR_SelfIntersections_Settings_Set_subdivideEdgeLen().

◆ set_touch_is_intersection()

void meshlib::self_intersections::Settings::set_touch_is_intersection ( value:bool )

If true then count touching faces as self-intersections Modifies a member variable of class MR::SelfIntersections::Settings named touchIsIntersection.

Calls MR_SelfIntersections_Settings_Set_touchIsIntersection().

◆ subdivide_edge_len()

auto meshlib::self_intersections::Settings::subdivide_edge_len ( ) const -> &f32

Edge length for subdivision of holes covers (0.0f means auto) FLT_MAX to disable subdivision Returns a pointer to a member variable of class MR::SelfIntersections::Settings named subdivideEdgeLen.

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

◆ subdivide_edge_len_mut()

auto meshlib::self_intersections::Settings::subdivide_edge_len_mut ( ) -> &mut f32

Edge length for subdivision of holes covers (0.0f means auto) FLT_MAX to disable subdivision Returns a mutable pointer to a member variable of class MR::SelfIntersections::Settings named subdivideEdgeLen.

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

◆ touch_is_intersection()

auto meshlib::self_intersections::Settings::touch_is_intersection ( ) const -> &bool

If true then count touching faces as self-intersections Returns a pointer to a member variable of class MR::SelfIntersections::Settings named touchIsIntersection.

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

◆ touch_is_intersection_mut()

auto meshlib::self_intersections::Settings::touch_is_intersection_mut ( ) -> &mut bool

If true then count touching faces as self-intersections Returns a mutable pointer to a member variable of class MR::SelfIntersections::Settings named touchIsIntersection.

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


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