step-examples/12-2a-pcurves/Gp184.stp
Sources
- occt-coverage GAP audit, work packet D2 item `seq-split-continuity`, `exchange/problems.json` `seq-split-continuity` (`ShapeUpgrade_ShapeDivideContinuity`, static `splitcontinuity`, `ShapeProcess_OperLibrary.cxx:438-475`).
Sender
deduced — OCCT uncovered-class sweep, work packet D2.
Description
The bottom edge of a rectangular `PLANE` face uses a degree-2 `B_SPLINE_CURVE_WITH_KNOTS`, 5 control points, knot vector `(0,0,0,0.5,0.5,1,1,1)` (multiplicities `(3,2,3)`): interior multiplicity equals the degree, giving genuine C0 continuity — position-continuous, tangent-discontinuous — at `u=0.5`. The control point exactly at the shared knot sits on the straight line between the edge's endpoints (so 3D position stays continuous), but the neighbouring poles are offset in different axes (`+Y` before the knot, `+Z` after), so the incoming and outgoing tangent directions genuinely differ. The edge is wired through a live `EDGE_CURVE`/`PCURVE` into a reachable, 4-edge `ADVANCED_FACE` — unlike Gp033 (`occt=empty`, `shape_null=True`) or Gn172 (orphan pattern, defect curve unreferenced by any live `EDGE_CURVE`/`PCURVE`).
Reproducer recipe
Degree-2 `B_SPLINE_CURVE_WITH_KNOTS`, control points `(0,0,0)`, `(2.5,0.6,0)`, `(5,0,0)`, `(7.5,0,0.6)`, `(10,0,0)`; knot multiplicities `(3,2,3)`, knots `(0.0,0.5,1.0)`; wired as one edge of a normal 4-edge rectangular `ADVANCED_FACE` boundary.
Expected kernel behavior
detect the sub-C1 interior knot and split the curve at the discontinuity (the continuity-splitting stage) so downstream consumers requiring C1 receive two valid pieces instead of one curve with a hidden kink.
Notes
**See also**: Gp033 (curve subvariant's original attempt, `shape_null=True`), Gn172 (orphan pattern), Gp120 (pcurve subvariant, survives), Gs049/Gs070 (surface subvariant, survives). **Empirical finding (live-verified)**: the packet spec (mirroring Gp033's own recipe) asked for interior multiplicity `= degree+1` (3, for a degree-2 curve). Tested directly against `Geom_BSplineCurve`'s constructor: multiplicity 3 at an INTERIOR knot is rejected outright ("`BSpline curve: # Poles and degree mismatch`") — OCCT only permits `degree+1` multiplicity at the first/last knot of a clamped curve, never interior. This is exactly why Gp033 is `shape_null` — the curve entity never constructs, so translation fails before the edge is reachable. This fixture instead uses interior multiplicity `= degree` (2), the textbook C0 case, which OCCT accepts. Live-verified via direct curve evaluation on the translated edge: overall `Continuity() == GeomAbs_C0`, `NbIntervals(GeomAbs_C1) == 2` (exactly one C1-break, located at parameter 0.5), position at the break is `(5,0,0)` on both sides (continuous), but the unit tangent evaluated at `0.5 - 1e-5` is `(0.972, -0.233, 0.0)` while at `0.5 + 1e-5` it is `(0.972, 0.0, 0.233)` — genuinely different directions, confirming a real tangent-discontinuous kink (not an accidental smooth pass-through). An earlier symmetric pole choice (bump `+Z` before, `-Z` after, both offset equally) was tested first and turned out to produce IDENTICAL tangents on both sides (an accidental C1 pass-through despite the double knot) — discarded once live-verified; the asymmetric-axis bump shipped here is the one that live-confirmed a genuine kink.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b'c0_kink_bottom')contains(b'B_SPLINE_CURVE_WITH_KNOTS')contains(b'(3,2,3)')
Tier-3 assertions
shape_null == Falsen_faces_total == 1n_edges_total == 4n_vertices_total == 8face[0].surface_type == "plane"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gp184: Bottom edge 3D curve: degree-2 B_SPLINE_CURVE_WITH_KNOTS, 5 control points, knot vector (0,0,0,0.5,0.5,1,1,1) i.e. multiplicities (3,2,3) -- interior multiplicity = degree (2) gives genuine C0 continuity (position continuous, tangent discontinuous); poles either side of the shared knot point are non-collinear so the kink is geometrically real; wired through a live EDGE_CURVE/PCURVE into a reachable ADVANCED_FACE (not Gp033's unconstructible mult=degree+1 interior knot, which OCCT's Geom_BSplineCurve constructor rejects outright, yielding shape_null) */ 3HEADER; 4FILE_DESCRIPTION(('Gp184'),'2;1'); 5FILE_NAME('Gp184.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=(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('',(10.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(10.0,5.0,0.0)); 19#10=CARTESIAN_POINT('',(0.0,5.0,0.0)); 20#11=VERTEX_POINT('',#7); 21#12=VERTEX_POINT('',#8); 22#13=VERTEX_POINT('',#9); 23#14=VERTEX_POINT('',#10); 24#15=CARTESIAN_POINT('',(0.0,0.0,0.0)); 25#16=CARTESIAN_POINT('',(2.5,0.6,0.0)); 26#17=CARTESIAN_POINT('',(5.0,0.0,0.0)); 27#18=CARTESIAN_POINT('',(7.5,0.0,0.6)); 28#19=CARTESIAN_POINT('',(10.0,0.0,0.0)); 29#20=B_SPLINE_CURVE_WITH_KNOTS('c0_kink_bottom',2,(#15,#16,#17,#18,#19),.UNSPECIFIED.,.F.,.F.,(3,2,3),(0.0,0.5,1.0),.UNSPECIFIED.); 30#21=CARTESIAN_POINT('',(0.0,0.0)); 31#22=DIRECTION('',(1.0,0.0)); 32#23=VECTOR('',#22,10.0); 33#24=LINE('',#21,#23); 34#25=DEFINITIONAL_REPRESENTATION('pc_bot',(#24),#6); 35#26=PCURVE('bot_pc',#5,#25); 36#27=SURFACE_CURVE('c0_bot',#20,(#26),.PCURVE_S1.); 37#28=EDGE_CURVE('c0_bot',#11,#12,#27,.T.); 38#29=DIRECTION('',(0.0,1.0,0.0)); 39#30=VECTOR('',#29,5.0); 40#31=LINE('',#8,#30); 41#32=CARTESIAN_POINT('',(10.0,0.0)); 42#33=DIRECTION('',(0.0,1.0)); 43#34=VECTOR('',#33,5.0); 44#35=LINE('',#32,#34); 45#36=DEFINITIONAL_REPRESENTATION('pc_right',(#35),#6); 46#37=PCURVE('right_pc',#5,#36); 47#38=SURFACE_CURVE('right_edge',#31,(#37),.PCURVE_S1.); 48#39=EDGE_CURVE('right_edge',#12,#13,#38,.T.); 49#40=DIRECTION('',(1.0,0.0,0.0)); 50#41=VECTOR('',#40,10.0); 51#42=LINE('',#10,#41); 52#43=CARTESIAN_POINT('',(0.0,5.0)); 53#44=DIRECTION('',(1.0,0.0)); 54#45=VECTOR('',#44,10.0); 55#46=LINE('',#43,#45); 56#47=DEFINITIONAL_REPRESENTATION('pc_top',(#46),#6); 57#48=PCURVE('top_pc',#5,#47); 58#49=SURFACE_CURVE('top_edge',#42,(#48),.PCURVE_S1.); 59#50=EDGE_CURVE('top_edge',#14,#13,#49,.T.); 60#51=DIRECTION('',(0.0,-1.0,0.0)); 61#52=VECTOR('',#51,5.0); 62#53=LINE('',#10,#52); 63#54=CARTESIAN_POINT('',(0.0,5.0)); 64#55=DIRECTION('',(0.0,-1.0)); 65#56=VECTOR('',#55,5.0); 66#57=LINE('',#54,#56); 67#58=DEFINITIONAL_REPRESENTATION('pc_left',(#57),#6); 68#59=PCURVE('left_pc',#5,#58); 69#60=SURFACE_CURVE('left_edge',#53,(#59),.PCURVE_S1.); 70#61=EDGE_CURVE('left_edge',#14,#11,#60,.T.); 71#62=ORIENTED_EDGE('',$,$,#28,.T.); 72#63=ORIENTED_EDGE('',$,$,#39,.T.); 73#64=ORIENTED_EDGE('',$,$,#50,.F.); 74#65=ORIENTED_EDGE('',$,$,#61,.T.); 75#66=EDGE_LOOP('',(#62,#63,#64,#65)); 76#67=FACE_OUTER_BOUND('',#66,.T.); 77#68=ADVANCED_FACE('',(#67),#5,.T.); 78#69=OPEN_SHELL('',(#68)); 79#70=SHELL_BASED_SURFACE_MODEL('',(#69)); 80#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 81#9051=PRODUCT('Gp184','Gp184','',(#9050)); 82#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 83#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 84#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 85#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 86#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 87#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 88#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 89#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 90#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 91#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#70),#9060); 92#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 93ENDSEC; 94END-ISO-10303-21;