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

Public Member Functions

auto assign_from_another (_other:&meshlib::TerminalVertex) -> &mut meshlib::TerminalVertex
auto v () const -> &meshlib::VertId
auto v_mut () -> &mut meshlib::VertId
void set_v (value:meshlib::VertId)
auto metric () const -> &f32
auto metric_mut () -> &mut f32
void set_metric (value:f32)

Static Public Member Functions

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

a vertex with associated penalty metric to designate a possible start or end of edge path Generated from class MR::TerminalVertex.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::TerminalVertex::construct_from ( v:meshlib::VertId ,
metric:f32  ) -> meshlib::Owned< meshlib::TerminalVertex >
static

Constructs MR::TerminalVertex elementwise.

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

◆ construct_from_another()

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

Generated from constructor MR::TerminalVertex::TerminalVertex.

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

◆ metric()

auto meshlib::TerminalVertex::metric ( ) const -> &f32

Returns a pointer to a member variable of class MR::TerminalVertex named metric.

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

◆ metric_mut()

auto meshlib::TerminalVertex::metric_mut ( ) -> &mut f32

Returns a mutable pointer to a member variable of class MR::TerminalVertex named metric.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_TerminalVertex_DefaultConstruct().

◆ set_metric()

void meshlib::TerminalVertex::set_metric ( value:f32 )

Modifies a member variable of class MR::TerminalVertex named metric.

Calls MR_TerminalVertex_Set_metric().

◆ set_v()

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

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

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

◆ v()

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

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

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

◆ v_mut()

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

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

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


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