2026-07-23 05:27:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
#include "vde/mesh/halfedge_mesh.h"
|
|
|
|
|
|
|
|
|
|
namespace vde::mesh {
|
2026-07-23 08:19:24 +00:00
|
|
|
using core::Point2D;
|
|
|
|
|
using core::Point3D;
|
|
|
|
|
using core::Vector3D;
|
2026-07-23 05:27:51 +00:00
|
|
|
|
|
|
|
|
struct RepairOptions {
|
|
|
|
|
bool fill_holes = true;
|
|
|
|
|
bool remove_duplicates = true;
|
|
|
|
|
bool fix_orientation = true;
|
|
|
|
|
bool remove_degenerate = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
HalfedgeMesh repair_mesh(const HalfedgeMesh& mesh, const RepairOptions& opts = {});
|
|
|
|
|
|
|
|
|
|
} // namespace vde::mesh
|