step-examples/12-2a-pcurves/Gp027.stp
Sources
- 13-quaoar.md B008
Description
A pass that splits closed periodic faces / solids (full `CYLINDRICAL_SURFACE`, `TOROIDAL_SURFACE`) along their seams produces new edges whose pcurves do not satisfy the same-parameter invariant — pcurve and 3D curve disagree at the same parameter value. Typical pattern: an `EDGE_CURVE` between vertices (10,0,0) and (-10,0,0) on a cylinder traverses the seam from u=0 to u=π in 3D, but the pcurve `LINE` is parameterised over [0, 1] instead of [0, π] — same UV path, different parameterisation, so the seam/branch handling is wrong. A topology checker reports invalid edges. The splitter returns a topologically inconsistent intermediate state.
Reproducer recipe
Take a full cylinder solid; split along its seam; run a topology checker — invalid edges flagged. Recompute same-parameter on the result — becomes valid.
Expected kernel behavior
Heal and accept: a face-splitter must restore the same-parameter invariant on the new edges before returning, or reject the operation. Returning an invalid intermediate burdens every caller.
Notes
**See also**: Gp022, Twi032. Synonyms: "closed face splitter leaves invalid edges", "split-along-seam produces same-parameter violations", "topology checker flags edges after splitting cylinder", "face splitter returns invalid intermediate geometry", "splitting cylinder along seam breaks edge invariant".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b'SURFACE_CURVE')contains(b'EDGE_CURVE')count_entity_def(b'PCURVE') >= 1
Tier-3 assertions
shape_null == Falsen_faces_total == 1n_edges_total == 4n_vertices_total == 8face[0].surface_type == "cylinder"face[0].quadric.radius == 1.0edge[0].curve_type == "circle"edge[0].analytic.radius == 1.0edge[2].curve_type == "circle"edge[2].analytic.radius == 1.0
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/* Gp027: Split-seam edge on cylinder: 3D half-circle arc parameterised over [0,pi] but pcurve LINE parameterised over [0,1]; at t=0.5, 3D gives u=pi/2~=1.57 but pcurve gives u=0.5; same-parameter invariant violated by factor pi */ 3HEADER; 4FILE_DESCRIPTION(('Gp027'),'2;1'); 5FILE_NAME('Gp027.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=CYLINDRICAL_SURFACE('',#4,1.0); 15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 16#7=CARTESIAN_POINT('',(1.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(1.0,0.0,1.0)); 19#10=CARTESIAN_POINT('',(-1.0,0.0,1.0)); 20#11=VERTEX_POINT('',#7); 21#12=VERTEX_POINT('',#8); 22#13=VERTEX_POINT('',#9); 23#14=VERTEX_POINT('',#10); 24#15=DIRECTION('',(0.0,0.0,1.0)); 25#16=VECTOR('',#15,1.0); 26#17=CARTESIAN_POINT('',(0.0,0.0,0.0)); 27#18=DIRECTION('',(0.0,0.0,1.0)); 28#19=DIRECTION('',(1.0,0.0,0.0)); 29#20=AXIS2_PLACEMENT_3D('',#17,#18,#19); 30#21=CIRCLE('',#20,1.0); 31#22=CARTESIAN_POINT('',(0.0,0.0)); 32#23=DIRECTION('',(1.0,0.0)); 33#24=VECTOR('',#23,1.0); 34#25=LINE('',#22,#24); 35#26=DEFINITIONAL_REPRESENTATION('pc_split_wrong_pace',(#25),#6); 36#27=PCURVE('split_wrong',#5,#26); 37#28=SURFACE_CURVE('split_edge',#21,(#27),.PCURVE_S1.); 38#29=EDGE_CURVE('split_edge',#11,#12,#28,.T.); 39#30=LINE('',#7,#16); 40#31=CARTESIAN_POINT('',(0.0,0.0)); 41#32=DIRECTION('',(0.0,1.0)); 42#33=VECTOR('',#32,1.0); 43#34=LINE('',#31,#33); 44#35=DEFINITIONAL_REPRESENTATION('pc_left',(#34),#6); 45#36=PCURVE('left_seam',#5,#35); 46#37=SURFACE_CURVE('left_seam',#30,(#36),.PCURVE_S1.); 47#38=EDGE_CURVE('left_seam',#11,#13,#37,.T.); 48#39=LINE('',#8,#16); 49#40=CARTESIAN_POINT('',(3.14159265359,0.0)); 50#41=DIRECTION('',(0.0,1.0)); 51#42=VECTOR('',#41,1.0); 52#43=LINE('',#40,#42); 53#44=DEFINITIONAL_REPRESENTATION('pc_right',(#43),#6); 54#45=PCURVE('right_seam',#5,#44); 55#46=SURFACE_CURVE('right_seam',#39,(#45),.PCURVE_S1.); 56#47=EDGE_CURVE('right_seam',#12,#14,#46,.T.); 57#48=CARTESIAN_POINT('',(0.0,0.0,1.0)); 58#49=AXIS2_PLACEMENT_3D('',#48,#18,#19); 59#50=CIRCLE('',#49,1.0); 60#51=CARTESIAN_POINT('',(0.0,1.0)); 61#52=DIRECTION('',(1.0,0.0)); 62#53=VECTOR('',#52,3.14159265359); 63#54=LINE('',#51,#53); 64#55=DEFINITIONAL_REPRESENTATION('pc_top',(#54),#6); 65#56=PCURVE('top_arc',#5,#55); 66#57=SURFACE_CURVE('top_arc',#50,(#56),.PCURVE_S1.); 67#58=EDGE_CURVE('top_arc',#13,#14,#57,.T.); 68#59=ORIENTED_EDGE('',$,$,#29,.T.); 69#60=ORIENTED_EDGE('',$,$,#47,.T.); 70#61=ORIENTED_EDGE('',$,$,#58,.F.); 71#62=ORIENTED_EDGE('',$,$,#38,.F.); 72#63=EDGE_LOOP('',(#59,#60,#61,#62)); 73#64=FACE_OUTER_BOUND('',#63,.T.); 74#65=ADVANCED_FACE('',(#64),#5,.T.); 75#66=OPEN_SHELL('',(#65)); 76#67=SHELL_BASED_SURFACE_MODEL('',(#66)); 77#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 78#9051=PRODUCT('Gp027','Gp027','',(#9050)); 79#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 80#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 81#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 82#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 83#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 84#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 85#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 86#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 87#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 88#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#67),#9060); 89#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 90ENDSEC; 91END-ISO-10303-21;