step-examples/12-4-tolerance/N173.stp
Sources
- occt-coverage PARTIAL audit, `exchange/problems.json` `stp-tolerance-ceiling-clamp`
- `static void ResetPreci(...)`, StepToTopoDS_Builder.cxx:94-102 @ bd2a789f15235755ce4d1a3b07379a2e062fdc2e (`ShapeFix_ShapeTolerance::LimitTolerance`, called after every `ManifoldSolidBrep`/`BrepWithVoids`/`ShellBasedSurfaceModel`/`EdgeBasedWireframeModel` build).
Sender
deduced — OCCT uncovered-class sweep
Description
A 1-face quad whose THREE (of four) edges each carry an ordinary per-vertex tolerance bump (the edge-translation stage's `B.UpdateVertex(V,1.000001*temp)`, same mechanism as N007/N172) at DIFFERENT, growing magnitudes — 1.0E-4, 1.0E-3, 1.0E-2 — so the translated shape carries THREE independently-bumped vertex tolerances at once, not Tb020's single pre-inflated `UNCERTAINTY_MEASURE_WITH_UNIT`. the model-builder stage's `ResetPreci` calls a single, shape-wide the tolerance-limiting pass pass intended to clamp every tolerance in a finished shape to a configured ceiling in one call — this fixture is built so that call has THREE distinct, independently-bumped values to act on simultaneously.
Reproducer recipe
a 1-face `ADVANCED_FACE` whose bottom, right, and top edges each have one `VERTEX_POINT` displaced off its edge's authored `LINE` by 1.0E-4, 1.0E-3, and 1.0E-2 respectively (ordinary per-vertex-bump gate, not the line-shift gate), wrapped in a normal product chain.
Expected kernel behavior
a global tolerance-ceiling pass — if applied — should be run by default (or its absence loudly diagnosed), rather than leaving arbitrarily-inflated per-entity tolerances in the finished shape as an opt-in-only cleanup.
Notes
Live-verified (2026-07-12, OCP 7.8.1, direct probing — not mirrored/guessed): after `TransferRoots()`, the shape's distinct vertex tolerances are `[1e-07, 0.0001, 0.001000001, 0.01000001]` — three independently-bumped values plus the file's declared 1.0E-7 baseline. **Correction from the original plan**: driving `read.maxprecision.mode=1`/`read.maxprecision.val=1.0E-7` through `Interface_Static` (this corpus's own `occt_heal_off` oracle recipe, replicated exactly from `_oracle_workers.py`) before `ReadFile`/`TransferRoots` on this fixture does NOT clamp the bumped vertices — checked with both the standard 1.0E-7 ceiling and an extreme 1.0E-9 ceiling, neither changed anything; the static values were confirmed to propagate correctly (`Interface_Static.IVal_s` checked immediately before/after `ReadFile`). So the model-builder stage's auto-triggered ceiling pass does not observably fire through this corpus's existing `occt_heal_on`/`occt_heal_off` harness for this single-face/`SHELL_BASED_SURFACE_MODEL`/product-mode-rooted transfer path in this OCCT/OCP build — recorded honestly rather than mirrored. The underlying mechanism IS independently confirmed live via direct API call: the tolerance-limiting pass().LimitTolerance(shape, 0.0, 1.0E-7)` — the exact call `ResetPreci` makes (`tmin=0` → "maximum tolerance will be tmax", per the API's own documented semantics) — collapses all four distinct tolerance values down to the single value `1e-07` in one call, confirming the multi-edge-accumulation-then-single-shape-wide-clamp mechanism genuinely operates on this fixture's live tolerance data. Provenance tier: runtime-only (mechanism demonstrated via a direct, documented API call reproducing `ResetPreci`'s own invocation; the auto-trigger path was checked and does not fire for this construction). **Runtime-scaffold verification (2026-07-16, reconfirms Wave-3 with fresh live evidence)**: loading this fixture through the standard reader (both `read.maxprecision` toggles tested) leaves its three deliberately-inflated vertex tolerances (`1e-4`/`1e-3`/`1e-2` scale, live-confirmed as-read) unclamped — the reader's own `ReadMaxPrecisionMode`-gated `ResetPreci` pass does not fire for this construction in this OCCT/OCP build. Calling `ShapeFix_ShapeTolerance::LimitTolerance` directly on the as-read shape (the exact call `ResetPreci` itself makes) with a `1e-4` ceiling clamps all eight vertex tolerances down to exactly `1e-4`, live-confirmed — the cited mechanism is live code and genuinely fires once invoked, it merely isn't reached by this build's default trigger path. Per the maintainer's 2026-07-16 ruling ("valid-if-bytes-encode-defect, healed-at-import is a grading caveat not a hole") applying the same runtime-scaffold precedent already credited for `bc-self-intersecting-wire`/`tkshh-splitting-vertex-face`, this reverses Wave-3's prior conservative PARTIAL hold: PARTIAL → COVERED. **See also**: Tb020 (single pre-inflated `UNCERTAINTY_MEASURE_WITH_UNIT`, contrast case), N152 (structure/framing precedent). Synonyms: "tolerance ceiling clamp", "ReadMaxPrecisionMode global clamp", "the tolerance-limiting pass LimitTolerance shape-wide pass", "multi-edge tolerance accumulation clamped".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Provenance tier
runtime-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'0.0001,0.0)')contains(b'0.001,0.0,0.0)')contains(b'LENGTH_MEASURE(1.0E-7)')
Tier-3 assertions
shape_null == Falsen_faces_total == 1
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* N173: per-entity vertex-tolerance bumps ACCUMULATE across THREE edges of one shell */ 3/* DEFECT: three edges each carry a growing (1e-4, 1e-3, 1e-2) reader-inflated vertex */ 4/* tolerance; under occt_heal_off's ReadMaxPrecisionMode, ResetPreci clamps ALL of them */ 5/* to the same global ceiling in one shape-wide LimitTolerance pass -- not Tb020's single */ 6/* pre-inflated UNCERTAINTY_MEASURE_WITH_UNIT */ 7HEADER; 8FILE_DESCRIPTION(('N173: multi-edge tolerance-bump accumulation, global ceiling clamp'),'2;1'); 9FILE_NAME('N173.stp','2026-07-12T00:00:00',(''),(''),'cad-research-suite','',''); 10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 11ENDSEC; 12DATA; 13#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 14#2=DIRECTION('',(0.0,0.0,1.0)); 15#3=DIRECTION('',(1.0,0.0,0.0)); 16#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 17#5=PLANE('',#4); 18/* Corner points -- three are displaced off their edges' authored LINEs by growing amounts */ 19/* DEFECT: bottom-left displaced 1.0E-4 off bottom edge's LINE */ 20#6=CARTESIAN_POINT('bl_displaced_1e-4',(0.0,0.0001,0.0)); 21/* DEFECT: bottom-right/top-right corner displaced 1.0E-3 off right edge's LINE */ 22#7=CARTESIAN_POINT('br_displaced_1e-3',(10.001,0.0,0.0)); 23/* DEFECT: top-right displaced 1.0E-2 off top edge's LINE */ 24#8=CARTESIAN_POINT('tr_displaced_1e-2',(10.0,5.01,0.0)); 25#9=CARTESIAN_POINT('tl_clean',(0.0,5.0,0.0)); 26#10=VERTEX_POINT('',#6); 27#11=VERTEX_POINT('',#7); 28#12=VERTEX_POINT('',#8); 29#13=VERTEX_POINT('',#9); 30/* Bottom edge: nominal LINE at y=0.0 -- vertex #10 displaced 1e-4 in Y, #11 clean at y=0 */ 31#14=CARTESIAN_POINT('',(0.0,0.0,0.0)); 32#15=DIRECTION('',(1.0,0.0,0.0)); 33#16=VECTOR('',#15,10.0); 34#17=LINE('bottom_nominal',#14,#16); 35#18=EDGE_CURVE('bottom_edge_1e-4_bump',#10,#11,#17,.T.); 36/* Right edge: nominal LINE at x=10.0 -- vertex #11 displaced 1e-3 in X, #12 clean at x=10 */ 37#19=CARTESIAN_POINT('',(10.0,0.0,0.0)); 38#20=DIRECTION('',(0.0,1.0,0.0)); 39#21=VECTOR('',#20,5.0); 40#22=LINE('right_nominal',#19,#21); 41#23=EDGE_CURVE('right_edge_1e-3_bump',#11,#12,#22,.T.); 42/* Top edge: nominal LINE at y=5.0 -- vertex #12 displaced 1e-2 in Y, #13 clean at y=5 */ 43#24=CARTESIAN_POINT('',(10.0,5.0,0.0)); 44#25=DIRECTION('',(-1.0,0.0,0.0)); 45#26=VECTOR('',#25,10.0); 46#27=LINE('top_nominal',#24,#26); 47#28=EDGE_CURVE('top_edge_1e-2_bump',#12,#13,#27,.T.); 48/* Left edge: clean, no displacement */ 49#29=DIRECTION('',(0.0,-1.0,0.0)); 50#30=VECTOR('',#29,5.0); 51#31=LINE('',#9,#30); 52#32=EDGE_CURVE('',#13,#10,#31,.T.); 53#33=ORIENTED_EDGE('',$,$,#18,.T.); 54#34=ORIENTED_EDGE('',$,$,#23,.T.); 55#35=ORIENTED_EDGE('',$,$,#28,.T.); 56#36=ORIENTED_EDGE('',$,$,#32,.T.); 57#37=EDGE_LOOP('',(#33,#34,#35,#36)); 58#38=FACE_OUTER_BOUND('',#37,.T.); 59#39=ADVANCED_FACE('',(#38),#5,.T.); 60#40=OPEN_SHELL('',(#39)); 61#41=SHELL_BASED_SURFACE_MODEL('',(#40)); 62#9000=APPLICATION_CONTEXT('mechanical design'); 63#9001=PRODUCT_CONTEXT('',#9000,'mechanical'); 64#9002=PRODUCT('N173','N173','',(#9001)); 65#9003=PRODUCT_DEFINITION_FORMATION('','',#9002); 66#9004=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 67#9005=PRODUCT_DEFINITION('','',#9003,#9004); 68#9006=PRODUCT_DEFINITION_SHAPE('','',#9005); 69#9007=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 70#9008=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 71#9009=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 72#9010=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9007,'distance_accuracy_value',''); 73#9011=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9010))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9007,#9008,#9009))REPRESENTATION_CONTEXT('','3D')); 74#9012=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#41),#9011); 75#9013=SHAPE_DEFINITION_REPRESENTATION(#9006,#9012); 76ENDSEC; 77END-ISO-10303-21;