Pmi068 — Annotation_plane orientation flipped on import (mirror determinant)

§12.7 (sub-class: annotation-plane)

pmi

Sources

Description

An `annotation_plane` whose underlying `axis2_placement_3d` carries a left-handed (mirrored, negative-determinant) frame is exported with the orientation silently corrected to right-handed, flipping the normal direction. Annotations then read back facing the wrong way.

Reproducer recipe

`annotation_plane` with `axis2_placement_3d` whose `axis` and `ref_direction` produce a left-handed frame.

Expected kernel behavior

Preserve handedness; flip face normals coherently to maintain solidness; do not silently right-handize annotation planes.

Notes

**See also**: A024. **OCC behavior**: oracle-invisible (shape_counts) — occt=shape(1)/shape(1) gmsh=shape(1). OCC loads a 1-vertex stub; the left-handed annotation-plane frame sits unreachable from the shape-rep root and is in any case a presentation property the shape-count oracles cannot observe, so it is byte-present but not demonstrable by the load-time shape-count oracles. Synonyms: "annotation_plane orientation flipped on import", "PMI plane mirror determinant", "GD&T text faces wrong way", "annotation reads backward on import".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

A024

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Pmi068: ANNOTATION_PLANE uses AXIS2_PLACEMENT_3D whose axis (0,0,-1) and ref_direction (1,0,0) produce a left-handed (negative-determinant) frame; were this frame reachable and silently right-handized on import, the annotation plane normal would flip so GD&T text faces the wrong direction; receivers must preserve handedness or coherently flip face normals and must never silently right-handize annotation planes; the defect is a presentation/PMI property the shape-count oracles cannot observe, and here it also sits unreachable from the shape-rep root (product chain roots a GEOMETRIC_CURVE_SET stub), so OCC loads only a 1-vertex stub (shape(1)); byte-present but oracle-invisible to the load-time shape-count oracles */
3HEADER;
4FILE_DESCRIPTION(('Pmi068'),'2;1');
5FILE_NAME('Pmi068.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=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=GEOMETRIC_CURVE_SET('',(#1));
12#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
13#9051=PRODUCT('Pmi068','Pmi068','',(#9050));
14#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
15#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
16#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
17#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
18#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
19#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
20#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
21#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
22#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
23#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#2),#9060);
24#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
25#9063=CARTESIAN_POINT('',(0.0,0.0,0.0));
26#9064=DIRECTION('',(0.0,0.0,1.0));
27#9065=DIRECTION('',(1.0,0.0,0.0));
28#9066=AXIS2_PLACEMENT_3D('right_handed',#9063,#9064,#9065);
29#9067=PLANE('reference_plane',#9066);
30#9068=CARTESIAN_POINT('',(5.0,0.0,0.0));
31#9069=DIRECTION('',(0.0,0.0,-1.0));
32#9070=DIRECTION('',(1.0,0.0,0.0));
33#9071=AXIS2_PLACEMENT_3D('left_handed',#9068,#9069,#9070);
34#9072=PLANE('anno_plane_lh',#9071);
35#9073=CARTESIAN_POINT('',(5.0,0.0,0.0));
36#9074=CARTESIAN_POINT('',(15.0,0.0,0.0));
37#9075=POLYLINE('',(#9073,#9074));
38#9076=COLOUR_RGB('anno_colour',0.0,0.0,0.0);
39#9077=CURVE_STYLE('',FONT_SELECT($),LENGTH_MEASURE(0.25),#9076);
40#9078=PRESENTATION_STYLE_ASSIGNMENT((#9077));
41#9079=ANNOTATION_CURVE_OCCURRENCE('dim_leader',(#9075),#9078);
42#9080=ANNOTATION_PLANE('lh_anno_plane',(#9079),#9071);
43#9081=CARTESIAN_POINT('',(0.0,0.0,0.0));
44#9082=DIRECTION('',(1.0,0.0,0.0));
45#9083=DIRECTION('',(0.0,1.0,0.0));
46#9084=DIRECTION('',(0.0,0.0,-1.0));
47#9085=CARTESIAN_TRANSFORMATION_OPERATOR_3D(#9081,#9082,#9083,1.0,#9084);
48#9086=ITEM_DEFINED_TRANSFORMATION('mirror_flip','left-hand mirror',#9066,#9071);
49ENDSEC;
50END-ISO-10303-21;