step-examples/12-2c-surfaces/Gs198.stp
Sources
- OCCT `ShapeUpgrade_SplitSurfaceContinuity::Compute` (`src/ShapeUpgrade/ShapeUpgrade_SplitSurfaceContinuity.cxx:203` `Geom_BSplineSurface` branch entry, `:235` `if (Continuity < myCont)` C0-knot detection, `:240` `corrected=MyBSpline->RemoveUKnot(iknot, newMultiplicity, myTolerance)
- ` — knot removal attempted BEFORE any split value is recorded, `:256` `myUSplitValues->InsertBefore(j++,u)
- ` only reached if removal fails) @ `bd2a789f15235755ce4d1a3b07379a2e062fdc2e`.
Description
A `B_SPLINE_SURFACE_WITH_KNOTS`, U degree=2, has an interior U knot at 0.5 of multiplicity 2 (= degree, formally C0 by the `UDeg-UMultiplicity(iknot) < myCont` test) whose control points were derived by EXACT Boehm knot insertion from a smooth single-span surface (poles `(0,*,0)`-`(1,*,0.5)`-`(2,*,0.5)`-`(3,*,0.5)`-`(4,*,0)`, live-measured post-insertion deviation from the pre-insertion surface ≈2e-16, i.e. genuinely smooth — contrast Gs049's non-collinear poles around its C0 knot, a real geometric break). The continuity-split healer's B-spline branch does not immediately treat every C0-flagged knot as a split point: it first attempts a knot-removal repair at the reduced multiplicity implied by the target continuity, and only falls back to recording a split value if that removal fails within tolerance.
Reproducer recipe
`B_SPLINE_SURFACE_WITH_KNOTS`, U degree=2, V degree=1, 5×2 control-point grid, U knots `(0.0,0.5,1.0)` with multiplicities `(3,2,3)`, V knots `(0.0,1.0)` with multiplicities `(2,2)` — control points positioned exactly as produced by inserting the u=0.5 knot into an originally-knotless (single-span) smooth surface via the standard Boehm algorithm, so the formally-C0 knot introduces zero actual geometric deviation.
Expected kernel behavior
A continuity healer must not treat every knot with sub-threshold multiplicity-derived continuity as automatically requiring a topological split; it must first test whether reducing the knot's multiplicity (removing the "extra" control points introduced by the formal over-multiplication) reproduces the surface within tolerance, and if so repair the surface IN PLACE (no new face, no new edge, single result), reserving an actual split for knots where removal fails (a genuine geometric kink, as in Gs049).
Notes
Live-verified directly against a programmatically-constructed B-spline surface and the continuity-split healer (constructed with the exact poles/knots/multiplicities encoded in the STEP file): running the healer with a C1 criterion reports `DONE1` (split needed) = **False** and `DONE3` (knot removed) = **True**, with `USplitValues` remaining at the original `[0,1]` bounds (no split value inserted) — confirming the repair-by-removal path, not the split path, is exercised. Raw STEP read (via the default reader) produces an EMPTY shell (0 faces) with the diagnostic `Entity B_SPLINE_SURFACE_WITH_KNOTS: Surface has not been created` / `ADVANCED_FACE: a Face from Shell not mapped to TopoDS` — this is the SAME failure signature (same entity type, same message) already established and accepted for Gs049 (verified via identical transfer-check diagnostics on both files), i.e. the STEP-to-B-spline-surface translator has a known limitation with interior full-multiplicity B-spline SURFACE knots independent of whether the multiplicity represents a legal C0 continuity point (this fixture, mult=degree) or an illegal degree+1 "gap" (Gs049); the mechanism this fixture demonstrates (knot-removal repair, verified above) is orthogonal to and unaffected by that translator limitation. Fills the `tkshh-surface-curve-continuity-below-required` "geometrically-smooth over-multiplied knot repaired by knot REMOVAL instead of splitting" subvariant. Synonyms: "over-multiplied knot geometrically smooth no real kink", "knot removal repair before split fallback", "Boehm-inserted knot exact removal", "formal C0 multiplicity without geometric discontinuity", "knot removal within tolerance avoids topological split".
Expected validation
occt=shape(1)/shape(1) gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'B_SPLINE_SURFACE_WITH_KNOTS')contains(b'(3,2,3)')contains(b'(2,2)')count_entity_def(b'ADVANCED_FACE') == 1
Tier-3 assertions
load == "ok"
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/* Gs198: single ADVANCED_FACE on a B_SPLINE_SURFACE_WITH_KNOTS, U degree=2 with an interior U knot at 0.5 of multiplicity 2 (=degree, formally C0) whose control points were derived by exact Boehm knot INSERTION from a smooth single-span surface (poles (0,*,0)-(1,*,0.5)-(2,*,0.5)-(3,*,0.5)-(4,*,0)) -- the pole placement satisfies knot-removal continuity exactly (live-measured deviation ~2e-16, i.e. genuinely smooth, not a real kink; contrast Gs049's non-collinear-pole genuine break). ShapeUpgrade_SplitSurfaceContinuity::Compute finds Continuity<C1 at this knot, attempts MyBSpline->RemoveUKnot(iknot, degree-myCont, myTolerance) BEFORE adding a split value; the removal succeeds within tolerance (ShapeExtend_DONE3), so the surface is repaired in place and NO split value is added -- live-verified directly against Geom_BSplineSurface/ShapeUpgrade_SplitSurfaceContinuity: DONE1 (split needed)=False, DONE3 (knot removed)=True, USplitValues stay at the original [0,1] bounds */ 3HEADER; 4FILE_DESCRIPTION(('Gs198'),'2;1'); 5FILE_NAME('Gs198.stp','2026-07-13T00: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=CARTESIAN_POINT('',(1.0,0.0,0.5)); 12#3=CARTESIAN_POINT('',(2.0,0.0,0.5)); 13#4=CARTESIAN_POINT('',(3.0,0.0,0.5)); 14#5=CARTESIAN_POINT('',(4.0,0.0,0.0)); 15#6=CARTESIAN_POINT('',(0.0,3.0,0.0)); 16#7=CARTESIAN_POINT('',(1.0,3.0,0.5)); 17#8=CARTESIAN_POINT('',(2.0,3.0,0.5)); 18#9=CARTESIAN_POINT('',(3.0,3.0,0.5)); 19#10=CARTESIAN_POINT('',(4.0,3.0,0.0)); 20#11=B_SPLINE_SURFACE_WITH_KNOTS('gs198_bss',2,1,((#1,#2,#3,#4,#5),(#6,#7,#8,#9,#10)),.UNSPECIFIED.,.F.,.F.,.F.,(3,2,3),(2,2),(0.0,0.5,1.0),(0.0,1.0),.UNSPECIFIED.); 21#12=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 22#13=VERTEX_POINT('',#1); 23#14=VERTEX_POINT('',#5); 24#15=VERTEX_POINT('',#10); 25#16=VERTEX_POINT('',#6); 26/* E_v0: v=0 boundary, u:0->1, actual row1 B-spline curve (matches surface exactly) */ 27#17=B_SPLINE_CURVE_WITH_KNOTS('gs198_row0',2,(#1,#2,#3,#4,#5),.UNSPECIFIED.,.F.,.F.,(3,2,3),(0.0,0.5,1.0),.UNSPECIFIED.); 28#18=CARTESIAN_POINT('',(0.0,0.0)); 29#19=DIRECTION('',(1.0,0.0)); 30#20=VECTOR('',#19,1.0); 31#21=LINE('',#18,#20); 32#22=DEFINITIONAL_REPRESENTATION('v0_pcdef',(#21),#12); 33#23=PCURVE('v0_pc',#11,#22); 34#24=SURFACE_CURVE('v0_sc',#17,(#23),.PCURVE_S1.); 35#25=EDGE_CURVE('gs198_e_v0',#13,#14,#24,.T.); 36/* E_u1: u=1 boundary, v:0->1, straight line (v_degree=1, exact) */ 37#26=DIRECTION('',(0.0,1.0,0.0)); 38#27=VECTOR('',#26,3.0); 39#28=LINE('',#5,#27); 40#29=CARTESIAN_POINT('',(1.0,0.0)); 41#30=DIRECTION('',(0.0,1.0)); 42#31=VECTOR('',#30,1.0); 43#32=LINE('',#29,#31); 44#33=DEFINITIONAL_REPRESENTATION('u1_pcdef',(#32),#12); 45#34=PCURVE('u1_pc',#11,#33); 46#35=SURFACE_CURVE('u1_sc',#28,(#34),.PCURVE_S1.); 47#36=EDGE_CURVE('gs198_e_u1',#14,#15,#35,.T.); 48/* E_v1: v=1 boundary, u:0->1 (natural direction), actual row2 B-spline curve; used REVERSED in loop */ 49#37=B_SPLINE_CURVE_WITH_KNOTS('gs198_row1',2,(#6,#7,#8,#9,#10),.UNSPECIFIED.,.F.,.F.,(3,2,3),(0.0,0.5,1.0),.UNSPECIFIED.); 50#38=CARTESIAN_POINT('',(0.0,1.0)); 51#39=DIRECTION('',(1.0,0.0)); 52#40=VECTOR('',#39,1.0); 53#41=LINE('',#38,#40); 54#42=DEFINITIONAL_REPRESENTATION('v1_pcdef',(#41),#12); 55#43=PCURVE('v1_pc',#11,#42); 56#44=SURFACE_CURVE('v1_sc',#37,(#43),.PCURVE_S1.); 57#45=EDGE_CURVE('gs198_e_v1',#16,#15,#44,.T.); 58/* E_u0: u=0 boundary, v:0->1 (natural direction), straight line; used REVERSED in loop */ 59#46=DIRECTION('',(0.0,1.0,0.0)); 60#47=VECTOR('',#46,3.0); 61#48=LINE('',#1,#47); 62#49=CARTESIAN_POINT('',(0.0,0.0)); 63#50=DIRECTION('',(0.0,1.0)); 64#51=VECTOR('',#50,1.0); 65#52=LINE('',#49,#51); 66#53=DEFINITIONAL_REPRESENTATION('u0_pcdef',(#52),#12); 67#54=PCURVE('u0_pc',#11,#53); 68#55=SURFACE_CURVE('u0_sc',#48,(#54),.PCURVE_S1.); 69#56=EDGE_CURVE('gs198_e_u0',#13,#16,#55,.T.); 70#57=ORIENTED_EDGE('',$,$,#25,.T.); 71#58=ORIENTED_EDGE('',$,$,#36,.T.); 72#59=ORIENTED_EDGE('',$,$,#45,.F.); 73#60=ORIENTED_EDGE('',$,$,#56,.F.); 74#61=EDGE_LOOP('',(#57,#58,#59,#60)); 75#62=FACE_OUTER_BOUND('',#61,.T.); 76#63=ADVANCED_FACE('',(#62),#11,.T.); 77#64=OPEN_SHELL('',(#63)); 78#65=SHELL_BASED_SURFACE_MODEL('',(#64)); 79#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 80#9051=PRODUCT('Gs198','Gs198','',(#9050)); 81#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 82#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 83#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 84#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 85#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 86#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 87#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 88#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 89#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 90#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#65),#9060); 91#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 92ENDSEC; 93END-ISO-10303-21;