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

Public Member Functions

auto assign_from_another (_other:&meshlib::LoadedMeshData) -> &mut meshlib::LoadedMeshData
auto clone () const -> meshlib::Owned< meshlib::ObjectMeshData >
auto heap_bytes () const -> usize
auto texture () const -> &meshlib::MeshTexture
auto texture_mut () -> &mut meshlib::MeshTexture
void set_texture (value:&meshlib::MeshTexture)
auto xf () const -> &meshlib::AffineXf3f
auto xf_mut () -> &mut meshlib::AffineXf3f
void set_xf (value:meshlib::AffineXf3f)
auto skipped_face_count () const -> &core::ffi::c_int
auto skipped_face_count_mut () -> &mut core::ffi::c_int
void set_skipped_face_count (value:core::ffi::c_int)
auto duplicated_vertex_count () const -> &core::ffi::c_int
auto duplicated_vertex_count_mut () -> &mut core::ffi::c_int
void set_duplicated_vertex_count (value:core::ffi::c_int)
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)
auto upcast_to_object_mesh_data () const -> &meshlib::ObjectMeshData
auto upcast_to_object_mesh_data_mut () -> &mut meshlib::ObjectMeshData

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::LoadedMeshData >
static auto construct_from_another (_other:&meshlib::LoadedMeshData) -> meshlib::Owned< meshlib::LoadedMeshData >
static auto static_downcast_from_object_mesh_data (object:&meshlib::ObjectMeshData) -> &Self
static auto static_downcast_from_object_mesh_data_mut (object:&mut meshlib::ObjectMeshData) -> &mut Self
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

ObjectMeshData and additional information from mesh importer Generated from class MR::LoadedMeshData. Base classes: Direct: (non-virtual) MR::ObjectMeshData

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ clone()

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

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

Calls MR_LoadedMeshData_clone().

◆ construct_from_another()

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

Generated from constructor MR::LoadedMeshData::LoadedMeshData.

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

◆ creases()

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

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

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

◆ creases_mut()

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

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

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

◆ duplicated_vertex_count()

auto meshlib::LoadedMeshData::duplicated_vertex_count ( ) const -> &core::ffi::c_int

Returns a pointer to a member variable of class MR::LoadedMeshData named duplicatedVertexCount.

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

◆ duplicated_vertex_count_mut()

auto meshlib::LoadedMeshData::duplicated_vertex_count_mut ( ) -> &mut core::ffi::c_int

Returns a mutable pointer to a member variable of class MR::LoadedMeshData named duplicatedVertexCount.

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

◆ face_colors()

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

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

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

◆ face_colors_mut()

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

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

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

◆ heap_bytes()

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

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

Calls MR_LoadedMeshData_heapBytes().

◆ mesh()

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

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

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

◆ mesh_mut()

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

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

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_LoadedMeshData_DefaultConstruct().

◆ selected_edges()

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

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

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

◆ selected_edges_mut()

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

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

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

◆ selected_faces()

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

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

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

◆ selected_faces_mut()

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

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

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

◆ set_creases()

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

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

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

◆ set_duplicated_vertex_count()

void meshlib::LoadedMeshData::set_duplicated_vertex_count ( value:core::ffi::c_int )

Modifies a member variable of class MR::LoadedMeshData named duplicatedVertexCount.

Calls MR_LoadedMeshData_Set_duplicatedVertexCount().

◆ set_face_colors()

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

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

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

◆ set_mesh()

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

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

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

◆ set_selected_edges()

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

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

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

◆ set_selected_faces()

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

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

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

◆ set_skipped_face_count()

void meshlib::LoadedMeshData::set_skipped_face_count ( value:core::ffi::c_int )

Modifies a member variable of class MR::LoadedMeshData named skippedFaceCount.

Calls MR_LoadedMeshData_Set_skippedFaceCount().

◆ set_texture()

void meshlib::LoadedMeshData::set_texture ( value:&meshlib::MeshTexture )

Modifies a member variable of class MR::LoadedMeshData named texture.

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

◆ set_texture_per_face()

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

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

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

◆ set_uv_coordinates()

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

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

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

◆ set_vert_colors()

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

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

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

◆ set_xf()

void meshlib::LoadedMeshData::set_xf ( value:meshlib::AffineXf3f )

Modifies a member variable of class MR::LoadedMeshData named xf.

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

◆ skipped_face_count()

auto meshlib::LoadedMeshData::skipped_face_count ( ) const -> &core::ffi::c_int

Returns a pointer to a member variable of class MR::LoadedMeshData named skippedFaceCount.

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

◆ skipped_face_count_mut()

auto meshlib::LoadedMeshData::skipped_face_count_mut ( ) -> &mut core::ffi::c_int

Returns a mutable pointer to a member variable of class MR::LoadedMeshData named skippedFaceCount.

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

◆ static_downcast_from_object_mesh_data()

auto meshlib::LoadedMeshData::static_downcast_from_object_mesh_data ( object:&meshlib::ObjectMeshData ) -> &Self
static

Static downcast from the base class MR::ObjectMeshData.

Calls MR_LoadedMeshData_StaticDowncastFrom_MR_ObjectMeshData(). Undefined behavior if the object isn't actually a LoadedMeshData.

Note
This function is unsafe.

◆ static_downcast_from_object_mesh_data_mut()

auto meshlib::LoadedMeshData::static_downcast_from_object_mesh_data_mut ( object:&mut meshlib::ObjectMeshData ) -> &mut Self
static

Static downcast from the base class MR::ObjectMeshData.

Calls MR_LoadedMeshData_MutableStaticDowncastFrom_MR_ObjectMeshData(). Undefined behavior if the object isn't actually a LoadedMeshData.

Note
This function is unsafe.

◆ texture()

auto meshlib::LoadedMeshData::texture ( ) const -> &meshlib::MeshTexture

Returns a pointer to a member variable of class MR::LoadedMeshData named texture.

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

◆ texture_mut()

auto meshlib::LoadedMeshData::texture_mut ( ) -> &mut meshlib::MeshTexture

Returns a mutable pointer to a member variable of class MR::LoadedMeshData named texture.

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

◆ texture_per_face()

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

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

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

◆ texture_per_face_mut()

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

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

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

◆ upcast_to_object_mesh_data()

auto meshlib::LoadedMeshData::upcast_to_object_mesh_data ( ) const -> &meshlib::ObjectMeshData

Upcasts to the base class MR::ObjectMeshData.

Calls MR_LoadedMeshData_UpcastTo_MR_ObjectMeshData().

◆ upcast_to_object_mesh_data_mut()

auto meshlib::LoadedMeshData::upcast_to_object_mesh_data_mut ( ) -> &mut meshlib::ObjectMeshData

Upcasts to the base class MR::ObjectMeshData.

Calls MR_LoadedMeshData_MutableUpcastTo_MR_ObjectMeshData().

◆ uv_coordinates()

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

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

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

◆ uv_coordinates_mut()

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

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

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

◆ vert_colors()

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

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

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

◆ vert_colors_mut()

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

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

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

◆ xf()

auto meshlib::LoadedMeshData::xf ( ) const -> &meshlib::AffineXf3f

Returns a pointer to a member variable of class MR::LoadedMeshData named xf.

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

◆ xf_mut()

auto meshlib::LoadedMeshData::xf_mut ( ) -> &mut meshlib::AffineXf3f

Returns a mutable pointer to a member variable of class MR::LoadedMeshData named xf.

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


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