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

Public Member Functions

auto assign_from_another (_other:&meshlib::InflateSettings) -> &mut meshlib::InflateSettings
auto pressure () const -> &f32
auto pressure_mut () -> &mut f32
void set_pressure (value:f32)
auto iterations () const -> &core::ffi::c_int
auto iterations_mut () -> &mut core::ffi::c_int
void set_iterations (value:core::ffi::c_int)
auto pre_smooth () const -> &bool
auto pre_smooth_mut () -> &mut bool
void set_pre_smooth (value:bool)
auto gradual_pressure_growth () const -> &bool
auto gradual_pressure_growth_mut () -> &mut bool
void set_gradual_pressure_growth (value:bool)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::InflateSettings >
static auto construct_from (pressure:f32, iterations:core::ffi::c_int, preSmooth:bool, gradualPressureGrowth:bool) -> meshlib::Owned< meshlib::InflateSettings >
static auto construct_from_another (_other:&meshlib::InflateSettings) -> meshlib::Owned< meshlib::InflateSettings >
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

Generated from class MR::InflateSettings.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::InflateSettings::construct_from ( pressure:f32 ,
iterations:core::ffi::c_int ,
preSmooth:bool ,
gradualPressureGrowth:bool  ) -> meshlib::Owned< meshlib::InflateSettings >
static

Constructs MR::InflateSettings elementwise.

Calls MR_InflateSettings_ConstructFrom().

◆ construct_from_another()

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

Generated from constructor MR::InflateSettings::InflateSettings.

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

◆ gradual_pressure_growth()

auto meshlib::InflateSettings::gradual_pressure_growth ( ) const -> &bool

whether to increase the pressure gradually during the iterations (recommended for best quality) Returns a pointer to a member variable of class MR::InflateSettings named gradualPressureGrowth.

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

◆ gradual_pressure_growth_mut()

auto meshlib::InflateSettings::gradual_pressure_growth_mut ( ) -> &mut bool

whether to increase the pressure gradually during the iterations (recommended for best quality) Returns a mutable pointer to a member variable of class MR::InflateSettings named gradualPressureGrowth.

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

◆ iterations()

auto meshlib::InflateSettings::iterations ( ) const -> &core::ffi::c_int

the number of internal iterations (>=1); larger number of iterations makes the performance slower, but the quality better Returns a pointer to a member variable of class MR::InflateSettings named iterations.

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

◆ iterations_mut()

auto meshlib::InflateSettings::iterations_mut ( ) -> &mut core::ffi::c_int

the number of internal iterations (>=1); larger number of iterations makes the performance slower, but the quality better Returns a mutable pointer to a member variable of class MR::InflateSettings named iterations.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_InflateSettings_DefaultConstruct().

◆ pre_smooth()

auto meshlib::InflateSettings::pre_smooth ( ) const -> &bool

smooths the area before starting inflation; please set to false only if the region is known to be already smooth Returns a pointer to a member variable of class MR::InflateSettings named preSmooth.

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

◆ pre_smooth_mut()

auto meshlib::InflateSettings::pre_smooth_mut ( ) -> &mut bool

smooths the area before starting inflation; please set to false only if the region is known to be already smooth Returns a mutable pointer to a member variable of class MR::InflateSettings named preSmooth.

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

◆ pressure()

auto meshlib::InflateSettings::pressure ( ) const -> &f32

the amount of pressure applied to mesh region: positive pressure moves the vertices outside, negative - inside; please specify a value by magnitude about the region diagonal Returns a pointer to a member variable of class MR::InflateSettings named pressure.

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

◆ pressure_mut()

auto meshlib::InflateSettings::pressure_mut ( ) -> &mut f32

the amount of pressure applied to mesh region: positive pressure moves the vertices outside, negative - inside; please specify a value by magnitude about the region diagonal Returns a mutable pointer to a member variable of class MR::InflateSettings named pressure.

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

◆ set_gradual_pressure_growth()

void meshlib::InflateSettings::set_gradual_pressure_growth ( value:bool )

whether to increase the pressure gradually during the iterations (recommended for best quality) Modifies a member variable of class MR::InflateSettings named gradualPressureGrowth.

Calls MR_InflateSettings_Set_gradualPressureGrowth().

◆ set_iterations()

void meshlib::InflateSettings::set_iterations ( value:core::ffi::c_int )

the number of internal iterations (>=1); larger number of iterations makes the performance slower, but the quality better Modifies a member variable of class MR::InflateSettings named iterations.

Calls MR_InflateSettings_Set_iterations().

◆ set_pre_smooth()

void meshlib::InflateSettings::set_pre_smooth ( value:bool )

smooths the area before starting inflation; please set to false only if the region is known to be already smooth Modifies a member variable of class MR::InflateSettings named preSmooth.

Calls MR_InflateSettings_Set_preSmooth().

◆ set_pressure()

void meshlib::InflateSettings::set_pressure ( value:f32 )

the amount of pressure applied to mesh region: positive pressure moves the vertices outside, negative - inside; please specify a value by magnitude about the region diagonal Modifies a member variable of class MR::InflateSettings named pressure.

Calls MR_InflateSettings_Set_pressure().


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