step-examples/12-8-mixed/M147.stp
Sources
- 16-iso-spec ISO 10303-210 §6 (component placement constraints)
- bug-reporter language: "AP210 SMD wrong side", "PCB BGA on bottom", "ECAD top-only part placed bottom".
Sender
deduced — ECAD exporter that emitted placement transforms from a flipped-board view without re-validating mount-side constraints
Description
A component placement transform on the bottom side (origin at z=0, normal = -Z) is applied to a part declared as a top- only SMD package (e.g. BGA). The footprint resolves below the board surface; the BGA balls face away from the PCB. The placement is fundamentally invalid. Bug-reporter language: "PCB component wrong side", "AP210 mount-side violation".
Reproducer recipe
`AXIS2_PLACEMENT_3D` with `DIRECTION (0.0,0.0,-1.0)` placed at z=0; component PRODUCT carries `DESCRIPTIVE_REPRESENTATION_ITEM('mount_constraint','TOP_ONLY')`.
Expected kernel behavior
validate placement side against mount_constraint; reject or warn.
Notes
Synonyms: "AP210 wrong-side placement", "BGA on bottom", "PCB SMD orientation error".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Byte assertions
contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN')contains(b'AXIS2_PLACEMENT_3D')contains(b'TOP_ONLY')
Tier-3 assertions
shape_null == Falsen_vertices_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M147: AP210 surface-mount component oriented on wrong board side */ 3/* DEFECT: BGA256 declared TOP_ONLY but placement uses -Z normal (bottom side) */ 4/* BGA solder balls face away from the PCB â component cannot be soldered */ 5/* Per ISO 10303-210 §6 placement axis must agree with mount_constraint */ 6/* Byte assertion: contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN') */ 7/* Byte assertion: contains(b'AXIS2_PLACEMENT_3D') */ 8/* Byte assertion: contains(b'TOP_ONLY') */ 9HEADER; 10FILE_DESCRIPTION(('M147: AP210 TOP_ONLY SMD component placed on bottom side'),'2;1'); 11FILE_NAME('M147.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 12/* Byte assertion: contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN') */ 13FILE_SCHEMA(('ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN { 1 0 10303 210 3 1 0 }')); 14ENDSEC; 15DATA; 16#1=APPLICATION_CONTEXT('electronic_assembly_interconnect_and_packaging_design'); 17#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 18 'electronic_assembly_interconnect_and_packaging_design',2014,#1); 19/* Standard unit context (mm) */ 20#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 21#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 22#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 23#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 24 'distance_accuracy_value','maximum model space distance between geometric entities'); 25#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 26 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 27 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 28 REPRESENTATION_CONTEXT('pcb','3D')); 29/* BGA256 component product â 256-ball BGA surface-mount package */ 30#100=PRODUCT('BGA256','BGA256','256-ball BGA package',(#1)); 31/* Byte assertion: contains(b'TOP_ONLY') */ 32/* mount_constraint property declares BGA256 is a top-side-only package */ 33#110=PROPERTY_DEFINITION('mount_constraint','Placement side constraint',#100); 34#111=DESCRIPTIVE_REPRESENTATION_ITEM('mount_constraint','TOP_ONLY'); 35#112=REPRESENTATION('mount',(#111),#14); 36#113=PROPERTY_DEFINITION_REPRESENTATION(#110,#112); 37/* Byte assertion: contains(b'AXIS2_PLACEMENT_3D') */ 38/* Placement origin on the PCB at position (15.0, 20.0, 0.0) */ 39#200=CARTESIAN_POINT('bga_origin',(15.0,20.0,0.0)); 40/* DEFECT: z-axis direction (0,0,-1) = -Z normal = bottom-side placement */ 41/* A TOP_ONLY package requires +Z normal (0,0,1) for top-side placement */ 42#202=DIRECTION('bottom_normal',(0.0,0.0,-1.0)); 43#201=AXIS2_PLACEMENT_3D('bga_placement',#200,#202,$); 44/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 45#300=GEOMETRIC_CURVE_SET('ap210-smd-component-oriented-on-wrong-board-side', 46 (#100,#110,#111,#112,#113,#200,#202,#201)); 47/* Product chain */ 48#400=APPLICATION_CONTEXT('mechanical design'); 49#401=PRODUCT_CONTEXT('',#400,'mechanical'); 50#402=PRODUCT('M147','M147','M147',(#401)); 51#403=PRODUCT_DEFINITION_FORMATION('','',#402); 52#404=PRODUCT_DEFINITION_CONTEXT(#400,'design'); 53#405=PRODUCT_DEFINITION('','',#403,#404); 54#406=PRODUCT_DEFINITION_SHAPE('','',#405); 55#407=SHAPE_REPRESENTATION('',(#300),#14); 56#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407); 57ENDSEC; 58END-ISO-10303-21;