step-examples/12-2a-pcurves/Gp076.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Edge.FixAddPCurve periodic-surface-seam
Reproducer recipe
Expected kernel behavior
On a periodic surface u=0 and u=2π denote the same seam location, so a pcurve authored on either branch must be accepted — compare seam pcurve positions modulo the surface period instead of treating u=2π as "no pcurve at u=0". A seam edge needs BOTH period-shifted pcurves, so synthesise the missing one by shifting the given one by a whole period rather than rejecting the edge; and where the edge's 3D curve is positionally discontinuous, reject that edge with a diagnostic instead of returning an empty shape.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gp076: CYLINDRICAL_SURFACE radius=1, axis=Z; defect edge 3D curve = seam line at (1,0,*) (u=0=2Ï branch); PCurve placed at u=2Ï (period-shifted seam): vertical line (2Ï,0)â(2Ï,1) in UV; FixAddPCurve constructs pcurve only at u=0 and rejects u=2Ï as missing; 3D B-spline has C-1 positional break at t=0.5 (Z gap 1.5 units) driving OCC shape_null=True */ 3HEADER; 4FILE_DESCRIPTION(('Gp076'),'2;1'); 5FILE_NAME('Gp076.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('',(0.0,1.0,0.0)); 18#9=CARTESIAN_POINT('',(0.0,1.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=CARTESIAN_POINT('',(1.0,0.0,0.0)); 25#16=CARTESIAN_POINT('',(1.0,0.0,0.1)); 26#17=CARTESIAN_POINT('',(1.0,0.0,0.3)); 27#18=CARTESIAN_POINT('',(1.0,0.0,1.8)); 28#19=CARTESIAN_POINT('',(1.0,0.0,0.9)); 29#20=CARTESIAN_POINT('',(1.0,0.0,1.0)); 30#21=B_SPLINE_CURVE_WITH_KNOTS('seam_break',2,(#15,#16,#17,#18,#19,#20),.UNSPECIFIED.,.F.,.F.,(3,3,3),(0.0,0.5,1.0),.UNSPECIFIED.); 31#22=CARTESIAN_POINT('',(6.28318530718,0.0)); 32#23=DIRECTION('',(0.0,1.0)); 33#24=VECTOR('',#23,1.0); 34#25=LINE('',#22,#24); 35#26=DEFINITIONAL_REPRESENTATION('seam_pc_def',(#25),#6); 36#27=PCURVE('seam_pc_2pi',#5,#26); 37#28=SURFACE_CURVE('seam',#21,(#27),.PCURVE_S1.); 38#29=EDGE_CURVE('seam_edge',#11,#14,#28,.T.); 39#30=CARTESIAN_POINT('',(0.0,0.0,1.0)); 40#31=DIRECTION('',(0.0,0.0,1.0)); 41#32=DIRECTION('',(1.0,0.0,0.0)); 42#33=AXIS2_PLACEMENT_3D('',#30,#31,#32); 43#34=CIRCLE('',#33,1.0); 44#35=TRIMMED_CURVE('top_arc',#34,(PARAMETER_VALUE(0.0)),(PARAMETER_VALUE(1.5707963267948966)),.T.,.PARAMETER.); 45#36=CARTESIAN_POINT('',(0.0,1.0)); 46#37=DIRECTION('',(1.0,0.0)); 47#38=VECTOR('',#37,1.57079632679); 48#39=LINE('',#36,#38); 49#40=DEFINITIONAL_REPRESENTATION('top_pc_def',(#39),#6); 50#41=PCURVE('top_pc',#5,#40); 51#42=SURFACE_CURVE('top_arc',#35,(#41),.PCURVE_S1.); 52#43=EDGE_CURVE('top_arc',#14,#13,#42,.T.); 53#44=CARTESIAN_POINT('',(0.0,0.0,0.0)); 54#45=DIRECTION('',(0.0,0.0,1.0)); 55#46=DIRECTION('',(1.0,0.0,0.0)); 56#47=AXIS2_PLACEMENT_3D('',#44,#45,#46); 57#48=CIRCLE('',#47,1.0); 58#49=TRIMMED_CURVE('bot_arc',#48,(PARAMETER_VALUE(0.0)),(PARAMETER_VALUE(1.5707963267948966)),.T.,.PARAMETER.); 59#50=CARTESIAN_POINT('',(0.0,0.0)); 60#51=DIRECTION('',(1.0,0.0)); 61#52=VECTOR('',#51,1.57079632679); 62#53=LINE('',#50,#52); 63#54=DEFINITIONAL_REPRESENTATION('bot_pc_def',(#53),#6); 64#55=PCURVE('bot_pc',#5,#54); 65#56=SURFACE_CURVE('bot_arc',#49,(#55),.PCURVE_S1.); 66#57=EDGE_CURVE('bot_arc',#11,#12,#56,.T.); 67#58=CARTESIAN_POINT('',(0.0,1.0,0.0)); 68#59=DIRECTION('',(0.0,0.0,1.0)); 69#60=VECTOR('',#59,1.0); 70#61=LINE('',#58,#60); 71#62=CARTESIAN_POINT('',(1.57079632679,0.0)); 72#63=DIRECTION('',(0.0,1.0)); 73#64=VECTOR('',#63,1.0); 74#65=LINE('',#62,#64); 75#66=DEFINITIONAL_REPRESENTATION('rpc_def',(#65),#6); 76#67=PCURVE('rpc',#5,#66); 77#68=SURFACE_CURVE('right_vert',#61,(#67),.PCURVE_S1.); 78#69=EDGE_CURVE('right_vert',#12,#13,#68,.T.); 79#70=ORIENTED_EDGE('',$,$,#57,.T.); 80#71=ORIENTED_EDGE('',$,$,#69,.T.); 81#72=ORIENTED_EDGE('',$,$,#43,.F.); 82#73=ORIENTED_EDGE('',$,$,#29,.F.); 83#74=EDGE_LOOP('',(#70,#71,#72,#73)); 84#75=FACE_OUTER_BOUND('',#74,.T.); 85#76=ADVANCED_FACE('',(#75),#5,.T.); 86#77=OPEN_SHELL('',(#76)); 87#78=SHELL_BASED_SURFACE_MODEL('',(#77)); 88#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 89#9051=PRODUCT('Gp076','Gp076','',(#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('',(#78),#9060); 100#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 101ENDSEC; 102END-ISO-10303-21;