Commit Graph
14 Commits
Author SHA1 Message Date
hm d2f0a40d10 fix(brep,mesh): entity diagnostics/ref validation + robust polygon triangulation (VDE-1342..1345, 1.0.176)
- VDE-1345 mesh: to_mcm ear-clips n>3 faces (Newell normal + 2D ear clipping,
  fallback to fan on degeneracy) and maps local triangle indices back to face
  vertices; empty HalfedgeMesh/PointCloud bounds return a finite zero box;
  faces_range()/vertex_one_ring() implemented (FaceRange iterator, adjacency
  from vertex outgoing half-edges).
- VDE-1342 FeatureNode: last_error()/last_evaluate_ok() diagnostics, stronger
  boolean success predicate, invalid primitive/edit parameters throw
  std::invalid_argument instead of being silently clamped.
- VDE-1343 edit_feature: face_ids range validation before the no-op early
  return, analytic hole location first, warnings on geometric fallback,
  15% radial consistency check between reference faces and matched hole.
- VDE-1344 rebind_entity: id hit now verified against the anchor distance
  (vertex/edge/face), falls back to nearest-anchor match, returns -1 when
  still mismatched; Body rebinds through anchor's nearest face.
- Tests: test_mesh_1177_fixes 11 cases, test_entity_1177_fixes 12 cases;
  registry 8,339 -> 8,362; full CTest 8,362/8,362 passed, 0 failed, 35 SKIP,
  635.55 s; release checks 14/14 PASS, report-check latest=224.
- Docs: report 224 (self-verification), verifier report 223 (1.0.175 PASS)
  included, RegressionExtreme count corrected to 10/10 (P3-1).
  Mesh VDE id renumbered 1341 -> 1345 to avoid collision with upstream
  docs/feedback/VDE-1341 (shell_multi).
2026-11-07 03:53:07 +08:00
hm 6827692f4e fix(brep,mesh): entity diagnostics/ref validation + robust polygon triangulation (VDE-1341..1344, 1.0.176)
- VDE-1341 mesh: to_mcm ear-clips n>3 faces (Newell normal + 2D ear clipping,
  fallback to fan on degeneracy) and maps local triangle indices back to face
  vertices; empty HalfedgeMesh/PointCloud bounds return a finite zero box;
  faces_range()/vertex_one_ring() implemented (FaceRange iterator, adjacency
  from vertex outgoing half-edges).
- VDE-1342 FeatureNode: last_error()/last_evaluate_ok() diagnostics, stronger
  boolean success predicate, invalid primitive/edit parameters throw
  std::invalid_argument instead of being silently clamped.
- VDE-1343 edit_feature: face_ids range validation before the no-op early
  return, analytic hole location first, warnings on geometric fallback,
  15% radial consistency check between reference faces and matched hole.
- VDE-1344 rebind_entity: id hit now verified against the anchor distance
  (vertex/edge/face), falls back to nearest-anchor match, returns -1 when
  still mismatched; Body rebinds through anchor's nearest face.
- Tests: test_mesh_1177_fixes 11 cases, test_entity_1177_fixes 12 cases;
  registry 8,339 -> 8,362; full CTest 8,362/8,362 passed, 0 failed, 35 SKIP,
  635.55 s; release checks 14/14 PASS, report-check latest=224.
- Docs: report 224 (self-verification), verifier report 223 (1.0.175 PASS)
  included, RegressionExtreme count corrected to 10/10 (P3-1).
2026-11-07 03:37:30 +08:00
hm b98ca6373c feat(brep): entity/curve/mesh audit fixes, robust numeric inputs (VDE-1329..1340, 1.0.175)
- entity/feature layer: split_body shell IDs, shell_face_ids bounds, empty
  FeatureHistory, multi-body Euler warning, config dependency cycles, undo off-by-one
- VDE-1335: serialize assembly flex joints in additive section 16 with validation
- curves: P0 crashes (degree=0 derivative, empty Bezier, negative index/degree,
  weights mismatch, empty domain), k-order derivative, repeated-knot NaN,
  degenerate self-intersection; stricter constructors and C API boundary guards
- VDE-1337: exact planar trim handles curves enclosing/inside existing holes and
  repeated trims of single-closed-edge outer loops
- mesh: O(1) vertex queries, O(F+V) update_normals (~2035x/36588x), validated
  construction, empty-operand boolean set semantics, save_ply length checks
- VDE-1339/1340: finite guards in primitive builders (NaN/Inf return empty body)
  and in intersection curve fitting (never throw inside OpenMP regions)
- tests: 8,290 -> 8,339; full CTest 8,339/8,339 passed, 0 failed, 35 skipped
- reports: 219, 221 (independent verification), 222 (self verification)
2026-11-06 23:49:19 +08:00
hm ea8aaf0759 perf(gpu): OpenCL point-cloud normal/SOR batch + cl_mem_flags fix (1.0.142)
- add ComputeBackend::point_normal_stats_batch (non-pure, CPU default fallback)
- OpenCL: spatial-hash grid build + 27-neighbourhood PCA normal/mean-distance kernels
- PointCloud normal_estimation / statistical_outlier_removal: GPU path above 20k points,
  always fall back to CPU; report capability honestly via point_cloud_gpu_available()
- fix cl_mem_flags constants to OpenCL spec (READ_ONLY=4, WRITE_ONLY=2, READ_WRITE=1);
  wrong values made new read-write buffers fail with CL_INVALID_VALUE(-30)
