M091 — AP210 conductor trace exits the board outline

§12.8 mixed (sub-class: AP210 trace geometry)

P1 — silent data loss

spec-violation

Sources

Sender

deduced — ECAD exporter that didn't clip routing to outline

Description

A `CONDUCTOR_TRACK_PROFILE` describes a copper segment whose endpoints place part of the trace outside the board outline. The trace is not fabricable. Bug-reporter language: "PCB trace exits board", "AP210 conductor outside outline", "ECAD trace floats off board".

Reproducer recipe

Board outline (0.30, 0.30); trace from (15,5) to (40,5); the right half exits at x=30.

Expected kernel behavior

validate trace containment; clip to board, reject the trace, or warn.

Notes

Synonyms: "PCB trace off-board", "conductor exits outline", "AP210 trace exits board", "ECAD trace floats off board", "copper segment outside substrate".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(5) 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/* M091: AP210 conductor trace exits the board outline */
3/* DEFECT: CONDUCTOR_TRACK_PROFILE trace from (15,5) to (40,5) but board ends at x=30 */
4/* The trace exits the board at x=30 — right half (x=30..40) is not fabricable */
5/* Byte assertion: contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN') */
6/* Byte assertion: contains(b'CONDUCTOR_TRACK_PROFILE') */
7/* Byte assertion: contains(b'PLY_BOUNDARY_REPRESENTATION') */
8HEADER;
9FILE_DESCRIPTION(('M091: AP210 conductor trace exits board outline'),'2;1');
10FILE_NAME('M091.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 — mm */
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/* PCB board outline: 30 mm x 30 mm rectangle */
29#20=CARTESIAN_POINT('bl',(0.0,0.0,0.0));
30#21=CARTESIAN_POINT('br',(30.0,0.0,0.0));
31#22=CARTESIAN_POINT('tr',(30.0,30.0,0.0));
32#23=CARTESIAN_POINT('tl',(0.0,30.0,0.0));
33/* Closed POLYLINE outline (30x30 mm board) */
34#25=POLYLINE('outline',(#20,#21,#22,#23,#20));
35/* Byte assertion: contains(b'PLY_BOUNDARY_REPRESENTATION') */
36/* Board core ply definition */
37#100=LAMINATE_OR_PLY_DEFINITION('core',$,$,$,LENGTH_MEASURE(0.2));
38/* PLY_BOUNDARY_REPRESENTATION links the outline to the ply */
39#101=PLY_BOUNDARY_REPRESENTATION('core_outline',(#25),#14);
40/* Trace endpoints: from (15,5) inside board to (40,5) outside board */
41/* Board right edge is at x=30; trace exits at x=30, ends at x=40 */
42#200=CARTESIAN_POINT('trace_start',(15.0,5.0,0.0));
43#201=CARTESIAN_POINT('trace_end',(40.0,5.0,0.0));
44/* Byte assertion: contains(b'CONDUCTOR_TRACK_PROFILE') */
45/* DEFECT: CONDUCTOR_TRACK_PROFILE trace exits board outline at x=30 */
46/* Right endpoint (40,5) is 10mm outside the 30x30mm board */
47#210=POLYLINE('trace_path',(#200,#201));
48#220=CONDUCTOR_TRACK_PROFILE('trace_r1',(#210),#14);
49/* GEOMETRIC_CURVE_SET IS the model entity — OCC yields empty */
50#300=GEOMETRIC_CURVE_SET('ap210-conductor-trace-exits-board-outline',
51  (#25,#100,#101,#200,#201,#210,#220));
52/* Product chain */
53#400=APPLICATION_CONTEXT('mechanical design');
54#401=PRODUCT_CONTEXT('',#400,'mechanical');
55#402=PRODUCT('M091','M091','M091',(#401));
56#403=PRODUCT_DEFINITION_FORMATION('','',#402);
57#404=PRODUCT_DEFINITION_CONTEXT(#400,'design');
58#405=PRODUCT_DEFINITION('','',#403,#404);
59#406=PRODUCT_DEFINITION_SHAPE('','',#405);
60#407=SHAPE_REPRESENTATION('',(#300),#14);
61#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407);
62ENDSEC;
63END-ISO-10303-21;