step-examples/12-2a-pcurves/Gp035.stp
Sources
- OCCT `ShapeConstruct_ProjectCurveOnSurface::Perform` (`ShapeConstruct_ProjectCurveOnSurface.hxx:126`)
Description
An edge on an analytic surface (cylinder, cone, sphere, torus, plane) carries a 3D space curve but no 2D pcurve. To trim the surface, the kernel must project the 3D curve into UV. Some senders never emit pcurves, expecting the consumer to compute them; the projection must remain same-parameter and may resolve to an analytic 2D primitive (line in UV) where the geometry permits.
Reproducer recipe
A vertical EDGE_CURVE on a CYLINDRICAL_SURFACE running from `(R,0,0)` to `(R,0,h)` with only a 3D LINE representation, no SURFACE_CURVE pcurve.
Expected kernel behavior
synthesize the missing pcurve via projection, validate same-parameter consistency afterwards, and emit an analytic 2D line where the underlying surface admits one (e.g., on cylinders, spheres). Alternatively, refuse the edge and require a sender that supplies pcurves.
Notes
Distinct from a *bad* pcurve (Twi-class). Also see Gp019 (edge without pcurve). **OCC behavior**: accepts and loads shape(1); the edge carrying only a bare 3D curve (no pcurve) is transferred by synthesizing its pcurve via projection (the documented heal), building a complete, BRepCheck-valid 4-edge face. The declared missing-pcurve defect thus does not survive into the built shape; the shape-count oracle cannot distinguish it from a pcurve-supplied input, so shape(1) does not witness a kernel bug. Synonyms: "edge has no parametric curve", "pcurve absent on face edge", "tessellator fails on edge with no UV curve", "kernel must project 3D curve onto surface", "edge without 2D representation needs synthesis".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b'EDGE_CURVE')
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/* Gp035: Left seam EDGE_CURVE on CYLINDRICAL_SURFACE has only a bare 3D LINE as its curve attribute â no SURFACE_CURVE wrapper and no PCURVE; kernel must project to synthesize the missing 2D analytic line or reject the edge */ 3HEADER; 4FILE_DESCRIPTION(('Gp035'),'2;1'); 5FILE_NAME('Gp035.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=EDGE_CURVE('left_no_pcurve',#11,#13,#17,.T.); 28#19=LINE('',#8,#16); 29#20=CARTESIAN_POINT('',(3.14159265359,0.0)); 30#21=DIRECTION('',(0.0,1.0)); 31#22=VECTOR('',#21,1.0); 32#23=LINE('',#20,#22); 33#24=DEFINITIONAL_REPRESENTATION('pc_right',(#23),#6); 34#25=PCURVE('right_seam',#5,#24); 35#26=SURFACE_CURVE('right_seam',#19,(#25),.PCURVE_S1.); 36#27=EDGE_CURVE('right_seam',#12,#14,#26,.T.); 37#28=CARTESIAN_POINT('',(0.0,0.0,0.0)); 38#29=DIRECTION('',(0.0,0.0,1.0)); 39#30=DIRECTION('',(1.0,0.0,0.0)); 40#31=AXIS2_PLACEMENT_3D('',#28,#29,#30); 41#32=CIRCLE('',#31,1.0); 42#33=CARTESIAN_POINT('',(0.0,0.0)); 43#34=DIRECTION('',(1.0,0.0)); 44#35=VECTOR('',#34,3.14159265359); 45#36=LINE('',#33,#35); 46#37=DEFINITIONAL_REPRESENTATION('pc_bot',(#36),#6); 47#38=PCURVE('bot_arc',#5,#37); 48#39=SURFACE_CURVE('bot_arc',#32,(#38),.PCURVE_S1.); 49#40=EDGE_CURVE('bot_arc',#11,#12,#39,.T.); 50#41=CARTESIAN_POINT('',(0.0,0.0,1.0)); 51#42=AXIS2_PLACEMENT_3D('',#41,#29,#30); 52#43=CIRCLE('',#42,1.0); 53#44=CARTESIAN_POINT('',(0.0,1.0)); 54#45=DIRECTION('',(1.0,0.0)); 55#46=VECTOR('',#45,3.14159265359); 56#47=LINE('',#44,#46); 57#48=DEFINITIONAL_REPRESENTATION('pc_top',(#47),#6); 58#49=PCURVE('top_arc',#5,#48); 59#50=SURFACE_CURVE('top_arc',#43,(#49),.PCURVE_S1.); 60#51=EDGE_CURVE('top_arc',#13,#14,#50,.T.); 61#52=ORIENTED_EDGE('',$,$,#40,.T.); 62#53=ORIENTED_EDGE('',$,$,#27,.T.); 63#54=ORIENTED_EDGE('',$,$,#51,.F.); 64#55=ORIENTED_EDGE('',$,$,#18,.F.); 65#56=EDGE_LOOP('',(#52,#53,#54,#55)); 66#57=FACE_OUTER_BOUND('',#56,.T.); 67#58=ADVANCED_FACE('',(#57),#5,.T.); 68#59=OPEN_SHELL('',(#58)); 69#60=SHELL_BASED_SURFACE_MODEL('',(#59)); 70#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 71#9051=PRODUCT('Gp035','Gp035','',(#9050)); 72#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 73#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 74#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 75#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 76#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 77#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 78#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 79#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 80#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 81#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#60),#9060); 82#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 83ENDSEC; 84END-ISO-10303-21;