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

Go to the source code of this file.

Classes

struct  Slic3r::TextureBake::DisplaceSettings
struct  Slic3r::TextureBake::DisplaceBounds

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::HeightSampleFn
using Slic3r::TextureBake::DisplaceProgressFn = std::function<bool(double fraction)>

Functions

TriSoup Slic3r::TextureBake::apply_displacement (const TriSoup &geometry, const HeightSampleFn &sample, const DisplaceSettings &settings, const DisplaceBounds &bounds, const DisplaceProgressFn &on_progress)

Class Documentation

◆ Slic3r::TextureBake::DisplaceSettings

struct Slic3r::TextureBake::DisplaceSettings
Class Members
float amplitude = 0.4f
int blend_normal_smoothing = 32
float bottom_angle_limit = 5.f
float boundary_falloff = 0.f
bool no_downward_z = false
bool symmetric = false
float top_angle_limit = 0.f

◆ Slic3r::TextureBake::DisplaceBounds

struct Slic3r::TextureBake::DisplaceBounds
Class Members
Vec3f max = Vec3f::Zero()
Vec3f min = Vec3f::Zero()