step-examples/12-3b-wires/Twi074.stp
Sources
- OCCT `ShapeAnalysis_Wire::CheckNotchedEdges` (`ShapeAnalysis_Wire.hxx:459`)
Description
Diagnostic-only counterpart to Twi054. For a specific edge pair `(num-1, num)`, the analyzer determines whether they form a notch and returns the index of the short edge plus the parameter on the long edge at which the long edge could be split to flatten the notch.
Reproducer recipe
As Twi054, querying the specific notch triplet.
Expected kernel behavior
return short-edge index and split-parameter; do not modify the wire.
Notes
**See also**: Twi054. Per-pair counterpart to FixNotchedEdges. Synonyms: "single-pair notch detection", "is this edge pair a notch query", "diagnose specific triplet for notch shape", "per-pair notch diagnostic with split parameter".- **Tier-3 assertion**: n_edges_total >= 5
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
face[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/* Twi074: ADVANCED_FACE on a PLANE (10x10 rectangle); EDGE_LOOP contains SIX EDGE_CURVEs instead of four â the right edge is split into two long partials flanking a tiny two-edge triangular bump; right-lower: (10,0,0)â(10,4,0) [4 units]; bump-right: (10,4,0)â(10.001,5,0) [short notch side 1]; bump-left: (10.001,5,0)â(10,6,0) [short notch side 2]; right-upper: (10,6,0)â(10,10,0) [4 units]; the bump forms a 0.001-unit-wide notch protruding rightward; CheckNotchedEdges for edge pair (right-lower, bump-right) returns: short-edge index = bump-right, split parameter on long edge for flattening; diagnostic-only: does NOT modify the wire; all EDGE_CURVEs ARE wired into EDGE_LOOP â FACE_OUTER_BOUND â ADVANCED_FACE in CLOSED_SHELL */ 3HEADER; 4FILE_DESCRIPTION(('Twi074'),'2;1'); 5FILE_NAME('Twi074.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('',(10.0,4.0,0.0)); 24#15=VERTEX_POINT('',#14); 25#16=CARTESIAN_POINT('',(10.001,5.0,0.0)); 26#17=VERTEX_POINT('',#16); 27#18=CARTESIAN_POINT('',(10.0,6.0,0.0)); 28#19=VERTEX_POINT('',#18); 29#20=CARTESIAN_POINT('',(5.0,0.0,0.0)); 30#21=VERTEX_POINT('',#20); 31#22=CARTESIAN_POINT('',(0.0,0.0,0.0)); 32#23=DIRECTION('',(1.0,0.0,0.0)); 33#24=VECTOR('',#23,10.0); 34#25=LINE('',#22,#24); 35#26=EDGE_CURVE('',#7,#9,#25,.T.); 36#27=ORIENTED_EDGE('',$,$,#26,.T.); 37#28=CARTESIAN_POINT('',(10.0,0.0,0.0)); 38#29=DIRECTION('',(0.0,1.0,0.0)); 39#30=VECTOR('',#29,4.0); 40#31=LINE('',#28,#30); 41#32=EDGE_CURVE('',#9,#15,#31,.T.); 42#33=ORIENTED_EDGE('',$,$,#32,.T.); 43#34=CARTESIAN_POINT('',(10.0,4.0,0.0)); 44#35=DIRECTION('',(0.0009999995,0.9999995,0.0)); 45#36=VECTOR('',#35,1.0000005); 46#37=LINE('',#34,#36); 47#38=EDGE_CURVE('',#15,#17,#37,.T.); 48#39=ORIENTED_EDGE('',$,$,#38,.T.); 49#40=CARTESIAN_POINT('',(10.001,5.0,0.0)); 50#41=DIRECTION('',(-0.0009999995,0.9999995,0.0)); 51#42=VECTOR('',#41,1.0000005); 52#43=LINE('',#40,#42); 53#44=EDGE_CURVE('',#17,#19,#43,.T.); 54#45=ORIENTED_EDGE('',$,$,#44,.T.); 55#46=CARTESIAN_POINT('',(10.0,6.0,0.0)); 56#47=DIRECTION('',(0.0,1.0,0.0)); 57#48=VECTOR('',#47,4.0); 58#49=LINE('',#46,#48); 59#50=EDGE_CURVE('',#19,#11,#49,.T.); 60#51=ORIENTED_EDGE('',$,$,#50,.T.); 61#52=CARTESIAN_POINT('',(10.0,10.0,0.0)); 62#53=DIRECTION('',(-1.0,0.0,0.0)); 63#54=VECTOR('',#53,10.0); 64#55=LINE('',#52,#54); 65#56=EDGE_CURVE('',#11,#13,#55,.T.); 66#57=ORIENTED_EDGE('',$,$,#56,.T.); 67#58=CARTESIAN_POINT('',(0.0,10.0,0.0)); 68#59=DIRECTION('',(0.0,-1.0,0.0)); 69#60=VECTOR('',#59,10.0); 70#61=LINE('',#58,#60); 71#62=EDGE_CURVE('',#13,#7,#61,.T.); 72#63=ORIENTED_EDGE('',$,$,#62,.T.); 73#64=EDGE_LOOP('',(#27,#33,#39,#45,#51,#57,#63)); 74#65=FACE_OUTER_BOUND('',#64,.T.); 75#66=ADVANCED_FACE('',(#65),#5,.T.); 76#67=CLOSED_SHELL('',(#66)); 77#68=SHELL_BASED_SURFACE_MODEL('',(#67)); 78#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 79#9051=PRODUCT('Twi074','Twi074','',(#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;