- fix tool selftest registration: use BUILD_TESTS and enable_testing() before tools/
- 100k pts: normals 162.7x, SOR 123.3x; real STL 100k pts: 57-111x; exact CPU agreement
- full CTest 8128/8128, release check 14/14
2026-11-04 07:59:36 +08:00
hm 65c326a36e feat(e57): page CRC layer and tolerant read (1.0.131) 2026-11-03 10:43:43 +08:00
hm df122fddde feat(fmt): E57 standard sections and AcDs diagnostics (1.0.130) 2026-11-03 07:55:38 +08:00
hm 5f4d714979 chore(capi,mesh,foundation): Phase5 警告清零 154→0 — vde_capi 98(dllexport/未用函数)、mesh 全族、io_collada 死路径、vde_format 类型;顺带修 fea_mesh growth_rate 未生效(层厚恒首层)与 reverse_engineering RegionSegment::centroid 未初始化两个真实缺陷;industrial_formats 98/98、point_cloud 12/12、tess 5/5、halfedge 17/17、mesh 27 套件全绿 2026-10-26 11:39:05 +08:00
hm c8519864a5 feat(io): Phase4 LAZ 真实写出(LAS 1.2 LASzip compressor=2 pointwise+chunked,POINT10 v2+RGB12 v2 算术编码/chunk table);自读回 + 第三方 laspy/lazrs 互验 5e-7、120k 点 3 chunk 全对、压缩 2.5× 2026-10-26 06:48:39 +08:00
hm f3cf445f8a feat(io): A-9c 3MF 内置 Deflate 写出(6.61×、ZIP method=8/.NET 互操作)+ E57 最小写出(坐标无损、法线/RGB/强度往返)+ LAZ 诚实 Unsupported 2026-10-26 00:52:05 +08:00
hm c273be832a feat(io,capi): A-9 非 DWG 数据交换补全 — 点云 LAS/PTX 写出、glTF 可取消写、3MF 压缩诊断/降级、C API 7 格式网格 IO(顺带修复 import_gltf 外部 bin 越界崩溃) 2026-10-25 23:37:24 +08:00
hm 0812fe209e docs: 全库文档统一与文件头注释补齐(对标计划/指南/API 参考同步) 2026-08-19 13:25:52 +08:00
茂之钳 0235dcaab0 fix: VDE-330~VDE-332 — implement ViewDesign feedback items
Build & Test / build-and-test (push) Has been cancelled
VDE Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
VDE-330: PointCloud::normal_aware_smoothing()
  - Per-iteration normal recomputation via kNN PCA before bilateral correction
  - Better results on noisy scan data

VDE-331: rotated_section, multi_section, section_properties()
  - Rodrigues rotation for angled section planes
  - Multi-body batched section
  - Green's theorem polygon-approximation of area/centroid/moments

VDE-332: hlr_depth_buffer, hlr_classified, hlr_standard_views
  - Depth-buffer HLR wrapper (aligned with existing z-buffer in hlr_edges)
  - Edge classification via dihedral angle (Silhouette/Crease/Tangent)
  - Six standard orthographic views in one call

Build: ✅ vde_mesh + vde_brep compile clean
2026-08-02 23:59:09 +08:00
茂之钳 cd9fcc9b1f feat: COLLADA + AMF + VRML + G-code import + E57/LAS point cloud
CI / Build & Test (push) Failing after 17m6s
CI / Release Build (push) Failing after 35s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
COLLADA 1.4/1.5 (.dae): import/export with materials + scene graph
AMF 1.2 ISO/ASTM: multi-object with color + metadata
VRML 1.0/97: IndexedFaceSet + Transform + Material
G-code import: G00-G03/G17-G19/G20-G21/G81-G83/G90-G91/M/S/T
E57/LAS: point cloud with classification + RGB + intensity

27/28 tests pass (1 COLLADA edge case)
2026-07-30 21:24:49 +08:00
茂之钳 66777e0839 feat(v6.1): 5-axis CAM + reverse engineering + FEA mesh generation
CI / Build & Test (push) Failing after 38s
CI / Release Build (push) Failing after 31s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
v6.1.1 — 5-Axis CAM:
- cam_5axis.h/.cpp: swarf_machining, multi_axis_roughing/finishing
- 4 tool axis strategies, AC/BC/AB machine configs
- inverse_kinematics, collision detection (holder+shank)
- 30 tests, compilation passes

v6.1.2 — Reverse Engineering:
- point_cloud.h/.cpp: PointCloud class, PLY/E57/PTX loading
- voxel_downsample, statistical_outlier_removal, kNN normal estimation
- reverse_engineering.h/.cpp: Poisson surface reconstruction
- mesh_to_nurbs_surface (quad remesh + LSQ fitting)
- fit_plane (SVD), hole_filling, curvature-aware sampling
- 19 tests

v6.1.3 — FEA Mesh Generation:
- fea_mesh.h/.cpp: tetrahedral (Delaunay 3D), boundary layer (prism)
- hexahedral (sweep/extrude), adaptive refinement
- MeshQuality: skewness, aspect_ratio, Jacobian, orthogonality
- export_abaqus/ansys/nastran formats
- 15 tests, 7/8 quality metrics verified
2026-07-26 22:08:38 +08:00