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

Public Member Functions

auto assign_from_another (_other:&meshlib::WeightedVertex) -> &mut meshlib::WeightedVertex
auto v () const -> &meshlib::VertId
auto v_mut () -> &mut meshlib::VertId
void set_v (value:meshlib::VertId)
auto weight () const -> &f32
auto weight_mut () -> &mut f32
void set_weight (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::WeightedVertex >
static auto construct_from (v:meshlib::VertId, weight:f32) -> meshlib::Owned< meshlib::WeightedVertex >
static auto construct_from_another (_other:&meshlib::WeightedVertex) -> meshlib::Owned< meshlib::WeightedVertex >
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::WeightedVertex.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::WeightedVertex::construct_from ( v:meshlib::VertId ,
weight:f32  ) -> meshlib::Owned< meshlib::WeightedVertex >
static

Constructs MR::WeightedVertex elementwise.

Calls MR_WeightedVertex_ConstructFrom(). The reference to the parameter v might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::WeightedVertex::WeightedVertex.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_WeightedVertex_DefaultConstruct().

◆ set_v()

void meshlib::WeightedVertex::set_v ( value:meshlib::VertId )

Modifies a member variable of class MR::WeightedVertex named v.

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

◆ set_weight()

void meshlib::WeightedVertex::set_weight ( value:f32 )

Modifies a member variable of class MR::WeightedVertex named weight.

Calls MR_WeightedVertex_Set_weight().

◆ v()

auto meshlib::WeightedVertex::v ( ) const -> &meshlib::VertId

Returns a pointer to a member variable of class MR::WeightedVertex named v.

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

◆ v_mut()

auto meshlib::WeightedVertex::v_mut ( ) -> &mut meshlib::VertId

Returns a mutable pointer to a member variable of class MR::WeightedVertex named v.

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

◆ weight()

auto meshlib::WeightedVertex::weight ( ) const -> &f32

Returns a pointer to a member variable of class MR::WeightedVertex named weight.

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

◆ weight_mut()

auto meshlib::WeightedVertex::weight_mut ( ) -> &mut f32

Returns a mutable pointer to a member variable of class MR::WeightedVertex named weight.

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


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