step-examples/12-2c-surfaces/Gs197.stp
Sources
- OCCT `ShapeUpgrade_SplitSurfaceContinuity::Compute` (`src/ShapeUpgrade/ShapeUpgrade_SplitSurfaceContinuity.cxx:77` method entry, `:99` `if (mySurface->IsKind(STANDARD_TYPE(Geom_SurfaceOfRevolution)))` special-case branch, `:104` `Handle(Geom_Curve) BasCurve = Surface->BasisCurve()
- `, `:106` `spc.Init(BasCurve,VFirst,VLast)
- ` — hands the BASIS CURVE, not the surface, to `ShapeUpgrade_SplitCurve3dContinuity`) @ `bd2a789f15235755ce4d1a3b07379a2e062fdc2e`.
Description
A single `ADVANCED_FACE` on a `SURFACE_OF_REVOLUTION` whose swept curve is a degree-2 `B_SPLINE_CURVE_WITH_KNOTS` with an interior knot at v=0.5 of multiplicity 2 (= degree, a legal, genuine C0 position-only kink — non-collinear control points around the knot, distinct from an illegal degree+1 "gap" multiplicity), revolved through u:0..π. The SURFACE's own `Continuity()` inherits C0 from the basis curve (revolution in U is always smooth; the discontinuity is purely a V-direction artifact of the swept profile). The continuity-split healer special-cases revolution and linear-extrusion surfaces: rather than splitting the SURFACE directly, it extracts the basis curve and delegates the continuity analysis (and resulting split values) to a dedicated 3D-curve continuity splitter on that 1-D curve, then maps the returned split parameter(s) back onto the surface's V axis.
Reproducer recipe
`SURFACE_OF_REVOLUTION` sweeping a degree-2 `B_SPLINE_CURVE_WITH_KNOTS` (5 poles, knots `(0.0,0.5,1.0)`, multiplicities `(3,2,3)`, non-collinear poles around the v=0.5 knot) about the Z axis through u:0..π; face bounded by two profile-curve copies (u=0, u=π) and two circular arcs (v=0, v=1) closing the rectangle.
Expected kernel behavior
A receiver enforcing a C1 (or better) continuity floor on faces must detect that `Surface->Continuity()` is below the criterion, locate the offending parameter via the BASIS CURVE's own continuity analysis (not by independently re-analyzing the swept surface's isoparametric lines), and split the surface at that V value while leaving U (the revolution direction, unaffected by the curve defect) untouched.
Notes
Live-verified directly against a programmatically-constructed revolution surface and the continuity-split healer (matching the STEP file's exact control points/knots/multiplicities): curve continuity is C0, surface continuity is C0; running the healer with a C1 criterion returns `USplitValues=[0, π]` (UNCHANGED — no U split) and `VSplitValues=[0, 0.5, 1]` (split inserted exactly at the basis curve's C0 knot). Raw STEP read (no healer invoked) succeeds as 1 face with C0 continuity and UV bounds `(0, π, 0, 1)`, confirming the file is well-formed (unlike Gs198's illegal-multiplicity case below). Fills the `tkshh-surface-curve-continuity-below-required` "surface of revolution ... whose C0 BASIS CURVE forces the split" subvariant, distinct from Gs049 (a B-spline SURFACE's own C0 knot, no swept-curve indirection) and Gp033 (a standalone curve, not a surface's basis curve). Synonyms: "surface of revolution basis curve C0 knot", "swept profile discontinuity forces surface split", "continuity split healer delegates to basis curve for revolution/extrusion", "revolution surface continuity inherited from generatrix", "C0 kink in generatrix not surface itself".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b'SURFACE_OF_REVOLUTION')contains(b'B_SPLINE_CURVE_WITH_KNOTS')contains(b'(3,2,3)')count_entity_def(b'ADVANCED_FACE') == 1
Tier-3 assertions
load == "ok"shape_null == Falsen_faces_total == 1
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/* Gs197: single ADVANCED_FACE on a SURFACE_OF_REVOLUTION whose swept curve is a degree-2 B_SPLINE_CURVE_WITH_KNOTS with an interior knot at v=0.5 of multiplicity 2 (=degree), a genuine C0 position-only kink (non-collinear poles), revolved through u:0..pi. The SURFACE itself (not just its 2D pcurves) inherits C0 continuity from the basis curve. ShapeUpgrade_SplitSurfaceContinuity::Compute special-cases Geom_SurfaceOfRevolution: since Surface->Continuity() (C0) is below the C1 criterion, it hands the BASIS CURVE (not the surface) to ShapeUpgrade_SplitCurve3dContinuity, which returns split value v=0.5 -- the surface is split in V, U untouched. Live-verified directly against Geom_SurfaceOfRevolution/ShapeUpgrade_SplitSurfaceContinuity: face reads as 1 face (Continuity=C0); split produces 2 faces (V:[0,0.5] and V:[0.5,1], both U:[0,pi]) */ 3HEADER; 4FILE_DESCRIPTION(('Gs197'),'2;1'); 5FILE_NAME('Gs197.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/* profile_u0 basis curve: degree2 B-spline, C0 knot at v=0.5 (interior mult=2=degree), genuine kink */ 11#1=CARTESIAN_POINT('',(4.0,0.0,0.0)); 12#2=CARTESIAN_POINT('',(3.5,0.0,0.5)); 13#3=CARTESIAN_POINT('',(3.0,0.0,0.2)); 14#4=CARTESIAN_POINT('',(2.5,0.0,-0.5)); 15#5=CARTESIAN_POINT('',(2.0,0.0,0.0)); 16#6=B_SPLINE_CURVE_WITH_KNOTS('gs197_profile_u0',2,(#1,#2,#3,#4,#5),.UNSPECIFIED.,.F.,.F.,(3,2,3),(0.0,0.5,1.0),.UNSPECIFIED.); 17/* revolution axis: Z through origin */ 18#7=CARTESIAN_POINT('',(0.0,0.0,0.0)); 19#8=DIRECTION('',(0.0,0.0,1.0)); 20#9=AXIS1_PLACEMENT('gs197_rev_ax',#7,#8); 21#10=SURFACE_OF_REVOLUTION('gs197_surf',#6,#9); 22#11=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 23/* vertices */ 24#12=CARTESIAN_POINT('',(4.0,0.0,0.0)); 25#13=VERTEX_POINT('',#12); 26#14=CARTESIAN_POINT('',(-4.0,0.0,0.0)); 27#15=VERTEX_POINT('',#14); 28#16=CARTESIAN_POINT('',(-2.0,0.0,0.0)); 29#17=VERTEX_POINT('',#16); 30#18=CARTESIAN_POINT('',(2.0,0.0,0.0)); 31#19=VERTEX_POINT('',#18); 32/* E_bottom: arc_v0 radius 4, z=0, u:0->pi, VA->VB */ 33#20=DIRECTION('',(0.0,0.0,1.0)); 34#21=DIRECTION('',(1.0,0.0,0.0)); 35#22=AXIS2_PLACEMENT_3D('',#7,#20,#21); 36#23=CIRCLE('gs197_arc_v0',#22,4.0); 37#24=CARTESIAN_POINT('',(0.0,0.0)); 38#25=DIRECTION('',(1.0,0.0)); 39#26=VECTOR('',#25,3.14159265359); 40#27=LINE('',#24,#26); 41#28=DEFINITIONAL_REPRESENTATION('bottom_pcdef',(#27),#11); 42#29=PCURVE('bottom_pc',#10,#28); 43#30=SURFACE_CURVE('bottom_sc',#23,(#29),.PCURVE_S1.); 44#31=EDGE_CURVE('gs197_e_bottom',#13,#15,#30,.T.); 45/* E_right: profile_uPi (rotated pi about Z: negate X), v:0->1, VB->VC */ 46#32=CARTESIAN_POINT('',(-4.0,0.0,0.0)); 47#33=CARTESIAN_POINT('',(-3.5,0.0,0.5)); 48#34=CARTESIAN_POINT('',(-3.0,0.0,0.2)); 49#35=CARTESIAN_POINT('',(-2.5,0.0,-0.5)); 50#36=CARTESIAN_POINT('',(-2.0,0.0,0.0)); 51#37=B_SPLINE_CURVE_WITH_KNOTS('gs197_profile_uPi',2,(#32,#33,#34,#35,#36),.UNSPECIFIED.,.F.,.F.,(3,2,3),(0.0,0.5,1.0),.UNSPECIFIED.); 52#38=CARTESIAN_POINT('',(3.14159265359,0.0)); 53#39=DIRECTION('',(0.0,1.0)); 54#40=VECTOR('',#39,1.0); 55#41=LINE('',#38,#40); 56#42=DEFINITIONAL_REPRESENTATION('right_pcdef',(#41),#11); 57#43=PCURVE('right_pc',#10,#42); 58#44=SURFACE_CURVE('right_sc',#37,(#43),.PCURVE_S1.); 59#45=EDGE_CURVE('gs197_e_right',#15,#17,#44,.T.); 60/* E_top: arc_v1 radius 2, z=0, u:0->pi, VD->VC */ 61#46=CIRCLE('gs197_arc_v1',#22,2.0); 62#47=CARTESIAN_POINT('',(0.0,1.0)); 63#48=DIRECTION('',(1.0,0.0)); 64#49=VECTOR('',#48,3.14159265359); 65#50=LINE('',#47,#49); 66#51=DEFINITIONAL_REPRESENTATION('top_pcdef',(#50),#11); 67#52=PCURVE('top_pc',#10,#51); 68#53=SURFACE_CURVE('top_sc',#46,(#52),.PCURVE_S1.); 69#54=EDGE_CURVE('gs197_e_top',#19,#17,#53,.T.); 70/* E_left: profile_u0 (#6 reused), v:0->1, VA->VD */ 71#55=CARTESIAN_POINT('',(0.0,0.0)); 72#56=DIRECTION('',(0.0,1.0)); 73#57=VECTOR('',#56,1.0); 74#58=LINE('',#55,#57); 75#59=DEFINITIONAL_REPRESENTATION('left_pcdef',(#58),#11); 76#60=PCURVE('left_pc',#10,#59); 77#61=SURFACE_CURVE('left_sc',#6,(#60),.PCURVE_S1.); 78#62=EDGE_CURVE('gs197_e_left',#13,#19,#61,.T.); 79#63=ORIENTED_EDGE('',$,$,#31,.T.); 80#64=ORIENTED_EDGE('',$,$,#45,.T.); 81#65=ORIENTED_EDGE('',$,$,#54,.F.); 82#66=ORIENTED_EDGE('',$,$,#62,.F.); 83#67=EDGE_LOOP('',(#63,#64,#65,#66)); 84#68=FACE_OUTER_BOUND('',#67,.T.); 85#69=ADVANCED_FACE('',(#68),#10,.T.); 86#70=OPEN_SHELL('',(#69)); 87#71=SHELL_BASED_SURFACE_MODEL('',(#70)); 88#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 89#9051=PRODUCT('Gs197','Gs197','',(#9050)); 90#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 91#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 92#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 93#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 94#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 95#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 96#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 97#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 98#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 99#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#71),#9060); 100#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 101ENDSEC; 102END-ISO-10303-21;