Twi041 — `ADVANCED_FACE` `FACE_BOUND` contains a `VERTEX_LOOP` wrapping a single internal `VERTEX_POINT` (infinite loop in outer-wire detection)

§12.3b wire-loop

crash topology

Sources

Sender

IFC importer; also any STEP-translated face with INTERNAL sub-shapes

Description

An `ADVANCED_FACE` with a normal square `FACE_OUTER_BOUND` plus an inner `FACE_BOUND` containing a `VERTEX_LOOP` that wraps a single `VERTEX_POINT` inside the outer wire (e.g. at (5, 5, 0)); a wire-bound that visits an internal vertex with no edge. Such INTERNAL-orientation vertex sub-shapes cause an outer-wire-detection pass to spin indefinitely, or to skip the primal wire when iteration reports only vertex children remaining. The face's outer wire is unreachable through naive child iteration when non-wire children appear in the traversal order.

Reproducer recipe

Face with one wire and several INTERNAL-oriented vertex sub-shapes in iteration order.

Expected kernel behavior

Heal and accept: normalize outer-wire detection to skip internal sub-shapes; iterate strictly over wires; coerce the choice regardless of trailing non-wire elements.

Notes

Validation observed: silent-empty rather than the cited infinite loop. The OuterWire spin requires post-translation ShapeAnalysis to be invoked; the validate2 transfer pipeline does not run that pass at fixture scale, and the historical fix has long landed in current OCCT. The kernel-mishandling-by-silent-acceptance still demonstrates the defect class. **See also**: Gs010, Gs034, Pf025. Synonyms: "outer-wire detection hangs forever", "vertex loop inside face causes infinite loop", "single-vertex bound wraps internal point", "INTERNAL vertex sub-shape stalls iteration", "loop wrapping a stray vertex in face".

Expected validation

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

Closure intent

sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.

Tier-3 assertions

Cross-references

Gs010, Gs034, Pf025

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi041: ADVANCED_FACE on a PLANE (10x10 square); FACE_OUTER_BOUND carries a normal square EDGE_LOOP (4 edges); a second FACE_BOUND (inner, orientation .F.) carries a VERTEX_LOOP wrapping a single VERTEX_POINT at (5,5,0) inside the face; VERTEX_LOOP IS the mechanism (INTERNAL vertex sub-shape stalls outer-wire detection); both bounds ARE referenced by the ADVANCED_FACE; ADVANCED_FACE IS wired into CLOSED_SHELL in shell — never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi041'),'2;1');
5FILE_NAME('Twi041.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=DIRECTION('',(0.0,0.0,1.0));
12#3=DIRECTION('',(1.0,0.0,0.0));
13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
14#5=PLANE('',#4);
15#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(10.0,0.0,0.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(10.0,10.0,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(0.0,10.0,0.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(0.0,0.0,0.0));
24#15=DIRECTION('',(1.0,0.0,0.0));
25#16=VECTOR('',#15,10.0);
26#17=LINE('',#14,#16);
27#18=EDGE_CURVE('',#7,#9,#17,.T.);
28#19=CARTESIAN_POINT('',(10.0,0.0,0.0));
29#20=DIRECTION('',(0.0,1.0,0.0));
30#21=VECTOR('',#20,10.0);
31#22=LINE('',#19,#21);
32#23=EDGE_CURVE('',#9,#11,#22,.T.);
33#24=CARTESIAN_POINT('',(10.0,10.0,0.0));
34#25=DIRECTION('',(-1.0,0.0,0.0));
35#26=VECTOR('',#25,10.0);
36#27=LINE('',#24,#26);
37#28=EDGE_CURVE('',#11,#13,#27,.T.);
38#29=CARTESIAN_POINT('',(0.0,10.0,0.0));
39#30=DIRECTION('',(0.0,-1.0,0.0));
40#31=VECTOR('',#30,10.0);
41#32=LINE('',#29,#31);
42#33=EDGE_CURVE('',#13,#7,#32,.T.);
43#34=ORIENTED_EDGE('',$,$,#18,.T.);
44#35=ORIENTED_EDGE('',$,$,#23,.T.);
45#36=ORIENTED_EDGE('',$,$,#28,.T.);
46#37=ORIENTED_EDGE('',$,$,#33,.T.);
47#38=EDGE_LOOP('',(#34,#35,#36,#37));
48#39=FACE_OUTER_BOUND('',#38,.T.);
49#40=CARTESIAN_POINT('',(5.0,5.0,0.0));
50#41=VERTEX_POINT('',#40);
51#42=VERTEX_LOOP('',#41);
52#43=FACE_BOUND('',#42,.F.);
53#44=ADVANCED_FACE('',(#39,#43),#5,.T.);
54#45=CLOSED_SHELL('',(#44));
55#46=SHELL_BASED_SURFACE_MODEL('',(#45));
56#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
57#9051=PRODUCT('Twi041','Twi041','',(#9050));
58#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
59#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
60#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
61#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
62#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
63#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
64#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
65#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
66#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
67#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#46),#9060);
68#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
69ENDSEC;
70END-ISO-10303-21;