MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::TriMesh:

Public Member Functions

auto assign_from_another (_other:&meshlib::TriMesh) -> &mut meshlib::TriMesh
auto tris () const -> &meshlib::Triangulation
auto tris_mut () -> &mut meshlib::Triangulation
void set_tris (value:&meshlib::Triangulation)
auto points () const -> &meshlib::VertCoords
auto points_mut () -> &mut meshlib::VertCoords
void set_points (value:&meshlib::VertCoords)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::TriMesh >
static auto construct_from (tris:&meshlib::Triangulation, points:&meshlib::VertCoords) -> meshlib::Owned< meshlib::TriMesh >
static auto construct_from_another (_other:&meshlib::TriMesh) -> meshlib::Owned< meshlib::TriMesh >
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

very simple structure for storing mesh of triangles only, without easy navigation between neighbor elements as in Mesh Generated from class MR::TriMesh.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::TriMesh::construct_from ( tris:&meshlib::Triangulation ,
points:&meshlib::VertCoords  ) -> meshlib::Owned< meshlib::TriMesh >
static

Constructs MR::TriMesh elementwise.

Calls MR_TriMesh_ConstructFrom(). The reference to the parameter tris might be preserved in the constructed object. The reference to the parameter points might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::TriMesh::TriMesh.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_TriMesh_DefaultConstruct().

◆ points()

auto meshlib::TriMesh::points ( ) const -> &meshlib::VertCoords

Returns a pointer to a member variable of class MR::TriMesh named points.

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

◆ points_mut()

auto meshlib::TriMesh::points_mut ( ) -> &mut meshlib::VertCoords

Returns a mutable pointer to a member variable of class MR::TriMesh named points.

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

◆ set_points()

void meshlib::TriMesh::set_points ( value:&meshlib::VertCoords )

Modifies a member variable of class MR::TriMesh named points.

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

◆ set_tris()

void meshlib::TriMesh::set_tris ( value:&meshlib::Triangulation )

Modifies a member variable of class MR::TriMesh named tris.

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

◆ tris()

auto meshlib::TriMesh::tris ( ) const -> &meshlib::Triangulation

Returns a pointer to a member variable of class MR::TriMesh named tris.

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

◆ tris_mut()

auto meshlib::TriMesh::tris_mut ( ) -> &mut meshlib::Triangulation

Returns a mutable pointer to a member variable of class MR::TriMesh named tris.

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


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