hm
60422875d7
fix(brep): make_hole blind depth and blind counterbore volume (VDE-1386)
...
盲孔改直构造(体积 rel 3.7e-13)、沉头盲孔改互不重叠分段做差(rel ~1e-5,水密 1.0);埋头保持旧行为并记录缺口;报告 259;版本 1.0.202。
2026-11-09 19:22:57 +08:00
hm
78fd2a2033
perf(brep): densify analytic-path trim boundary sampling (VDE-1385)
...
mass_integral 非周期域按 p-curve 数均分 256 点(对称),带孔面积 rel ~4x 改善;修正首版抽稀破坏圆环对称导致 VDE1234FaceHole 两项失败;报告 258;版本 1.0.201。
2026-11-09 18:51:20 +08:00
hm
6a55bf4d4a
fix(brep): use real knot domain for trim boundary UV scale (VDE-1384)
...
build_polygon_adaptive 按真实节点域端点估算 UV→3D 缩放,修复非 [0,1] 域 scale=0 导致恒 32 采样;带孔面积 rel 1.775e-3→1.060e-4;新增回归与报告 257;版本 1.0.200。
2026-11-09 18:11:19 +08:00
hm
c26106c2c5
test(curves): add NURBS curve certification gate (VDE-1383)
...
圆 1e-9/1/1e9 弧长 1e-16 级精度、空/零长/短节点安全、6 类非法构造拒绝;纯测试;报告 256;版本 1.0.199。
2026-11-09 17:48:03 +08:00
hm
9b520bd8f1
Merge remote-tracking branch 'origin/main'
2026-11-09 17:23:03 +08:00
hm
e4d511dc45
test(brep): tighten analytic primitive precision gates (VDE-1382)
...
球/精确环面/精确锥台容差收紧到 1e-9/1e-8,新增 closed-form + faceted 收敛门禁;纯测试;报告 255;版本 1.0.198。
2026-11-09 17:23:02 +08:00
hm
07abc93d8c
feat(brep): pcurve box-cylinder fragment module
2026-11-09 17:05:01 +08:00
hm
bf9aaad7aa
fix(measure): expose invalid_surface on FaceMeasure and unify analytic counting (VDE-1381)
...
FaceMeasure 新增 invalid_surface;face_measure 入口统一检测,analytic_measure 据此计数;回退数值不变。新增报告 254;版本 1.0.197。
2026-11-09 16:57:56 +08:00
hm
a73299bd44
Merge remote-tracking branch 'origin/main'
2026-11-09 16:34:56 +08:00
hm
5b0a677617
fix(measure): mark analytic measure degraded for invalid-surface faces (VDE-1380)
...
AnalyticMeasure 新增 invalid_surface_faces 计数并纳入 degraded/degraded_reason;无效基面面回退数值口径不变。新增回归与报告 253;版本 1.0.196。
2026-11-09 16:34:55 +08:00
hm
35c264306e
feat(brep): classify using fragment trimmed region
2026-11-09 16:18:23 +08:00
hm
fa6d201a27
test(curves): add NURBS certification suite (VDE-1379)
...
8 例认证:工厂曲面闭式解、极端尺度、极点法向、导数 vs 差分、closest_point/投影往返、三角化贴面与零面积剔除、闭合性/包围盒;报告 252;版本 1.0.195。
2026-11-09 16:13:20 +08:00
hm
2a828e24af
Merge remote-tracking branch 'origin/main'
2026-11-09 14:33:22 +08:00
hm
2ad7b577ac
fix(curves): guard project_polyline_on_surface against empty surfaces (VDE-1378)
...
批量折线投影入口增加 O(1) 空/畸形曲面守卫,按输入点数返回安全参数;新增投影族回归与报告 251;版本 1.0.194。
2026-11-09 14:33:12 +08:00
hm
91219394a3
feat(brep): carry SSI p-curves into boolean pipeline
2026-11-09 14:22:52 +08:00
hm
6b928ab610
fix(brep): guard build_face_trim_domain/face_center against empty surfaces (VDE-1377)
...
build_face_trim_domain 对空/畸形基面返回 nullopt,face_center 走既有网格/边界回退;新增回归与报告 250;版本 1.0.193。
2026-11-09 14:14:00 +08:00
hm
81d3c55417
fix(mesh): skip faces with empty/malformed base surfaces during meshing (VDE-1376)
...
空/畸形基面面在 to_mesh/to_mesh_parallel/to_triangle_soup/mesh_face_diag 的 knots[degree] 越界崩溃改为跳过(mesh_body 缓存 + mesh_face_consistent O(1) 守卫);新增回归与报告 249;版本 1.0.192。
2026-11-09 13:55:39 +08:00
hm
b8ab75954e
fix(brep): guard TrimmedSurface APIs against empty/malformed base surfaces (VDE-1375)
...
bounds/mass_integral/offset_surface/detect_self_intersections 对空/畸形 NurbsSurface 基面的 knots[degree] 越界崩溃改为 is_valid_layout() 预检安全返回;新增回归与报告 248;版本 1.0.191。
2026-11-09 13:16:39 +08:00
hm
c007320fb2
fix(curves): guard projection of empty/malformed NURBS surfaces (VDE-1374)
...
closest_point/project_point_on_surface* 对空/畸形 NurbsSurface 的 knots[degree] 越界崩溃改为 O(1) 守卫安全返回;新增回归与报告 247;版本 1.0.190。
2026-11-09 12:49:33 +08:00
hm
bb20edea3f
Merge remote-tracking branch 'origin/main'
2026-11-09 12:08:22 +08:00
hm
e6245b29ed
fix(curves): guard malformed NURBS surface evaluation (VDE-1373)
...
NurbsSurface 构造期保持宽容(VDE-1261),求值端防御:span 二分有界、阶次/节点长度守卫、参差网格行列越界防护、非有限结果回退零向量、normal +Z 兜底;新增 is_valid_layout()。11 例回归。合并 origin/main @ee414b55 并解决基准断言冲突(rel 1e-8)。版本 1.0.189,报告 246。
2026-11-09 11:31:27 +08:00
hm
2ecdce8f01
feat(brep): exact countersink direct construction
2026-11-09 10:37:45 +08:00
hm
6cf8bb97cc
feat(curves): exact full cylinder NURBS surface
2026-11-09 10:12:20 +08:00
hm
fcae524f22
feat(curves): exact torus 90-degree NURBS patch
2026-11-09 10:05:41 +08:00
hm
92dfa14135
feat(curves): exact cone 90-degree NURBS patch
2026-11-09 10:00:48 +08:00
hm
612c7a848e
feat(curves): exact cylinder 90-degree NURBS patch
2026-11-09 09:54:09 +08:00
hm
0877fc6e6c
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# tests/brep/test_boolean_benchmark.cpp
2026-11-09 09:39:21 +08:00
hm
8325e392a8
fix(mesh): dispatch shared-edge sampling by polyline p-curve evidence (VDE-1371)
...
撤销上游 e111d472 在 to_mesh(double) 的 blanket force_shared_edge_samples;改为外环含一次折线 p-curve 证据。修复合并后 13 个网格/并行/三角汤回归,box-sphere boundary 恢复 0;更新布尔已知限制断言(VDE-1372)。版本 1.0.188,报告 245。
2026-11-09 09:36:31 +08:00
hm
f5680ecbfb
feat(curves): intersect_surfaces_refined convenience API
2026-11-09 08:16:32 +08:00
hm
833877f146
feat(curves): shared-parameter 4D Newton SSI p-curves
2026-11-09 08:09:42 +08:00
hm
848ab93ee5
feat(brep): exact spherical octant face for 7-face corner
2026-11-09 05:16:05 +08:00
hm
47936f9102
feat(brep): strict exact boolean API with explicit failure
2026-11-09 03:09:18 +08:00
hm
5d1bd67031
feat(brep): add exact-trim audit and keep 7-face merge opt-in
2026-11-09 03:01:52 +08:00
hm
9bb48931f1
Merge remote-tracking branch 'origin/main'
2026-11-09 01:45:34 +08:00
hm
dac493cd66
perf(brep): cache shared-edge decision in analytic measure (VDE-1369); fix uninit normal (VDE-1370)
...
解析测量逐面 mesh_face_diag 重复 O(F) 共享边判定 -> O(F^2);作用域内锁定一次。球体体积 9.6s->0.44s (22x),布尔剖析 12.5s->1.29s。补 Sphere512 一致性用例,版本 1.0.187,报告 244。
2026-11-09 01:44:40 +08:00
hm
66b01b288d
feat(brep): opt-in sphere patch merge via per-edge p-curves
2026-11-08 23:19:31 +08:00
hm
d0225dcbae
feat(curves): add exact global sphere NURBS surface
2026-11-08 22:26:34 +08:00
hm
db7c2ffa0f
1.0.186: 同轴环面×{圆柱,圆锥,球}闭式交线(VDE-1367)
...
- VDE-1367: 新增 torus_cylinder_coaxial / torus_cone_coaxial / torus_sphere_coaxial
在环面截面圆 (rho-R)^2+z^2=r^2 上与柱竖线/锥斜线/球轮廓圆闭式求交;
锥按 [0,h] 轴向域与同轴反向过滤;exact_intersection_multi 增六条分派。
探针 R=10/r=3:柱 Rc=10 -> 2 圆 r=10 z=+-3;Rc=9 -> z=+-2.828427124746;
锥 r(z)=9+0.2z -> rho=9.594493549800 z=2.972467749000;球 S=12 -> rho=11.75
z=+-2.436698586202;S=13 内切单圆;无交/越域 nullopt。32 点双曲面残差 <=1.776e-15。
旧库同输入全部 nullopt。
- VDE-1368: 清理 tests/brep/test_boolean_oracle_metrics.cpp unused c30/kPi、
tests/brep/test_analytic_ssi.cpp unused mc(verifier 241 P2-1),强制重编 0 warning。
- 测试: 新增 6 例,AnalyticSsiTest 45/45,注册 8,485 -> 8,491。
- 全量 CTest: 8,491 执行 / 8,453 passed / 0 failed / 38 SKIP / 464.76 s。
- release --check 14/14 PASS 0 warn,--report-check PASS latest=243。
- 文档: 报告 243、verifier 241 入库、CHANGELOG、docs/index、reference README、
报告 240 勘误、W1-1 计划状态。
2026-11-08 18:40:21 +08:00
hm
c694712b73
1.0.185: 平面×锥闭式交线轴向域守卫(VDE-1366)
...
- 新增 cone_domain_contains_closed_curve:按闭式曲线轴向跨度 tc±sqrt((a·u·z)^2+(b·v·z)^2)
精确判定是否整条落在单叶截断锥 [0,h] 内;整条越界或部分越界返回 nullopt,
不再把顶点另一叶 / z>h 的“幻影圆”当真实交线(旧值 a=4.08 / 1.0 / 1.92)。
- 平面×锥分派正反两种实参顺序均校验;域内 z=5 a=3、z=9.9 a=3.98 保持不变。
- tests/brep/test_analytic_ssi.cpp 新增 2 例;AnalyticSsiTest 39/39;注册 8,483→8,485。
- 报告 242;按 verifier 239 勘误修正报告 238 三处并追加 §11;verifier 239 入库;
更新 CHANGELOG / docs/index / docs/reference/README / catch-up W1-4 状态。
- 全量 CTest 8,485 执行 / 8,447 passed / 0 failed / 38 SKIP / 519.41 s;
release --check 14/14 PASS、--report-check PASS(latest=242)。
2026-11-08 17:00:57 +08:00
hm
3aaaae75a7
1.0.184: 自动角部缺口修补(VDE-1365)
...
- 新增 auto_trim_corner_notch(BrepModel&, deflection=0.02, tol=1e-3):
从网格边界环识别「单环 + 3 尖角 + 3 段同球面弧 + 总跨度 3π/2」的
角部缺口,反推球心/半径后自动调用 trim_corner_notch;失败返回
中文 reason 且不改动模型。
- box−sphere 16×8: valid 0→1, wt 0.7500→1.0, boundary 456→0,
volume rel 9.25e-13;32×16: wt 0.8378→1.0, boundary 912→0,
rel 9.03e-12。闭合体与平面孔负例不误裁。
- 新增 4 例测试,FaceRegionsTest 20/20 PASS;注册 8,480,
全量 8,442 passed / 0 failed / 38 SKIP / 671.65 s。
- 报告 240;CHANGELOG、docs/index、参考索引、W1-6 计划状态更新;
入库 verifier 报告 237(1.0.182 独立验证 PASS)。
2026-11-08 14:47:03 +08:00
hm
ecaa343406
1.0.183: 异轴等半径柱闭式 SSI(VDE-1364)
...
- 柱×柱多分支新增两轴相交等半径圆柱:隐式方程相减得两张角平分平面,
各与柱面求精确椭圆,16 点双柱残差复核;半径不等/异面仍 nullopt
- tests: 4 个新用例(90°/60°/半径不等/异面 + NURBS 裁剪链),AnalyticSsiTest 37/37
- 全量:8,475 执行 / 8,437 passed / 0 failed / 38 SKIP / 528.73 s;release 14/14
- 报告 238;W1-1 追赶计划状态更新为九步
2026-11-08 12:46:41 +08:00
hm
cd5003f1ce
1.0.182: 尖锥退化拓扑与壳面索引修复(VDE-1362/1363)
...
- VDE-1362: make_cone faceted 分支某端半径 < vertex_merge 时走 apex 路径,
侧面 segs 三角 + 1 端盖 = segs+1 面,χ=2 闭合流形;旧实现顶环收缩为重合
顶点仍建四边形,得 F=66/V=65/E=128、χ=3 奇数,validate().valid=false 但
体积近似正确(隐性坏体)。阈值严格小于,r2>=1e-6 保持原 66 面圆台表示。
- VDE-1363: rebuild_single_shell 把 Face::id 写入 shell.faces(VDE-1282 约定
为数组下标),封盖重建后 is_valid()=false、bad shell face idx 越界;改为按
faces_ 下标填充,全仓其余写入点均为下标(verifier 235 P2-1)。
- 测试:4 例 faceted cone(顶锥/底锥/容差/中心偏移)+ 1 例封盖壳面索引,
圆锥快照补面数/valid/wt;注册 8,466 -> 8,471,全量 8,471 执行 / 8,433
passed / 0 failed / 38 SKIP / 475.70 s。
- kernel 审计套件随上游 API 修复:audit_formats 三处 fs::path 流构造改
.string()、audit_curves 球面 tess 改账面守恒断言;384 PASS / 0 FAIL。
- 文档:报告 236、报告 234 §11 勘误、报告 235(verifier 随版入库)、
CHANGELOG/docs 索引更新;release --check 14/14、--report-check PASS。
2026-11-08 08:11:49 +08:00
hm
4c0cb13919
1.0.181: 封盖面朝向修正(VDE-1360)+ 1.0.180 独立验证报告入库
...
- VDE-1360: cap_boundary_loops/cap_boundary_cycles 封盖面按网格边界环顺序设置 face.reversed,
修复 10^3 立方体缺一面解析体积 666.6667(validate() 仍报水密假阳性);cycles 按点集匹配
to_mesh 边界环取 -Newell,匹配不到回退旧行为。
- 新增 2 例六面逐一封盖体积回归;A/B 旧库 666.66666666666686 -> 新库 1000.000000。
- 合并 origin/main @ a5eaffe5(5 提交);注册 8,462、全量 8,424 passed / 0 failed / 38 SKIP / 419.76 s。
- 报告 234;verifier 233(1.0.180 PASS,P3=10)随版入库;按 P3 修正报告 232 勘误与 bowtie 注释。
- release --check 14/14 PASS、--report-check PASS(latest=234)。
2026-11-08 03:21:03 +08:00
hm
5dc79f4b15
Merge origin/main @ c06ebc41 (7 commits): W1-3 box-sphere corner notch, cap_boundary_cycles, docs
...
Conflict resolved in src/brep/seam_rebuild.cpp: keep <functional>, <map>, <queue>, <set> includes from both sides.
Also included: 1.0.180 report 232/CHANGELOG/index backfill with merged and final full-regression numbers; verifier 231 report checked in; two test warnings fixed (test_loft_closed.cpp unused function, test_dwg.cpp u8path deprecated); report 230 erratum section 11.
2026-11-08 00:51:24 +08:00
hm
c16f6a8165
1.0.180: 网格边界环追踪、圆弧拟合与弧边写回修复(VDE-1357~1359)
...
- VDE-1357 analyze_mesh_boundary/extract_boundary_loops 改有向边界半边 +
next(twin(next)) 绕顶点旋转追踪;bowtie 环数 1->2,seam 度数 4 顶点不再丢环;
fill_boundary_loops 按有向环反向补扇,保证与相邻面绕向一致。
- VDE-1358 BoundaryArc 新增 closed(闭合整圆 sweep=2pi);fit_circle_segment
增加共面校验,sweep 改逐段展开角累加;光滑 16 边形闭合圆旧 0 弧 -> 新 1 弧。
- VDE-1359 add_boundary_arc_edges 先校验半径/sweep/共面,再按累积展开角
贪心切段(每段 <=90 度);旧 270 度弧负权重使 NurbsCurve 构造抛异常,
新实现 3 条边且中点半径精确 50。
- tests/mesh/test_mesh_diagnostics.cpp 新增 5 例;注册 8,449 -> 8,454。
- 全量 CTest 8,454 执行 / 8,416 passed / 0 failed / 38 SKIP / 558.63 s;
release --check 14/14、--report-check PASS(232)。
报告: docs/reference/232-VDE1.0.180-网格边界环追踪与圆弧重建修复自验证报告.md
2026-11-08 00:04:33 +08:00
hm
b414cfd48b
feat(brep): cap boundary-only cycles without shared-edge reuse
2026-11-07 22:27:05 +08:00
hm
b65ae6e3c2
feat(brep): trim box-sphere corner notch to watertight exact shell
2026-11-07 21:49:42 +08:00
hm
a1dc674966
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# src/brep/brep_heal.cpp
2026-11-07 19:53:10 +08:00
hm
3b013acad4
feat(pmi): add composite geometric tolerance
2026-11-07 18:32:47 +08:00
hm
a9d1b42162
feat(brep): add seam vertex averaging
2026-11-07 18:25:31 +08:00