Gp007 — Edge parameter range outside the pcurve's natural domain

§12.2a pcurve

geometry

Sources

Description

An edge declares a `[first, last]` parameter range that lies outside the natural domain of its pcurve, or the pcurve's active range does not match the 3D-curve range. The receiver evaluating the pcurve at the declared parameter values walks off the end of the curve definition.

Reproducer recipe

`EDGE_CURVE` with declared parameter `[0, 2.5]` whose pcurve's domain is `[0, 1]`, attached to an `ADVANCED_FACE` on a finite surface.

Expected kernel behavior

clamp the edge's parameter range to the pcurve's natural domain (when the discrepancy is small), or reject as malformed.

Notes

**See also**: Gs029. **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: "edge parameter range exceeds pcurve domain", "edge first/last parameters outside pcurve definition", "pcurve evaluated past natural domain", "edge trim parameters out of bounds for 2D curve", "pcurve domain too short for declared edge range".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Gs029, Gp193

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gp007: 3D-curve domain [0,2.5] exceeds pcurve basis domain [0,1] */
3HEADER;
4FILE_DESCRIPTION(('Gp007'),'2;1');
5FILE_NAME('Gp007.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=PLANE('host',#4);
15#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=CARTESIAN_POINT('',(2.5,0.0,0.0));
17#8=VERTEX_POINT('',#6);
18#9=VERTEX_POINT('',#7);
19#10=B_SPLINE_CURVE_WITH_KNOTS('c3d_domain_0_to_2_5',1,(#6,#7),.POLYLINE_FORM.,.F.,.F.,(2,2),(0.0,2.5),.UNSPECIFIED.);
20#11=CARTESIAN_POINT('',(0.0,0.0));
21#12=CARTESIAN_POINT('',(1.0,0.0));
22#13=B_SPLINE_CURVE_WITH_KNOTS('pcurve_basis_domain_0_to_1',1,(#11,#12),.POLYLINE_FORM.,.F.,.F.,(2,2),(0.0,1.0),.UNSPECIFIED.);
23#14=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
24#15=DEFINITIONAL_REPRESENTATION('pcurve_def',(#13),#14);
25#16=PCURVE('uv_curve',#5,#15);
26#17=SURFACE_CURVE('mismatched_domains',#10,(#16),.PCURVE_S1.);
27#18=EDGE_CURVE('edge_2_5_long',#8,#9,#17,.T.);
28#19=ORIENTED_EDGE('',$,$,#18,.T.);
29#20=EDGE_LOOP('',(#19));
30#21=FACE_OUTER_BOUND('',#20,.T.);
31#22=ADVANCED_FACE('',(#21),#5,.T.);
32#23=OPEN_SHELL('',(#22));
33#24=SHELL_BASED_SURFACE_MODEL('',(#23));
34#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
35#9051=PRODUCT('Gp007','Gp007','',(#9050));
36#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
37#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
38#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
39#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
40#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
41#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
42#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
43#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
44#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
45#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#24),#9060);
46#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
47ENDSEC;
48END-ISO-10303-21;