step-examples/12-4-tolerance/N018.stp
Sources
- 04-occt-translation Q043, Q044
Description
When a STEP file's `GEOMETRIC_REPRESENTATION_CONTEXT` lacks the `GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT` leaf — for example carries only `GLOBAL_UNIT_ASSIGNED_CONTEXT` and no `UNCERTAINTY_MEASURE_WITH_UNIT` for the model — OCCT silently falls back to the `read.precision.val` parameter. Models from such files all share whatever precision the user happened to configure, regardless of source.
Reproducer recipe
STEP file lacking `*_AND_GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT` complex entity; reference only bare `geometric_representation_context`.
Expected kernel behavior
heal — emit explicit "no uncertainty context" diagnostic; require user to confirm fallback; do not silently default.
Notes
**See also**: U025. **OCC behavior**: silently falls back to the configured working precision with no diagnostic; kernel mishandling; the catalog above forbids silent default. Synonyms: "no UNCERTAINTY_MEASURE in file", "model precision falls back to user setting", "tolerance silently inherits read.precision", "GEOMETRIC_REPRESENTATION_CONTEXT lacks uncertainty leaf".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
not_contains(b'UNCERTAINTY_MEASURE_WITH_UNIT(')contains(b'GEOMETRIC_REPRESENTATION_CONTEXT')count_entity_def(b'EDGE_CURVE') == 1
Tier-3 assertions
shape_null == True
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/* N018: GEOMETRIC_REPRESENTATION_CONTEXT with GLOBAL_UNIT_ASSIGNED_CONTEXT only; no UNCERTAINTY_MEASURE_WITH_UNIT; OCCT silently falls back to read.precision.val; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N018'),'2;1'); 5FILE_NAME('N018.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('p0',(0.0,0.0,0.0)); 10#2=CARTESIAN_POINT('p1',(10.0,0.0,0.0)); 11#3=VERTEX_POINT('v0',#1); 12#4=VERTEX_POINT('v1',#2); 13#5=DIRECTION('',(1.0,0.0,0.0)); 14#6=VECTOR('',#5,10.0); 15#7=LINE('',#1,#6); 16#8=EDGE_CURVE('edge',#3,#4,#7,.T.); 17#9=GEOMETRIC_CURVE_SET('edges',(#8)); 18#10=APPLICATION_CONTEXT('automotive_design'); 19#11=PRODUCT_CONTEXT('',#10,'mechanical'); 20#12=PRODUCT('N018','N018','',(#11)); 21#13=PRODUCT_DEFINITION_FORMATION('','',#12); 22#14=PRODUCT_DEFINITION_CONTEXT('part definition',#10,'design'); 23#15=PRODUCT_DEFINITION('','',#13,#14); 24#16=PRODUCT_DEFINITION_SHAPE('','',#15); 25#17=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 26#18=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 27#19=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 28#20=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNIT_ASSIGNED_CONTEXT((#17,#18,#19))REPRESENTATION_CONTEXT('ctx','3D')); 29#21=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#9),#20); 30#22=SHAPE_DEFINITION_REPRESENTATION(#16,#21); 31ENDSEC; 32END-ISO-10303-21;