step-examples/12-3b-wires/Twi076.stp
Sources
- OCCT `ShapeAnalysis_Wire::CheckLoop` (`ShapeAnalysis_Wire.hxx:512`)
Description
A vertex referenced by more than two oriented-edges in a single wire creates a figure-eight or pinched topology. The wire is technically traversable but cannot bound a face without splitting at the offending vertex.
Reproducer recipe
As Twi049 (self-intersecting figure-eight) but framed as a vertex over-visit problem.
Expected kernel behavior
identify "loop vertices" (those with degree > 2 in the wire's edge graph); split the wire at those vertices into multiple simple wires, or reject as malformed.
Notes
Related to Twi049 but vertex-centric rather than edge-intersection-centric. **OCC behavior**: the validity-checker does not flag a wire vertex with edge-graph degree > 2; tier-3 valid-flag should be ignored for this entry. The reader most likely silently fixes or ignores the figure-eight wire on import. Synonyms: "vertex visited more than twice in wire", "loop vertex with degree greater than two", "wire pinches at high-degree vertex", "pinched wire centered on vertex".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(22) 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
n_edges_total >= 6face[0].surface_type == "plane"face[1].surface_type == "plane"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi076: Two ADVANCED_FACEs on PLANEs in a CLOSED_SHELL; face0 has an EDGE_LOOP forming a figure-eight with vertex v_center at (5,5,0) visited by FOUR edges â degree-4 'loop vertex' (graph degree > 2); six edges form two interlocked sub-triangles: sub-loop A: v_bl(0,0)âv_center(5,5)âv_br(10,0)âv_bl; sub-loop B: v_center(5,5)âv_tl(0,10)âv_tr(10,10)âv_center; combined EDGE_LOOP traverses: v_blâv_centerâv_tlâv_trâv_centerâv_brâv_bl; v_center appears at positions 2 and 5 in the traversal (degree-4 entry); wire is technically closed but pinched at v_center â figure-eight topology; CheckLoop must identify v_center as loop vertex and split or reject; face1 is a correct 10x10 square at z=-1 (provides face[1].surface_type==plane); all EDGE_CURVEs ARE wired into EDGE_LOOPs â FACE_OUTER_BOUNDs â ADVANCED_FACEs in CLOSED_SHELL */ 3HEADER; 4FILE_DESCRIPTION(('Twi076'),'2;1'); 5FILE_NAME('Twi076.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('',(5.0,5.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('',(10.0,10.0,0.0)); 24#15=VERTEX_POINT('',#14); 25#16=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#17=DIRECTION('',(0.707106781187,0.707106781187,0.0)); 27#18=VECTOR('',#17,7.07106781187); 28#19=LINE('',#16,#18); 29#20=EDGE_CURVE('',#7,#11,#19,.T.); 30#21=ORIENTED_EDGE('',$,$,#20,.T.); 31#22=CARTESIAN_POINT('',(5.0,5.0,0.0)); 32#23=DIRECTION('',(-0.707106781187,0.707106781187,0.0)); 33#24=VECTOR('',#23,7.07106781187); 34#25=LINE('',#22,#24); 35#26=EDGE_CURVE('',#11,#13,#25,.T.); 36#27=ORIENTED_EDGE('',$,$,#26,.T.); 37#28=CARTESIAN_POINT('',(0.0,10.0,0.0)); 38#29=DIRECTION('',(1.0,0.0,0.0)); 39#30=VECTOR('',#29,10.0); 40#31=LINE('',#28,#30); 41#32=EDGE_CURVE('',#13,#15,#31,.T.); 42#33=ORIENTED_EDGE('',$,$,#32,.T.); 43#34=CARTESIAN_POINT('',(10.0,10.0,0.0)); 44#35=DIRECTION('',(-0.707106781187,-0.707106781187,0.0)); 45#36=VECTOR('',#35,7.07106781187); 46#37=LINE('',#34,#36); 47#38=EDGE_CURVE('',#15,#11,#37,.T.); 48#39=ORIENTED_EDGE('',$,$,#38,.T.); 49#40=CARTESIAN_POINT('',(5.0,5.0,0.0)); 50#41=DIRECTION('',(0.707106781187,-0.707106781187,0.0)); 51#42=VECTOR('',#41,7.07106781187); 52#43=LINE('',#40,#42); 53#44=EDGE_CURVE('',#11,#9,#43,.T.); 54#45=ORIENTED_EDGE('',$,$,#44,.T.); 55#46=CARTESIAN_POINT('',(10.0,0.0,0.0)); 56#47=DIRECTION('',(-1.0,0.0,0.0)); 57#48=VECTOR('',#47,10.0); 58#49=LINE('',#46,#48); 59#50=EDGE_CURVE('',#9,#7,#49,.T.); 60#51=ORIENTED_EDGE('',$,$,#50,.T.); 61#52=EDGE_LOOP('',(#21,#27,#33,#39,#45,#51)); 62#53=FACE_OUTER_BOUND('',#52,.T.); 63#54=ADVANCED_FACE('',(#53),#5,.T.); 64#55=CARTESIAN_POINT('',(0.0,0.0,-1.0)); 65#56=DIRECTION('',(0.0,0.0,1.0)); 66#57=DIRECTION('',(1.0,0.0,0.0)); 67#58=AXIS2_PLACEMENT_3D('',#55,#56,#57); 68#59=PLANE('',#58); 69#60=CARTESIAN_POINT('',(0.0,0.0,-1.0)); 70#61=VERTEX_POINT('',#60); 71#62=CARTESIAN_POINT('',(10.0,0.0,-1.0)); 72#63=VERTEX_POINT('',#62); 73#64=CARTESIAN_POINT('',(10.0,10.0,-1.0)); 74#65=VERTEX_POINT('',#64); 75#66=CARTESIAN_POINT('',(0.0,10.0,-1.0)); 76#67=VERTEX_POINT('',#66); 77#68=CARTESIAN_POINT('',(0.0,0.0,-1.0)); 78#69=DIRECTION('',(1.0,0.0,0.0)); 79#70=VECTOR('',#69,10.0); 80#71=LINE('',#68,#70); 81#72=EDGE_CURVE('',#61,#63,#71,.T.); 82#73=CARTESIAN_POINT('',(10.0,0.0,-1.0)); 83#74=DIRECTION('',(0.0,1.0,0.0)); 84#75=VECTOR('',#74,10.0); 85#76=LINE('',#73,#75); 86#77=EDGE_CURVE('',#63,#65,#76,.T.); 87#78=CARTESIAN_POINT('',(10.0,10.0,-1.0)); 88#79=DIRECTION('',(-1.0,0.0,0.0)); 89#80=VECTOR('',#79,10.0); 90#81=LINE('',#78,#80); 91#82=EDGE_CURVE('',#65,#67,#81,.T.); 92#83=CARTESIAN_POINT('',(0.0,10.0,-1.0)); 93#84=DIRECTION('',(0.0,-1.0,0.0)); 94#85=VECTOR('',#84,10.0); 95#86=LINE('',#83,#85); 96#87=EDGE_CURVE('',#67,#61,#86,.T.); 97#88=ORIENTED_EDGE('',$,$,#72,.T.); 98#89=ORIENTED_EDGE('',$,$,#77,.T.); 99#90=ORIENTED_EDGE('',$,$,#82,.T.); 100#91=ORIENTED_EDGE('',$,$,#87,.T.); 101#92=EDGE_LOOP('',(#88,#89,#90,#91)); 102#93=FACE_OUTER_BOUND('',#92,.T.); 103#94=ADVANCED_FACE('',(#93),#59,.T.); 104#95=CLOSED_SHELL('',(#54,#94)); 105#96=SHELL_BASED_SURFACE_MODEL('',(#95)); 106#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 107#9051=PRODUCT('Twi076','Twi076','',(#9050)); 108#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 109#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 110#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 111#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 112#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 113#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 114#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 115#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 116#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 117#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#96),#9060); 118#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 119ENDSEC; 120END-ISO-10303-21;