step-examples/12-3b-wires/Twi063.stp
Sources
- OCCT `ShapeAnalysis_Edge::CheckOverlapping` (`ShapeAnalysis_Edge.hxx:237`)
Description
Two distinct EDGE_CURVEs share a finite-length segment of the same underlying curve; distance between them stays below tolerance over a non-zero parameter interval. The edges are not duplicates (their endpoints differ), but their interiors collide.
Reproducer recipe
Edge A from `(0,0,0)→(5,0,0)` along the X-axis; edge B from `(2,0,0)→(7,0,0)` along the same axis. Overlap span: `[2,5]`.
Expected kernel behavior
report the overlap interval and the offending edge pair; either trim one edge, merge them, or reject. The "domain distance" parameter lets the caller filter overlaps below a length threshold.
Notes
Distinct from coincident edges (which would overlap fully). Synonyms: "two edges share a span on same curve", "edges overlap partially", "interior collision between two edges", "edge interiors overlap but endpoints differ".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(11) 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 >= 1face[0].surface_type == "plane"n_vertices_total >= 2
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi063: ADVANCED_FACE on a PLANE; EDGE_LOOP contains four EDGE_CURVEs; edge_a runs (0,0,0)â(5,0,0) along the X-axis (length 5); edge_b runs (2,0,0)â(7,0,0) along the same X-axis (length 5); both share the same underlying X-axis direction; interior segments overlap over [2,5]; the interiors collide while endpoints differ â partial overlap IS the mechanism; CheckOverlapping detects the span [2,5] where the two edge interiors coincide; face closes via a short Y-axis connector segment (no extra vertices needed); all EDGE_CURVEs ARE wired into EDGE_LOOP â FACE_OUTER_BOUND â ADVANCED_FACE in CLOSED_SHELL â never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi063'),'2;1'); 5FILE_NAME('Twi063.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('',(5.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(2.0,0.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(7.0,0.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,5.0); 26#17=LINE('',#14,#16); 27#18=EDGE_CURVE('',#7,#9,#17,.T.); 28#19=ORIENTED_EDGE('',$,$,#18,.T.); 29#20=CARTESIAN_POINT('',(2.0,0.0,0.0)); 30#21=DIRECTION('',(1.0,0.0,0.0)); 31#22=VECTOR('',#21,5.0); 32#23=LINE('',#20,#22); 33#24=EDGE_CURVE('',#11,#13,#23,.T.); 34#25=ORIENTED_EDGE('',$,$,#24,.T.); 35#26=CARTESIAN_POINT('',(7.0,5.0,0.0)); 36#27=VERTEX_POINT('',#26); 37#28=CARTESIAN_POINT('',(0.0,5.0,0.0)); 38#29=VERTEX_POINT('',#28); 39#30=CARTESIAN_POINT('',(7.0,0.0,0.0)); 40#31=DIRECTION('',(0.0,1.0,0.0)); 41#32=VECTOR('',#31,5.0); 42#33=LINE('',#30,#32); 43#34=EDGE_CURVE('',#13,#27,#33,.T.); 44#35=ORIENTED_EDGE('',$,$,#34,.T.); 45#36=CARTESIAN_POINT('',(7.0,5.0,0.0)); 46#37=DIRECTION('',(-1.0,0.0,0.0)); 47#38=VECTOR('',#37,7.0); 48#39=LINE('',#36,#38); 49#40=EDGE_CURVE('',#27,#29,#39,.T.); 50#41=ORIENTED_EDGE('',$,$,#40,.T.); 51#42=CARTESIAN_POINT('',(0.0,5.0,0.0)); 52#43=DIRECTION('',(0.0,-1.0,0.0)); 53#44=VECTOR('',#43,5.0); 54#45=LINE('',#42,#44); 55#46=EDGE_CURVE('',#29,#7,#45,.T.); 56#47=ORIENTED_EDGE('',$,$,#46,.T.); 57#48=CARTESIAN_POINT('',(5.0,0.0,0.0)); 58#49=DIRECTION('',(-1.0,0.0,0.0)); 59#50=VECTOR('',#49,3.0); 60#51=LINE('',#48,#50); 61#52=EDGE_CURVE('',#9,#11,#51,.T.); 62#53=ORIENTED_EDGE('',$,$,#52,.T.); 63#54=EDGE_LOOP('',(#19,#53,#25,#35,#41,#47)); 64#55=FACE_OUTER_BOUND('',#54,.T.); 65#56=ADVANCED_FACE('',(#55),#5,.T.); 66#57=CLOSED_SHELL('',(#56)); 67#58=SHELL_BASED_SURFACE_MODEL('',(#57)); 68#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 69#9051=PRODUCT('Twi063','Twi063','',(#9050)); 70#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 71#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 72#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 73#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 74#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 75#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 76#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 77#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 78#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 79#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#58),#9060); 80#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 81ENDSEC; 82END-ISO-10303-21;