step-examples/12-3b-wires/Twi064.stp
Sources
- OCCT `ShapeAnalysis_Wire::Perform` (`ShapeAnalysis_Wire.hxx:176`)
Description
A diagnostic-only pass over a wire (no healing). The pipeline must run CheckOrder, CheckSmall, CheckConnected, CheckEdgeCurves, CheckDegenerated, CheckSelfIntersection, CheckLacking, CheckClosed and aggregate all status flags — short-circuiting on the first defect leaves the user without a complete picture. Typical fixture: an inner FACE_BOUND triangle with three near-coincident VERTEX_POINTs and an EDGE_LOOP whose ORIENTED_EDGEs are listed out of head-to-tail order — multiple defects in one EDGE_LOOP.
Reproducer recipe
An EDGE_LOOP that fails at least three sub-checks: out-of-order ORIENTED_EDGEs, sub-tolerance edges between near-coincident vertices, not closed.
Expected kernel behavior
Heal and accept: normalize / run each sub-check independently of the others' outcomes; return a status object with one entry per check. Callers later filter by severity.
Notes
Umbrella for diagnostic-only pipeline; separate from Twi051 which is the healer pipeline. Synonyms: "wire diagnostic must run all sub-checks", "no early termination in wire analyzer", "complete status report needed not first failure", "all defect flags collected per wire".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(15) 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 >= 4face[0].surface_type == "plane"n_vertices_total >= 8
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi064: ADVANCED_FACE on a PLANE with TWO wires: outer FACE_OUTER_BOUND is a correct 10x10 square (4 edges, 4 vertices); inner FACE_BOUND is a degenerate triangle with near-coincident VERTEX_POINTs: v0=(5,5,0), v1=(5+1e-7,5,0), v2=(5,5+1e-7,0) â sub-tolerance side lengths 1e-7; ORIENTED_EDGEs in the inner EDGE_LOOP are listed out of head-to-tail order (CheckOrder fails) â edge for v2âv0 appears before edge for v1âv2; sub-tolerance edge lengths (CheckSmall fails); multiple distinct sub-checks fail on the inner wire simultaneously; a pipeline that short-circuits after first failure misses remaining checks; all entities ARE wired into ADVANCED_FACE in CLOSED_SHELL â never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi064'),'2;1'); 5FILE_NAME('Twi064.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=ORIENTED_EDGE('',$,$,#18,.T.); 29#20=CARTESIAN_POINT('',(10.0,0.0,0.0)); 30#21=DIRECTION('',(0.0,1.0,0.0)); 31#22=VECTOR('',#21,10.0); 32#23=LINE('',#20,#22); 33#24=EDGE_CURVE('',#9,#11,#23,.T.); 34#25=ORIENTED_EDGE('',$,$,#24,.T.); 35#26=CARTESIAN_POINT('',(10.0,10.0,0.0)); 36#27=DIRECTION('',(-1.0,0.0,0.0)); 37#28=VECTOR('',#27,10.0); 38#29=LINE('',#26,#28); 39#30=EDGE_CURVE('',#11,#13,#29,.T.); 40#31=ORIENTED_EDGE('',$,$,#30,.T.); 41#32=CARTESIAN_POINT('',(0.0,10.0,0.0)); 42#33=DIRECTION('',(0.0,-1.0,0.0)); 43#34=VECTOR('',#33,10.0); 44#35=LINE('',#32,#34); 45#36=EDGE_CURVE('',#13,#7,#35,.T.); 46#37=ORIENTED_EDGE('',$,$,#36,.T.); 47#38=EDGE_LOOP('',(#19,#25,#31,#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=CARTESIAN_POINT('',(5.0000001,5.0,0.0)); 52#43=VERTEX_POINT('',#42); 53#44=CARTESIAN_POINT('',(5.0,5.0000001,0.0)); 54#45=VERTEX_POINT('',#44); 55#46=CARTESIAN_POINT('',(5.0,5.0,0.0)); 56#47=DIRECTION('',(1.0,0.0,0.0)); 57#48=VECTOR('',#47,1.0E-07); 58#49=LINE('',#46,#48); 59#50=EDGE_CURVE('',#41,#43,#49,.T.); 60#51=ORIENTED_EDGE('',$,$,#50,.T.); 61#52=CARTESIAN_POINT('',(5.0000001,5.0,0.0)); 62#53=DIRECTION('',(-0.707106781187,0.707106781187,0.0)); 63#54=VECTOR('',#53,1.41421356237E-07); 64#55=LINE('',#52,#54); 65#56=EDGE_CURVE('',#43,#45,#55,.T.); 66#57=ORIENTED_EDGE('',$,$,#56,.T.); 67#58=CARTESIAN_POINT('',(5.0,5.0000001,0.0)); 68#59=DIRECTION('',(0.0,-1.0,0.0)); 69#60=VECTOR('',#59,1.0E-07); 70#61=LINE('',#58,#60); 71#62=EDGE_CURVE('',#45,#41,#61,.T.); 72#63=ORIENTED_EDGE('',$,$,#62,.T.); 73#64=EDGE_LOOP('',(#63,#51,#57)); 74#65=FACE_BOUND('',#64,.T.); 75#66=ADVANCED_FACE('',(#39,#65),#5,.T.); 76#67=CLOSED_SHELL('',(#66)); 77#68=SHELL_BASED_SURFACE_MODEL('',(#67)); 78#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 79#9051=PRODUCT('Twi064','Twi064','',(#9050)); 80#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 81#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 82#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 83#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 84#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 85#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 86#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 87#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 88#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 89#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#68),#9060); 90#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 91ENDSEC; 92END-ISO-10303-21;