#include <cstddef>#include <cstdint>#include <functional>#include <vector>#include "libslic3r/Point.hpp"#include "TextureBakeDecimate.hpp"#include "TextureBakeDisplace.hpp"#include "TextureBakeIndex.hpp"#include "TextureBakeRegularize.hpp"#include "TextureBakeFlip.hpp"#include "TextureBakeRelocate.hpp"#include "TextureBakeSubdivide.hpp"Go to the source code of this file.
Classes | |
| struct | Slic3r::TextureBake::PipelineSettings |
| struct | Slic3r::TextureBake::PipelineResult |
Namespaces | |
| namespace | Slic3r |
| |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/ | |
| namespace | Slic3r::TextureBake |
Typedefs | |
| using | Slic3r::TextureBake::PipelineProgressFn = std::function<bool(const char *stage, double fraction)> |
| using | Slic3r::TextureBake::ColorSampleFn = std::function<int(const Vec3f ¢roid, const Vec3f &normal)> |
Enumerations | |
| enum class | Slic3r::TextureBake::PipelineMode { Slic3r::TextureBake::Bake , Slic3r::TextureBake::Export } |
Functions | |
| PipelineResult | Slic3r::TextureBake::run_pipeline (const TriSoup &input, const HeightSampleFn &sample, const PipelineSettings &settings, const DisplaceBounds &bounds, PipelineMode mode, const std::vector< uint8_t > &face_excluded, const PipelineProgressFn &on_progress, BakeStageRecorder *debug, const ColorSampleFn &color_sample) |
| void | Slic3r::TextureBake::clamp_below_bottom (TriSoup &geometry, float bottom_z) |
| size_t | Slic3r::TextureBake::snap_bottom_to_flat (TriSoup &geometry, float bottom_z, double tol) |
Variables | |
| static constexpr int | Slic3r::TextureBake::FACE_UNPAINTED = -1 |
| static constexpr int | Slic3r::TextureBake::FACE_NO_COLOUR = -2 |
| struct Slic3r::TextureBake::PipelineSettings |
| Class Members | ||
|---|---|---|
| double | bottom_snap_tol = 0.1 | |
| bool | clamp_below_plate = false | |
| DisplaceSettings | displace | |
| bool | flip_edges = true | |
| FlipSettings | flip_opts | |
| bool | harvest_flat = true | |
| double | harvest_tol = DECIMATE_DEFAULT_HARVEST_TOL | |
| size_t | max_triangles = 750'000 | |
| SubdivideWithinFn | paint_within | |
| function< bool(const Vec3f ¢roid)> | painted | |
| bool | preserve_untextured = true | |
| double | refine_length = 1.0 | |
| bool | regularize = true | |
| RegularizeOptions | regularize_opts | |
| double | regularize_second_pass_mul = 1.1 | |
| bool | relocate = false | |
| RelocateSettings | relocate_opts | |
| int | safety_cap = SUBDIVIDE_SAFETY_CAP | |
| struct Slic3r::TextureBake::PipelineResult |
| Class Members | ||
|---|---|---|
| bool | budget_limited = false | |
| bool | canceled = false | |
| size_t | collapse_count = 0 | |
| vector< int > | face_color | |
| vector< int > | face_parent_id | |
| TriSoup | geometry | |
| bool | locked_over_budget = false | |
| bool | safety_cap_hit = false | |
| bool | simplified = false | |
| size_t | triangles_budget = 0 | |
| size_t | triangles_refined = 0 | |