Ad135 — Degenerate AXIS2_PLACEMENT_3D: axis parallel to ref_direction (x-axis undefined)

§12.11 adversarial (sub-class: degenerate placement / undefined derived axis)

crash adversarial

Sources

Description

`AXIS2_PLACEMENT_3D('',#1,#30,#30)` uses the SAME `DIRECTION` (#30) for both its axis and its ref_direction, so the two are parallel and the derived x-axis (ref_direction projected perpendicular to axis) is undefined. OCC's `gp_Ax2` handling silently defaults the x-direction and loads the placement, so the shape-count oracles are identical to a clean model (oracle-invisible). The structural linter flags `AXIS_DEGENERATE`. (Note: this flags only genuinely degenerate — parallel or zero-length — directions; a merely non-perpendicular or non-unit ref_direction is spec-legal and is NOT flagged.)

Reproducer recipe

`AXIS2_PLACEMENT_3D(#loc,#dir,#dir)` — same direction entity referenced twice.

Expected kernel behavior

detect axis∥ref_direction and reject or emit a diagnostic rather than silently substituting an arbitrary x-axis.

Notes

Provenance_tier: bytes-sufficient. SASIG PDQ structural (structural-linter v1). Oracle-invisible: occt/gmsh both load shape(1)/shape(9) identically to clean; discrimination comes solely from the `structural` oracle. Distinct from Ad134 (empty direction_ratios → crash) — here the ratios are valid but the two directions coincide. Synonyms: "AXIS2_PLACEMENT_3D axis parallel ref_direction", "degenerate placement undefined x axis", "gp_Ax2 silent default", "SASIG PDQ non-orthonormal axis".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Ad134

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ad135: AXIS2_PLACEMENT_3D #32 whose axis (#30) and ref_direction (#30 again)
3   are identical -> parallel, so the x-axis projection is undefined. A robust
4   kernel must detect this and default/reject; OCC's gp_Ax2 handling of the
5   degenerate case is exactly the kind of silently-defaulted defect the
6   structural linter surfaces (AXIS_DEGENERATE). accept-live-oracle. */
7HEADER;
8FILE_DESCRIPTION(('Ad135'),'2;1');
9FILE_NAME('Ad135.stp','2026-07-06T00:00:00',(''),(''),'cad-research-suite','','');
10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
11ENDSEC;
12DATA;
13#9000=APPLICATION_CONTEXT('mechanical design');
14#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
15#2=CARTESIAN_POINT('',(10.0,0.0,0.0));
16#3=CARTESIAN_POINT('',(10.0,10.0,0.0));
17#4=CARTESIAN_POINT('',(0.0,10.0,0.0));
18#5=VERTEX_POINT('',#1);
19#6=VERTEX_POINT('',#2);
20#7=VERTEX_POINT('',#3);
21#8=VERTEX_POINT('',#4);
22#9=DIRECTION('',(1.0,0.0,0.0));
23#10=VECTOR('',#9,10.0);
24#11=LINE('',#1,#10);
25#12=EDGE_CURVE('',#5,#6,#11,.T.);
26#13=DIRECTION('',(0.0,1.0,0.0));
27#14=VECTOR('',#13,10.0);
28#15=LINE('',#2,#14);
29#16=EDGE_CURVE('',#6,#7,#15,.T.);
30#17=DIRECTION('',(-1.0,0.0,0.0));
31#18=VECTOR('',#17,10.0);
32#19=LINE('',#3,#18);
33#20=EDGE_CURVE('',#7,#8,#19,.T.);
34#21=DIRECTION('',(0.0,-1.0,0.0));
35#22=VECTOR('',#21,10.0);
36#23=LINE('',#4,#22);
37#24=EDGE_CURVE('',#8,#5,#23,.T.);
38#25=ORIENTED_EDGE('',$,$,#12,.T.);
39#26=ORIENTED_EDGE('',$,$,#16,.T.);
40#27=ORIENTED_EDGE('',$,$,#20,.T.);
41#28=ORIENTED_EDGE('',$,$,#24,.T.);
42#29=EDGE_LOOP('',(#25,#26,#27,#28));
43#30=DIRECTION('',(0.0,0.0,1.0));
44#32=AXIS2_PLACEMENT_3D('',#1,#30,#30);
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('Ad135','Ad135','',(#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#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
58#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
59#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
60#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
61#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#37),#9060);
62#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
63ENDSEC;
64END-ISO-10303-21;