fix(v4.2): shared topology for make_box + precise tolerance system
- make_box: 8 shared vertices + 12 shared edges (was 24+24) - find_edge dedup lambda for edge sharing between faces - tolerance.h: fuzzy_equal/zero/vec/point/parallel/perpendicular - adaptive_tolerance + model_tolerance - 14 tolerance tests
This commit is contained in:
@@ -184,6 +184,7 @@ public:
|
||||
* @return 新顶点的 ID
|
||||
*/
|
||||
int add_vertex(const Point3D& p);
|
||||
/** @brief 添加顶点(自动去重) * 若已有顶点在 tolerance 内,返回已有顶点索引。 */ int add_vertex_unique(const Point3D& p, double tolerance = 1e-9);
|
||||
|
||||
/**
|
||||
* @brief 添加直线边
|
||||
@@ -201,6 +202,7 @@ public:
|
||||
* @return 新边的 ID
|
||||
*/
|
||||
int add_edge(int v0, int v1, const curves::NurbsCurve& curve);
|
||||
/** @brief 添加边(自动去重) * 查找已有边连接相同的两个端点。 */ int add_edge_unique(int v0, int v1, double tolerance = 1e-9);
|
||||
|
||||
/**
|
||||
* @brief 添加环
|
||||
|
||||
Reference in New Issue
Block a user