step-examples/12-3b-wires/Twi027.stp
Sources
- 08-occt-gitlog.md G086 (Mantis 0024807)
- 03-occt-tests.md R032 (bug25068/bug25333), R076 (bug22924 non-determinism)
Description
A free-edges-to-wires connection pass throws when given a compound containing only INTERNAL-oriented edges (no wires, no faces). Separately, when given normal input the pass can return wires whose closed-or-open flag disagrees with the actual closure, or yield different orderings across repeated runs (non-determinism).
Reproducer recipe
STEP-imported compound of standalone edges all marked INTERNAL; or shape with edges that form rings under loose tolerance but the algorithm is run 100 times observing different orderings.
Expected kernel behavior
Warn and accept: detect non-manifold input; coerce / bypass connection or emit a warning; normalize to deterministic output.
Notes
**See also**: Tfa022. Synonyms: "all edges marked INTERNAL throw on connect", "compound of stray edges with no wires", "edge connection pass non-deterministic", "ring detection results vary between runs", "free edges fail to assemble into wires".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'GEOMETRIC_CURVE_SET(')count_entity_def(b'EDGE_CURVE') == 3count_entity_def(b'EDGE_LOOP') == 0
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/* Twi027: GEOMETRIC_CURVE_SET containing three standalone EDGE_CURVE entities whose vertices form a closed equilateral triangle in 3D; no EDGE_LOOP, no FACE_BOUND, no ADVANCED_FACE, no OPEN_SHELL â bare standalone edges IS the mechanism; EDGE_CURVEs ARE wired into GEOMETRIC_CURVE_SET which IS the shape item; ConnectEdgesToWires pass must emit a diagnostic on INTERNAL-only edge compound; kernel must warn and return empty result, not crash silently */ 3HEADER; 4FILE_DESCRIPTION(('Twi027'),'2;1'); 5FILE_NAME('Twi027.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('',(1.0,0.0,0.0)); 11#2=VERTEX_POINT('',#1); 12#3=CARTESIAN_POINT('',(-0.5,0.866025403784,0.0)); 13#4=VERTEX_POINT('',#3); 14#5=CARTESIAN_POINT('',(-0.5,-0.866025403784,0.0)); 15#6=VERTEX_POINT('',#5); 16#7=DIRECTION('',(-0.866025403784,0.5,0.0)); 17#8=VECTOR('',#7,1.73205080757); 18#9=CARTESIAN_POINT('',(1.0,0.0,0.0)); 19#10=LINE('',#9,#8); 20#11=EDGE_CURVE('',#2,#4,#10,.T.); 21#12=DIRECTION('',(0.0,-1.0,0.0)); 22#13=VECTOR('',#12,1.73205080757); 23#14=CARTESIAN_POINT('',(-0.5,0.866025403784,0.0)); 24#15=LINE('',#14,#13); 25#16=EDGE_CURVE('',#4,#6,#15,.T.); 26#17=DIRECTION('',(0.866025403784,0.5,0.0)); 27#18=VECTOR('',#17,1.73205080757); 28#19=CARTESIAN_POINT('',(-0.5,-0.866025403784,0.0)); 29#20=LINE('',#19,#18); 30#21=EDGE_CURVE('',#6,#2,#20,.T.); 31#22=GEOMETRIC_CURVE_SET('',(#11,#16,#21)); 32#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 33#9051=PRODUCT('Twi027','Twi027','',(#9050)); 34#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 35#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 36#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 37#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 38#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 39#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 40#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 41#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 42#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 43#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#22),#9060); 44#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 45ENDSEC; 46END-ISO-10303-21;