OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
TextureBakeSubdivide.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <functional>
#include <vector>
#include "libslic3r/Point.hpp"
#include "TextureBakeIndex.hpp"
Include dependency graph for TextureBakeSubdivide.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Slic3r::TextureBake::VertStore
struct  Slic3r::TextureBake::IndexedMesh
struct  Slic3r::TextureBake::SubdivideResult

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::SubdivideProgressFn = std::function<bool(double fraction, size_t triangles, double longest_edge)>
using Slic3r::TextureBake::SubdivideWithinFn = std::function<bool(const Vec3d &point, double radius)>

Functions

SubdivideResult Slic3r::TextureBake::subdivide (const TriSoup &geometry, double max_edge_length, const std::vector< uint8_t > &face_excluded, bool fast, int safety_cap, const SubdivideProgressFn &on_progress, const SubdivideWithinFn &within)
IndexedMesh Slic3r::TextureBake::to_indexed (const TriSoup &geometry)
IndexedMesh Slic3r::TextureBake::to_indexed_fast (const TriSoup &geometry)
TriSoup Slic3r::TextureBake::to_non_indexed (const VertStore &verts, const std::vector< int > &indices, const std::vector< uint8_t > &face_excluded)

Variables

static constexpr int Slic3r::TextureBake::SUBDIVIDE_SAFETY_CAP = 16'000'000
static constexpr double Slic3r::TextureBake::SUBDIVIDE_SHARP_ANGLE_DEG = 30.0
static constexpr int Slic3r::TextureBake::SUBDIVIDE_MAX_ITERATIONS = 12
static constexpr double Slic3r::TextureBake::SUBDIVIDE_GRADE = 1.0

Class Documentation

◆ Slic3r::TextureBake::IndexedMesh

struct Slic3r::TextureBake::IndexedMesh
Collaboration diagram for Slic3r::TextureBake::IndexedMesh:
Class Members
bool has_canon = false
vector< int > indices
QuantizedPointMap pos_canon_map { WELD_GRID_GEOMETRY, 256 }
VertStore verts

◆ Slic3r::TextureBake::SubdivideResult

struct Slic3r::TextureBake::SubdivideResult
Collaboration diagram for Slic3r::TextureBake::SubdivideResult:
Class Members
vector< int > face_parent_id
TriSoup geometry
bool safety_cap_hit = false