OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Repair.hpp File Reference
#include "TriMesh.hpp"
#include "CgalUtils.hpp"
#include "Callbacks.hpp"
#include <CGAL/boost/graph/border.h>
#include <CGAL/Named_function_parameters.h>
#include <CGAL/Polygon_mesh_processing/manifoldness.h>
#include <CGAL/Polygon_mesh_processing/repair_degeneracies.h>
#include <CGAL/Polygon_mesh_processing/repair_polygon_soup.h>
#include <CGAL/Polygon_mesh_processing/repair.h>
#include <CGAL/Polygon_mesh_processing/orient_polygon_soup.h>
#include <CGAL/Polygon_mesh_processing/polygon_soup_to_polygon_mesh.h>
#include <CGAL/Polygon_mesh_processing/stitch_borders.h>
#include <CGAL/Polygon_mesh_processing/triangulate_hole.h>
#include <CGAL/boost/graph/graph_traits_Surface_mesh.h>
#include <boost/log/trivial.hpp>
#include <algorithm>
#include <chrono>
#include <cstddef>
#include <iterator>
#include <memory>
#include <utility>
#include <vector>
Include dependency graph for Repair.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Slic3r::tex2color::RepairSetting
struct  Slic3r::tex2color::BoundaryEdgeStats

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::tex2color

Functions

BoundaryEdgeStats Slic3r::tex2color::ComputeBoundaryEdgeStats (const cgalutils::CGALMesh &cgal_mesh)
void Slic3r::tex2color::CloseBoundariesAndRepairManifoldness (cgalutils::CGALMesh &cgal_mesh)
bool Slic3r::tex2color::RepairMesh (const TriMesh &mesh, std::shared_ptr< TriMesh > &out_mesh, AlgoProgressCallback progress_callback=nullptr, AlgoCancelCallback cancel_callback=nullptr, const RepairSetting &setting=RepairSetting{})

Variables

constexpr std::size_t Slic3r::tex2color::MAX_REPAIRABLE_MESH_HOLE_EDGES = 500
constexpr std::size_t Slic3r::tex2color::MAX_REPAIRABLE_MESH_BOUNDARY_EDGES = 5000

Class Documentation

◆ Slic3r::tex2color::RepairSetting

struct Slic3r::tex2color::RepairSetting
Class Members
size_t max_boundary_edges = MAX_REPAIRABLE_MESH_BOUNDARY_EDGES
size_t max_hole_edges = MAX_REPAIRABLE_MESH_HOLE_EDGES

◆ Slic3r::tex2color::BoundaryEdgeStats

struct Slic3r::tex2color::BoundaryEdgeStats
Class Members
size_t cycle_count = 0
size_t max_cycle_edges = 0
size_t total_boundary_edges = 0