OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::TexturedMesh Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/TexturePainting.hpp>

Collaboration diagram for Slic3r::TexturedMesh:

Public Member Functions

bool has_face_uvs () const

Public Attributes

std::vector< std::array< float, 3 > > vertices
std::vector< std::array< int, 3 > > indices
std::vector< std::array< float, 2 > > uvs
std::vector< TextureImage > textures
std::vector< int > material_ids
std::vector< int > material_texture_map
std::vector< std::array< float, 4 > > material_colors
std::vector< std::array< float, 2 > > uv_coords
std::vector< std::array< int, 3 > > uv_indices
std::vector< std::array< std::size_t, 3 > > precomputed_face_colors
std::vector< std::array< float, 4 > > precomputed_vertex_colors

Detailed Description

Member Function Documentation

◆ has_face_uvs()

bool Slic3r::TexturedMesh::has_face_uvs ( ) const
inline
40{ return !uv_indices.empty() && !uv_coords.empty(); }
std::vector< std::array< int, 3 > > uv_indices
Definition TexturePainting.hpp:38
std::vector< std::array< float, 2 > > uv_coords
Definition TexturePainting.hpp:37

References uv_coords, and uv_indices.

Referenced by Slic3r::build_multi_texture_atlas(), Slic3r::build_tex2color_mesh(), and Slic3r::sample_original_face_colors().

Here is the caller graph for this function:

Member Data Documentation

◆ indices

◆ material_colors

◆ material_ids

◆ material_texture_map

◆ precomputed_face_colors

std::vector<std::array<std::size_t,3> > Slic3r::TexturedMesh::precomputed_face_colors

◆ precomputed_vertex_colors

std::vector<std::array<float,4> > Slic3r::TexturedMesh::precomputed_vertex_colors

◆ textures

◆ uv_coords

◆ uv_indices

◆ uvs

◆ vertices


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