Files
ViewDesignEngine/include/vde/mesh/mesh_repair.h
T

19 lines
406 B
C++
Raw Normal View History

#pragma once
#include "vde/mesh/halfedge_mesh.h"
namespace vde::mesh {
using core::Point2D;
using core::Point3D;
using core::Vector3D;
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