step-examples/12-3a-shells/Ps013.stp
Sources
- deduced from CARTESIAN_POINT semantics combined with CARTESIAN_TRANSFORMATION_OPERATOR_3D scale
- bug-report patterns "left-hand part imported as right-hand", "thread direction reversed", "bracket mirrored after import"
Description
An L-shaped bracket whose intended right-hand configuration was mirrored across the X axis during export; every X coordinate was negated. Topology, face count, edge count, and unit context are all unchanged; the part is a valid L-bracket, just the wrong-handed one. For chiral mechanical parts (threads, hand-side brackets, steering linkages) this is a critical defect that the kernel cannot detect from the geometry alone.
Reproducer recipe
An extruded L-shape with vertices at (0,0), (-1,0), (-1,2), (1,2), (1,1), (0,1) (in z=0 plane), extruded to z=1 — i.e., the X-mirror of the producer's intended footprint (0,0), (1,0), (1,2), (-1,2), (-1,1), (0,1).
Expected kernel behavior
Warn and accept: a kernel cannot self-detect chirality errors on a single file, but it normalizes and exposes the AABB and the principal-axes / inertia-tensor of every solid so downstream tools comparing against a known-good reference can detect mirroring (negative determinant of the rotation that aligns inertial axes).
Notes
Tier-3 metric: determinant of the rigid alignment between this part's principal axes and a reference part's; -1 indicates a mirror. Synonyms: "left-hand part imported as right-hand", "thread direction reversed", "bracket mirrored after import", "chiral part comes in wrong-handed", "x-coordinate negated on export".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(39) ifc=schema_n/a
Tier-3 assertions
n_edges_total >= 24face[0].surface_type == "plane"face[5].surface_type == "plane"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Ps013: L-bracket with all X-coordinates negated (mirrored): footprint (0,0),(-1,0),(-1,2),(1,2),(1,1),(0,1) extruded to z=1; negated X-coords ARE wired into all CARTESIAN_POINTs of CLOSED_SHELL faces of MANIFOLD_SOLID_BREP; valid geometry but wrong chirality; kernel accepts silently */ 3HEADER; 4FILE_DESCRIPTION(('Ps013'),'2;1'); 5FILE_NAME('Ps013.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=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(-1.0,2.0,0.0)); 13#4=CARTESIAN_POINT('',(1.0,2.0,0.0)); 14#5=CARTESIAN_POINT('',(1.0,1.0,0.0)); 15#6=CARTESIAN_POINT('',(0.0,1.0,0.0)); 16#7=CARTESIAN_POINT('',(0.0,0.0,1.0)); 17#8=CARTESIAN_POINT('',(-1.0,0.0,1.0)); 18#9=CARTESIAN_POINT('',(-1.0,2.0,1.0)); 19#10=CARTESIAN_POINT('',(1.0,2.0,1.0)); 20#11=CARTESIAN_POINT('',(1.0,1.0,1.0)); 21#12=CARTESIAN_POINT('',(0.0,1.0,1.0)); 22#13=VERTEX_POINT('',#1); 23#14=VERTEX_POINT('',#2); 24#15=VERTEX_POINT('',#3); 25#16=VERTEX_POINT('',#4); 26#17=VERTEX_POINT('',#5); 27#18=VERTEX_POINT('',#6); 28#19=VERTEX_POINT('',#7); 29#20=VERTEX_POINT('',#8); 30#21=VERTEX_POINT('',#9); 31#22=VERTEX_POINT('',#10); 32#23=VERTEX_POINT('',#11); 33#24=VERTEX_POINT('',#12); 34#25=DIRECTION('',(-1.0,0.0,0.0)); 35#26=VECTOR('',#25,1.0); 36#27=LINE('',#1,#26); 37#28=EDGE_CURVE('',#13,#14,#27,.T.); 38#29=DIRECTION('',(0.0,1.0,0.0)); 39#30=VECTOR('',#29,2.0); 40#31=LINE('',#2,#30); 41#32=EDGE_CURVE('',#14,#15,#31,.T.); 42#33=DIRECTION('',(1.0,0.0,0.0)); 43#34=VECTOR('',#33,2.0); 44#35=LINE('',#3,#34); 45#36=EDGE_CURVE('',#15,#16,#35,.T.); 46#37=DIRECTION('',(0.0,-1.0,0.0)); 47#38=VECTOR('',#37,1.0); 48#39=LINE('',#4,#38); 49#40=EDGE_CURVE('',#16,#17,#39,.T.); 50#41=DIRECTION('',(-1.0,0.0,0.0)); 51#42=VECTOR('',#41,1.0); 52#43=LINE('',#5,#42); 53#44=EDGE_CURVE('',#17,#18,#43,.T.); 54#45=DIRECTION('',(0.0,-1.0,0.0)); 55#46=VECTOR('',#45,1.0); 56#47=LINE('',#6,#46); 57#48=EDGE_CURVE('',#18,#13,#47,.T.); 58#49=DIRECTION('',(-1.0,0.0,0.0)); 59#50=VECTOR('',#49,1.0); 60#51=LINE('',#7,#50); 61#52=EDGE_CURVE('',#19,#20,#51,.T.); 62#53=DIRECTION('',(0.0,1.0,0.0)); 63#54=VECTOR('',#53,2.0); 64#55=LINE('',#8,#54); 65#56=EDGE_CURVE('',#20,#21,#55,.T.); 66#57=DIRECTION('',(1.0,0.0,0.0)); 67#58=VECTOR('',#57,2.0); 68#59=LINE('',#9,#58); 69#60=EDGE_CURVE('',#21,#22,#59,.T.); 70#61=DIRECTION('',(0.0,-1.0,0.0)); 71#62=VECTOR('',#61,1.0); 72#63=LINE('',#10,#62); 73#64=EDGE_CURVE('',#22,#23,#63,.T.); 74#65=DIRECTION('',(-1.0,0.0,0.0)); 75#66=VECTOR('',#65,1.0); 76#67=LINE('',#11,#66); 77#68=EDGE_CURVE('',#23,#24,#67,.T.); 78#69=DIRECTION('',(0.0,-1.0,0.0)); 79#70=VECTOR('',#69,1.0); 80#71=LINE('',#12,#70); 81#72=EDGE_CURVE('',#24,#19,#71,.T.); 82#73=DIRECTION('',(0.0,0.0,1.0)); 83#74=VECTOR('',#73,1.0); 84#75=LINE('',#1,#74); 85#76=EDGE_CURVE('',#13,#19,#75,.T.); 86#77=DIRECTION('',(0.0,0.0,1.0)); 87#78=VECTOR('',#77,1.0); 88#79=LINE('',#2,#78); 89#80=EDGE_CURVE('',#14,#20,#79,.T.); 90#81=DIRECTION('',(0.0,0.0,1.0)); 91#82=VECTOR('',#81,1.0); 92#83=LINE('',#3,#82); 93#84=EDGE_CURVE('',#15,#21,#83,.T.); 94#85=DIRECTION('',(0.0,0.0,1.0)); 95#86=VECTOR('',#85,1.0); 96#87=LINE('',#4,#86); 97#88=EDGE_CURVE('',#16,#22,#87,.T.); 98#89=DIRECTION('',(0.0,0.0,1.0)); 99#90=VECTOR('',#89,1.0); 100#91=LINE('',#5,#90); 101#92=EDGE_CURVE('',#17,#23,#91,.T.); 102#93=DIRECTION('',(0.0,0.0,1.0)); 103#94=VECTOR('',#93,1.0); 104#95=LINE('',#6,#94); 105#96=EDGE_CURVE('',#18,#24,#95,.T.); 106#97=ORIENTED_EDGE('',$,$,#28,.T.); 107#98=ORIENTED_EDGE('',$,$,#32,.T.); 108#99=ORIENTED_EDGE('',$,$,#36,.T.); 109#100=ORIENTED_EDGE('',$,$,#40,.T.); 110#101=ORIENTED_EDGE('',$,$,#44,.T.); 111#102=ORIENTED_EDGE('',$,$,#48,.T.); 112#103=EDGE_LOOP('',(#97,#98,#99,#100,#101,#102)); 113#104=FACE_OUTER_BOUND('',#103,.T.); 114#105=CARTESIAN_POINT('',(0.0,0.0,0.0)); 115#106=DIRECTION('',(0.0,0.0,-1.0)); 116#107=DIRECTION('',(1.0,0.0,0.0)); 117#108=AXIS2_PLACEMENT_3D('',#105,#106,#107); 118#109=PLANE('',#108); 119#110=ADVANCED_FACE('',(#104),#109,.T.); 120#111=ORIENTED_EDGE('',$,$,#72,.F.); 121#112=ORIENTED_EDGE('',$,$,#68,.F.); 122#113=ORIENTED_EDGE('',$,$,#64,.F.); 123#114=ORIENTED_EDGE('',$,$,#60,.F.); 124#115=ORIENTED_EDGE('',$,$,#56,.F.); 125#116=ORIENTED_EDGE('',$,$,#52,.F.); 126#117=EDGE_LOOP('',(#111,#112,#113,#114,#115,#116)); 127#118=FACE_OUTER_BOUND('',#117,.T.); 128#119=CARTESIAN_POINT('',(0.0,0.0,1.0)); 129#120=DIRECTION('',(0.0,0.0,1.0)); 130#121=DIRECTION('',(1.0,0.0,0.0)); 131#122=AXIS2_PLACEMENT_3D('',#119,#120,#121); 132#123=PLANE('',#122); 133#124=ADVANCED_FACE('',(#118),#123,.T.); 134#125=ORIENTED_EDGE('',$,$,#28,.T.); 135#126=ORIENTED_EDGE('',$,$,#80,.T.); 136#127=ORIENTED_EDGE('',$,$,#52,.F.); 137#128=ORIENTED_EDGE('',$,$,#76,.F.); 138#129=EDGE_LOOP('',(#125,#126,#127,#128)); 139#130=FACE_OUTER_BOUND('',#129,.T.); 140#131=CARTESIAN_POINT('',(0.0,0.0,0.0)); 141#132=DIRECTION('',(0.0,-1.0,0.0)); 142#133=DIRECTION('',(-1.0,0.0,0.0)); 143#134=AXIS2_PLACEMENT_3D('',#131,#132,#133); 144#135=PLANE('',#134); 145#136=ADVANCED_FACE('',(#130),#135,.T.); 146#137=ORIENTED_EDGE('',$,$,#32,.T.); 147#138=ORIENTED_EDGE('',$,$,#84,.T.); 148#139=ORIENTED_EDGE('',$,$,#56,.F.); 149#140=ORIENTED_EDGE('',$,$,#80,.F.); 150#141=EDGE_LOOP('',(#137,#138,#139,#140)); 151#142=FACE_OUTER_BOUND('',#141,.T.); 152#143=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 153#144=DIRECTION('',(-1.0,0.0,0.0)); 154#145=DIRECTION('',(0.0,1.0,0.0)); 155#146=AXIS2_PLACEMENT_3D('',#143,#144,#145); 156#147=PLANE('',#146); 157#148=ADVANCED_FACE('',(#142),#147,.T.); 158#149=ORIENTED_EDGE('',$,$,#36,.T.); 159#150=ORIENTED_EDGE('',$,$,#88,.T.); 160#151=ORIENTED_EDGE('',$,$,#60,.F.); 161#152=ORIENTED_EDGE('',$,$,#84,.F.); 162#153=EDGE_LOOP('',(#149,#150,#151,#152)); 163#154=FACE_OUTER_BOUND('',#153,.T.); 164#155=CARTESIAN_POINT('',(-1.0,2.0,0.0)); 165#156=DIRECTION('',(0.0,1.0,0.0)); 166#157=DIRECTION('',(1.0,0.0,0.0)); 167#158=AXIS2_PLACEMENT_3D('',#155,#156,#157); 168#159=PLANE('',#158); 169#160=ADVANCED_FACE('',(#154),#159,.T.); 170#161=ORIENTED_EDGE('',$,$,#40,.T.); 171#162=ORIENTED_EDGE('',$,$,#92,.T.); 172#163=ORIENTED_EDGE('',$,$,#64,.F.); 173#164=ORIENTED_EDGE('',$,$,#88,.F.); 174#165=EDGE_LOOP('',(#161,#162,#163,#164)); 175#166=FACE_OUTER_BOUND('',#165,.T.); 176#167=CARTESIAN_POINT('',(1.0,2.0,0.0)); 177#168=DIRECTION('',(1.0,0.0,0.0)); 178#169=DIRECTION('',(0.0,-1.0,0.0)); 179#170=AXIS2_PLACEMENT_3D('',#167,#168,#169); 180#171=PLANE('',#170); 181#172=ADVANCED_FACE('',(#166),#171,.T.); 182#173=ORIENTED_EDGE('',$,$,#44,.T.); 183#174=ORIENTED_EDGE('',$,$,#96,.T.); 184#175=ORIENTED_EDGE('',$,$,#68,.F.); 185#176=ORIENTED_EDGE('',$,$,#92,.F.); 186#177=EDGE_LOOP('',(#173,#174,#175,#176)); 187#178=FACE_OUTER_BOUND('',#177,.T.); 188#179=CARTESIAN_POINT('',(1.0,1.0,0.0)); 189#180=DIRECTION('',(0.0,-1.0,0.0)); 190#181=DIRECTION('',(-1.0,0.0,0.0)); 191#182=AXIS2_PLACEMENT_3D('',#179,#180,#181); 192#183=PLANE('',#182); 193#184=ADVANCED_FACE('',(#178),#183,.T.); 194#185=ORIENTED_EDGE('',$,$,#48,.T.); 195#186=ORIENTED_EDGE('',$,$,#76,.T.); 196#187=ORIENTED_EDGE('',$,$,#72,.F.); 197#188=ORIENTED_EDGE('',$,$,#96,.F.); 198#189=EDGE_LOOP('',(#185,#186,#187,#188)); 199#190=FACE_OUTER_BOUND('',#189,.T.); 200#191=CARTESIAN_POINT('',(0.0,1.0,0.0)); 201#192=DIRECTION('',(1.0,0.0,0.0)); 202#193=DIRECTION('',(0.0,-1.0,0.0)); 203#194=AXIS2_PLACEMENT_3D('',#191,#192,#193); 204#195=PLANE('',#194); 205#196=ADVANCED_FACE('',(#190),#195,.T.); 206#197=CLOSED_SHELL('ps013_mirrored_L_bracket',(#110,#124,#136,#148,#160,#172,#184,#196)); 207#198=MANIFOLD_SOLID_BREP('ps013_chiral_bracket_x_negated',#197); 208#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 209#9051=PRODUCT('Ps013','Ps013','',(#9050)); 210#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 211#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 212#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 213#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 214#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 215#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 216#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 217#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 218#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 219#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#198),#9060); 220#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 221ENDSEC; 222END-ISO-10303-21;