#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/TextureBake/TextureBakeDebug.hpp>
Public Member Functions | |
| void | enable (bool on) |
| bool | enabled () const |
| void | set_check_topology (bool on) |
| bool | check_topology () const |
| void | set_mesh_cap (size_t triangles) |
| size_t | mesh_cap () const |
| void | capture (const char *name, const TextureBake::TriSoup &soup, double ms, const std::string &detail={}) |
| void | capture (const char *name, const std::vector< Vec3f > &vertices, const std::vector< Vec3i32 > &indices, double ms, const std::string &detail={}) |
| void | capture_note (const char *name, double ms, const std::string &detail) |
| size_t | mark () const |
| void | rebase (size_t from, const Transform3d *to_local, bool flip_winding) |
| const std::vector< BakeStageSnapshot > & | stages () const |
| std::vector< BakeStageSnapshot > | take () |
| void | clear () |
| bool | empty () const |
| double | total_ms () const |
| size_t | dump_obj (const std::string &dir) const |
Private Member Functions | |
| void | finish (BakeStageSnapshot &s) |
Private Attributes | |
| std::vector< BakeStageSnapshot > | m_stages |
| bool | m_enabled = false |
| bool | m_check_topology = true |
| size_t | m_mesh_cap = 4'000'000 |
| void Slic3r::BakeStageRecorder::capture | ( | const char * | name, |
| const std::vector< Vec3f > & | vertices, | ||
| const std::vector< Vec3i32 > & | indices, | ||
| double | ms, | ||
| const std::string & | detail = {} ) |
References Slic3r::BakeStageSnapshot::detail, finish(), Slic3r::BakeStageMesh::indices, m_enabled, Slic3r::BakeStageSnapshot::mesh, Slic3r::BakeStageSnapshot::ms, Slic3r::BakeStageSnapshot::name, and Slic3r::BakeStageMesh::vertices.
| void Slic3r::BakeStageRecorder::capture | ( | const char * | name, |
| const TextureBake::TriSoup & | soup, | ||
| double | ms, | ||
| const std::string & | detail = {} ) |
References Slic3r::BakeStageSnapshot::detail, finish(), Slic3r::TextureBake::QuantizedPointMap::get_or_set(), Slic3r::BakeStageMesh::indices, Slic3r::TextureBake::QuantizedPointMap::inserted(), m_enabled, Slic3r::BakeStageSnapshot::mesh, Slic3r::BakeStageSnapshot::ms, Slic3r::BakeStageSnapshot::name, Slic3r::TextureBake::TriSoup::pos, Slic3r::BakeStageMesh::vertices, and Slic3r::TextureBake::WELD_GRID_GEOMETRY.
Referenced by Slic3r::build_texture_displacement_in_place(), Slic3r::GUI::GLGizmoTextureDisplacement::prepare_mesh(), and Slic3r::TextureBake::run_pipeline().
| void Slic3r::BakeStageRecorder::capture_note | ( | const char * | name, |
| double | ms, | ||
| const std::string & | detail ) |
References Slic3r::BakeStageSnapshot::detail, m_enabled, m_stages, Slic3r::BakeStageSnapshot::ms, Slic3r::BakeStageSnapshot::name, and Slic3r::BakeStageSnapshot::topology_checked.
|
inline |
References m_check_topology.
|
inline |
References Slic3r::dump_bake_stages(), and m_stages.
|
inline |
|
inline |
References m_enabled.
Referenced by Slic3r::GUI::TextureDisplacementDebugJob::process().
|
inline |
|
private |
References Slic3r::bake_stage_topology(), Slic3r::BakeStageSnapshot::degenerate, Slic3r::BakeStageMesh::indices, m_check_topology, m_mesh_cap, m_stages, Slic3r::BakeStageSnapshot::mesh, Slic3r::BakeStageSnapshot::mesh_dropped, Slic3r::BakeStageSnapshot::non_manifold_edges, Slic3r::BakeStageSnapshot::open_edges, Slic3r::BakeStageSnapshot::topology_checked, Slic3r::BakeStageSnapshot::triangles, Slic3r::BakeStageMesh::vertices, and Slic3r::BakeStageSnapshot::vertices.
Referenced by capture(), and capture().
|
inline |
References m_stages.
Referenced by Slic3r::build_texture_displacement(), and Slic3r::anonymous_namespace{TextureDisplacement.cpp}::build_texture_displacement_v2().
|
inline |
References m_mesh_cap.
| void Slic3r::BakeStageRecorder::rebase | ( | size_t | from, |
| const Transform3d * | to_local, | ||
| bool | flip_winding ) |
References Slic3r::cast(), Slic3r::BakeStageMesh::indices, m_stages, and Slic3r::BakeStageMesh::vertices.
Referenced by Slic3r::build_texture_displacement(), and Slic3r::anonymous_namespace{TextureDisplacement.cpp}::build_texture_displacement_v2().
|
inline |
References m_check_topology.
Referenced by Slic3r::GUI::TextureDisplacementDebugJob::process().
|
inline |
References m_mesh_cap.
Referenced by Slic3r::GUI::TextureDisplacementDebugJob::process().
|
inline |
|
inline |
References m_stages.
Referenced by Slic3r::GUI::TextureDisplacementDebugJob::process().
| double Slic3r::BakeStageRecorder::total_ms | ( | ) | const |
|
private |
Referenced by check_topology(), finish(), and set_check_topology().
|
private |
Referenced by capture(), capture(), capture_note(), enable(), and enabled().
|
private |
Referenced by finish(), mesh_cap(), and set_mesh_cap().
|
private |
Referenced by capture_note(), clear(), dump_obj(), empty(), finish(), mark(), rebase(), stages(), take(), and total_ms().