hm
6ec4adbce4
feat(brep): SMLib alignment A5-3 — watertight tessellation entry with triangle budget
...
- measured: default to_mesh already watertight for analytic bodies (box 12 tris/0 boundary, cylinder 92/0, sphere 368448/0, torus 1024/0); no global default flip (avoids VDE-1237 filleted-box 6444->17316 regression)
- new tessellate_watertight + options/result: return baseline when already watertight; otherwise force shared-edge samples + T-junction stitch; triangle count > max_triangle_factor x baseline -> budget_exceeded and baseline mesh returned; boundary edges remaining -> ok=false
- measured: box/cylinder/sphere ok with 0 boundary; gapped split body boundary=24 reported as failure; factor 0.5 triggers budget fallback; empty body rejected
- limits: shared sampling only fixes seams on shared topology; budget is triangle-ratio based (default 4x); not wired into default path
- tests: new test_smlib_tessellation_alignment 5/5; B-Rep/boolean/SSI/mesh regression 1231/1231 (46.38 s)
- version 1.0.412; report 471; plan A5-3 achieved
2026-11-14 22:25:45 +08:00
hm
c7506062e4
feat(brep): SMLib alignment A5-2 — object tolerance derivation from size table
...
- zone_tolerance_for_size: SMLib SmTol 4-band size table with out-of-range clamping
- derive_object_tolerances: model bbox diagonal -> zone; vertex tol = max(stored, zone); edge tol = max(zone, endpoint vertex tols); reports per-edge/per-vertex tolerances and escalation counts
- measured: 0.1->1e-6, 3->1e-5, 1000->1e-4, 1e5->1e-3; 2^3 box zone 1e-5 with 12 edges at 1e-5; vertex tol 1e-3 escalates its 3 edges; empty body defaults to 1e-5 (fixed inf bbox diagonal being treated as huge model)
- limits: no gap term yet (GapGain needs gap measurement, A5-2b); read-only diagnostic, not consumed by stitch/boolean
- tests: new test_smlib_tolerance_alignment 5/5; B-Rep/boolean/SSI regression 862/862 (38.85 s)
- version 1.0.411; report 470; plan A5-2 done
2026-11-14 22:21:42 +08:00
hm
723bd695e3
feat(brep): SMLib alignment A5-1 — escalating two-pass stitch with report
...
- stitch_with_escalation + EscalatingStitchReport: each pass runs heal_gaps(tol) + heal_merge_edges(tol), validates watertightness, escalates tolerance x10 (cap x100) and reports merged counts / open edges / diagnostic on failure
- auto_heal_pipeline is internally adaptive (no external tolerance), so explicit gap/edge merges are used to make escalation observable and reproducible
- measured: normal box passes=1 watertight; split box delta=5e-6 fails at 1e-6 and closes at 1e-5 (E 18->12, wt 1.0, open=0); delta=1e-3 with cap 1e-5 fails honestly
- A3-4 (exact p-curve) recorded as already covered by exact-arc/exact-trim path (trim max 9.16e-16)
- tests: new test_smlib_stitch_alignment 3/3; B-Rep/boolean/SSI regression 857/857 (41.74 s)
- version 1.0.410; report 469; plan A5-1 done, A3-4 covered
2026-11-14 22:18:24 +08:00
hm
df8150229d
feat(curves): SMLib alignment A3-1 — isoparametric boundary seeding for SSI
...
- find_boundary_seeds + BoundarySeedParams: sample 4 iso-boundaries per surface, signed distance to the other surface (closest point + normal), sign-change bisection (50 iters), LM refinement with step-back, parameter dedupe
- SSIOptions::boundary_seeding added; intersect_surfaces_robust enables it by default (legacy unchanged)
- measured: cylinder 90-deg patch x plane z=0 -> >=2 seeds on the intersection (|z|<=1e-5, radius 2, distance to plane <=1e-6); separated boundary -> 0 seeds; cylinder-sphere robust result preserved
- limits: ~144 closest-point queries per surface pair (robust only); coincident boundary yields redundant seeds; double crossings thinner than sample spacing may be missed
- tests: test_smlib_nurbs_alignment 37/37 (+3); SSI/boolean regression 749/749 (69.77 s)
- version 1.0.409; report 468; plan A3-1 marked complete
2026-11-14 22:09:24 +08:00
hm
0bb35d64ba
feat(curves): SMLib alignment A3-3 complete — LM seed refinement with singularity step-back
...
- refine_intersection_seed + SeedRefinement: 4-parameter Levenberg-Marquardt (analytic Jacobian, adaptive lambda, domain clamp) with StepBackFromSingularity-style fallback along J null-space +/- and A/B parameter axes +/- at 1%..N% domain steps
- robust seeding uses the fallback when leaf-level refinement stalls (opt-in; legacy entry unchanged)
- fixed latent false-positive: newton_refine_ss returns true on stagnation; new entry rechecks residual (legacy function untouched for tracing)
- measured: perturbed plane-sphere seed residual <=1e-6; degenerate pole seed (sphere z=9.999) rescued onto micro-circle (r=0.1414); separated planes correctly fail
- tests: test_smlib_nurbs_alignment 34/34 (+3); SSI/boolean regression 746/746 (46.81 s)
- version 1.0.408; report 467; plan A3-3 marked complete
2026-11-14 22:04:38 +08:00
hm
35516f59c2
feat(curves): SMLib alignment A3-3 — Dupin contact classification for SSI singularities
...
- analyze_contact + ContactKind (None/Point/Line/Loop/Uncertain): distance -> normal angle -> principal curvature intervals in common normal (B flipped when normals oppose)
- is_point_contact veto: Loop (interleaving intervals) or Line (touching endpoints) no longer rejected as point contact; legacy line-step/side-scan kept as fallback
- measured: external/internal tangent spheres -> Point; cylinder on plane -> Line; crossing cylinders -> Loop; coincident planes -> Uncertain; parallel planes -> None
- limits: interval-only heuristic (no principal directions/second fundamental form); StepBackFromSingularity-style step-back pending
- tests: test_smlib_nurbs_alignment 31/31 (+6); SSI/boolean regression 743/743 (54.60 s)
- version 1.0.407; report 466; plan A3-3 marked partial
2026-11-14 21:59:21 +08:00
hm
04dcd4bc00
feat(curves): SMLib alignment A3-2 — rebuild SSI branches from fragment point cloud
...
- rebuild_branches_from_fragments: spatial-hash dedupe, median sampling spacing, eps_link=max(2*eps_merge, 6*spacing) adjacency, union-find components, greedy walk from degree<=1 endpoint, one curve per component
- measured: micro-circle 13 -> 3 arcs (legacy 0); sphere-sphere 40 -> 2 curves; cylinder-sphere 14 -> 9 curves; residuals <=1e-4; 32-115 ms
- tests tightened: micro <=4, sphere-sphere <=3, cylinder-sphere <=10
- limits: crossing branches may be mis-connected; <3-point fragments dropped; A3-3/A3-4 pending; legacy entry unchanged
- tests: test_smlib_nurbs_alignment 25/25; target subset 689/689 (24.69 s)
- version 1.0.406; report 465; plan A3-2 marked essentially done
2026-11-14 21:54:29 +08:00
hm
b9a4bcab7a
feat(curves): SMLib alignment A3-1/A3-2 — robust SSI seeding and fragment stitching (opt-in)
...
- new intersect_surfaces_robust + SSIOptions; legacy intersect_surfaces behavior unchanged
- leaf-relative seed gate: max(tolerance*100, 0.5*max(diagA,diagB)) instead of absolute threshold
- robust seed clustering at 1% parameter domain
- overlap dedupe (60% containment) + endpoint stitching (reverse-aware) to reduce fragmentation
- measured: sphere R10 z=9.999 x plane micro-circle 0 -> 13 arcs; sphere-sphere 40 -> 5 curves; cylinder-sphere 0 -> 14 curves; residuals <=1e-4
- limits: fragments still >1; singular handling (A3-3) and exact p-curve (A3-4) pending
- tests: test_smlib_nurbs_alignment 25/25 (+3); target subset 689/689 (18.30 s)
- version 1.0.405; report 464; plan A3-1/A3-2 marked partial
2026-11-14 21:49:23 +08:00
hm
c0e5f0c1c7
feat(curves): SMLib alignment batch A2-2 — tolerance-driven surface fitting from point grid
...
- fit_surface_to_grid: chord parameterization, tensor-product LSQ (separable QR solve), closest-point error, per-row/col parameter correction, alternating control-point growth; aligns N_FitSrfApproxTol
- measured: bicubic polynomial 9x9 tol 1e-6 -> dev 3.589e-7 CP 8x7; sphere octant 11x11 tol 1e-3 -> dev 7.548e-4 CP 6x5
- degenerate grid / unreachable tolerance return ok=false with best fit and error
- A2-5 (knot-removal error upper bound) deferred: measured-deviation acceptance already prevents degradation
- tests: test_smlib_nurbs_alignment 22/22 (+4); target subset 659/659 (32.21 s)
- version 1.0.404; report 463; plan A2-2 done, A2-5 deferred
2026-11-14 21:41:03 +08:00
hm
bc844cd96c
feat(curves): SMLib alignment batch A2-3 — reflected G1 surface extension
...
- extend_surface_g1: distance->parameter width via boundary speed, insert p-fold knot to cut a Bezier segment at the boundary, mirror control rows Q_k=2P_p-P_{p-k}, duplicate seam row, clamp new end
- self-check: original-domain preservation, seam position, seam tangent; ok=false on failure
- measured: plane extension exact (errors 0, tangent <=1e-9); cylinder 90-deg patch vmax width=0.070711, original error 8.95e-16, seam pos 0, tangent 2.107e-8 rad; reflection consistency <=1e-12
- note: extend_surface's G1/G2 branches are unreachable since VDE-1475 (linear extrapolation); this adds real G1
- tests: test_smlib_nurbs_alignment 18/18 (+4); target subset 655/655 (15.74 s)
- version 1.0.403; report 462; plan A2-3 marked done
2026-11-14 21:37:33 +08:00
hm
c15d8c3fa0
feat(curves): SMLib alignment batch A2 — parameter-corrected fitting and Bezier decomposition
...
- curve fitting: approximate_curve_refined (closest-point error metric, parameter-correction loop, control-point scan; aligns N_FitCrvApprox)
same 6 CP error 5.941e-4 -> 4.660e-4 (-21.6%); 90-degree arc reaches 1e-6 within 24 CP
- surface: split_surface_to_bezier_patches (raise internal knot multiplicity to degree, extract (p+1)x(q+1) control nets; aligns N_SrfDecomposeToBez)
cylinder -> 4 patches, bicubic -> 2 patches; pointwise <=1e-12; area sum rel <=1e-9
- tests: test_smlib_nurbs_alignment 14/14 (+5); target subset 629/629; PR gate PASS (~913, 36.8 s)
- version 1.0.402; report 461; plan A2-1/A2-4 marked done
2026-11-14 21:31:03 +08:00
hm
a221d8d391
feat(brep,curves): SMLib alignment batch A1 — surface knot removal, curve G1 segments, region analysis
...
- docs/reference/459: correct SMLib module layout (SmMerge+SmTopologyIntersector+SmProtoTopology; no SmBody/SmTolerantModeling) + per-domain capability matrix + G1-G10 gaps
- docs/planning: A1-A6 alignment plan with per-WP acceptance and gates
- curves: surface_remove_knot / surface_remove_knots_to_tolerance (row-wise homogeneous LSQ + measured 9x9 deviation, cumulative tolerance)
- curves: curve_g1_breaks / split_curve_g1 / curve_degenerate_spans (one-sided analytic tangents)
- brep: analyze_regions (shell connected components via union-find, ray nesting tree, void/solid, volume deduction; read-only)
- version 1.0.401; 13 new tests; target subset 733/733, PR gate 913/913
2026-11-14 21:18:14 +08:00
hm
564294b798
docs: record feedback fix status and host blockers
2026-11-14 17:49:03 +08:00
hm
e803f58779
test(brep): guard thin-band difference volume 4480
2026-11-14 10:22:42 +08:00
hm
b2e73d1733
docs(feedback): normalize legacy report filenames; add VDE-1351..1353
2026-11-14 05:23:16 +08:00
hm
9c8024ad0d
feat(brep): repair curved T-junction dangling edges in boolean results (VDE-1608)
2026-11-13 22:27:04 +08:00
hm
db1a490808
test(brep): add sphere-through-cylinder boolean tripwire (VDE-1607)
2026-11-13 17:35:19 +08:00
hm
4c6e387135
test(brep): add boolean containment/disjoint matrix regression (VDE-1606)
2026-11-13 17:04:49 +08:00
hm
22abb96b94
feat(brep): containment fast paths for analytic spheres in any solid (VDE-1605)
2026-11-13 16:40:45 +08:00
hm
8384f6d349
test(brep): add unequal-radii sphere boolean regression (VDE-1604)
2026-11-13 16:14:31 +08:00
hm
685245f50c
docs(release): record merged-tree 1.0.395 suite numbers
2026-11-13 15:55:16 +08:00
hm
a5d6e15b3a
Merge remote-tracking branch 'origin/main'
2026-11-13 15:31:13 +08:00
hm
a76dbbb32a
feat(brep): add make_sphere_cavity analytic sphere cavity shell (VDE-1603)
2026-11-13 15:30:27 +08:00
hm
52405b4c51
feat(brep): merge coplanar faces with curved boundaries
2026-11-13 13:42:26 +08:00
hm
75b881ef86
feat(brep): add make_sphere_difference analytic difference shell (VDE-1602)
2026-11-13 13:25:24 +08:00
hm
3422cdb96a
feat(brep): add make_sphere_union analytic sphere-sphere union shell (VDE-1601)
2026-11-13 13:07:19 +08:00
hm
cf9b606052
feat(brep): containment fast path for sphere-sphere union (VDE-1600)
...
1.0.392: brep_union 增加球包含快路径——两体均为解析球且 d<=|r1-r2|+1e-9*max(r) 时直接返回大球(前置声明 detect_analytic_sphere)。实测 union(make_sphere(2,0,0), make_sphere(1,0,0,Point3D(0.5,0,0))) = 6 面、体积 33.510321638(4/3 pi R^3 精确)、valid=1、watertight=1.0,交换顺序一致。新增 MeasureTest.SphereUnionContainedFastPath。全量 8,756 执行/8,716 passed/0 failed/668.06s;注册 8,757;报告 450;计划 47.184;版本 1.0.392。
2026-11-13 12:33:17 +08:00
hm
b91c22d558
Merge remote-tracking branch 'origin/main'
2026-11-13 12:11:52 +08:00
hm
91a3a80ce5
test(brep): lock sphere-sphere intersection fast path (VDE-1599)
...
1.0.391: 新增 MeasureTest.SphereSphereIntersectionFastPath,覆盖 brep_intersection 球x球解析快路径:相交(R2,d3)8 面/valid=1/watertight>=0.999/体积 2.879793295 vs 解析 2.879793266(1e-6 容差)、包含返回小球(6 面, 4.188790)、分离返回 0 面、平移布局 (1,2,3)/(4,2,3) 通过。全量 8,754 执行/8,714 passed/0 failed/817.11s;注册 8,756;报告 449;计划 47.183;版本 1.0.391。
2026-11-13 12:11:51 +08:00
hm
2b06200705
feat(brep): merge coaxial cone fragments into natural periodic face
2026-11-13 12:02:49 +08:00
hm
78d2bf73d3
feat(brep): analytic sphere-sphere intersection fast path (VDE-1598)
...
1.0.390: brep_intersection 在通用 SSI 前增加解析球识别与 lens 快路径。球体识别:顶点球面最小二乘拟合(2c·x+k=|x|^2,正规方程 4x4,radius^2=|c|^2+k),校验顶点半径 1e-9、各面 is_spherical(1e-6)、面内 3x3 采样 1e-6。分支:包含->小球/分离->空体/否则 make_sphere_lens。实测 make_sphere(2,0,0) 与 make_sphere(2,0,0,Point3D(3,0,0)) 交集:8 面、valid=1、watertight=1.0、体积 2.879793295 vs 解析 2.879793266(相对 1.0e-8);包含返回小球 4.188790;分离 0 面。更新 MeasureTest.SphereSphereCrossingBooleansKnownLimited(交集 valid/watertight/1e-6)与 MeasureTest.BooleanMembershipAuditDetectsSphereSphereFailures(交集审计误判<=0.05、extra=0,并集/差集保持)。另恢复被误删的 substitute_pointy_cone_tool。全量 8,753 执行/8,713 passed/0 failed/731.28s;注册 8,755;报告 448;计划 47.182;版本 1.0.390。
2026-11-13 11:50:43 +08:00
hm
376d61e893
feat(brep): add make_sphere_lens exact lens for arbitrary sphere pairs (VDE-1597)
...
1.0.389: 新增 BrepModel make_sphere_lens(center1,r1,center2,r2,quadrants=4)(include/vde/brep/modeling.h + src/brep/modeling.cpp)。任意球心/轴向:axis=(c2-c1)/d,构造正交基,两球面控制网按该基旋转;capA v in [vcA,1],capB v in [0,vcB](同一基,切圆弧一一对齐);每球 4 个 90 度经度片,共享切圆弧与子午线,8 面水密壳;分离/包含或非法输入返回空体。实测:球心 (1,2,3)/(4,2,3) 与轴向 (1,1,1)/sqrt3 两例 volume=2.879793266 vs 解析 2.879793266(<=1e-9),valid=1、watertight=1.0;分离(d=10)/包含(d=0.5,r=0.5) 返回 0 面。新增 MeasureTest.SphereLensExactAndWatertight。注意:测试中曾误用 Point3D+Vector3D 表达式(结果类型为 Vector3D,隐式转 Point3D 值损坏)导致误判,库本身正确;测试已改为显式 Point3D 构造。全量 8,753 执行/8,713 passed/0 failed/744.25s;注册 8,755;报告 447;计划 47.181;版本 1.0.389。
2026-11-13 11:01:26 +08:00
hm
992719a829
test(brep): build watertight analytic sphere-sphere lens shell (VDE-1596)
...
1.0.388: 在 1.0.387 精确球帽片基础上完成首个 watertight 解析球x球 lens 壳。构造:两球 R2 球心距 3;球面绕 y 旋转使极点沿 +x(+z->+x);capA 取 v in [vcut,1](x>=1.5),capB 取 x<=1.5 的帽(-x 极);每球 4 个 90 度经度片共享 4 条切圆弧边与各球 4 条子午线边,每片 3 边成环。实测:8 面、valid=1、watertightness=1.0000、dangling=0、non-manifold=0;body_volume=2.879793246 vs 解析 2.879793266(相对 7e-9)。新增 MeasureTest.SphereSphereLensShellIsWatertight(volume 相对 1e-8)。全量 8,752 执行/8,712 passed/0 failed/827.17s;注册 8,754;报告 446;计划 47.180;版本 1.0.388。
2026-11-13 10:34:14 +08:00
hm
b24e5b0918
test(curves): lock exact rotated-sphere cap patch area for sphere-sphere lens (VDE-1595)
...
1.0.387: 找到无裁剪环的精确球帽片构建路径——NurbsSurface::sphere(0,0,0,R) 控制网绕 y 轴旋转 90 度(+z->+x,det=+1,实测 |p|-2 <= 4.4e-16),数值求 vcut 使 x=R-h(R2、平面 x=1.5、h=0.5 => vcut=0.768916699886),extract_sub_surface(Sx,0,1,vcut,1) 得矩形帽片;面积实测 6.283185307 = 2*pi*R*h(误差 0)。新增 NurbsSurfaceTest.RotatedSphereCapAreaIsExact(1e-12,并在测试中 include surface_tools.h)。lens 两帽同 shell 的 body_volume 实测 5.497787128 vs 期望 2.879793266:B 帽散度贡献符号错误(-1.3090 计为 +1.3090),set_face_reversed 对无环面无效,朝向/缝合留待下一轮,尚未接入 brep_intersection。全量 8,751 执行/8,711 passed/0 failed/764.81s;注册 8,753;报告 445;计划 47.179;版本 1.0.387。
2026-11-13 10:09:50 +08:00
hm
437329ae0e
test(brep): add trim-domain small-hole area tripwire (VDE-1594)
...
1.0.386: 在 1.0.385 复测(面面积 93.363880 vs 解析 93.300298,+0.067%;对 face_measure deflection 1e-2..1e-12 与孔边数 64/256/1024 不敏感)基础上新增 MeasureTest.TrimDomainSmallHoleAreaTripwire:构造半圆柱面(make_cylinder_surface(3,10), u in [0,0.5])上 UV 半径 0.04 的 64 弦孔,断言 face_measure(frag,0).ok、面积 93.363880 +-5e-4 且大于解析值。任何积分器改动会触发该用例并迫使同步更新基线。全量 8,750 执行/8,710 passed/0 failed/865.71s;注册 8,752;报告 444;计划 47.178;版本 1.0.386。
2026-11-13 09:46:00 +08:00
hm
83788ea1de
docs(brep): record trim-domain small-hole area bias baseline (VDE-1593)
...
1.0.385: 复测半圆柱面(make_cylinder_surface(3,10), u in [0,0.5])UV 半径 0.04 圆孔的裁剪域积分:face_measure 面积 93.363880 vs 解析 93.300298(偏差 0.067%,孔面积偏差 6.57%)。对 face_measure deflection(1e-2..1e-12)恒定、对孔边数 HN(16/64/256/1024)在 64 后饱和——说明偏差来自解析 trim-domain 积分的 UV 分辨率,而非弦高采样或三角化回退。登记为已知限制与回归基线(计划 §47.177,报告 443),不改积分器以避免裁剪稳定性风险。全量 8,749 执行/8,709 passed/0 failed/825.78s;注册 8,751;版本 1.0.385。
2026-11-13 09:23:56 +08:00
hm
9cada75017
feat(curves): add is_rational and is_bezier representation predicates (VDE-1592)
...
1.0.384: 新增 NurbsCurve::is_rational()(存在权重 !=1,容差 1e-15)与 is_bezier()(节点向量只有两个不同值=无内节点)。实测:直线 非有理+Bézier;圆/椭圆 有理+非Bézier;圆弧(1 rad) 有理+单段Bézier。用于 STEP/IGES 导出、曲线简化与升阶策略选择。新增 NurbsCurveTest.RepresentationPredicates。全量 8,749 执行/8,709 passed/0 failed/757.54s;注册 8,751;报告 442;版本 1.0.384。
2026-11-13 08:59:04 +08:00
hm
d503761dd3
feat(curves): add is_ruled surface predicate (VDE-1591)
...
1.0.383: 新增 NurbsSurface::is_ruled(tol=1e-6)——分别检查 u/v 两族等参曲线(各 5 条、每条 7 点)到首末连线的最大距离是否 <= tol*控制点尺度,任一族为直线即判直纹。实测:平面/圆柱/圆锥/ruled_surface(arc,arc) true;球/环 false。新增 NurbsSurfaceTest.IsRuledDetection。全量 8,748 执行/8,708 passed/0 failed/819.07s;注册 8,750;报告 441;版本 1.0.383。
2026-11-13 08:34:43 +08:00
hm
fbe9c0d27b
feat(curves): add surfaces_overlap coincident-surface predicate (VDE-1590)
...
1.0.382: 新增 surfaces_overlap(a,b,tolerance=1e-6)——a 的参数域 5x5 采样点全部落在 b 上(distance_to <= tol*尺度且 closest_point_param 参数在 b 域内),再对 b 双向检查。实测:相同平面/相同圆柱 true;偏移 1.0 平面 false;球 x 圆柱 false。用于布尔/裁剪前识别完全重合面,避免退化求交产生伪交线。部分重叠(子面)按文档返回 false。新增 SurfIntExtra.SurfacesOverlapDetection。全量 8,747 执行/8,707 passed/0 failed/893.33s;注册 8,749;报告 440;版本 1.0.382。
2026-11-13 08:06:54 +08:00
hm
066b1ed51a
feat(curves): add curves_overlap degenerate intersection predicate (VDE-1589)
...
1.0.381: 新增 curves_overlap(a,b,tolerance=1e-6)——采样 17 点并用 curve_closest_point 双向判定「一条整体落在另一条上」。实测:完全相同直线/同圆 true;包含(0..2 vs 0..1) true;部分重叠(0..2 vs 1..3) false(文档约定);相交/偏移 0.1 false。用于求交前识别重合段,避免把 0 交点误判为不相交。新增 CurvesExactnessTest.CurvesOverlapDetection。全量 8,746 执行/8,706 passed/0 failed/760.81s;注册 8,748;报告 439;版本 1.0.381。
2026-11-13 07:45:56 +08:00
hm
873604b629
perf(curves): use exact closest_point_param for SSI p-curve parameters (VDE-1588)
...
1.0.380: fill_params_by_projection 改用 1.0.379 新增的 closest_point_param(原用 project_point_on_surface,参数误差约 3e-8)。实测平面(10x10,原点 -5,-5)x 球 R2:49 点参数回代残差 a=1.3e-15、b=5.6e-17(改前约 3e-8)。新增 SurfIntExtra.SSIParamsAreExactAfterProjection(1e-12)。全量 8,745 执行/8,705 passed/0 failed/696.71s;注册 8,747;报告 438;版本 1.0.380。
2026-11-13 07:20:35 +08:00
hm
54180af57a
feat(curves): expose exact NurbsSurface::closest_point_param (VDE-1587)
...
1.0.379: 此前 closest_point 只返回 3D 点(project_point_on_surface 参数位置误差约 6e-11)。把 VDE-1562 的脚踏点牛顿抛光抽成 NurbsSurface::closest_point_param(p)->(u,v),closest_point 改为 evaluate(closest_point_param(p)),行为不变。实测球 R2 (0.3,0.4)/(0.7,0.6)、圆柱 R2 (0.25,0.5)、环 R5xr1 (0.3,0.4)、make_sphere_surface (0.3,0.4) 取点回投:duv=0、pos=0(契约 1e-9/1e-12)。新增 NurbsSurfaceTest.ClosestPointParamIsExact。全量 8,744 执行/8,704 passed/0 failed/716.99s;注册 8,746;报告 437;版本 1.0.379。
2026-11-13 02:57:44 +08:00
hm
d89a0c67c4
test(curves): lock curve closest-point exactness on ellipse and helix (VDE-1586)
...
1.0.378: 新增 CurvesExactnessTest.CurveClosestPointIsExact——椭圆 3x2 与螺旋线 (R2/pitch3/h3/turns2) 上取点回投:位置误差 2.0e-15 / 3.1e-15;椭圆内点参数回代误差 <=1e-10(避开接缝,接缝处 t=0/1 等价)。契约:位置 1e-12、内点参数 1e-10。全量 8,743 执行/8,703 passed/0 failed/989.72s;注册 8,745;报告 436;版本 1.0.378。
2026-11-13 02:33:55 +08:00
hm
d9853a4587
test(curves): lock cylinder and sphere offset surface exactness (VDE-1585)
...
1.0.377: 实测 offset_surface 在圆柱/球面解析精确——圆柱 R2 偏置 +0.5/-0.5 径向误差 8.9e-16/4.4e-16;球 R2+0.5 半径误差 1.3e-15。新增 CurvesExactnessTest.OffsetCylinderAndSphereSurfacesAreExact(1e-12)。注:本轮首次跑全量时 DSH worker 因 Windows Job runner 0xC0000142 崩溃,1.0.377 测试与全量已用 ctest_377c 重跑通过(8,742/0/964.68s)。全量 8,742 执行/8,702 passed/0 failed/964.68s;注册 8,744;报告 435;版本 1.0.377。
2026-11-13 02:13:28 +08:00
hm
fa509d3f64
feat(curves): add curve_lies_on_surface degeneracy predicate (VDE-1584)
...
1.0.376: 1.0.375 记录了曲线整体落在曲面上时 curve_surface_intersection 返回 0 的限制。新增 curve_lies_on_surface(curve, surf, tolerance=1e-6):采样 33 个曲线点,全部到曲面距离 <= tol*尺度,且 project_point_on_surface 的 (u,v) 落在曲面参数域内(1e-9 相对边距)。实测:半径 sqrt(3)、z=1 的圆在球 R2 上 true;穿球直线 false;平面参数域内直线 true;离面 0.1 直线 false;域外直线 false。新增 AdvancedIntersectionTest.CurveLiesOnSurfaceDetection。全量 8,741 执行/8,701 passed/0 failed/826.18s;注册 8,743;报告 434;版本 1.0.376。
2026-11-13 00:50:46 +08:00
hm
a5f58ded38
test(curves): lock curve-surface intersection exactness on line-sphere (VDE-1583)
...
1.0.375: 新增 AdvancedIntersectionTest.CurveSurfaceIntersection_LineSphereIsExact——直线 (-5,0,0)->(5,0,0) 穿球 R2,返回 2 个交点:t=0.300000000/0.700000000,位置 (-2,0,0)/(2,0,0),点到曲面距离 8.9e-15/9.1e-15,|pos|=2 误差 <=1e-12。既有 CS 测试仅 1e-4 级,本用例把精度锁到 1e-9。全量 8,740 执行/8,700 passed/0 failed/884.46s (宿主负载较高);注册 8,742;报告 433;版本 1.0.375。
2026-11-13 00:29:45 +08:00
hm
463b6860b7
feat(curves): add is_cylindrical and is_spherical surface predicates (VDE-1582)
...
1.0.374: 新增 NurbsSurface::is_cylindrical(tol=1e-4)(可展 + 一个主曲率约 0、另一个为常值非零)与 is_spherical(tol=1e-4)(K 为正常数且 H^2≈K 脐点条件),参数域 5x5 采样。实测互斥精确:圆柱->仅 cylindrical;球->仅 spherical;平面/圆锥/环对两者均 false。用途:孔/轴/球面识别、布尔/偏置解析路径选择、加工策略分类。新增 NurbsSurfaceTest.CylindricalAndSphericalPredicates。全量 8,739 执行/8,699 passed/0 failed/856.18s;注册 8,741;报告 432;版本 1.0.374。
2026-11-13 00:08:02 +08:00
hm
0810cd1f7a
feat(curves): add is_developable surface predicate (VDE-1581)
...
1.0.373: 新增 NurbsSurface::is_developable(tol=1e-6)——参数域 6x6 采样点计算高斯曲率 K,全部 |K|<=tol 且有效点数>=9 判为可展。实测:平面/圆柱 R2/圆锥 R2->0.5 true;球 R2(K=0.25)/环 R5xr1 false。用途:钣金展开、圆柱/锥面识别、NC 侧铣解析路径。新增 NurbsSurfaceTest.IsDevelopableDetection。全量 8,738 执行/8,698 passed/0 failed/1063.03s(宿主负载较高);注册 8,740;报告 431;版本 1.0.373。
2026-11-12 23:43:04 +08:00
hm
f48c8d4a93
feat(curves): add is_circular curve predicate (VDE-1580)
...
1.0.372: 新增 NurbsCurve::is_circular(tol=1e-6)——先 is_planar 判定,再以 0.2/0.45/0.7 三个参数点外接圆为候选,检查 17 个采样点到圆心距离偏差 <= tol*尺度。实测:整圆 true(tol=1e-9 亦 true)、圆弧 true;椭圆(即使 tol=1e-2)/直线/螺旋线 false。用途:孔/轴/圆角识别、偏置解析路径选择、NC 圆弧输出。新增 NurbsCurveTest.IsCircularDetection。全量 8,737 执行/8,697 passed/0 failed/925.11s(宿主负载较高);注册 8,739;报告 430;版本 1.0.372。
2026-11-12 23:17:42 +08:00
hm
f4fcd2da97
Merge remote-tracking branch 'origin/main'
2026-11-12 22:51:30 +08:00