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

Public Member Functions

auto assign_from_another (_other:&meshlib::mesh_builder::VertexIdentifier) -> &mut meshlib::mesh_builder::VertexIdentifier
void reserve (numTris:usize)
void add_triangles (buffer:&meshlib::std_vector_std_array_MR_Vector3f_3)
auto num_tris () const -> usize
auto take_triangulation () -> meshlib::Owned< meshlib::Triangulation >
auto take_points () -> meshlib::Owned< meshlib::VertCoords >

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::mesh_builder::VertexIdentifier >
static auto construct_from_another (_other:&meshlib::mesh_builder::VertexIdentifier) -> meshlib::Owned< meshlib::mesh_builder::VertexIdentifier >
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

this class is responsible for giving a unique id to each vertex with distinct coordinates NOTE: the points are considered non-identical if they have the same values but have zero values with different signs (e.g. (0; 0; 1) and (-0; 0; 1)) use Vector3::unsignZeroValues method to get rid of signed zero values if you're unsure of their absence Generated from class MR::MeshBuilder::VertexIdentifier.

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

Member Function Documentation

◆ add_triangles()

void meshlib::mesh_builder::VertexIdentifier::add_triangles ( buffer:&meshlib::std_vector_std_array_MR_Vector3f_3 )

identifies vertices from a chunk of triangles Generated from method MR::MeshBuilder::VertexIdentifier::addTriangles.

Calls MR_MeshBuilder_VertexIdentifier_addTriangles().

◆ assign_from_another()

auto meshlib::mesh_builder::VertexIdentifier::assign_from_another ( _other:&meshlib::mesh_builder::VertexIdentifier ) -> &mut meshlib::mesh_builder::VertexIdentifier

Generated from method MR::MeshBuilder::VertexIdentifier::operator=.

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

◆ construct_from_another()

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

Generated from constructor MR::MeshBuilder::VertexIdentifier::VertexIdentifier.

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

◆ new()

auto meshlib::mesh_builder::VertexIdentifier::new ( ) -> meshlib::Owned< meshlib::mesh_builder::VertexIdentifier >
static

Constructs an empty (default-constructed) instance.

Calls MR_MeshBuilder_VertexIdentifier_DefaultConstruct().

◆ num_tris()

auto meshlib::mesh_builder::VertexIdentifier::num_tris ( ) const -> usize

returns the number of triangles added so far Generated from method MR::MeshBuilder::VertexIdentifier::numTris.

Calls MR_MeshBuilder_VertexIdentifier_numTris().

◆ reserve()

void meshlib::mesh_builder::VertexIdentifier::reserve ( numTris:usize )

prepare identification of vertices from given this number of triangles Generated from method MR::MeshBuilder::VertexIdentifier::reserve.

Calls MR_MeshBuilder_VertexIdentifier_reserve().

◆ take_points()

auto meshlib::mesh_builder::VertexIdentifier::take_points ( ) -> meshlib::Owned< meshlib::VertCoords >

obtains coordinates of unique points in the order of vertex ids Generated from method MR::MeshBuilder::VertexIdentifier::takePoints.

Calls MR_MeshBuilder_VertexIdentifier_takePoints().

◆ take_triangulation()

auto meshlib::mesh_builder::VertexIdentifier::take_triangulation ( ) -> meshlib::Owned< meshlib::Triangulation >

obtains triangulation with vertex ids Generated from method MR::MeshBuilder::VertexIdentifier::takeTriangulation.

Calls MR_MeshBuilder_VertexIdentifier_takeTriangulation().


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