- VDE-1348: 316 damaged comment lines in 4 source files restored via mbcs
inverse transform + GB18030 reverse table + parent-version alignment;
remaining 5 scattered lines hand-fixed; repo-wide PUA/U+FFFD now 0.
- VDE-1347: topological_name(generation,...) resolves the requested
generation instead of always the latest; name_from_generation() added;
unknown generation returns an empty string.
- VDE-1346: shell_multi validates results and returns an empty model when
the shell is topologically invalid; docs narrowed to convex planar solids.
- VDE-1349: plugin SDK package config now generated under
build/package/vde-plugin-sdk/ and stale copies are removed, so a PATH
containing build/src can no longer make plugin templates' find_package
hit a configured-but-uninstalled config and fail; scaffold smoke asserts
no leak at the build root.
- Tests: 5 new cases (8,370 -> 8,372); full CTest 8,372 executed,
8,337 passed, 0 failed, 35 skipped, 712.96 s; release check 14/14 PASS.
shell_multi keyed inner vertices by (face_id, vertex_id), so every adjacent
face duplicated the inner point of a shared outer vertex; inner surfaces at
edges/corners were disconnected and self-intersected (upstream 60x60x20 case
with t=4/2 gave volume 105920 instead of 34368).
- equal thickness now delegates to shell() (shared-vertex inward offset)
- unequal thickness builds an inner cavity by intersecting per-face offset
half-spaces and returns brep_difference(body, cavity); miter steps and open
side walls come from the boolean itself
- non-finite/non-positive thickness and invalid open_face return an empty
model instead of a self-intersecting body
- add 7-case test_shell_multi_1341, switch 3 old modeling assertions to volumes
- fix stale placeholders: report 212 summary PENDING_FULL, CHANGELOG 1.0.176
test count; vde_release report-refs accepts labels like [226 自验证](...)
Tests: shell_multi 7/7, brep_modeling 80/80, targeted 149/149,
full CTest 8,369/8,369 passed, 0 failed, 35 skipped (525.23 s).
- 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).
- 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).
- exact_face_trim: drop the blanket rejection of loops made of one closed
curve edge (STEP full-circle / full-ellipse caps, v_start == v_end);
fill p_from/p_to/has_curve on the early-return branch (was left as
{0,0,0}/false), and stop treating a zero-chord closed edge as a line
(probe denominator was max(chord,1e-30) -> deviation always 0).
- Only the no-intersection branches are enabled; a curve crossing a
non-linear outer boundary is still rejected with a clear error.
- tests: 3 new cases (split inside/outside with exact radii, enclosing /
disjoint, crossing rejection) and the degenerate-closed-edge subcase;
test_exact_face_trim 22 -> 25 cases, 25/25 PASS.
- real-model evidence: a 249.5 MB STEP copy has 5 closed edges and one
face whose outer loop is a single closed curve edge (60,029 faces).
- report: docs/reference/220 (full regression 8,290/8,290, 0 failed,
35 SKIP, 562.65 s; release check 14/14 PASS).
- also commit report 217 (independent verification of 1.0.172, PASS).
- brep_validate.cpp: a closed orientable 2-manifold has chi = 2-2g, so legal
solids with genus > 0 (through-hole tori, chi=0) or multiple shells (chi=4)
no longer receive the misleading "expected 2 for closed genus-0 solid"
warning (verifier 215 P3-2). The count hint is now emitted only while the
topology is not confirmed closed (boundary/dangling/non-manifold edges,
coincident pinches or untrimmed faces); the message points at those causes.
- The odd-chi error path for single closed manifold bodies is unchanged.
- brep_validate.h: document the new warning semantics.
- test_brep_validate: new EulerWarnsOnlyWhenTopologyIsNotClosedManifold
(torus clean, two disjoint boxes union clean, open shell still warns);
47/47 pass, 8,286 -> 8,287 registered tests.
- docs/reference/214 errata from verifier 215 P3-3/4/5/6 (modeling 80/80,
measured timing, incremental build wording, +57/-0 diff wording).
- report 218, CHANGELOG and index updates.
- Full CTest: 8,287/8,287 passed, 0 failed, 35 skipped, 857.96 s.
- BooleanQualityOptions: verify_volume is now "force any size"; add
verify_volume_small_results (default true) and verify_volume_max_faces
(default 200) so results up to 200 faces are volume-checked by default.
BooleanQualityReport adds volume_auto.
- boolean_quality.cpp: run analytic-vs-mesh divergence volume comparison when
forced or when faces <= threshold. VDE-1325 fixed Euler counting, after which
the 9-face cone-minus-through-cylinder result is a closed orientable manifold
(chi=0, watertight 1.0) whose exact circles were replaced by straight
diamonds (+45.6% analytic volume, rel 0.313); only the volume cross-check
can detect it. to_mesh yields a boundary-free mesh for that body as well.
- measure.cpp: gate the unconditional "[analytic] DEGRADED" stderr line behind
VDE_ANALYTIC_DEBUG; degraded state remains queryable via degraded_reason()
and volume_measurement_degraded (verifier 213 P3-6).
- tests: test_brep_boolean 47/47; box/through/cone cases assert volume_auto;
new AutoVolumeCheckSkipsLargeResults covers the opt-out path.
- docs: report 216, design/boolean-defects update, CHANGELOG, index entries.
- Full CTest: 8,286 registered, 8,286 executed, 0 failed, 35 skipped, 620.53 s.
- brep_validate: chi = V - E + F - sum(k-1) with merged vertices, deduplicated
edges, referenced-vertices-only V, and 2-cell (2-k) correction for faces with
k boundary loops. Through-hole solids now report chi=0 (torus) instead of 2;
bolts (old chi=3) and directly drilled plates (old chi=2) are corrected.
- brep_validate.h: new euler_parity_consistent field; odd chi on a single-body
closed manifold (watertight, no dangling/non-manifold/pinch edges, no
untrimmed faces) now sets valid=false. Multi-body assemblies are exempt.
- tests: 3 validate cases (box/torus even, make_hole through hole chi=0, two
boxes touching at a corner chi=3 => invalid); boolean quality tests aligned
with torus semantics (through cylinder chi 2 -> 0; cone-cylinder caught by
opt-in volume check since chi is now even and consistent).
- docs: report 214, verifier 213 report (1.0.170 PASS, P0/P1/P2=0, P3=6),
CHANGELOG, index and reference README at 1.0.171 / 8,285 tests.
Verification: build 0 error / 0 warning; ctest 8,285/8,285 passed, 0 failed,
35 skipped, 861.08 s; vde_release.py --check 14/14 PASS; --report-check PASS.
VDE-1293: Token now holds a string_view into the parser buffer instead of an owned std::string; punctuation tokens no longer allocate; String tokens keep the raw span and are unescaped once at the consumption point. 249.5MB real STEP parse 7.90-8.08s -> 6.78-6.86s (1.15-1.17x), full import ~1.08x, per-body geometry fingerprint unchanged. Adds apostrophe-semantics regression test; registered tests 8166 -> 8167.