ViewDesignEngine
3.1.0
高性能 CAD 计算几何引擎
mesh_simplify.h
浏览该文件的文档.
1
#pragma once
2
#include "
vde/mesh/halfedge_mesh.h
"
3
4
namespace
vde::mesh
{
5
using
core::Point2D
;
6
using
core::Point3D
;
7
using
core::Vector3D
;
8
13
struct
SimplifyOptions
{
14
double
target_ratio
= 0.5;
15
int
max_iterations
= 100;
16
bool
preserve_boundary
=
true
;
17
};
18
44
HalfedgeMesh
simplify_mesh
(
const
HalfedgeMesh
& mesh,
const
SimplifyOptions
& opts = {});
45
46
}
// namespace vde::mesh
vde::mesh::HalfedgeMesh
半边数据结构三角网格
Definition:
halfedge_mesh.h:54
vde::mesh::simplify_mesh
HalfedgeMesh simplify_mesh(const HalfedgeMesh &mesh, const SimplifyOptions &opts={})
QEM(Quadric Error Metrics)网格简化
halfedge_mesh.h
vde::core::Point2D
foundation::Point2D Point2D
双精度二维点(重新导出)
Definition:
point.h:29
vde::core::Vector3D
foundation::Vector3D Vector3D
双精度三维向量(重新导出)
Definition:
point.h:49
vde::core::Point3D
foundation::Point3D Point3D
双精度三维点(重新导出)
Definition:
point.h:31
vde::mesh
Definition:
alpha_shapes.h:6
vde::mesh::SimplifyOptions
网格简化选项
Definition:
mesh_simplify.h:13
vde::mesh::SimplifyOptions::max_iterations
int max_iterations
最大迭代次数(边塌缩上限)
Definition:
mesh_simplify.h:15
vde::mesh::SimplifyOptions::preserve_boundary
bool preserve_boundary
是否保护边界边不被塌缩
Definition:
mesh_simplify.h:16
vde::mesh::SimplifyOptions::target_ratio
double target_ratio
目标面数比例 (0, 1],0.5 表示保留 50% 的面
Definition:
mesh_simplify.h:14
include
vde
mesh
mesh_simplify.h
生成于 2026年 七月 24日 星期五 11:21:23 , 为 ViewDesignEngine使用
1.9.1