step-examples/12-2a-pcurves/Gp023.stp
Sources
- 13-quaoar.md B012
Description
A face on a periodic surface (full `CYLINDRICAL_SURFACE`, `TOROIDAL_SURFACE`, etc.) is trimmed to a sub-band of U (e.g. U in [π, 2π]). Pcurve parameterisations for edges following a `CIRCLE` start at the wrong angle relative to the trimmed band; e.g. a pcurve `LINE` starts at u=π instead of u=0, off by π from the circle start angle. Equivalently, projecting a 3D point onto the trimmed periodic surface returns a UV pair outside the face's actual `[UMin,UMax]/[VMin,VMax]` band, even though a valid in-range pre-image exists in another period. Mesh-node reprojection during sheet-metal unfolding lands in the wrong period.
Reproducer recipe
Face on full cylinder trimmed to U in `[π,2π]`; pick a 3D point above the face; project; observe returned U near 0.
Expected kernel behavior
Heal and accept: a point-projection onto a trimmed periodic surface must return a UV that lies inside the face's actual parameter band when an in-range pre-image exists (re-shifting by full periods as required). Must not silently return out-of-band UV.
Notes
**See also**: Gs019. Synonyms: "point projection onto trimmed cylinder returns out-of-band UV", "projected UV outside trimmed face parameter range", "pcurve start parameter shifted by full period", "projection onto periodic surface returns wrong period", "sheet metal mesh node lands in wrong period band".
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/* Gp023: Trimmed cylinder face U in [pi,2pi]: left seam edge pcurve LINE starts at u=0 (shifted by -pi from correct u=pi); point-projection returns UV outside the [pi,2pi] trimmed band */ 3HEADER; 4FILE_DESCRIPTION(('Gp023'),'2;1'); 5FILE_NAME('Gp023.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=LINE('',#7,#16); 27#18=CARTESIAN_POINT('',(0.0,0.0)); 28#19=DIRECTION('',(0.0,1.0)); 29#20=VECTOR('',#19,1.0); 30#21=LINE('',#18,#20); 31#22=DEFINITIONAL_REPRESENTATION('pc_left_shifted',(#21),#6); 32#23=PCURVE('left_period_shifted',#5,#22); 33#24=SURFACE_CURVE('left_seam',#17,(#23),.PCURVE_S1.); 34#25=EDGE_CURVE('left_seam',#11,#13,#24,.T.); 35#26=LINE('',#8,#16); 36#27=CARTESIAN_POINT('',(6.28318530718,0.0)); 37#28=DIRECTION('',(0.0,1.0)); 38#29=VECTOR('',#28,1.0); 39#30=LINE('',#27,#29); 40#31=DEFINITIONAL_REPRESENTATION('pc_right',(#30),#6); 41#32=PCURVE('right_seam',#5,#31); 42#33=SURFACE_CURVE('right_seam',#26,(#32),.PCURVE_S1.); 43#34=EDGE_CURVE('right_seam',#12,#14,#33,.T.); 44#35=CARTESIAN_POINT('',(0.0,0.0,0.0)); 45#36=DIRECTION('',(0.0,0.0,1.0)); 46#37=DIRECTION('',(1.0,0.0,0.0)); 47#38=AXIS2_PLACEMENT_3D('',#35,#36,#37); 48#39=CIRCLE('',#38,1.0); 49#40=CARTESIAN_POINT('',(3.14159265359,0.0)); 50#41=DIRECTION('',(1.0,0.0)); 51#42=VECTOR('',#41,3.14159265359); 52#43=LINE('',#40,#42); 53#44=DEFINITIONAL_REPRESENTATION('pc_bot',(#43),#6); 54#45=PCURVE('bot_arc',#5,#44); 55#46=SURFACE_CURVE('bot_arc',#39,(#45),.PCURVE_S1.); 56#47=EDGE_CURVE('bot_arc',#11,#12,#46,.T.); 57#48=CARTESIAN_POINT('',(0.0,0.0,1.0)); 58#49=AXIS2_PLACEMENT_3D('',#48,#36,#37); 59#50=CIRCLE('',#49,1.0); 60#51=CARTESIAN_POINT('',(3.14159265359,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('',$,$,#47,.T.); 69#60=ORIENTED_EDGE('',$,$,#34,.T.); 70#61=ORIENTED_EDGE('',$,$,#58,.F.); 71#62=ORIENTED_EDGE('',$,$,#25,.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('Gp023','Gp023','',(#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;