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

Public Member Functions

auto assign_from_another (_other:&meshlib::ObjectMeshData) -> &mut meshlib::ObjectMeshData
auto clone () const -> meshlib::Owned< meshlib::ObjectMeshData >
auto heap_bytes () const -> usize
auto mesh () const -> &meshlib::std_shared_ptr_MR_Mesh
auto mesh_mut () -> &mut meshlib::std_shared_ptr_MR_Mesh
void set_mesh (value:&meshlib::std_shared_ptr_MR_Mesh)
auto selected_faces () const -> &meshlib::FaceBitSet
auto selected_faces_mut () -> &mut meshlib::FaceBitSet
void set_selected_faces (value:&meshlib::FaceBitSet)
auto selected_edges () const -> &meshlib::UndirectedEdgeBitSet
auto selected_edges_mut () -> &mut meshlib::UndirectedEdgeBitSet
void set_selected_edges (value:&meshlib::UndirectedEdgeBitSet)
auto creases () const -> &meshlib::UndirectedEdgeBitSet
auto creases_mut () -> &mut meshlib::UndirectedEdgeBitSet
void set_creases (value:&meshlib::UndirectedEdgeBitSet)
auto vert_colors () const -> &meshlib::VertColors
auto vert_colors_mut () -> &mut meshlib::VertColors
void set_vert_colors (value:&meshlib::VertColors)
auto face_colors () const -> &meshlib::FaceColors
auto face_colors_mut () -> &mut meshlib::FaceColors
void set_face_colors (value:&meshlib::FaceColors)
auto uv_coordinates () const -> &meshlib::VertCoords2
auto uv_coordinates_mut () -> &mut meshlib::VertCoords2
void set_uv_coordinates (value:&meshlib::VertCoords2)
auto texture_per_face () const -> &meshlib::TexturePerFace
auto texture_per_face_mut () -> &mut meshlib::TexturePerFace
void set_texture_per_face (value:&meshlib::TexturePerFace)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::ObjectMeshData >
static auto construct_from (mesh:&meshlib::std_shared_ptr_MR_Mesh, selectedFaces:&meshlib::FaceBitSet, selectedEdges:&meshlib::UndirectedEdgeBitSet, creases:&meshlib::UndirectedEdgeBitSet, vertColors:&meshlib::VertColors, faceColors:&meshlib::FaceColors, uvCoordinates:&meshlib::VertCoords2, texturePerFace:&meshlib::TexturePerFace) -> meshlib::Owned< meshlib::ObjectMeshData >
static auto construct_from_another (_other:&meshlib::ObjectMeshData) -> meshlib::Owned< meshlib::ObjectMeshData >
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

mesh and its per-element attributes for ObjectMeshHolder Generated from class MR::ObjectMeshData. Derived classes: Direct: (non-virtual) MR::LoadedMeshData

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ clone()

auto meshlib::ObjectMeshData::clone ( ) const -> meshlib::Owned< meshlib::ObjectMeshData >

returns copy of this object with mesh cloned Generated from method MR::ObjectMeshData::clone.

Calls MR_ObjectMeshData_clone().

◆ construct_from()

auto meshlib::ObjectMeshData::construct_from ( mesh:&meshlib::std_shared_ptr_MR_Mesh ,
selectedFaces:&meshlib::FaceBitSet ,
selectedEdges:&meshlib::UndirectedEdgeBitSet ,
creases:&meshlib::UndirectedEdgeBitSet ,
vertColors:&meshlib::VertColors ,
faceColors:&meshlib::FaceColors ,
uvCoordinates:&meshlib::VertCoords2 ,
texturePerFace:&meshlib::TexturePerFace  ) -> meshlib::Owned< meshlib::ObjectMeshData >
static

Constructs MR::ObjectMeshData elementwise.

Calls MR_ObjectMeshData_ConstructFrom(). The reference to the parameter mesh might be preserved in the constructed object. The reference to the parameter selectedFaces might be preserved in the constructed object. The reference to the parameter selectedEdges might be preserved in the constructed object. The reference to the parameter creases might be preserved in the constructed object. The reference to the parameter vertColors might be preserved in the constructed object. The reference to the parameter faceColors might be preserved in the constructed object. The reference to the parameter uvCoordinates might be preserved in the constructed object. The reference to the parameter texturePerFace might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::ObjectMeshData::ObjectMeshData.

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

◆ creases()

auto meshlib::ObjectMeshData::creases ( ) const -> &meshlib::UndirectedEdgeBitSet

Returns a pointer to a member variable of class MR::ObjectMeshData named creases.

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

◆ creases_mut()

auto meshlib::ObjectMeshData::creases_mut ( ) -> &mut meshlib::UndirectedEdgeBitSet

Returns a mutable pointer to a member variable of class MR::ObjectMeshData named creases.

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

◆ face_colors()

auto meshlib::ObjectMeshData::face_colors ( ) const -> &meshlib::FaceColors

Returns a pointer to a member variable of class MR::ObjectMeshData named faceColors.

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

◆ face_colors_mut()

auto meshlib::ObjectMeshData::face_colors_mut ( ) -> &mut meshlib::FaceColors

