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

Public Member Functions

auto assign_from_another (_other:&meshlib::ZCompensateParams) -> &mut meshlib::ZCompensateParams
auto max_shift () const -> &f32
auto max_shift_mut () -> &mut f32
void set_max_shift (value:f32)
auto reduce_self_intersections () const -> &bool
auto reduce_self_intersections_mut () -> &mut bool
void set_reduce_self_intersections (value:bool)
auto min_thickness () const -> &f32
auto min_thickness_mut () -> &mut f32
void set_min_thickness (value:f32)
auto progress () const -> &meshlib::std_function_bool_from_float
auto progress_mut () -> &mut meshlib::std_function_bool_from_float
void set_progress (value:&meshlib::std_function_bool_from_float)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::ZCompensateParams >
static auto construct_from (maxShift:f32, reduceSelfIntersections:bool, minThickness:f32, progress:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::ZCompensateParams >
static auto construct_from_another (_other:&meshlib::ZCompensateParams) -> meshlib::Owned< meshlib::ZCompensateParams >
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::ZCompensateParams.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::ZCompensateParams::construct_from ( maxShift:f32 ,
reduceSelfIntersections:bool ,
minThickness:f32 ,
progress:&meshlib::std_function_bool_from_float  ) -> meshlib::Owned< meshlib::ZCompensateParams >
static

Constructs MR::ZCompensateParams elementwise.

Calls MR_ZCompensateParams_ConstructFrom(). The reference to the parameter progress might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::ZCompensateParams::ZCompensateParams.

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

◆ max_shift()

auto meshlib::ZCompensateParams::max_shift ( ) const -> &f32

shift of mesh parts orthogonal to Z-axis with normal against Z-axis; for other mesh parts the shift will be less and will depend on the angle between point pseudo-normal and Z-axis Returns a pointer to a member variable of class MR::ZCompensateParams named maxShift.

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

◆ max_shift_mut()

auto meshlib::ZCompensateParams::max_shift_mut ( ) -> &mut f32

shift of mesh parts orthogonal to Z-axis with normal against Z-axis; for other mesh parts the shift will be less and will depend on the angle between point pseudo-normal and Z-axis Returns a mutable pointer to a member variable of class MR::ZCompensateParams named maxShift.

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

◆ min_thickness()

auto meshlib::ZCompensateParams::min_thickness ( ) const -> &f32

only if (reduceSelfIntersections = true), avoids moving a vertex closer than this distance to another triangle Returns a pointer to a member variable of class MR::ZCompensateParams named minThickness.

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

◆ min_thickness_mut()

auto meshlib::ZCompensateParams::min_thickness_mut ( ) -> &mut f32

only if (reduceSelfIntersections = true), avoids moving a vertex closer than this distance to another triangle Returns a mutable pointer to a member variable of class MR::ZCompensateParams named minThickness.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_ZCompensateParams_DefaultConstruct().

◆ progress()

auto meshlib::ZCompensateParams::progress ( ) const -> &meshlib::std_function_bool_from_float

to report progress and cancel processing Returns a pointer to a member variable of class MR::ZCompensateParams named progress.

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

◆ progress_mut()

auto meshlib::ZCompensateParams::progress_mut ( ) -> &mut meshlib::std_function_bool_from_float

to report progress and cancel processing Returns a mutable pointer to a member variable of class MR::ZCompensateParams named progress.

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

◆ reduce_self_intersections()

auto meshlib::ZCompensateParams::reduce_self_intersections ( ) const -> &bool

if true, limits the movement of each vertex to reduce self-intersections in the mesh Returns a pointer to a member variable of class MR::ZCompensateParams named reduceSelfIntersections.

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

◆ reduce_self_intersections_mut()

auto meshlib::ZCompensateParams::reduce_self_intersections_mut ( ) -> &mut bool

if true, limits the movement of each vertex to reduce self-intersections in the mesh Returns a mutable pointer to a member variable of class MR::ZCompensateParams named reduceSelfIntersections.

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

◆ set_max_shift()

void meshlib::ZCompensateParams::set_max_shift ( value:f32 )

shift of mesh parts orthogonal to Z-axis with normal against Z-axis; for other mesh parts the shift will be less and will depend on the angle between point pseudo-normal and Z-axis Modifies a member variable of class MR::ZCompensateParams named maxShift.

Calls MR_ZCompensateParams_Set_maxShift().

◆ set_min_thickness()

void meshlib::ZCompensateParams::set_min_thickness ( value:f32 )

only if (reduceSelfIntersections = true), avoids moving a vertex closer than this distance to another triangle Modifies a member variable of class MR::ZCompensateParams named minThickness.

Calls MR_ZCompensateParams_Set_minThickness().

◆ set_progress()

void meshlib::ZCompensateParams::set_progress ( value:&meshlib::std_function_bool_from_float )

to report progress and cancel processing Modifies a member variable of class MR::ZCompensateParams named progress.

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

◆ set_reduce_self_intersections()

void meshlib::ZCompensateParams::set_reduce_self_intersections ( value:bool )

if true, limits the movement of each vertex to reduce self-intersections in the mesh Modifies a member variable of class MR::ZCompensateParams named reduceSelfIntersections.

Calls MR_ZCompensateParams_Set_reduceSelfIntersections().


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