step-examples/12-3c-faces/Tfa022.stp
Sources
- 03-occt-tests R032 (bug25068, bug25333), R076 (bug22924 non-determinism)
Description
A free-edge connector pass returns `EDGE_LOOP`s / wires whose closed-or-open flag disagrees with the wire's actual geometry — geometrically open wires marked closed, or vice versa. Common signature: an `EDGE_LOOP` of four edges whose last edge ends at a `VERTEX_POINT` (e.g. (0, 1e-6, 0)) that differs from the first edge's start vertex (e.g. (0, 0, 0)) by ~1e-6 mm — the loop is not closed by that tiny gap, and the file may carry the unclosed loop as a free EDGE_LOOP without any `FACE_OUTER_BOUND` / `ADVANCED_FACE` wrapper. Repeated runs over the same input also produce different orderings (non-deterministic output).
Reproducer recipe
Set of free edges whose endpoint pairing yields one wire that almost closes within tolerance.
Expected kernel behavior
Heal and accept: normalize / recompute the Closed flag from final endpoint coincidence within stated tolerance; coerce deterministic ordering across 100 runs.
Notes
**See also**: Twi027. Synonyms: "wire marked closed but has gap", "tiny gap in supposedly closed loop", "loop's closed flag disagrees with geometry", "edge loop ends 1e-6 away from start", "EDGE_LOOP closed=true but endpoints differ".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'(0.0,1.0E-6,0.0)')count_entity_def(b'VERTEX_POINT') == 5count_entity_def(b'CARTESIAN_POINT') >= 5
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tfa022: GEOMETRIC_CURVE_SET containing EDGE_LOOP with four edges; first vertex at (0,0,0); last edge ends at (0.0,1.0E-6,0.0) â 1e-6 mm gap, sub-tolerance but loop is not geometrically closed; file has exactly 5 VERTEX_POINT entities (4 corners + 1 off-closing vertex); ConnectEdgesToWires closed-flag disagrees with actual gap; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; no orphaned entities */ 3HEADER; 4FILE_DESCRIPTION(('Tfa022'),'2;1'); 5FILE_NAME('Tfa022.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=CARTESIAN_POINT('',(10.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(10.0,10.0,0.0)); 13#4=CARTESIAN_POINT('',(0.0,10.0,0.0)); 14#5=CARTESIAN_POINT('',(0.0,1.0E-6,0.0)); 15#6=VERTEX_POINT('',#1); 16#7=VERTEX_POINT('',#2); 17#8=VERTEX_POINT('',#3); 18#9=VERTEX_POINT('',#4); 19#10=VERTEX_POINT('',#5); 20#11=DIRECTION('',(1.0,0.0,0.0)); 21#12=VECTOR('',#11,10.0); 22#13=LINE('',#1,#12); 23#14=EDGE_CURVE('',#6,#7,#13,.T.); 24#15=DIRECTION('',(0.0,1.0,0.0)); 25#16=VECTOR('',#15,10.0); 26#17=LINE('',#2,#16); 27#18=EDGE_CURVE('',#7,#8,#17,.T.); 28#19=DIRECTION('',(-1.0,0.0,0.0)); 29#20=VECTOR('',#19,10.0); 30#21=LINE('',#3,#20); 31#22=EDGE_CURVE('',#8,#9,#21,.T.); 32#23=DIRECTION('',(0.0,-1.0,0.0)); 33#24=VECTOR('',#23,10.0); 34#25=CARTESIAN_POINT('',(0.0,10.0,0.0)); 35#26=LINE('',#25,#24); 36#27=EDGE_CURVE('',#9,#10,#26,.T.); 37#28=ORIENTED_EDGE('',*,*,#14,.T.); 38#29=ORIENTED_EDGE('',*,*,#18,.T.); 39#30=ORIENTED_EDGE('',*,*,#22,.T.); 40#31=ORIENTED_EDGE('',*,*,#27,.T.); 41#32=EDGE_LOOP('',(#28,#29,#30,#31)); 42#33=GEOMETRIC_CURVE_SET('',(#32)); 43#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 44#9051=PRODUCT('Tfa022','Tfa022','',(#9050)); 45#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 46#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 47#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 48#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 49#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 50#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 51#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 52#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 53#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 54#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#33),#9060); 55#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 56ENDSEC; 57END-ISO-10303-21;