Returns a mutable pointer to a member variable of class MR::ObjectMeshData named faceColors.

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

◆ heap_bytes()

auto meshlib::ObjectMeshData::heap_bytes ( ) const -> usize

returns the amount of memory this object occupies on heap Generated from method MR::ObjectMeshData::heapBytes.

Calls MR_ObjectMeshData_heapBytes().

◆ mesh()

auto meshlib::ObjectMeshData::mesh ( ) const -> &meshlib::std_shared_ptr_MR_Mesh

Returns a pointer to a member variable of class MR::ObjectMeshData named mesh.

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

◆ mesh_mut()

auto meshlib::ObjectMeshData::mesh_mut ( ) -> &mut meshlib::std_shared_ptr_MR_Mesh

Returns a mutable pointer to a member variable of class MR::ObjectMeshData named mesh.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_ObjectMeshData_DefaultConstruct().

◆ selected_edges()

auto meshlib::ObjectMeshData::selected_edges ( ) const -> &meshlib::UndirectedEdgeBitSet

Returns a pointer to a member variable of class MR::ObjectMeshData named selectedEdges.

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

◆ selected_edges_mut()

auto meshlib::ObjectMeshData::selected_edges_mut ( ) -> &mut meshlib::UndirectedEdgeBitSet

Returns a mutable pointer to a member variable of class MR::ObjectMeshData named selectedEdges.

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

◆ selected_faces()

auto meshlib::ObjectMeshData::selected_faces ( ) const -> &meshlib::FaceBitSet

selection Returns a pointer to a member variable of class MR::ObjectMeshData named selectedFaces.

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

◆ selected_faces_mut()

auto meshlib::ObjectMeshData::selected_faces_mut ( ) -> &mut meshlib::FaceBitSet

selection Returns a mutable pointer to a member variable of class MR::ObjectMeshData named selectedFaces.

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

◆ set_creases()

void meshlib::ObjectMeshData::set_creases ( value:&meshlib::UndirectedEdgeBitSet )

Modifies a member variable of class MR::ObjectMeshData named creases.

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

◆ set_face_colors()

void meshlib::ObjectMeshData::set_face_colors ( value:&meshlib::FaceColors )

Modifies a member variable of class MR::ObjectMeshData named faceColors.

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

◆ set_mesh()

void meshlib::ObjectMeshData::set_mesh ( value:&meshlib::std_shared_ptr_MR_Mesh )

Modifies a member variable of class MR::ObjectMeshData named mesh.

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

◆ set_selected_edges()

void meshlib::ObjectMeshData::set_selected_edges ( value:&meshlib::UndirectedEdgeBitSet )

Modifies a member variable of class MR::ObjectMeshData named selectedEdges.

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

◆ set_selected_faces()

void meshlib::ObjectMeshData::set_selected_faces ( value:&meshlib::FaceBitSet )

selection Modifies a member variable of class MR::ObjectMeshData named selectedFaces.

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

◆ set_texture_per_face()

void meshlib::ObjectMeshData::set_texture_per_face ( value:&meshlib::TexturePerFace )

Modifies a member variable of class MR::ObjectMeshData named texturePerFace.

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

◆ set_uv_coordinates()

void meshlib::ObjectMeshData::set_uv_coordinates ( value:&meshlib::VertCoords2 )

< vertices coordinates in texture Modifies a member variable of class MR::ObjectMeshData named uvCoordinates.

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

◆ set_vert_colors()

void meshlib::ObjectMeshData::set_vert_colors ( value:&meshlib::VertColors )

colors Modifies a member variable of class MR::ObjectMeshData named vertColors.

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

◆ texture_per_face()

auto meshlib::ObjectMeshData::texture_per_face ( ) const -> &meshlib::TexturePerFace

Returns a pointer to a member variable of class MR::ObjectMeshData named texturePerFace.

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

◆ texture_per_face_mut()

auto meshlib::ObjectMeshData::texture_per_face_mut ( ) -> &mut meshlib::TexturePerFace

Returns a mutable pointer to a member variable of class MR::ObjectMeshData named texturePerFace.

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

◆ uv_coordinates()

auto meshlib::ObjectMeshData::uv_coordinates ( ) const -> &meshlib::VertCoords2

< vertices coordinates in texture Returns a pointer to a member variable of class MR::ObjectMeshData named uvCoordinates.

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

◆ uv_coordinates_mut()

auto meshlib::ObjectMeshData::uv_coordinates_mut ( ) -> &mut meshlib::VertCoords2

< vertices coordinates in texture Returns a mutable pointer to a member variable of class MR::ObjectMeshData named uvCoordinates.

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

◆ vert_colors()

auto meshlib::ObjectMeshData::vert_colors ( ) const -> &meshlib::VertColors

colors Returns a pointer to a member variable of class MR::ObjectMeshData named vertColors.

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

◆ vert_colors_mut()

auto meshlib::ObjectMeshData::vert_colors_mut ( ) -> &mut meshlib::VertColors

colors Returns a mutable pointer to a member variable of class MR::ObjectMeshData named vertColors.

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


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