Tfa134 — strip-face checking strip-with-pin

§12.3c

crash topology

Sources

Description

strip-face checking strip-with-pin

Reproducer recipe

Expected kernel behavior

Reject with a diagnostic naming the offending bound: the face's inner bound (the "pin", spanning y in [-2,0]) does not lie inside its outer bound (the "strip", spanning y in [0,0.5]) at all -- the two wires meet only along the shared segment from (0,0) to (2,0), and the inner wire's entire footprint sits outside the outer wire's region. An inner bound must define a hole strictly within its outer wire's footprint; classify each candidate inner wire by containment against the outer wire before accepting it as a hole, and reject (never crash) when containment fails.

Expected validation

occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2HEADER;
3FILE_DESCRIPTION(('Tfa134 CheckStripFace strip-with-pin'),'2;1');
4FILE_NAME('Tfa134.stp','2026-06-15T00:00:00',(''),(''),
5  'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=APPLICATION_CONTEXT('automotive design');
10#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2009,#1);
11/* Tfa134 - CheckStripFace.strip-with-pin
12 * Defect: Strip face that also has a pin protrusion at one end.
13 * CheckStripFace sees pin-like character but strip dominates classification.
14 * Trigger: Face with strip topology plus localized pin expansion.
15 */
16#10=CARTESIAN_POINT('origin',(0.0,0.0,0.0));
17#11=DIRECTION('z',(0.0,0.0,1.0));
18#12=DIRECTION('x',(1.0,0.0,0.0));
19#13=AXIS2_PLACEMENT_3D('placement',#10,#11,#12);
20/* Strip region: thin elongated rectangle */
21#20=CARTESIAN_POINT('p0',(0.0,0.0,0.0));
22#21=CARTESIAN_POINT('p1',(30.0,0.0,0.0));
23#22=CARTESIAN_POINT('p2',(30.0,0.5,0.0));
24#23=CARTESIAN_POINT('p3',(0.0,0.5,0.0));
25/* Pin protrusion at one end (square expansion at x=0) */
26#24=CARTESIAN_POINT('p4',(0.0,0.0,0.0));
27#25=CARTESIAN_POINT('p5',(0.0,-2.0,0.0));
28#26=CARTESIAN_POINT('p6',(2.0,-2.0,0.0));
29#27=CARTESIAN_POINT('p7',(2.0,0.0,0.0));
30/* Wire vertices for strip */
31#40=VERTEX_POINT('v0',#20);
32#41=VERTEX_POINT('v1',#21);
33#42=VERTEX_POINT('v2',#22);
34#43=VERTEX_POINT('v3',#23);
35/* Wire vertices for pin */
36#44=VERTEX_POINT('v4',#24);
37#45=VERTEX_POINT('v5',#25);
38#46=VERTEX_POINT('v6',#26);
39#47=VERTEX_POINT('v7',#27);
40/* Strip boundary edges */
41#50=DIRECTION('d0',(1.0,0.0,0.0));
42#51=VECTOR('v_s0',#50,30.0);
43#52=LINE('l0',#20,#51);
44#53=DIRECTION('d1',(0.0,1.0,0.0));
45#54=VECTOR('v_s1',#53,0.5);
46#55=LINE('l1',#21,#54);
47#56=DIRECTION('d2',(-1.0,0.0,0.0));
48#57=VECTOR('v_s2',#56,30.0);
49#58=LINE('l2',#22,#57);
50#59=DIRECTION('d3',(0.0,-1.0,0.0));
51#60=VECTOR('v_s3',#59,0.5);
52#61=LINE('l3',#23,#60);
53#62=EDGE_CURVE('e0',#40,#41,#52,.T.);
54#63=EDGE_CURVE('e1',#41,#42,#55,.T.);
55#64=EDGE_CURVE('e2',#42,#43,#58,.T.);
56#65=EDGE_CURVE('e3',#43,#40,#61,.T.);
57/* Pin expansion edges */
58#66=DIRECTION('d4',(0.0,-1.0,0.0));
59#67=VECTOR('v_p0',#66,2.0);
60#68=LINE('l4',#24,#67);
61#69=DIRECTION('d5',(1.0,0.0,0.0));
62#70=VECTOR('v_p1',#69,2.0);
63#71=LINE('l5',#25,#70);
64#72=DIRECTION('d6',(0.0,1.0,0.0));
65#73=VECTOR('v_p2',#72,2.0);
66#74=LINE('l6',#26,#73);
67#75=DIRECTION('d7',(-1.0,0.0,0.0));
68#76=VECTOR('v_p3',#75,2.0);
69#77=LINE('l7',#27,#76);
70#78=EDGE_CURVE('e4',#44,#45,#68,.T.);
71#79=EDGE_CURVE('e5',#45,#46,#71,.T.);
72#80=EDGE_CURVE('e6',#46,#47,#74,.T.);
73#81=EDGE_CURVE('e7',#47,#44,#77,.T.);
74/* Oriented edges for strip */
75#90=ORIENTED_EDGE('oe0',*,*,#62,.T.);
76#91=ORIENTED_EDGE('oe1',*,*,#63,.T.);
77#92=ORIENTED_EDGE('oe2',*,*,#64,.T.);
78#93=ORIENTED_EDGE('oe3',*,*,#65,.T.);
79/* Oriented edges for pin */
80#94=ORIENTED_EDGE('oe4',*,*,#78,.T.);
81#95=ORIENTED_EDGE('oe5',*,*,#79,.T.);
82#96=ORIENTED_EDGE('oe6',*,*,#80,.T.);
83#97=ORIENTED_EDGE('oe7',*,*,#81,.T.);
84/* Edge loops */
85#100=EDGE_LOOP('strip',(#90,#91,#92,#93));
86#101=EDGE_LOOP('pin',(#94,#95,#96,#97));
87/* Face bounds */
88#110=FACE_OUTER_BOUND('outer',#100,.T.);
89#111=FACE_INNER_BOUND('pin',#101,.T.);
90/* Geometry */
91#120=PLANE('plane',#13);
92/* Face: strip with pin protrusion (triggers strip/pin classification ambiguity) */
93#130=ADVANCED_FACE('strip-pin',(#110,#111),#120,.T.);
94#140=OPEN_SHELL('shell',(#130));
95/* Mandatory PRODUCT chain */
96#9000=PRODUCT_CONTEXT('',#1,'mechanical');
97#9001=PRODUCT('Tfa134','Tfa134','',(#9000));
98#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
99#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
100#9004=PRODUCT_DEFINITION('','',#9002,#9003);
101#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
102#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
103#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
104#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
105#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
106#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
107#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#140));
108#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
109#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
110ENDSEC;
111END-ISO-10303-21;