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

Public Member Functions

auto assign_from_another (_other:&meshlib::mesh_load::NamedMesh) -> &mut meshlib::mesh_load::NamedMesh
auto name () const -> &meshlib::std_string
auto name_mut () -> &mut meshlib::std_string
void set_name (value:&str)
auto mesh () const -> &meshlib::Mesh
auto mesh_mut () -> &mut meshlib::Mesh
void set_mesh (value:&meshlib::Mesh)
auto uv_coords () const -> &meshlib::VertCoords2
auto uv_coords_mut () -> &mut meshlib::VertCoords2
void set_uv_coords (value:&meshlib::VertCoords2)
auto colors () const -> &meshlib::VertColors
auto colors_mut () -> &mut meshlib::VertColors
void set_colors (value:&meshlib::VertColors)
auto texture_files () const -> &meshlib::Vector_std_filesystem_path_MR_TextureId
auto texture_files_mut () -> &mut meshlib::Vector_std_filesystem_path_MR_TextureId
void set_texture_files (value:&meshlib::Vector_std_filesystem_path_MR_TextureId)
auto texture_per_face () const -> &meshlib::TexturePerFace
auto texture_per_face_mut () -> &mut meshlib::TexturePerFace
void set_texture_per_face (value:&meshlib::TexturePerFace)
auto diffuse_color () const -> &meshlib::std_optional_MR_Color
auto diffuse_color_mut () -> &mut meshlib::std_optional_MR_Color
void set_diffuse_color (value:Option<&meshlib::Color >)
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)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::mesh_load::NamedMesh >
static auto construct_from (name:&str, mesh:&meshlib::Mesh, uvCoords:&meshlib::VertCoords2, colors:&meshlib::VertColors, textureFiles:&meshlib::Vector_std_filesystem_path_MR_TextureId, texturePerFace:&meshlib::TexturePerFace, diffuseColor:Option<&meshlib::Color >, xf:meshlib::AffineXf3f, skippedFaceCount:core::ffi::c_int, duplicatedVertexCount:core::ffi::c_int) -> meshlib::Owned< meshlib::mesh_load::NamedMesh >
static auto construct_from_another (_other:&meshlib::mesh_load::NamedMesh) -> meshlib::Owned< meshlib::mesh_load::NamedMesh >
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

Generated from class MR::MeshLoad::NamedMesh.

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

Member Function Documentation

◆ assign_from_another()

auto meshlib::mesh_load::NamedMesh::assign_from_another ( _other:&meshlib::mesh_load::NamedMesh ) -> &mut meshlib::mesh_load::NamedMesh

Generated from method MR::MeshLoad::NamedMesh::operator=.

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

◆ colors()

auto meshlib::mesh_load::NamedMesh::colors ( ) const -> &meshlib::VertColors

Returns a pointer to a member variable of class MR::MeshLoad::NamedMesh named colors.

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

◆ colors_mut()

auto meshlib::mesh_load::NamedMesh::colors_mut ( ) -> &mut meshlib::VertColors

Returns a mutable pointer to a member variable of class MR::MeshLoad::NamedMesh named colors.

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

◆ construct_from()

auto meshlib::mesh_load::NamedMesh::construct_from ( name:& str,
mesh:&meshlib::Mesh ,
uvCoords:&meshlib::VertCoords2 ,
colors:&meshlib::VertColors ,
textureFiles:&meshlib::Vector_std_filesystem_path_MR_TextureId ,
texturePerFace:&meshlib::TexturePerFace ,
diffuseColor:Option<&meshlib::Color > ,
xf:meshlib::AffineXf3f ,
skippedFaceCount:core::ffi::c_int ,
duplicatedVertexCount:core::ffi::c_int  ) -> meshlib::Owned< meshlib::mesh_load::NamedMesh >
static

Constructs MR::MeshLoad::NamedMesh elementwise.

