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

Public Member Functions

auto convert_to_std_array_mr_vert_id_3_ref () -> &mut meshlib::std_array_MR_VertId_3
auto convert_to_const_std_array_mr_vert_id_3_ref () const -> &meshlib::std_array_MR_VertId_3
auto assign_from_another (_other:&meshlib::UnorientedTriangle) -> &mut meshlib::UnorientedTriangle
auto get_flipped () const -> meshlib::std_array_MR_VertId_3
auto index_mut (i:usize) -> &mut meshlib::VertId
auto index (i:usize) const -> &meshlib::VertId
auto verts () const -> &meshlib::std_array_MR_VertId_3
auto verts_mut () -> &mut meshlib::std_array_MR_VertId_3
void set_verts (value:meshlib::std_array_MR_VertId_3)

Static Public Member Functions

static auto construct_from_another (_other:&meshlib::UnorientedTriangle) -> meshlib::Owned< meshlib::UnorientedTriangle >
static auto construct (inVs:&meshlib::std_array_MR_VertId_3, outFlipped:Option<&mut bool >) -> meshlib::Owned< meshlib::UnorientedTriangle >
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

describes a triangle as three vertex IDs sorted in a way to quickly find same triangles irrespective of vertex order (clockwise or counterclockwise) Generated from class MR::UnorientedTriangle.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct()

auto meshlib::UnorientedTriangle::construct ( inVs:&meshlib::std_array_MR_VertId_3 ,
outFlipped:Option<&mut bool >  ) -> meshlib::Owned< meshlib::UnorientedTriangle >
static

Generated from constructor MR::UnorientedTriangle::UnorientedTriangle.

Calls MR_UnorientedTriangle_Construct(). The reference to the parameter inVs might be preserved in the constructed object. The reference to the parameter outFlipped might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::UnorientedTriangle::UnorientedTriangle.

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

◆ convert_to_const_std_array_mr_vert_id_3_ref()

auto meshlib::UnorientedTriangle::convert_to_const_std_array_mr_vert_id_3_ref ( ) const -> &meshlib::std_array_MR_VertId_3

Generated from conversion operator MR::UnorientedTriangle::operator const std::array<MR::VertId, 3> &.

Calls MR_UnorientedTriangle_ConvertTo_const_std_array_MR_VertId_3_ref().

◆ convert_to_std_array_mr_vert_id_3_ref()

auto meshlib::UnorientedTriangle::convert_to_std_array_mr_vert_id_3_ref ( ) -> &mut meshlib::std_array_MR_VertId_3

Generated from conversion operator MR::UnorientedTriangle::operator std::array<MR::VertId, 3> &.

Calls MR_UnorientedTriangle_ConvertTo_std_array_MR_VertId_3_ref().

◆ get_flipped()

auto meshlib::UnorientedTriangle::get_flipped ( ) const -> meshlib::std_array_MR_VertId_3

returns this triangle with the opposite orientation Generated from method MR::UnorientedTriangle::getFlipped.

Calls MR_UnorientedTriangle_getFlipped().

◆ index()

auto meshlib::UnorientedTriangle::index ( i:usize ) const -> &meshlib::VertId

Generated from method MR::UnorientedTriangle::operator[].

Calls MR_UnorientedTriangle_index().

◆ index_mut()

auto meshlib::UnorientedTriangle::index_mut ( i:usize ) -> &mut meshlib::VertId

Generated from method MR::UnorientedTriangle::operator[].

Calls MR_UnorientedTriangle_index_mut().

◆ set_verts()

void meshlib::UnorientedTriangle::set_verts ( value:meshlib::std_array_MR_VertId_3 )

Modifies a member variable of class MR::UnorientedTriangle named verts.

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

◆ verts()

auto meshlib::UnorientedTriangle::verts ( ) const -> &meshlib::std_array_MR_VertId_3

Returns a pointer to a member variable of class MR::UnorientedTriangle named verts.

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

◆ verts_mut()

auto meshlib::UnorientedTriangle::verts_mut ( ) -> &mut meshlib::std_array_MR_VertId_3

Returns a mutable pointer to a member variable of class MR::UnorientedTriangle named verts.

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


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