step-examples/12-2a-pcurves/Gp029.stp
Sources
- 03-occt-tests.md R082 (bug26716)
Description
After a period-shift pass on a revolved face's wire, the wire endpoints land in an inconsistent parameter band — some pcurve endpoints in `[0,2π]`, others in `[2π,4π]` — even though all should sit in a single period band. The inconsistency blocks subsequent triangulation, which expects a single coherent parameter window.
Reproducer recipe
Face on a `SURFACE_OF_REVOLUTION` whose pcurves require shifting by 2π; run the period-shift pass; attempt to mesh.
Expected kernel behavior
a period-shift pass must produce a self-consistent UV band for all wire endpoints, or refuse the shift when no consistent band exists. A post-condition check on the band coverage catches the inconsistency.
Notes
**See also**: Gs019. **OCC behavior**: accepts and loads shape(1); OCC's STEP reader recomputes the pcurve from the 3D curve on transfer (per Gp193), so the declared 2D/pcurve defect does not survive into the built shape. Perturbing the declared defect from clean to grossly exaggerated leaves the built shape unchanged in both shape-counts and BRepCheck validity (heal_on and heal_off), so the shape-count oracle cannot distinguish it from a clean input; shape(1) does not witness a kernel bug. Synonyms: "period-shift fix leaves wire across multiple bands", "wire endpoints in inconsistent UV bands after period adjust", "triangulation blocked by mixed-band pcurves", "revolved face period shift fails to converge", "pcurve endpoints scattered across periods after healing".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(7) ifc=schema_n/a
Tier-3 assertions
edge[0].curve_type == "circle"edge[0].analytic.radius == 2.0edge[2].curve_type == "circle"edge[2].analytic.radius == 2.0shape_null == Falsen_faces_total == 1n_edges_total == 4n_vertices_total == 8
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gp029: SURFACE_OF_REVOLUTION face: period-shift pass left top-arc pcurve in [2pi,4pi] band (start u=2pi) while bottom-arc and seam pcurves stay in [0,2pi] band; inconsistent UV bands block triangulation */ 3HEADER; 4FILE_DESCRIPTION(('Gp029'),'2;1'); 5FILE_NAME('Gp029.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=CARTESIAN_POINT('',(0.0,0.0,0.0)); 15#6=DIRECTION('',(0.0,0.0,1.0)); 16#7=VECTOR('',#6,1.0); 17#8=LINE('',#5,#7); 18#9=AXIS1_PLACEMENT('rev_axis',#5,#6); 19#10=CARTESIAN_POINT('',(2.0,0.0,0.0)); 20#11=DIRECTION('',(0.0,0.0,1.0)); 21#12=VECTOR('',#11,1.0); 22#13=LINE('',#10,#12); 23#14=SURFACE_OF_REVOLUTION('sor',#13,#9); 24#15=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 25#16=CARTESIAN_POINT('',(2.0,0.0,0.0)); 26#17=CARTESIAN_POINT('',(2.0,0.0,1.0)); 27#18=VERTEX_POINT('',#16); 28#19=VERTEX_POINT('',#17); 29#20=DIRECTION('',(0.0,0.0,1.0)); 30#21=VECTOR('',#20,1.0); 31#22=LINE('',#16,#21); 32#23=CARTESIAN_POINT('',(0.0,0.0)); 33#24=DIRECTION('',(0.0,1.0)); 34#25=VECTOR('',#24,1.0); 35#26=LINE('',#23,#25); 36#27=DEFINITIONAL_REPRESENTATION('pc_seam_u0',(#26),#15); 37#28=PCURVE('seam_u0',#14,#27); 38#29=SURFACE_CURVE('left_seam',#22,(#28),.PCURVE_S1.); 39#30=EDGE_CURVE('left_seam',#18,#19,#29,.T.); 40#31=LINE('',#16,#21); 41#32=CARTESIAN_POINT('',(6.28318530718,0.0)); 42#33=DIRECTION('',(0.0,1.0)); 43#34=VECTOR('',#33,1.0); 44#35=LINE('',#32,#34); 45#36=DEFINITIONAL_REPRESENTATION('pc_seam_u2pi',(#35),#15); 46#37=PCURVE('seam_u2pi',#14,#36); 47#38=SURFACE_CURVE('right_seam',#31,(#37),.PCURVE_S1.); 48#39=EDGE_CURVE('right_seam',#18,#19,#38,.T.); 49#40=CARTESIAN_POINT('',(0.0,0.0,0.0)); 50#41=DIRECTION('',(0.0,0.0,1.0)); 51#42=DIRECTION('',(1.0,0.0,0.0)); 52#43=AXIS2_PLACEMENT_3D('',#40,#41,#42); 53#44=CIRCLE('',#43,2.0); 54#45=CARTESIAN_POINT('',(0.0,0.0)); 55#46=DIRECTION('',(1.0,0.0)); 56#47=VECTOR('',#46,6.28318530718); 57#48=LINE('',#45,#47); 58#49=DEFINITIONAL_REPRESENTATION('pc_bot',(#48),#15); 59#50=PCURVE('bot_arc',#14,#49); 60#51=SURFACE_CURVE('bot_arc',#44,(#50),.PCURVE_S1.); 61#52=EDGE_CURVE('bot_arc',#18,#18,#51,.T.); 62#53=CARTESIAN_POINT('',(0.0,0.0,1.0)); 63#54=AXIS2_PLACEMENT_3D('',#53,#41,#42); 64#55=CIRCLE('',#54,2.0); 65#56=CARTESIAN_POINT('',(6.28318530718,1.0)); 66#57=DIRECTION('',(1.0,0.0)); 67#58=VECTOR('',#57,6.28318530718); 68#59=LINE('',#56,#58); 69#60=DEFINITIONAL_REPRESENTATION('pc_top_shifted',(#59),#15); 70#61=PCURVE('top_arc_shifted',#14,#60); 71#62=SURFACE_CURVE('top_arc',#55,(#61),.PCURVE_S1.); 72#63=EDGE_CURVE('top_arc',#19,#19,#62,.T.); 73#64=ORIENTED_EDGE('',$,$,#52,.T.); 74#65=ORIENTED_EDGE('',$,$,#39,.T.); 75#66=ORIENTED_EDGE('',$,$,#63,.F.); 76#67=ORIENTED_EDGE('',$,$,#30,.F.); 77#68=EDGE_LOOP('',(#64,#65,#66,#67)); 78#69=FACE_OUTER_BOUND('',#68,.T.); 79#70=ADVANCED_FACE('',(#69),#14,.T.); 80#71=OPEN_SHELL('',(#70)); 81#72=SHELL_BASED_SURFACE_MODEL('',(#71)); 82#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 83#9051=PRODUCT('Gp029','Gp029','',(#9050)); 84#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 85#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 86#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 87#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 88#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 89#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 90#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 91#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 92#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 93#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#72),#9060); 94#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 95ENDSEC; 96END-ISO-10303-21;