#include <array>
#include <cstddef>
#include <functional>
#include <memory>
#include <string>
#include <vector>
Go to the source code of this file.
|
| namespace | Slic3r |
| | |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
|
|
| bool | Slic3r::texture_to_painting (const TexturedMesh &textured, PaintedMesh &painted, const TexturePaintingSettings &settings, PaintProgressCallback progress, PaintCancelCallback cancel) |
| bool | Slic3r::face_colors_to_painting (const TexturedMesh &mesh, PaintedMesh &painted, const TexturePaintingSettings &settings, PaintProgressCallback progress, PaintCancelCallback cancel) |
| std::vector< FilamentMatch > | Slic3r::match_clusters_to_filaments (const std::vector< std::array< std::size_t, 3 > > &cluster_colors, const std::vector< std::array< float, 4 > > &filament_colors, const std::vector< std::string > &) |
| double | Slic3r::compute_delta_e (const std::array< std::size_t, 3 > &rgb1, const std::array< float, 4 > &rgba2) |
| bool | Slic3r::apply_painted_mesh_to_volume (const PaintedMesh &painted, const std::vector< FilamentMatch > &matches, ModelVolume &volume) |
| bool | Slic3r::decode_texture_to_pixels (const TextureImage &img, std::vector< unsigned char > &out_pixels, int &out_w, int &out_h) |
| bool | Slic3r::sample_original_face_colors (const TexturedMesh &textured, std::vector< std::array< std::size_t, 3 > > &out_face_colors) |
◆ Slic3r::TextureImage
| struct Slic3r::TextureImage |
| Class Members |
|
int |
channels = 4 |
|
|
vector< unsigned char > |
data |
|
|
int |
height = 0 |
|
|
int |
width = 0 |
|
◆ Slic3r::PaintedMesh
| struct Slic3r::PaintedMesh |
| Class Members |
|
vector< array< size_t, 3 > > |
cluster_colors |
|
|
vector< array< size_t, 3 > > |
face_colors |
|
|
vector< array< int, 3 > > |
indices |
|
|
vector< array< float, 3 > > |
vertices |
|
◆ Slic3r::FilamentMatch
| struct Slic3r::FilamentMatch |
| Class Members |
|
array< size_t, 3 > |
cluster_color = {0,0,0} |
|
|
int |
cluster_index = -1 |
|
|
double |
delta_e = 0.0 |
|
|
array< float, 4 > |
filament_color = {0,0,0,1} |
|
|
int |
filament_index = -1 |
|