Commit Graph
1431 Commits
Author SHA1 Message Date
hm 8bb5a18992 feat(cae): opt-in voxel tetra fallback for freeform solids 2026-11-15 08:03:39 +08:00
hm 076658cae3 fix(mesh): structured UV grid for trimmed cylinders closes display seams 2026-11-15 07:56:21 +08:00
hm 476a687421 fix(mesh): use shared-boundary UV CDT when cylinder tessellation is out of bounds 2026-11-15 07:46:47 +08:00
hm 8d78e358ee fix(mesh): reject out-of-bounds display tessellation output 2026-11-15 06:12:02 +08:00
hm 2b6af1db01 fix(brep): rebuild split face shell and match coplanar edges geometrically 2026-11-14 23:18:40 +08:00
hm f0129de0ba fix(mesh): share display edge samples across duplicate geometric edges 2026-11-14 23:08:57 +08:00
hm 85470a990f fix(cae): orient sampled face loops along traversal direction 2026-11-14 22:43:44 +08:00
hm 56c945a194 fix(cae): match prism cap loops by area and cyclic proximity 2026-11-14 22:29:41 +08:00
hm 42cd08fdc9 fix(brep): refuse face_splitting on faces with inner loops 2026-11-14 22:19:41 +08:00
hm 416ea53013 fix(cae): weld star surface vertices before tetra construction 2026-11-14 22:07:24 +08:00
hm cf85551782 fix(cae): reject same-area non-prismatic sweep and validate star mesh 2026-11-14 21:44:05 +08:00
hm e0f79f6d0e feat(cae): structured tetra mesh for hollow sphere 2026-11-14 19:19:54 +08:00
hm 331ca2abdd feat(cae): structured tetra mesh for hollow torus 2026-11-14 19:16:28 +08:00
hm 9e28112bdd fix(cae): close cylinder/tube hex seams and validate hex output 2026-11-14 19:13:24 +08:00
hm 34e521d2b8 fix(cae): reject invalid general Delaunay tetra output 2026-11-14 19:01:40 +08:00
hm 1ae643197b feat(cae): validate volume mesh closure and volume error 2026-11-14 17:40:39 +08:00
hm f243175520 feat(cae): conical thin-wall midsurface and shell mesh 2026-11-14 17:31:22 +08:00
hm 1b3c465383 feat(cae): cone frustum tetra and reject tapered prism sweep 2026-11-14 17:28:34 +08:00
hm ed74bc22bf feat(cae): structured tetra mesh for solid torus 2026-11-14 17:25:01 +08:00
hm 14b99701b1 feat(cae): toroidal thin-wall midsurface and shell mesh 2026-11-14 17:18:53 +08:00
hm 4d291ec5a3 feat(cae): solid cylinder O-grid hex mesh 2026-11-14 17:08:22 +08:00
hm fcf4b77e81 feat(cae): star-shaped centroid tetra path for freeform solids 2026-11-14 17:03:30 +08:00
hm 2bac9a0a19 fix(brep): reject coplanar merge that changes total face area 2026-11-14 17:00:32 +08:00
hm 37e37fa755 feat(cae): coaxial tube structured hex mesh 2026-11-14 16:57:54 +08:00
hm ceb0a22871 feat(cae): spherical thin-wall midsurface and shell mesh 2026-11-14 16:54:34 +08:00
hm 5069fcfa8e feat(cae): cylindrical thin-wall midsurface and shell mesh 2026-11-14 16:51:49 +08:00
hm 1866f00efd feat(cae): planar midsurface and shell mesh for thin walls 2026-11-14 16:48:34 +08:00
hm 33a70a87a4 fix(cae): structured box hex with explicit unsupported diagnostic 2026-11-14 16:45:25 +08:00
hm 88860749d2 feat(cae): boundary-conforming tet mesh for extruded bodies 2026-11-14 16:42:16 +08:00
hm 7313e0723d feat(cae): extract cylindrical centerlines for VDE-1346 2026-11-14 16:36:44 +08:00
hm fa64a8bfe7 feat(io): unified format converter capability query 2026-11-14 16:35:09 +08:00
hm 2a504c0d2b fix(cae): robust winding test for fluid volume mesh filtering 2026-11-14 16:29:37 +08:00
hm 71ba3b10be fix(brep): guard entity geometry APIs against invalid indices 2026-11-14 14:47:47 +08:00
hm feb5497d15 Revert "fix(brep): default sphere resolution for watertight box-sphere difference"
This reverts commit 35ca74fc6a.
2026-11-14 01:49:20 +08:00
hm 4f33d6c894 fix(brep): 盒体抽壳开口面选择计入 reversed 朝向(VDE-1291)
build_box_shell_direct 用 compute_face_normal 扫描开口面,但该函数不携带
面的 reversed 翻转:底面 rev=1 的盒体(extrude 常见产出)底面打印法向朝上,
扫描先命中底面,把环形端盖建在 z=0 平面上,真正开口端无盖,体积恰丢
annulus/3(20x20x10 盒 2mm 壁:解析 1472 vs 正确 1952,网格 928)。

修复:开口朝向 nu 按面 reversed 翻转;开口面直接用调用方按位置选出的
open_face,仅退化时回退到计入 reversed 的朝向扫描。

验证:VD ComplexFeatures.ShellReducesVolumeAndKeepsFootprint 通过(网格
体积回到 1952 区间),VD 全量 13708 用例无回归。

(cherry picked from commit e609a7de99)
2026-11-14 01:30:58 +08:00
hm 3650d3cea0 Merge remote-tracking branch 'origin/main' 2026-11-13 22:27:05 +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 35ca74fc6a fix(brep): default sphere resolution for watertight box-sphere difference 2026-11-13 20:21:30 +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 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 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 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