Gs025 — `B_SPLINE_CURVE_WITH_KNOTS` C0 cusp / kink at interior knot of full multiplicity (C1 expected)

§12.2c surface-degeneracy

P1 — silent data loss

geometry

Sources

Description

A `B_SPLINE_CURVE_WITH_KNOTS` (or surface) whose interior knot multiplicity equals the curve / surface order produces only C0 continuity at the join; a visible cusp / kink on an otherwise smooth curve. Typical shape: a degree-3 B-spline with 7 control points that peak at y=2 and immediately drop to y=-2 with an interior knot of multiplicity 3. Downstream CAD/CAM/CAE tools assume at least C1; after format conversion, neighbouring faces show G0/G1/G2 discontinuities at shared edges that were smooth in the source.

Reproducer recipe

BSpline curve with internal knot of multiplicity equal to order producing a G0-only spot; or two adjacent faces emitted as `RATIONAL_B_SPLINE_SURFACE` patches whose tangent planes at the shared edge differ by more than the resolution tolerance.

Expected kernel behavior

split the curve / surface at the continuity drop, report the discontinuity as a quality warning, or refuse to claim a smoother continuity than the data supports.

Notes

**See also**: Gn012. Synonyms: "B-spline curve C0 cusp at interior knot full multiplicity", "BSpline curve has visible kink", "knot multiplicity equals order produces C0 join", "G0/G1/G2 discontinuity at shared edge", "rational B-spline patches show tangent break".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Gn012

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gs025: PLANE IS ADVANCED_FACE.face_geometry; defect EDGE_CURVE curve_3d IS B_SPLINE_CURVE_WITH_KNOTS degree=3, 8 ctrl pts, multiplicities (4,4,4), knots (0.0,0.5,1.0); interior knot full multiplicity=order causes cusp; shape_null=True */
3HEADER;
4FILE_DESCRIPTION(('Gs025'),'2;1');
5FILE_NAME('Gs025.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('gs025_ax',#1,#2,#3);
14#5=PLANE('gs025_plane',#4);
15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
16#7=CARTESIAN_POINT('',(0.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(1.0,1.0,0.0));
18#9=CARTESIAN_POINT('',(2.0,2.0,0.0));
19#10=CARTESIAN_POINT('',(3.0,2.0,0.0));
20#11=CARTESIAN_POINT('',(3.0,-2.0,0.0));
21#12=CARTESIAN_POINT('',(4.0,-2.0,0.0));
22#13=CARTESIAN_POINT('',(5.0,-1.0,0.0));
23#14=CARTESIAN_POINT('',(6.0,0.0,0.0));
24#15=B_SPLINE_CURVE_WITH_KNOTS('gs025_bsc',3,(#7,#8,#9,#10,#11,#12,#13,#14),.UNSPECIFIED.,.F.,.F.,(4,4,4),(0.0,0.5,1.0),.UNSPECIFIED.);
25#16=CARTESIAN_POINT('',(0.0,0.0,0.0));
26#17=CARTESIAN_POINT('',(6.0,0.0,0.0));
27#18=CARTESIAN_POINT('',(6.0,3.0,0.0));
28#19=CARTESIAN_POINT('',(0.0,3.0,0.0));
29#20=VERTEX_POINT('',#16);
30#21=VERTEX_POINT('',#17);
31#22=VERTEX_POINT('',#18);
32#23=VERTEX_POINT('',#19);
33#24=CARTESIAN_POINT('',(0.0,0.0));
34#25=DIRECTION('',(1.0,0.0));
35#26=VECTOR('',#25,6.0);
36#27=LINE('',#24,#26);
37#28=DEFINITIONAL_REPRESENTATION('pcdef_e0',(#27),#6);
38#29=PCURVE('pc_e0',#5,#28);
39#30=SURFACE_CURVE('sc_e0',#15,(#29),.PCURVE_S1.);
40#31=EDGE_CURVE('ec_e0',#20,#21,#30,.T.);
41#32=CARTESIAN_POINT('',(6.0,0.0,0.0));
42#33=DIRECTION('',(0.0,1.0,0.0));
43#34=VECTOR('',#33,3.0);
44#35=LINE('',#32,#34);
45#36=CARTESIAN_POINT('',(6.0,0.0));
46#37=DIRECTION('',(0.0,1.0));
47#38=VECTOR('',#37,3.0);
48#39=LINE('',#36,#38);
49#40=DEFINITIONAL_REPRESENTATION('pcdef',(#39),#6);
50#41=PCURVE('pc',#5,#40);
51#42=SURFACE_CURVE('sc',#35,(#41),.PCURVE_S1.);
52#43=EDGE_CURVE('ec',#21,#22,#42,.T.);
53#44=CARTESIAN_POINT('',(6.0,3.0,0.0));
54#45=DIRECTION('',(-1.0,0.0,0.0));
55#46=VECTOR('',#45,6.0);
56#47=LINE('',#44,#46);
57#48=CARTESIAN_POINT('',(6.0,3.0));
58#49=DIRECTION('',(-1.0,0.0));
59#50=VECTOR('',#49,6.0);
60#51=LINE('',#48,#50);
61#52=DEFINITIONAL_REPRESENTATION('pcdef',(#51),#6);
62#53=PCURVE('pc',#5,#52);
63#54=SURFACE_CURVE('sc',#47,(#53),.PCURVE_S1.);
64#55=EDGE_CURVE('ec',#22,#23,#54,.T.);
65#56=CARTESIAN_POINT('',(0.0,3.0,0.0));
66#57=DIRECTION('',(0.0,-1.0,0.0));
67#58=VECTOR('',#57,3.0);
68#59=LINE('',#56,#58);
69#60=CARTESIAN_POINT('',(0.0,3.0));
70#61=DIRECTION('',(0.0,-1.0));
71#62=VECTOR('',#61,3.0);
72#63=LINE('',#60,#62);
73#64=DEFINITIONAL_REPRESENTATION('pcdef',(#63),#6);
74#65=PCURVE('pc',#5,#64);
75#66=SURFACE_CURVE('sc',#59,(#65),.PCURVE_S1.);
76#67=EDGE_CURVE('ec',#23,#20,#66,.T.);
77#68=ORIENTED_EDGE('',$,$,#31,.T.);
78#69=ORIENTED_EDGE('',$,$,#43,.T.);
79#70=ORIENTED_EDGE('',$,$,#55,.T.);
80#71=ORIENTED_EDGE('',$,$,#67,.T.);
81#72=EDGE_LOOP('',(#68,#69,#70,#71));
82#73=FACE_OUTER_BOUND('',#72,.T.);
83#74=ADVANCED_FACE('',(#73),#5,.T.);
84#75=OPEN_SHELL('',(#74));
85#76=SHELL_BASED_SURFACE_MODEL('',(#75));
86#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
87#9051=PRODUCT('Gs025','Gs025','',(#9050));
88#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
89#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
90#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
91#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
92#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
93#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
94#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
95#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
96#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
97#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#76),#9060);
98#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
99ENDSEC;
100END-ISO-10303-21;