Calls MR_MeshLoad_NamedMesh_ConstructFrom(). The reference to the parameter name might be preserved in the constructed object. The reference to the parameter mesh might be preserved in the constructed object. The reference to the parameter uvCoords might be preserved in the constructed object. The reference to the parameter colors might be preserved in the constructed object. The reference to the parameter textureFiles might be preserved in the constructed object. The reference to the parameter texturePerFace might be preserved in the constructed object. The reference to the parameter diffuseColor might be preserved in the constructed object. The reference to the parameter xf might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::MeshLoad::NamedMesh::NamedMesh.

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

◆ diffuse_color()

auto meshlib::mesh_load::NamedMesh::diffuse_color ( ) const -> &meshlib::std_optional_MR_Color

Returns a pointer to a member variable of class MR::MeshLoad::NamedMesh named diffuseColor.

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

◆ diffuse_color_mut()

auto meshlib::mesh_load::NamedMesh::diffuse_color_mut ( ) -> &mut meshlib::std_optional_MR_Color

Returns a mutable pointer to a member variable of class MR::MeshLoad::NamedMesh named diffuseColor.

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

◆ duplicated_vertex_count()

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

counter of duplicated vertices (that created for resolve non-manifold geometry) Returns a pointer to a member variable of class MR::MeshLoad::NamedMesh named duplicatedVertexCount.

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

◆ duplicated_vertex_count_mut()

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

counter of duplicated vertices (that created for resolve non-manifold geometry) Returns a mutable pointer to a member variable of class MR::MeshLoad::NamedMesh named duplicatedVertexCount.

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

◆ mesh()

auto meshlib::mesh_load::NamedMesh::mesh ( ) const -> &meshlib::Mesh

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

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

◆ mesh_mut()

auto meshlib::mesh_load::NamedMesh::mesh_mut ( ) -> &mut meshlib::Mesh

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

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

◆ name()

auto meshlib::mesh_load::NamedMesh::name ( ) const -> &meshlib::std_string

the name from the o line of the object; empty for the faces before the first o line, as for an o line without a name Returns a pointer to a member variable of class MR::MeshLoad::NamedMesh named name.

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

◆ name_mut()

auto meshlib::mesh_load::NamedMesh::name_mut ( ) -> &mut meshlib::std_string

the name from the o line of the object; empty for the faces before the first o line, as for an o line without a name Returns a mutable pointer to a member variable of class MR::MeshLoad::NamedMesh named name.

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

◆ new()

auto meshlib::mesh_load::NamedMesh::new ( ) -> meshlib::Owned< meshlib::mesh_load::NamedMesh >
static

Constructs an empty (default-constructed) instance.

Calls MR_MeshLoad_NamedMesh_DefaultConstruct().

◆ set_colors()

void meshlib::mesh_load::NamedMesh::set_colors ( value:&meshlib::VertColors )

Modifies a member variable of class MR::MeshLoad::NamedMesh named colors.

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

◆ set_diffuse_color()

void meshlib::mesh_load::NamedMesh::set_diffuse_color ( value:Option<&meshlib::Color > )

Modifies a member variable of class MR::MeshLoad::NamedMesh named diffuseColor.

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

◆ set_duplicated_vertex_count()

void meshlib::mesh_load::NamedMesh::set_duplicated_vertex_count ( value:core::ffi::c_int )

counter of duplicated vertices (that created for resolve non-manifold geometry) Modifies a member variable of class MR::MeshLoad::NamedMesh named duplicatedVertexCount.

Calls MR_MeshLoad_NamedMesh_Set_duplicatedVertexCount().

◆ set_mesh()

void meshlib::mesh_load::NamedMesh::set_mesh ( value:&meshlib::Mesh )

Modifies a member variable of class MR::MeshLoad::NamedMesh named mesh.

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

◆ set_name()

void meshlib::mesh_load::NamedMesh::set_name ( value:& str)

the name from the o line of the object; empty for the faces before the first o line, as for an o line without a name Modifies a member variable of class MR::MeshLoad::NamedMesh named name.

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

◆ set_skipped_face_count()

void meshlib::mesh_load::NamedMesh::set_skipped_face_count ( value:core::ffi::c_int )

