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

Public Member Functions

auto assign_from_another (_other:&meshlib::ThickenParams) -> &mut meshlib::ThickenParams
auto outside_offset () const -> &f32
auto outside_offset_mut () -> &mut f32
void set_outside_offset (value:f32)
auto inside_offset () const -> &f32
auto inside_offset_mut () -> &mut f32
void set_inside_offset (value:f32)
auto normals_trust_factor () const -> &f32
auto normals_trust_factor_mut () -> &mut f32
void set_normals_trust_factor (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::ThickenParams >
static auto construct_from (outsideOffset:f32, insideOffset:f32, normalsTrustFactor:f32) -> meshlib::Owned< meshlib::ThickenParams >
static auto construct_from_another (_other:&meshlib::ThickenParams) -> meshlib::Owned< meshlib::ThickenParams >
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::ThickenParams.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::ThickenParams::construct_from ( outsideOffset:f32 ,
insideOffset:f32 ,
normalsTrustFactor:f32  ) -> meshlib::Owned< meshlib::ThickenParams >
static

Constructs MR::ThickenParams elementwise.

Calls MR_ThickenParams_ConstructFrom().

◆ construct_from_another()

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

Generated from constructor MR::ThickenParams::ThickenParams.

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

◆ inside_offset()

auto meshlib::ThickenParams::inside_offset ( ) const -> &f32

the amount of offset for cloned mirrored mesh vertices in the opposite direction Returns a pointer to a member variable of class MR::ThickenParams named insideOffset.

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

◆ inside_offset_mut()

auto meshlib::ThickenParams::inside_offset_mut ( ) -> &mut f32

the amount of offset for cloned mirrored mesh vertices in the opposite direction Returns a mutable pointer to a member variable of class MR::ThickenParams named insideOffset.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_ThickenParams_DefaultConstruct().

◆ normals_trust_factor()

auto meshlib::ThickenParams::normals_trust_factor ( ) const -> &f32

increasing this value will lead mesh vertices to shift in the directions closer to their raw pseudo-normals, but it will increase the probability of self-intersections as well; decreasing (to a positive value) will on the contrary make the field of shift directions smoother Returns a pointer to a member variable of class MR::ThickenParams named normalsTrustFactor.

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

◆ normals_trust_factor_mut()

auto meshlib::ThickenParams::normals_trust_factor_mut ( ) -> &mut f32

increasing this value will lead mesh vertices to shift in the directions closer to their raw pseudo-normals, but it will increase the probability of self-intersections as well; decreasing (to a positive value) will on the contrary make the field of shift directions smoother Returns a mutable pointer to a member variable of class MR::ThickenParams named normalsTrustFactor.

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

◆ outside_offset()

auto meshlib::ThickenParams::outside_offset ( ) const -> &f32

the amount of offset for original mesh vertices Returns a pointer to a member variable of class MR::ThickenParams named outsideOffset.

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

◆ outside_offset_mut()

auto meshlib::ThickenParams::outside_offset_mut ( ) -> &mut f32

the amount of offset for original mesh vertices Returns a mutable pointer to a member variable of class MR::ThickenParams named outsideOffset.

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

◆ set_inside_offset()

void meshlib::ThickenParams::set_inside_offset ( value:f32 )

the amount of offset for cloned mirrored mesh vertices in the opposite direction Modifies a member variable of class MR::ThickenParams named insideOffset.

Calls MR_ThickenParams_Set_insideOffset().

◆ set_normals_trust_factor()

void meshlib::ThickenParams::set_normals_trust_factor ( value:f32 )

increasing this value will lead mesh vertices to shift in the directions closer to their raw pseudo-normals, but it will increase the probability of self-intersections as well; decreasing (to a positive value) will on the contrary make the field of shift directions smoother Modifies a member variable of class MR::ThickenParams named normalsTrustFactor.

Calls MR_ThickenParams_Set_normalsTrustFactor().

◆ set_outside_offset()

void meshlib::ThickenParams::set_outside_offset ( value:f32 )

the amount of offset for original mesh vertices Modifies a member variable of class MR::ThickenParams named outsideOffset.

Calls MR_ThickenParams_Set_outsideOffset().


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