Gn030 — Flat 3D curve as p-curve (instead of 2D PCURVE)

§12.2b NURBS/knots

geometry

Sources

Description

A `SURFACE_CURVE`'s `associated_geometry` uses a 3D curve (rather than a 2D `pcurve`) on a flat `PLANE`; mathematically valid but trips importers that hardcode the 2D form. Surprisingly common in Parasolid-origin files.

Reproducer recipe

`SURFACE_CURVE` whose `associated_geometry` is a 3D `LINE` lying in a `PLANE`, instead of a `PCURVE` with 2D parameters.

Expected kernel behavior

Heal and accept; derive parameter curve from 3D curve when consistent with the host surface.

Notes

**See also**: Gp010. Synonyms: "flat 3D curve as p-curve instead of 2D PCURVE", "Parasolid file with 3D curve in lieu of pcurve", "associated_geometry has 3D LINE on PLANE", "importer hardcoded for 2D pcurve sees 3D curve", "3D edge curve in p-curve slot on flat surface".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Gp010

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gn030: SURFACE_CURVE associated_geometry is a 3D LINE in the host PLANE (Z=0) instead of a 2D PCURVE; Parasolid-origin style; 3D curve geometrically consistent with PLANE surface but stored in 3D form not 2D parametric; importers hardcoded for 2D pcurve form trip; compliant kernels must heal by deriving the parameter curve from the 3D curve + host surface */
3HEADER;
4FILE_DESCRIPTION(('Gn030'),'2;1');
5FILE_NAME('Gn030.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('plane_ax',#1,#2,#3);
14#5=PLANE('flat_plane',#4);
15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
16#7=CARTESIAN_POINT('',(0.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(4.0,0.0,0.0));
18#9=CARTESIAN_POINT('',(4.0,4.0,0.0));
19#10=CARTESIAN_POINT('',(0.0,4.0,0.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('',(0.0,0.0,0.0));
25#16=DIRECTION('',(1.0,0.0,0.0));
26#17=VECTOR('',#16,4.0);
27#18=LINE('',#15,#17);
28#19=CARTESIAN_POINT('',(0.0,0.0,0.0));
29#20=DIRECTION('',(1.0,0.0,0.0));
30#21=VECTOR('',#20,4.0);
31#22=LINE('',#19,#21);
32#23=SURFACE_CURVE('sc_3d_as_pc',#18,(#22),.PCURVE_S1.);
33#24=EDGE_CURVE('ec',#11,#12,#23,.T.);
34#25=CARTESIAN_POINT('',(4.0,0.0,0.0));
35#26=DIRECTION('',(0.0,1.0,0.0));
36#27=VECTOR('',#26,4.0);
37#28=LINE('',#25,#27);
38#29=CARTESIAN_POINT('',(4.0,0.0,0.0));
39#30=DIRECTION('',(0.0,1.0,0.0));
40#31=VECTOR('',#30,4.0);
41#32=LINE('',#29,#31);
42#33=SURFACE_CURVE('sc_3d_as_pc',#28,(#32),.PCURVE_S1.);
43#34=EDGE_CURVE('ec',#12,#13,#33,.T.);
44#35=CARTESIAN_POINT('',(4.0,4.0,0.0));
45#36=DIRECTION('',(-1.0,0.0,0.0));
46#37=VECTOR('',#36,4.0);
47#38=LINE('',#35,#37);
48#39=CARTESIAN_POINT('',(4.0,4.0,0.0));
49#40=DIRECTION('',(-1.0,0.0,0.0));
50#41=VECTOR('',#40,4.0);
51#42=LINE('',#39,#41);
52#43=SURFACE_CURVE('sc_3d_as_pc',#38,(#42),.PCURVE_S1.);
53#44=EDGE_CURVE('ec',#13,#14,#43,.T.);
54#45=CARTESIAN_POINT('',(0.0,4.0,0.0));
55#46=DIRECTION('',(0.0,-1.0,0.0));
56#47=VECTOR('',#46,4.0);
57#48=LINE('',#45,#47);
58#49=CARTESIAN_POINT('',(0.0,4.0,0.0));
59#50=DIRECTION('',(0.0,-1.0,0.0));
60#51=VECTOR('',#50,4.0);
61#52=LINE('',#49,#51);
62#53=SURFACE_CURVE('sc_3d_as_pc',#48,(#52),.PCURVE_S1.);
63#54=EDGE_CURVE('ec',#14,#11,#53,.T.);
64#55=ORIENTED_EDGE('',$,$,#24,.T.);
65#56=ORIENTED_EDGE('',$,$,#34,.T.);
66#57=ORIENTED_EDGE('',$,$,#44,.T.);
67#58=ORIENTED_EDGE('',$,$,#54,.T.);
68#59=EDGE_LOOP('',(#55,#56,#57,#58));
69#60=FACE_OUTER_BOUND('',#59,.T.);
70#61=ADVANCED_FACE('',(#60),#5,.T.);
71#62=OPEN_SHELL('',(#61));
72#63=SHELL_BASED_SURFACE_MODEL('',(#62));
73#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
74#9051=PRODUCT('Gn030','Gn030','',(#9050));
75#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
76#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
77#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
78#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
79#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
80#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
81#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
82#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
83#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
84#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#63),#9060);
85#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
86ENDSEC;
87END-ISO-10303-21;