ViewDesignEngine  3.1.0
高性能 CAD 计算几何引擎
mesh_repair.h
浏览该文件的文档.
1 #pragma once
3 
4 namespace vde::mesh {
5 using core::Point2D;
6 using core::Point3D;
7 using core::Vector3D;
8 
13 struct RepairOptions {
14  bool fill_holes = true;
15  bool remove_duplicates = true;
16  bool fix_orientation = true;
17  bool remove_degenerate = true;
18 };
19 
43 HalfedgeMesh repair_mesh(const HalfedgeMesh& mesh, const RepairOptions& opts = {});
44 
45 } // namespace vde::mesh
半边数据结构三角网格
Definition: halfedge_mesh.h:54
HalfedgeMesh repair_mesh(const HalfedgeMesh &mesh, const RepairOptions &opts={})
自动网格修复
foundation::Point2D Point2D
双精度二维点(重新导出)
Definition: point.h:29
foundation::Vector3D Vector3D
双精度三维向量(重新导出)
Definition: point.h:49
foundation::Point3D Point3D
双精度三维点(重新导出)
Definition: point.h:31
网格修复选项
Definition: mesh_repair.h:13
bool remove_duplicates
是否合并重合顶点(距离 < ε)
Definition: mesh_repair.h:15
bool fill_holes
是否填充孔洞(补面)
Definition: mesh_repair.h:14
bool fix_orientation
是否统一面法向(外翻)
Definition: mesh_repair.h:16
bool remove_degenerate
是否删除退化面(面积为 0 的三角形)
Definition: mesh_repair.h:17