step-examples/12-3b-wires/Twi165.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Wire.CheckTail B-spline subdivided
Reproducer recipe
Expected kernel behavior
Treat both interior junctions as genuine sharp corners, not representation artifacts of subdivision: at (14,3,0), the incoming Bezier segment's tangent (from poles (13,2.5,0)→(14,3,0)) points toward (1,0.5,0) while the next segment's tangent (from poles (14,3,0)→(14,5,0)) points toward (0,1,0) — roughly a 63° change in direction, not a smooth continuation. The same holds at (12,7,0), where the incoming tangent (-1,0.5,0) and outgoing tangent (roughly (-2,-3,0)) point in substantially different directions. A kernel must evaluate and compare actual tangent vectors at each junction rather than assume adjacent B-spline segments with matching endpoints are automatically one smooth curve; these two corners are real C1 discontinuities that a boundary-tracing pass should report, not suppress.
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/* Twi165: Single ADVANCED_FACE on PLANE in CLOSED_SHELL; outer EDGE_LOOP has 4 edges: E0 LINE (0,0,0)â(10,0,0) â lead-in straight edge; E1 degree-3 B-spline (10,0,0)â(14,3,0) sub-curve #1 with C1 kink at start; E2 degree-3 B-spline (14,3,0)â(12,7,0) sub-curve #2 with C1 kink at junction; E3 degree-3 B-spline (12,7,0)â(0,0,0) sub-curve #3 with C1 kink at junction; E1/E2/E3 represent subdivided single logical curve; C1 tangent-discontinuity at every sub-curve boundary IS the defect; CheckTail without knot-continuity awareness fires at each junction as tail failure over-reporting defects IS the mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND â ADVANCED_FACE in CLOSED_SHELL â never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi165'),'2;1'); 5FILE_NAME('Twi165.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('',(14.0,3.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(12.0,7.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=CARTESIAN_POINT('',(11.0,2.0,0.0)); 31#22=CARTESIAN_POINT('',(13.0,2.5,0.0)); 32#23=CARTESIAN_POINT('',(14.0,3.0,0.0)); 33#24=B_SPLINE_CURVE_WITH_KNOTS('',3,(#20,#21,#22,#23),.UNSPECIFIED.,.F.,.F.,(4,4),(0.0,1.0),.UNSPECIFIED.); 34#25=EDGE_CURVE('',#9,#11,#24,.T.); 35#26=ORIENTED_EDGE('',$,$,#25,.T.); 36#27=CARTESIAN_POINT('',(14.0,3.0,0.0)); 37#28=CARTESIAN_POINT('',(14.0,5.0,0.0)); 38#29=CARTESIAN_POINT('',(13.0,6.5,0.0)); 39#30=CARTESIAN_POINT('',(12.0,7.0,0.0)); 40#31=B_SPLINE_CURVE_WITH_KNOTS('',3,(#27,#28,#29,#30),.UNSPECIFIED.,.F.,.F.,(4,4),(0.0,1.0),.UNSPECIFIED.); 41#32=EDGE_CURVE('',#11,#13,#31,.T.); 42#33=ORIENTED_EDGE('',$,$,#32,.T.); 43#34=CARTESIAN_POINT('',(12.0,7.0,0.0)); 44#35=CARTESIAN_POINT('',(10.0,4.0,0.0)); 45#36=CARTESIAN_POINT('',(7.0,2.0,0.0)); 46#37=CARTESIAN_POINT('',(3.0,1.0,0.0)); 47#38=CARTESIAN_POINT('',(0.0,0.0,0.0)); 48#39=B_SPLINE_CURVE_WITH_KNOTS('',3,(#34,#35,#36,#37,#38),.UNSPECIFIED.,.F.,.F.,(4,1,4),(0.0,0.5,1.0),.UNSPECIFIED.); 49#40=EDGE_CURVE('',#13,#7,#39,.T.); 50#41=ORIENTED_EDGE('',$,$,#40,.T.); 51#42=EDGE_LOOP('',(#19,#26,#33,#41)); 52#43=FACE_OUTER_BOUND('',#42,.T.); 53#44=ADVANCED_FACE('',(#43),#5,.T.); 54#45=CLOSED_SHELL('',(#44)); 55#46=SHELL_BASED_SURFACE_MODEL('',(#45)); 56#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 57#9051=PRODUCT('Twi165','Twi165','',(#9050)); 58#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 59#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 60#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 61#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 62#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 63#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 64#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 65#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 66#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 67#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#46),#9060); 68#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 69ENDSEC; 70END-ISO-10303-21;