Wr034 — Coordinate-system axis swap without notification (Y-up vs Z-up)

§12.13 writer-pathology (sub-class: unit / coordinate)

P2 — spec deviation (no data loss)

writer

Sources

Sender

Web-CAD and game-engine-derived writers whose internal convention is Y-up, exporting to STEP without applying the Z-up transform

Description

The geometry coordinates were authored in a Y-up coordinate system (the engine convention), but the writer emitted them as-is into STEP without applying the rotation that makes Z the up-axis (STEP / CAD convention). The receiver loads the geometry rotated 90° around X. Bug-reporter language: "model lying on its side", "Y-up vs Z-up", "STEP imported sideways", "coordinate axes swapped".

Reproducer recipe

a `MANIFOLD_SOLID_BREP` whose vertices imply a vertical extent along Y rather than Z, with a comment noting the input was authored Y-up and emitted without rotation.

Expected kernel behavior

Warn and accept: normalize by trusting the file's coordinate system (DATA-section AXIS2_PLACEMENT_3D); if the application expects Z-up, emit a "model appears Y-up" diagnostic when the geometry's bounding box has inverted aspect.

Notes

Symptom-match search-term: "STEP imported on its side". Provenance tier: writer-side (Q5 full-corpus 2026-07-01).

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Provenance tier

writer-side — defect not fully embodied in fixture bytes.

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Wr034: coordinate-system axis swap without notification (Y-up vs Z-up) */
3/* Input was authored in a Y-up coordinate system (web-CAD/game-engine convention) */
4/* Writer emitted coordinates as-is; did not apply the Y-up to Z-up rotation */
5/* STEP/CAD convention: Z is up; this file has geometry with vertical extent along Y */
6/* Receivers that assume Z-up load the model rotated 90 degrees on its side */
7HEADER;
8FILE_DESCRIPTION(('Wr034: Y-up geometry emitted without Z-up transform'),'2;1');
9FILE_NAME('Wr034.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
11ENDSEC;
12DATA;
13/* DEFECT: geometry vertices have largest extent in Y-axis (Y-up authoring) */
14/* Correct Z-up STEP file would have largest extent in Z; writer skipped the transform */
15/* Y-up source had a tall tower: base at Y=0, apex at Y=10; emitted without rotation */
16#1=CARTESIAN_POINT('base-corner-0',(0.,0.,0.));
17#2=CARTESIAN_POINT('base-corner-1',(1.,0.,0.));
18#3=CARTESIAN_POINT('base-corner-2',(1.,0.,1.));
19#4=CARTESIAN_POINT('base-corner-3',(0.,0.,1.));
20#5=CARTESIAN_POINT('apex-corner-0',(0.,10.,0.));
21#6=CARTESIAN_POINT('apex-corner-1',(1.,10.,0.));
22#7=CARTESIAN_POINT('apex-corner-2',(1.,10.,1.));
23#8=CARTESIAN_POINT('apex-corner-3',(0.,10.,1.));
24#9=GEOMETRIC_CURVE_SET('Y-up-authored-tower-shape',(#1,#2,#3,#4,#5,#6,#7,#8));
25ENDSEC;
26END-ISO-10303-21;