counter of skipped faces (faces than can't be created), not zero only if ObjLoadSettings.countSkippedFaces Modifies a member variable of class MR::MeshLoad::NamedMesh named skippedFaceCount.

Calls MR_MeshLoad_NamedMesh_Set_skippedFaceCount().

◆ set_texture_files()

void meshlib::mesh_load::NamedMesh::set_texture_files ( value:&meshlib::Vector_std_filesystem_path_MR_TextureId )

texture files of the materials; an empty path stands for the faces without a texture (their material has no texture file or was not found), if other faces of the mesh have one Modifies a member variable of class MR::MeshLoad::NamedMesh named textureFiles.

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

◆ set_texture_per_face()

void meshlib::mesh_load::NamedMesh::set_texture_per_face ( value:&meshlib::TexturePerFace )

Modifies a member variable of class MR::MeshLoad::NamedMesh named texturePerFace.

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

◆ set_uv_coords()

void meshlib::mesh_load::NamedMesh::set_uv_coords ( value:&meshlib::VertCoords2 )

Modifies a member variable of class MR::MeshLoad::NamedMesh named uvCoords.

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

◆ set_xf()

void meshlib::mesh_load::NamedMesh::set_xf ( value:meshlib::AffineXf3f )

transform of the loaded mesh, not identity only if ObjLoadSettings.customXf Modifies a member variable of class MR::MeshLoad::NamedMesh named xf.

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

◆ skipped_face_count()

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

counter of skipped faces (faces than can't be created), not zero only if ObjLoadSettings.countSkippedFaces Returns a pointer to a member variable of class MR::MeshLoad::NamedMesh named skippedFaceCount.

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

◆ skipped_face_count_mut()

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

counter of skipped faces (faces than can't be created), not zero only if ObjLoadSettings.countSkippedFaces Returns a mutable pointer to a member variable of class MR::MeshLoad::NamedMesh named skippedFaceCount.

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

◆ texture_files()

auto meshlib::mesh_load::NamedMesh::texture_files ( ) const -> &meshlib::Vector_std_filesystem_path_MR_TextureId

texture files of the materials; an empty path stands for the faces without a texture (their material has no texture file or was not found), if other faces of the mesh have one Returns a pointer to a member variable of class MR::MeshLoad::NamedMesh named textureFiles.

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

◆ texture_files_mut()

auto meshlib::mesh_load::NamedMesh::texture_files_mut ( ) -> &mut meshlib::Vector_std_filesystem_path_MR_TextureId

texture files of the materials; an empty path stands for the faces without a texture (their material has no texture file or was not found), if other faces of the mesh have one Returns a mutable pointer to a member variable of class MR::MeshLoad::NamedMesh named textureFiles.

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

◆ texture_per_face()

auto meshlib::mesh_load::NamedMesh::texture_per_face ( ) const -> &meshlib::TexturePerFace

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

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

◆ texture_per_face_mut()

auto meshlib::mesh_load::NamedMesh::texture_per_face_mut ( ) -> &mut meshlib::TexturePerFace

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

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

◆ uv_coords()

auto meshlib::mesh_load::NamedMesh::uv_coords ( ) const -> &meshlib::VertCoords2

Returns a pointer to a member variable of class MR::MeshLoad::NamedMesh named uvCoords.

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

◆ uv_coords_mut()

auto meshlib::mesh_load::NamedMesh::uv_coords_mut ( ) -> &mut meshlib::VertCoords2

Returns a mutable pointer to a member variable of class MR::MeshLoad::NamedMesh named uvCoords.

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

◆ xf()

auto meshlib::mesh_load::NamedMesh::xf ( ) const -> &meshlib::AffineXf3f

transform of the loaded mesh, not identity only if ObjLoadSettings.customXf Returns a pointer to a member variable of class MR::MeshLoad::NamedMesh named xf.

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

◆ xf_mut()

auto meshlib::mesh_load::NamedMesh::xf_mut ( ) -> &mut meshlib::AffineXf3f

transform of the loaded mesh, not identity only if ObjLoadSettings.customXf Returns a mutable pointer to a member variable of class MR::MeshLoad::NamedMesh named xf.

Calls MR_MeshLoad_NamedMesh_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: