OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
TextureBakeDecimate.cpp File Reference
#include "TextureBakeDecimate.hpp"
#include "libslic3r/Point.hpp"
#include "libslic3r/TextureBake/TextureBakeIndex.hpp"
#include <algorithm>
#include <array>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <limits>
#include <queue>
#include <boost/log/trivial.hpp>
#include <tbb/blocked_range.h>
#include <tbb/parallel_for.h>
#include <vector>
Include dependency graph for TextureBakeDecimate.cpp:

Go to the source code of this file.

Classes

struct  Slic3r::TextureBake::anonymous_namespace{TextureBakeDecimate.cpp}::Quadric
struct  Slic3r::TextureBake::anonymous_namespace{TextureBakeDecimate.cpp}::HeapEntry

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
namespace  Slic3r::TextureBake::anonymous_namespace{TextureBakeDecimate.cpp}

Functions

double Slic3r::TextureBake::anonymous_namespace{TextureBakeDecimate.cpp}::eval_sum (const std::vector< Quadric > &qs, int v1, int v2, const Vec3d &p)
bool Slic3r::TextureBake::anonymous_namespace{TextureBakeDecimate.cpp}::solve_q (const std::vector< Quadric > &qs, int v1, int v2, Vec3d &out)
Vec3d Slic3r::TextureBake::anonymous_namespace{TextureBakeDecimate.cpp}::face_normal_unit (const std::vector< Vec3d > &pos, int a, int b, int c)
DecimateResult Slic3r::TextureBake::decimate (const TriSoup &geometry, size_t target_triangles, bool harvest_flat, double harvest_tol, const std::vector< uint8_t > &locked_faces, const DecimateProgressFn &on_progress, const std::vector< int > &face_color)