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

Public Member Functions

auto assign_from_another (_other:&meshlib::CutAroundVertSetsParams) -> &mut meshlib::CutAroundVertSetsParams
auto distance () const -> &f32
auto distance_mut () -> &mut f32
void set_distance (value:f32)
auto gap () const -> &f32
auto gap_mut () -> &mut f32
void set_gap (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::CutAroundVertSetsParams >
static auto construct_from (distance:f32, gap:f32) -> meshlib::Owned< meshlib::CutAroundVertSetsParams >
static auto construct_from_another (_other:&meshlib::CutAroundVertSetsParams) -> meshlib::Owned< meshlib::CutAroundVertSetsParams >
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::CutAroundVertSetsParams.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::CutAroundVertSetsParams::construct_from ( distance:f32 ,
gap:f32  ) -> meshlib::Owned< meshlib::CutAroundVertSetsParams >
static

Constructs MR::CutAroundVertSetsParams elementwise.

Calls MR_CutAroundVertSetsParams_ConstructFrom().

◆ construct_from_another()

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

Generated from constructor MR::CutAroundVertSetsParams::CutAroundVertSetsParams.

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

◆ distance()

auto meshlib::CutAroundVertSetsParams::distance ( ) const -> &f32

the mesh is cut along the isolines of surface distance equal to this value around each vertex set Returns a pointer to a member variable of class MR::CutAroundVertSetsParams named distance.

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

◆ distance_mut()

auto meshlib::CutAroundVertSetsParams::distance_mut ( ) -> &mut f32

the mesh is cut along the isolines of surface distance equal to this value around each vertex set Returns a mutable pointer to a member variable of class MR::CutAroundVertSetsParams named distance.

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

◆ gap()

auto meshlib::CutAroundVertSetsParams::gap ( ) const -> &f32

keeps the regions of any two vertex sets from overlapping, even if the sets are closer than (2*distance + gap): in the vertices where the sum of two distance fields is less than (2*distance + gap), both values are scaled proportionally to make the sum exactly (2*distance + gap); so the gap is exact in the scaled fields, and the surface gap between two regions is about gap * setsDistance / (2*distance + gap); must be positive, otherwise the isolines of two close sets coincide Returns a pointer to a member variable of class MR::CutAroundVertSetsParams named gap.

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

◆ gap_mut()

auto meshlib::CutAroundVertSetsParams::gap_mut ( ) -> &mut f32

keeps the regions of any two vertex sets from overlapping, even if the sets are closer than (2*distance + gap): in the vertices where the sum of two distance fields is less than (2*distance + gap), both values are scaled proportionally to make the sum exactly (2*distance + gap); so the gap is exact in the scaled fields, and the surface gap between two regions is about gap * setsDistance / (2*distance + gap); must be positive, otherwise the isolines of two close sets coincide Returns a mutable pointer to a member variable of class MR::CutAroundVertSetsParams named gap.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_CutAroundVertSetsParams_DefaultConstruct().

◆ set_distance()

void meshlib::CutAroundVertSetsParams::set_distance ( value:f32 )

the mesh is cut along the isolines of surface distance equal to this value around each vertex set Modifies a member variable of class MR::CutAroundVertSetsParams named distance.

Calls MR_CutAroundVertSetsParams_Set_distance().

◆ set_gap()

void meshlib::CutAroundVertSetsParams::set_gap ( value:f32 )

keeps the regions of any two vertex sets from overlapping, even if the sets are closer than (2*distance + gap): in the vertices where the sum of two distance fields is less than (2*distance + gap), both values are scaled proportionally to make the sum exactly (2*distance + gap); so the gap is exact in the scaled fields, and the surface gap between two regions is about gap * setsDistance / (2*distance + gap); must be positive, otherwise the isolines of two close sets coincide Modifies a member variable of class MR::CutAroundVertSetsParams named gap.

Calls MR_CutAroundVertSetsParams_Set_gap().


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