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

Public Member Functions

auto assign_from_another (_other:&meshlib::InSphereSearchSettings) -> &mut meshlib::InSphereSearchSettings
auto inside_and_outside () const -> &bool
auto inside_and_outside_mut () -> &mut bool
void set_inside_and_outside (value:bool)
auto max_radius () const -> &f32
auto max_radius_mut () -> &mut f32
void set_max_radius (value:f32)
auto max_iters () const -> &core::ffi::c_int
auto max_iters_mut () -> &mut core::ffi::c_int
void set_max_iters (value:core::ffi::c_int)
auto min_shrinkage () const -> &f32
auto min_shrinkage_mut () -> &mut f32
void set_min_shrinkage (value:f32)
auto min_angle_cos () const -> &f32
auto min_angle_cos_mut () -> &mut f32
void set_min_angle_cos (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::InSphereSearchSettings >
static auto construct_from (insideAndOutside:bool, maxRadius:f32, maxIters:core::ffi::c_int, minShrinkage:f32, minAngleCos:f32) -> meshlib::Owned< meshlib::InSphereSearchSettings >
static auto construct_from_another (_other:&meshlib::InSphereSearchSettings) -> meshlib::Owned< meshlib::InSphereSearchSettings >
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

controls the finding of maximal inscribed sphere in mesh Generated from class MR::InSphereSearchSettings.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::InSphereSearchSettings::construct_from ( insideAndOutside:bool ,
maxRadius:f32 ,
maxIters:core::ffi::c_int ,
minShrinkage:f32 ,
minAngleCos:f32  ) -> meshlib::Owned< meshlib::InSphereSearchSettings >
static

Constructs MR::InSphereSearchSettings elementwise.

Calls MR_InSphereSearchSettings_ConstructFrom().

◆ construct_from_another()

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

Generated from constructor MR::InSphereSearchSettings::InSphereSearchSettings.

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

◆ inside_and_outside()

auto meshlib::InSphereSearchSettings::inside_and_outside ( ) const -> &bool

if false then searches for the maximal inscribed sphere in mesh; if true then searches for both a) maximal inscribed sphere, and b) maximal sphere outside the mesh touching it at two points; and returns the smaller of two, and if it is b) then with minus sign Returns a pointer to a member variable of class MR::InSphereSearchSettings named insideAndOutside.

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

◆ inside_and_outside_mut()

auto meshlib::InSphereSearchSettings::inside_and_outside_mut ( ) -> &mut bool

if false then searches for the maximal inscribed sphere in mesh; if true then searches for both a) maximal inscribed sphere, and b) maximal sphere outside the mesh touching it at two points; and returns the smaller of two, and if it is b) then with minus sign Returns a mutable pointer to a member variable of class MR::InSphereSearchSettings named insideAndOutside.

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

◆ max_iters()

auto meshlib::InSphereSearchSettings::max_iters ( ) const -> &core::ffi::c_int

maximum number of shrinking iterations for one triangle Returns a pointer to a member variable of class MR::InSphereSearchSettings named maxIters.

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

◆ max_iters_mut()

auto meshlib::InSphereSearchSettings::max_iters_mut ( ) -> &mut core::ffi::c_int

maximum number of shrinking iterations for one triangle Returns a mutable pointer to a member variable of class MR::InSphereSearchSettings named maxIters.

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

◆ max_radius()

auto meshlib::InSphereSearchSettings::max_radius ( ) const -> &f32

maximum allowed radius of the sphere; for almost closed meshes the article recommends maxRadius = 0.5f * std::min( { boxSize.x, boxSize.y, boxSize.z } ) Returns a pointer to a member variable of class MR::InSphereSearchSettings named maxRadius.

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

◆ max_radius_mut()

auto meshlib::InSphereSearchSettings::max_radius_mut ( ) -> &mut f32

maximum allowed radius of the sphere; for almost closed meshes the article recommends maxRadius = 0.5f * std::min( { boxSize.x, boxSize.y, boxSize.z } ) Returns a mutable pointer to a member variable of class MR::InSphereSearchSettings named maxRadius.

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

◆ min_angle_cos()

auto meshlib::InSphereSearchSettings::min_angle_cos ( ) const -> &f32

minimum cosine of the angle between two unit directions: 1) search unit direction (m.inDir), 2) unit direction from sphere's center to the other found touch point; -1 value means no filtering by this angle; the increase of this value helps avoiding too small spheres on noisy surfaces Returns a pointer to a member variable of class MR::InSphereSearchSettings named minAngleCos.

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

◆ min_angle_cos_mut()

auto meshlib::InSphereSearchSettings::min_angle_cos_mut ( ) -> &mut f32

minimum cosine of the angle between two unit directions: 1) search unit direction (m.inDir), 2) unit direction from sphere's center to the other found touch point; -1 value means no filtering by this angle; the increase of this value helps avoiding too small spheres on noisy surfaces Returns a mutable pointer to a member variable of class MR::InSphereSearchSettings named minAngleCos.

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

◆ min_shrinkage()

auto meshlib::InSphereSearchSettings::min_shrinkage ( ) const -> &f32

iterations stop if next radius is larger than minShrinkage times previous radius Returns a pointer to a member variable of class MR::InSphereSearchSettings named minShrinkage.

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

◆ min_shrinkage_mut()

auto meshlib::InSphereSearchSettings::min_shrinkage_mut ( ) -> &mut f32

iterations stop if next radius is larger than minShrinkage times previous radius Returns a mutable pointer to a member variable of class MR::InSphereSearchSettings named minShrinkage.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_InSphereSearchSettings_DefaultConstruct().

◆ set_inside_and_outside()

void meshlib::InSphereSearchSettings::set_inside_and_outside ( value:bool )

if false then searches for the maximal inscribed sphere in mesh; if true then searches for both a) maximal inscribed sphere, and b) maximal sphere outside the mesh touching it at two points; and returns the smaller of two, and if it is b) then with minus sign Modifies a member variable of class MR::InSphereSearchSettings named insideAndOutside.

Calls MR_InSphereSearchSettings_Set_insideAndOutside().

◆ set_max_iters()

void meshlib::InSphereSearchSettings::set_max_iters ( value:core::ffi::c_int )

maximum number of shrinking iterations for one triangle Modifies a member variable of class MR::InSphereSearchSettings named maxIters.

Calls MR_InSphereSearchSettings_Set_maxIters().

◆ set_max_radius()

void meshlib::InSphereSearchSettings::set_max_radius ( value:f32 )

maximum allowed radius of the sphere; for almost closed meshes the article recommends maxRadius = 0.5f * std::min( { boxSize.x, boxSize.y, boxSize.z } ) Modifies a member variable of class MR::InSphereSearchSettings named maxRadius.

Calls MR_InSphereSearchSettings_Set_maxRadius().

◆ set_min_angle_cos()

void meshlib::InSphereSearchSettings::set_min_angle_cos ( value:f32 )

minimum cosine of the angle between two unit directions: 1) search unit direction (m.inDir), 2) unit direction from sphere's center to the other found touch point; -1 value means no filtering by this angle; the increase of this value helps avoiding too small spheres on noisy surfaces Modifies a member variable of class MR::InSphereSearchSettings named minAngleCos.

Calls MR_InSphereSearchSettings_Set_minAngleCos().

◆ set_min_shrinkage()

void meshlib::InSphereSearchSettings::set_min_shrinkage ( value:f32 )

iterations stop if next radius is larger than minShrinkage times previous radius Modifies a member variable of class MR::InSphereSearchSettings named minShrinkage.

Calls MR_InSphereSearchSettings_Set_minShrinkage().


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