step-examples/12-4-tolerance/Tb021.stp
Sources
- synthesized time-bomb.
Description
A `GEOMETRIC_REPRESENTATION_CONTEXT` lists three `UNCERTAINTY_MEASURE_WITH_UNIT`s with values 1e-3, 1e-6, 1e-9 and no distinguishing `name` field. The spec allows the list. A kernel taking `min` (most strict) uses 1e-9. A kernel taking `max` (most lax) uses 1e-3. A kernel taking the first uses 1e-3. A kernel taking the last uses 1e-9. Same file, four different working tolerances depending on receiver policy. All other tolerance-boundary defects in this section are amplified by this ambiguity.
Reproducer recipe
PRODUCT-wrapped simple shape; context lists three unlabelled `UNCERTAINTY_MEASURE_WITH_UNIT`s with values 1e-3, 1e-6, 1e-9.
Expected kernel behavior
multiple uncertainties must be either resolved by a documented selection policy (min/max/labelled) or rejected as ambiguous.
Notes
Searchable as "multiple uncertainty values STEP", "tolerance. Synonyms: "three uncertainty values no labels", "ambiguous which uncertainty applies", "conflicting tolerances in same context", "multiple UNCERTAINTY_MEASURE_WITH_UNIT entries". ambiguity in context".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
count_entity_def(b'UNCERTAINTY_MEASURE_WITH_UNIT') == 3contains(b'1.0E-3') and contains(b'1.0E-6') and contains(b'1.0E-9')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tb021: three unlabelled UNCERTAINTY_MEASURE_WITH_UNIT (1.0E-3/1.0E-6/1.0E-9); min/max/first/last policies give four different working tolerances; ambiguous which applies; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Tb021'),'2;1'); 5FILE_NAME('Tb021.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('',(0.0,0.0,0.0)); 10#2=CARTESIAN_POINT('',(1.0,0.0,0.0)); 11#3=VERTEX_POINT('',#1); 12#4=VERTEX_POINT('',#2); 13#5=DIRECTION('',(1.0,0.0,0.0)); 14#6=VECTOR('',#5,1.0); 15#7=LINE('',#1,#6); 16#8=EDGE_CURVE('e',#3,#4,#7,.T.); 17#9=GEOMETRIC_CURVE_SET('cs',(#8)); 18#10=APPLICATION_CONTEXT('automotive_design'); 19#11=PRODUCT_CONTEXT('',#10,'mechanical'); 20#12=PRODUCT('Tb021','Tb021','',(#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=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-3),#17,'',''); 29#21=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-6),#17,'',''); 30#22=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-9),#17,'',''); 31#23=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#20,#21,#22))GLOBAL_UNIT_ASSIGNED_CONTEXT((#17,#18,#19))REPRESENTATION_CONTEXT('ctx','3D')); 32#24=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#9),#23); 33#25=SHAPE_DEFINITION_REPRESENTATION(#16,#24); 34ENDSEC; 35END-ISO-10303-21;