step-examples/12-3b-wires/Twi163.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Wire.CheckIntersectingEdges trimmed-edges-overlap-base-curve
Reproducer recipe
Expected kernel behavior
Compare curve geometry, not entity identity: edge #21's B-spline (#20) and edge #30's B-spline (#29) are two separate entities with byte-for-byte identical poles and knots — (0,0),(2,8),(5,6),(6,8),(8,6),(10,0) with knots (0,0.5,1) and multiplicities (4,2,4) — so they trace the exact same curve shape. Edge #21 runs from (0,0,0) to (5.056,7.088,0) along that curve, while edge #30 runs from (3.84,7.04,0) to (6.964,6.872,0) — an interior span that begins before edge #21 ends, so the two edges cover overlapping portions of the identical underlying curve. A kernel must detect the overlap by comparing curve geometry (poles/knots or point-on-curve tests), not `Handle`-level identity, even though the two EDGE_CURVE entities point at nominally distinct curve objects.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi163: Single ADVANCED_FACE on PLANE in CLOSED_SHELL; outer EDGE_LOOP has 3 edges: E0 degree-3 B-spline (0,0,0)â(6,4.32,0) covering param t=[0.0,0.6]; E1 degree-3 B-spline same-base-curve (4,3.84,0)â(9,2.43,0) covering param t=[0.4,0.9] â overlaps E0 in param range [0.4,0.6] IS the defect; E2 LINE (9,2.43,0)â(0,0,0) closes the wire; both E0 and E1 reference distinct B-spline curve entities that trace the same underlying curve segment in [0.4,0.6]; CheckIntersectingEdges without range-overlap detection on shared-base reports false-clean IS the mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND â ADVANCED_FACE in CLOSED_SHELL â never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi163'),'2;1'); 5FILE_NAME('Twi163.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.056,7.088,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(3.84,7.04,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(6.964,6.872,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#15=CARTESIAN_POINT('',(2.0,8.0,0.0)); 25#16=CARTESIAN_POINT('',(5.0,6.0,0.0)); 26#17=CARTESIAN_POINT('',(6.0,8.0,0.0)); 27#18=CARTESIAN_POINT('',(8.0,6.0,0.0)); 28#19=CARTESIAN_POINT('',(10.0,0.0,0.0)); 29#20=B_SPLINE_CURVE_WITH_KNOTS('',3,(#14,#15,#16,#17,#18,#19),.UNSPECIFIED.,.F.,.F.,(4,2,4),(0.0,0.5,1.0),.UNSPECIFIED.); 30#21=EDGE_CURVE('',#7,#9,#20,.T.); 31#22=ORIENTED_EDGE('',$,$,#21,.T.); 32#23=CARTESIAN_POINT('',(0.0,0.0,0.0)); 33#24=CARTESIAN_POINT('',(2.0,8.0,0.0)); 34#25=CARTESIAN_POINT('',(5.0,6.0,0.0)); 35#26=CARTESIAN_POINT('',(6.0,8.0,0.0)); 36#27=CARTESIAN_POINT('',(8.0,6.0,0.0)); 37#28=CARTESIAN_POINT('',(10.0,0.0,0.0)); 38#29=B_SPLINE_CURVE_WITH_KNOTS('',3,(#23,#24,#25,#26,#27,#28),.UNSPECIFIED.,.F.,.F.,(4,2,4),(0.0,0.5,1.0),.UNSPECIFIED.); 39#30=EDGE_CURVE('',#11,#13,#29,.T.); 40#31=ORIENTED_EDGE('',$,$,#30,.T.); 41#32=CARTESIAN_POINT('',(5.056,7.088,0.0)); 42#33=DIRECTION('',(-0.999221823409,-0.0394429667135,0.0)); 43#34=VECTOR('',#33,1.21694699967); 44#35=LINE('',#32,#34); 45#36=EDGE_CURVE('',#9,#11,#35,.T.); 46#37=ORIENTED_EDGE('',$,$,#36,.T.); 47#38=CARTESIAN_POINT('',(6.964,6.872,0.0)); 48#39=DIRECTION('',(-0.711792825643,-0.702389474126,0.0)); 49#40=VECTOR('',#39,9.78374570397); 50#41=LINE('',#38,#40); 51#42=EDGE_CURVE('',#13,#7,#41,.T.); 52#43=ORIENTED_EDGE('',$,$,#42,.T.); 53#44=EDGE_LOOP('',(#22,#37,#31,#43)); 54#45=FACE_OUTER_BOUND('',#44,.T.); 55#46=ADVANCED_FACE('',(#45),#5,.T.); 56#47=CLOSED_SHELL('',(#46)); 57#48=SHELL_BASED_SURFACE_MODEL('',(#47)); 58#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 59#9051=PRODUCT('Twi163','Twi163','',(#9050)); 60#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 61#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 62#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 63#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 64#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 65#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 66#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 67#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 68#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 69#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#48),#9060); 70#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 71ENDSEC; 72END-ISO-10303-21;