M085 — AP210 ply with mismatched top/bottom material designations

§12.8 mixed (sub-class: AP210 PCB stackup)

P1 — silent data loss

spec-violation

Sources

Sender

deduced — ECAD exporter conflating ply with prepreg+core stack

Description

A `LAMINATE_OR_PLY_DEFINITION` (one homogeneous layer in a PCB stackup) is expected to have a single material across its thickness, but its top and bottom material references point to different `MATERIAL_DESIGNATION`s (e.g. FR4 top, polyimide bottom). The "ply" is actually a transition film that should be modeled as two adjacent plies. Bug-reporter language: "PCB ply has two materials", "AP210 stackup inconsistent", "laminate top/bottom mismatch".

Reproducer recipe

`LAMINATE_OR_PLY_DEFINITION('core_ply', $, FR4_ref, polyimide_ref, LENGTH_MEASURE(0.2))`.

Expected kernel behavior

detect the mismatch; either split the ply into two plies, reject, or honor only one of the two materials and warn.

Notes

Synonyms: "PCB layer with split material", "stackup ply inconsistent", "AP210 ply has mismatched top/bottom material", "transition film mislabeled as ply", "ply has two different MATERIAL_DESIGNATIONs". Synonyms: "PCB layer with split material", "stackup ply inconsistent".

Expected validation

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

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/* M085: AP210 ply with mismatched top/bottom material designations */
3/* DEFECT: LAMINATE_OR_PLY_DEFINITION('core_ply') has FR4 top and polyimide bottom */
4/* A single ply must be homogeneous; different top/bottom = transition film */
5/* Byte assertion: contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN') */
6/* Byte assertion: contains(b'LAMINATE_OR_PLY_DEFINITION') */
7/* Byte assertion: count_entity_def(b'MATERIAL_DESIGNATION') >= 2 */
8HEADER;
9FILE_DESCRIPTION(('M085: AP210 laminate_or_ply mismatched top/bottom material'),'2;1');
10FILE_NAME('M085.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','','');
11/* Byte assertion: contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN') */
12FILE_SCHEMA(('ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN { 1 0 10303 210 3 1 0 }'));
13ENDSEC;
14DATA;
15#1=APPLICATION_CONTEXT('electronic_assembly_interconnect_and_packaging_design');
16#2=APPLICATION_PROTOCOL_DEFINITION('international standard',
17  'electronic_assembly_interconnect_and_packaging_design',2014,#1);
18/* Standard unit context */
19#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
20#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
21#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
22#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10,
23  'distance_accuracy_value','maximum model space distance between geometric entities');
24#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3)
25  GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13))
26  GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12))
27  REPRESENTATION_CONTEXT('pcb','3D'));
28/* Byte assertion: count_entity_def(b'MATERIAL_DESIGNATION') >= 2 */
29/* Two distinct MATERIAL_DESIGNATIONs — one for top, one for bottom of the ply */
30#100=MATERIAL_DESIGNATION('FR4','glass-epoxy laminate',(#1));
31#101=MATERIAL_DESIGNATION('polyimide','polyimide film',(#1));
32/* Byte assertion: contains(b'LAMINATE_OR_PLY_DEFINITION') */
33/* DEFECT: top_material=#100 (FR4), bottom_material=#101 (polyimide) */
34/* A single ply must be homogeneous (one material); this is a transition film */
35#110=LAMINATE_OR_PLY_DEFINITION('core_ply',$,#100,#101,
36  LENGTH_MEASURE(0.2));
37/* GEOMETRIC_CURVE_SET IS the model entity — OCC yields empty */
38#300=GEOMETRIC_CURVE_SET('ap210-laminate-ply-mismatched-top-bottom-material',
39  (#100,#101,#110));
40/* Product chain */
41#400=APPLICATION_CONTEXT('mechanical design');
42#401=PRODUCT_CONTEXT('',#400,'mechanical');
43#402=PRODUCT('M085','M085','M085',(#401));
44#403=PRODUCT_DEFINITION_FORMATION('','',#402);
45#404=PRODUCT_DEFINITION_CONTEXT(#400,'design');
46#405=PRODUCT_DEFINITION('','',#403,#404);
47#406=PRODUCT_DEFINITION_SHAPE('','',#405);
48#407=SHAPE_REPRESENTATION('',(#300),#14);
49#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407);
50ENDSEC;
51END-ISO-10303-21;