step-examples/12-8-mixed/M157.stp
Sources
- 16-iso-spec ISO 10303-210 §5 (solder_mask_layer / pad exposure)
- bug-reporter language: "AP210 solder mask over pad", "PCB pad masked", "ECAD reflow blocked".
Sender
deduced — ECAD exporter that emitted solder-mask outlines from CAM polygons before pad-clearance subtraction
Description
A solder-mask layer outline (a `PLY_BOUNDARY_REPRESENTATION` with a `LAMINATE_OR_PLY_DEFINITION` of a solder-mask material) encloses a pad that the placement record (and the net it connects to) requires to be exposed for soldering. The fabricated board has the pad masked over - the component cannot be reflowed onto it.
Reproducer recipe
`LAMINATE_OR_PLY_DEFINITION('solder_mask_top', ..,green_LPI,..)` with `PLY_BOUNDARY_REPRESENTATION` polygon enclosing a `TERMINAL` that requires reflow.
Expected kernel behavior
subtract pad geometry from solder-mask polygons; validate that pads required for reflow are exposed; reject or warn.
Notes
Synonyms: "AP210 solder mask error", "PCB pad blocked", "ECAD reflow obstruction".
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'solder_mask')contains(b'PLY_BOUNDARY_REPRESENTATION')
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/* M157: AP210 solder mask covers a pad that should be exposed */ 3/* DEFECT: PLY_BOUNDARY_REPRESENTATION for solder_mask_top encloses PAD_U1_1 */ 4/* PAD_U1_1 has reflow_required=true but the mask has no clearance cutout */ 5/* The solder-mask polygon was emitted before pad-clearance subtraction */ 6/* Per ISO 10303-210 §5 reflow pads must be exposed in the solder mask layer */ 7/* Byte assertion: contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN') */ 8/* Byte assertion: contains(b'solder_mask') */ 9/* Byte assertion: contains(b'PLY_BOUNDARY_REPRESENTATION') */ 10HEADER; 11FILE_DESCRIPTION(('M157: AP210 solder mask covers reflow pad PAD_U1_1'),'2;1'); 12FILE_NAME('M157.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 13/* Byte assertion: contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN') */ 14FILE_SCHEMA(('ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN { 1 0 10303 210 3 1 0 }')); 15ENDSEC; 16DATA; 17#1=APPLICATION_CONTEXT('electronic_assembly_interconnect_and_packaging_design'); 18#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 19 'electronic_assembly_interconnect_and_packaging_design',2014,#1); 20/* Standard unit context (mm) */ 21#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 22#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 23#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 24#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 25 'distance_accuracy_value','maximum model space distance between geometric entities'); 26#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 27 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 28 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 29 REPRESENTATION_CONTEXT('pcb','3D')); 30/* TERMINAL PAD_U1_1: pad at (2.5, 2.5, 0.0) â lies inside the mask polygon */ 31#51=CARTESIAN_POINT('PAD_U1_1_loc',(2.5,2.5,0.0)); 32#50=TERMINAL('PAD_U1_1',#51); 33/* PROPERTY_DEFINITION 'reflow_required' on PAD_U1_1 â this pad must be exposed */ 34#52=PROPERTY_DEFINITION('reflow_required','Pad requires reflow soldering',#50); 35#53=DESCRIPTIVE_REPRESENTATION_ITEM('reflow_required','true'); 36#54=REPRESENTATION('pad_props',(#53),#14); 37#55=PROPERTY_DEFINITION_REPRESENTATION(#52,#54); 38/* Byte assertion: contains(b'solder_mask') */ 39/* LAMINATE_OR_PLY_DEFINITION 'solder_mask_top' â top solder mask layer */ 40#60=LAMINATE_OR_PLY_DEFINITION('solder_mask_top','Top solder mask green LPI',$); 41/* Byte assertion: contains(b'PLY_BOUNDARY_REPRESENTATION') */ 42/* DEFECT: PLY_BOUNDARY_REPRESENTATION covers (0,0) to (5,5) â PAD_U1_1 at (2.5,2.5) */ 43/* The pad is inside this polygon; no clearance cutout was subtracted */ 44#70=PLY_BOUNDARY_REPRESENTATION('solder_mask_top_outline',#60, 45 (CARTESIAN_POINT('corner_0',(0.0,0.0,0.0)), 46 CARTESIAN_POINT('corner_1',(5.0,0.0,0.0)), 47 CARTESIAN_POINT('corner_2',(5.0,5.0,0.0)), 48 CARTESIAN_POINT('corner_3',(0.0,5.0,0.0)))); 49/* PAD_U1_1 at (2.5,2.5) is enclosed by the 0-5 mm mask rectangle â covered */ 50/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 51#200=GEOMETRIC_CURVE_SET('ap210-solder-mask-covers-reflow-pad-ply-boundary-representation', 52 (#50,#51,#52,#53,#54,#55,#60,#70)); 53/* Product chain */ 54#400=APPLICATION_CONTEXT('mechanical design'); 55#401=PRODUCT_CONTEXT('',#400,'mechanical'); 56#402=PRODUCT('M157','M157','M157',(#401)); 57#403=PRODUCT_DEFINITION_FORMATION('','',#402); 58#404=PRODUCT_DEFINITION_CONTEXT(#400,'design'); 59#405=PRODUCT_DEFINITION('','',#403,#404); 60#406=PRODUCT_DEFINITION_SHAPE('','',#405); 61#407=SHAPE_REPRESENTATION('',(#200),#14); 62#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407); 63ENDSEC; 64END-ISO-10303-21;