step-examples/12-5-units/U049.stp
Sources
- synthesized — SASIG PDQ structural (structural-linter v1)
- models the "inconsistent units within one representation" PDQ class.
Description
A single `GLOBAL_UNIT_ASSIGNED_CONTEXT` assigns TWO distinct length units — `SI_UNIT(.MILLI.,.METRE.)` and `SI_UNIT(.CENTI.,.METRE.)` — leaving the model's length scale ambiguous. OCC silently binds the first length unit it encounters and ignores the second, so the loaded shape and every geometry-kernel shape-count are byte-identical to a clean single-unit model. This is exactly an ORACLE-INVISIBLE defect: the shape-count oracles cannot see it. The non-kernel structural linter flags `UNITS_INCONSISTENT`.
Reproducer recipe
a `GLOBAL_UNIT_ASSIGNED_CONTEXT((#milli,#centi,#angle,#solid))` binding two length units of different SI prefix.
Expected kernel behavior
a robust importer should reject or warn on a representation context with more than one length unit rather than silently defaulting; scale ambiguity must not pass unnoticed.
Notes
Provenance_tier: bytes-sufficient. SASIG PDQ structural (structural-linter v1). The defect is invisible to occt/gmsh shape-counts (both load shape(1)/shape(9) identically to a clean model); discrimination comes solely from the `structural` oracle. Synonyms: "STEP two length units one context", "GLOBAL_UNIT_ASSIGNED_CONTEXT conflicting units", "inconsistent model scale silent default", "SASIG PDQ inconsistent units".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b'SI_UNIT(.MILLI.,.METRE.)')contains(b'SI_UNIT(.CENTI.,.METRE.)')
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* U049: two conflicting length units (MILLI + CENTI metre) assigned to one 3 GLOBAL_UNIT_ASSIGNED_CONTEXT. OCC silently binds the first and ignores the 4 second, so occt/gmsh shape-counts are identical to a clean single-unit model 5 (oracle-invisible). The structural linter flags UNITS_INCONSISTENT. */ 6HEADER; 7FILE_DESCRIPTION(('U049'),'2;1'); 8FILE_NAME('U049.stp','2026-07-06T00:00:00',(''),(''),'cad-research-suite','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 10ENDSEC; 11DATA; 12#9000=APPLICATION_CONTEXT('mechanical design'); 13#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 14#2=CARTESIAN_POINT('',(10.0,0.0,0.0)); 15#3=CARTESIAN_POINT('',(10.0,10.0,0.0)); 16#4=CARTESIAN_POINT('',(0.0,10.0,0.0)); 17#5=VERTEX_POINT('',#1); 18#6=VERTEX_POINT('',#2); 19#7=VERTEX_POINT('',#3); 20#8=VERTEX_POINT('',#4); 21#9=DIRECTION('',(1.0,0.0,0.0)); 22#10=VECTOR('',#9,10.0); 23#11=LINE('',#1,#10); 24#12=EDGE_CURVE('',#5,#6,#11,.T.); 25#13=DIRECTION('',(0.0,1.0,0.0)); 26#14=VECTOR('',#13,10.0); 27#15=LINE('',#2,#14); 28#16=EDGE_CURVE('',#6,#7,#15,.T.); 29#17=DIRECTION('',(-1.0,0.0,0.0)); 30#18=VECTOR('',#17,10.0); 31#19=LINE('',#3,#18); 32#20=EDGE_CURVE('',#7,#8,#19,.T.); 33#21=DIRECTION('',(0.0,-1.0,0.0)); 34#22=VECTOR('',#21,10.0); 35#23=LINE('',#4,#22); 36#24=EDGE_CURVE('',#8,#5,#23,.T.); 37#25=ORIENTED_EDGE('',$,$,#12,.T.); 38#26=ORIENTED_EDGE('',$,$,#16,.T.); 39#27=ORIENTED_EDGE('',$,$,#20,.T.); 40#28=ORIENTED_EDGE('',$,$,#24,.T.); 41#29=EDGE_LOOP('',(#25,#26,#27,#28)); 42#30=DIRECTION('',(0.0,0.0,1.0)); 43#31=DIRECTION('',(1.0,0.0,0.0)); 44#32=AXIS2_PLACEMENT_3D('',#1,#30,#31); 45#33=FACE_OUTER_BOUND('',#29,.T.); 46#34=PLANE('',#32); 47#35=ADVANCED_FACE('',(#33),#34,.T.); 48#36=OPEN_SHELL('',(#35)); 49#37=SHELL_BASED_SURFACE_MODEL('',(#36)); 50#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 51#9051=PRODUCT('U049','U049','',(#9050)); 52#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 53#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 54#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 55#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 56#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 57#9063=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.CENTI.,.METRE.)); 58#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 59#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 60#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 61#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9063,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 62#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#37),#9060); 63#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 64ENDSEC; 65END-ISO-10303-21;