step-examples/12-2c-surfaces/Gs207.stp
Sources
- ISO 10303-42 `axis2_placement_3d` `WR3: (NOT EXISTS(ref_direction)) OR (ref_direction.dim = 3)`, read from the AP242 MIM LF EXPRESS schema (stepcode `data/ap242/242_mim_lf.exp`). Spec-driven — the second fixture of the WHERE-rule-mining vein (sibling of Gs206).
Description
A 3D placement's `ref_direction` must itself be 3-dimensional (WR3). Here the conical surface's `AXIS2_PLACEMENT_3D` uses `DIRECTION('bad2d',(1.0,0.0))` — a 2-ratio (dim = 2) direction — as its `ref_direction`, violating WR3. OCCT accepts the file and builds the cone solid (`shape(1)`, non-null) with no diagnostic; `part21_strict` accepts (a 2-ratio DIRECTION is valid Part-21 syntax); the non-kernel structural linter is silent. Every oracle here tolerates the dimensionality mismatch.
Reproducer recipe
any `AXIS2_PLACEMENT_3D` whose `ref_direction` (or `axis`) references a `DIRECTION` with two direction_ratios instead of three — here the placement of a clean truncated-cone `MANIFOLD_SOLID_BREP`.
Expected kernel behavior
reject a placement `ref_direction`/`axis` whose `dim` is not 3 (per WR2/WR3); never build a 3D frame from a 2-component direction.
Notes
RUNTIME-VERIFIED (2026-08-14, OCP/OCCT 7.8.1): `occt=shape(1)/shape(1)`, part21 accepts, structural ok — every oracle silently tolerates the WR3 violation and OCCT builds a full cone (10 vertices / 5 edges / 1 shell). Distinct from the pcurve dimensionality bugs (a 3D `LINE` in a 2D UV-pcurve slot): this is the **opposite** mismatch (a 2D direction where 3D is required) in a **different** slot (a surface's placement `ref_direction`, not a pcurve item). gmsh count (shape(7)) is CI-Linux-authoritative if it diverges. Synonyms: "2D direction in 3D placement", "two-ratio direction reference", "axis2_placement_3d WR3 violation", "wrong-dimensionality reference direction". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(7) ifc=schema_n/a
Byte assertions
contains(b"DIRECTION('bad2d',(1.0,0.0))")
Tier-3 assertions
shape_null == False
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gs207: the conical surface's AXIS2_PLACEMENT_3D uses a 2-ratio (dim=2) DIRECTION('bad2d',(1.0,0.0)) as its ref_direction, violating ISO 10303-42 axis2_placement_3d WR3 (ref_direction.dim = 3); OCCT accepts the file and builds the cone solid shape(1) with no diagnostic, part21 accepts (a 2-ratio DIRECTION is valid syntax) and the structural linter is silent, so every oracle tolerates the dimensionality mismatch; distinct from the pcurve dimensionality bugs (a 3D LINE in a 2D UV-pcurve slot) â this is the opposite mismatch (2D where 3D required) in a different slot (surface placement ref_direction); spec-driven, mined from the AP242 MIM axis2_placement_3d WHERE-rule; expected strict behavior: reject a ref_direction whose dim is not 3; synonyms: 2D direction in 3D placement, two-ratio direction ref, axis2_placement_3d WR3 violation, wrong-dimensionality reference direction; the 2-ratio DIRECTION is the defect carrier */ 3HEADER; 4FILE_DESCRIPTION(('Gs207'),'2;1'); 5FILE_NAME('Gs207.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=DIRECTION('bad2d',(1.0,0.0)); 11#2=CARTESIAN_POINT('',(0.0,0.0,0.0)); 12#3=DIRECTION('',(0.0,0.0,1.0)); 13#4=AXIS2_PLACEMENT_3D('',#2,#3,#1); 14#5=CONICAL_SURFACE('',#4,1.0,0.4); 15#6=CARTESIAN_POINT('',(1.0,0.0,0.0)); 16#7=CARTESIAN_POINT('',(0.577206781262,0.0,1.0)); 17#8=VERTEX_POINT('',#6); 18#9=VERTEX_POINT('',#7); 19#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 20#11=DIRECTION('',(0.0,0.0,-1.0)); 21#12=DIRECTION('',(1.0,0.0,0.0)); 22#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 23#14=CIRCLE('',#13,1.0); 24#15=EDGE_CURVE('',#8,#8,#14,.T.); 25#16=CARTESIAN_POINT('',(0.0,0.0,1.0)); 26#17=DIRECTION('',(0.0,0.0,1.0)); 27#18=DIRECTION('',(1.0,0.0,0.0)); 28#19=AXIS2_PLACEMENT_3D('',#16,#17,#18); 29#20=CIRCLE('',#19,0.577206781262); 30#21=EDGE_CURVE('',#9,#9,#20,.T.); 31#22=DIRECTION('',(-0.389418342309,0.0,0.921060994003)); 32#23=VECTOR('',#22,1.08570442838); 33#24=LINE('',#6,#23); 34#25=EDGE_CURVE('',#8,#9,#24,.T.); 35#26=ORIENTED_EDGE('',$,$,#25,.T.); 36#27=ORIENTED_EDGE('',$,$,#21,.T.); 37#28=ORIENTED_EDGE('',$,$,#25,.F.); 38#29=ORIENTED_EDGE('',$,$,#15,.F.); 39#30=EDGE_LOOP('',(#26,#27,#28,#29)); 40#31=FACE_OUTER_BOUND('',#30,.T.); 41#32=ADVANCED_FACE('',(#31),#5,.T.); 42#33=CLOSED_SHELL('',(#32)); 43#34=MANIFOLD_SOLID_BREP('',#33); 44#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 45#9051=PRODUCT('Gs207','Gs207','',(#9050)); 46#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 47#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 48#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 49#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 50#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 51#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 52#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 53#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 54#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 55#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#34),#9060); 56#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 57ENDSEC; 58END-ISO-10303-21;