Tsh212 — Mixed wire/edge orientation conflict

§12.3a shells (sub-class: orientation-repair)

topology

Sources

Description

Face with inner hole wire (INTERNAL orientation) containing edge with EXTERNAL orientation (conflicting). BreakWires must detect and flip edge orientation, incrementing nbnew counter for segment finalization.

Reproducer recipe

Expected kernel behavior

a face with a rectangular hole declares the hole boundary as internal while one of the edges inside that boundary is declared external. A correct kernel must detect the disagreement between a boundary's orientation and that of an edge it contains, reconcile it — flipping the edge to match the boundary — and account for the change so later segment processing sees consistent orientation. Accepting both orientations as given yields a hole whose winding is self-contradictory.

Notes

orientation-mismatch, face-bound-repair

Expected validation

occt=shape(1)/shape(1) gmsh=shape(17) ifc=schema_n/a

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tsh212: OPEN_SHELL with ONE ADVANCED_FACE (4x4 square with 2x2 hole) IS the mixed-orientation defect trigger; outer FACE_OUTER_BOUND loop IS valid 4x4 square boundary at Z=0 — IS the outer boundary; inner FACE_BOUND hole wire IS orientation=False (INTERNAL) — IS the hole wire; hole wire IS 2x2 square centered in the outer face — IS the hole boundary; ORIENTED_EDGE for hole bottom edge IS orientation=True (EXTERNAL) — IS the conflicting edge; remaining three hole ORIENTED_EDGEs IS orientation=False — IS the consistent hole edges; inner wire orientation=False (INTERNAL) + bottom edge orientation=True (EXTERNAL) IS the mismatch — IS the defect; BreakWires IS the defect path: must detect wire-vs-edge orientation conflict; BreakWires must flip conflicting edge orientation and increment nbnew counter — IS the fix; failure to flip leaves mixed-orientation inner wire unresolved — IS the defect outcome; fix: BreakWires must detect INTERNAL wire with EXTERNAL edge and flip edge orientation; emit E_WIRE_EDGE_ORIENTATION_CONFLICT when mixed orientation survives BreakWires */
3HEADER;
4FILE_DESCRIPTION(('Tsh212'),'2;1');
5FILE_NAME('Tsh212.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=VERTEX_POINT('',#1);
12#3=CARTESIAN_POINT('',(4.0,0.0,0.0));
13#4=VERTEX_POINT('',#3);
14#5=CARTESIAN_POINT('',(4.0,4.0,0.0));
15#6=VERTEX_POINT('',#5);
16#7=CARTESIAN_POINT('',(0.0,4.0,0.0));
17#8=VERTEX_POINT('',#7);
18#9=DIRECTION('',(1.0,0.0,0.0));
19#10=VECTOR('',#9,1.0);
20#11=LINE('',#1,#10);
21#12=EDGE_CURVE('',#2,#4,#11,.T.);
22#13=DIRECTION('',(0.0,1.0,0.0));
23#14=VECTOR('',#13,1.0);
24#15=LINE('',#3,#14);
25#16=EDGE_CURVE('',#4,#6,#15,.T.);
26#17=DIRECTION('',(-1.0,0.0,0.0));
27#18=VECTOR('',#17,1.0);
28#19=LINE('',#5,#18);
29#20=EDGE_CURVE('',#6,#8,#19,.T.);
30#21=DIRECTION('',(0.0,-1.0,0.0));
31#22=VECTOR('',#21,1.0);
32#23=LINE('',#7,#22);
33#24=EDGE_CURVE('',#8,#2,#23,.T.);
34#25=ORIENTED_EDGE('',$,$,#12,.T.);
35#26=ORIENTED_EDGE('',$,$,#16,.T.);
36#27=ORIENTED_EDGE('',$,$,#20,.T.);
37#28=ORIENTED_EDGE('',$,$,#24,.T.);
38#29=EDGE_LOOP('',(#25,#26,#27,#28));
39#30=CARTESIAN_POINT('',(1.0,1.0,0.0));
40#31=VERTEX_POINT('',#30);
41#32=CARTESIAN_POINT('',(3.0,1.0,0.0));
42#33=VERTEX_POINT('',#32);
43#34=CARTESIAN_POINT('',(3.0,3.0,0.0));
44#35=VERTEX_POINT('',#34);
45#36=CARTESIAN_POINT('',(1.0,3.0,0.0));
46#37=VERTEX_POINT('',#36);
47#38=DIRECTION('',(1.0,0.0,0.0));
48#39=VECTOR('',#38,1.0);
49#40=LINE('',#30,#39);
50#41=EDGE_CURVE('',#31,#33,#40,.T.);
51#42=DIRECTION('',(0.0,1.0,0.0));
52#43=VECTOR('',#42,1.0);
53#44=LINE('',#32,#43);
54#45=EDGE_CURVE('',#33,#35,#44,.T.);
55#46=DIRECTION('',(-1.0,0.0,0.0));
56#47=VECTOR('',#46,1.0);
57#48=LINE('',#34,#47);
58#49=EDGE_CURVE('',#35,#37,#48,.T.);
59#50=DIRECTION('',(0.0,-1.0,0.0));
60#51=VECTOR('',#50,1.0);
61#52=LINE('',#36,#51);
62#53=EDGE_CURVE('',#37,#31,#52,.T.);
63#54=ORIENTED_EDGE('',$,$,#41,.T.);
64#55=ORIENTED_EDGE('',$,$,#45,.F.);
65#56=ORIENTED_EDGE('',$,$,#49,.F.);
66#57=ORIENTED_EDGE('',$,$,#53,.F.);
67#58=EDGE_LOOP('',(#54,#55,#56,#57));
68#59=DIRECTION('',(0.0,0.0,1.0));
69#60=DIRECTION('',(1.0,0.0,0.0));
70#61=AXIS2_PLACEMENT_3D('',#1,#59,#60);
71#62=PLANE('',#61);
72#63=FACE_OUTER_BOUND('',#29,.T.);
73#64=FACE_BOUND('',#58,.F.);
74#65=ADVANCED_FACE('',(#63,#64),#62,.T.);
75#66=OPEN_SHELL('',(#65));
76#67=SHELL_BASED_SURFACE_MODEL('',(#66));
77#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
78#9051=PRODUCT('Tsh212','Tsh212','',(#9050));
79#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
80#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
81#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
82#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
83#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
84#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
85#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
86#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
87#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
88#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#67),#9060);
89#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
90ENDSEC;
91END-ISO-10303-21;