Gn038 — `BOUNDED_PCURVE` LoadONBrep stub (BRL-CAD step-g)

§12.2b NURBS/knots (sub-class: subtype unimplemented)

P1 — silent data loss

geometry

Sources

Sender

Producers that emit a bounded re-parametrisation of an otherwise infinite parametric basis curve.

Description

`BOUNDED_PCURVE` is a degenerate subclass whose role is to give a bounded version of an otherwise infinite parametric basis curve. step-g loads the entity into the in-memory model fine, but the LoadONBrep path falls through to the base-class stub which prints `"not implemented for BoundedPCurve"` and returns false. Trims referencing a `BOUNDED_PCURVE` in their `associated_geometry` list lose the parametric curve in the ON_Brep representation, so the trim becomes 3D-only and is later re-projected numerically (introducing drift). Distinct from Gn019 (coincident-control-point degeneracy): this is a *type-dispatch* defect rather than a degeneracy.

Reproducer recipe

`#41=BOUNDED_PCURVE('bp_on_plane', #14, #40);` referenced from a `SURFACE_CURVE.associated_geometry`. step-g loads the entity; LoadONBrep stub returns false.

Expected kernel behavior

heal-and-accept; `BoundedPCurve::LoadONBrep` must defer to its underlying definitional basis curve and reparameterise to the bounded subrange; if unhandled, emit `W_BOUNDED_PCURVE_FALLBACK` and project from 3D.

Notes

**See also**: Gn019, Twi100, Twi101. Synonyms: "BOUNDED_PCURVE LoadONBrep stub", "step-g BOUNDED_PCURVE drop", "BOUNDED_PCURVE subtype unimplemented".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Gn019, Twi100, Twi101

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gn038: BOUNDED_PCURVE('bp_on_plane') in SURFACE_CURVE.associated_geometry; BRL-CAD step-g LoadONBrep stub returns false for BoundedPCurve subtype; trim loses parametric curve, becomes 3D-only, re-projected with drift; compliant kernel must defer to definitional basis curve and reparameterise; OCC silent-accept; See also Gn019, Twi100, Twi101; C-1 break in 3D edge at t=0.5 (1.5-unit CP gap) drives shape_null=True */
3HEADER;
4FILE_DESCRIPTION(('Gn038'),'2;1');
5FILE_NAME('Gn038.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));
17#8=DIRECTION('',(1.0,0.0));
18#9=VECTOR('',#8,1.0);
19#10=LINE('',#7,#9);
20#11=DEFINITIONAL_REPRESENTATION('bp_basis_def',(#10),#6);
21#12=BOUNDED_PCURVE('bp_on_plane',#5,#11);
22#13=CARTESIAN_POINT('',(0.0,0.0,0.0));
23#14=CARTESIAN_POINT('',(1.25,0.0,0.0));
24#15=CARTESIAN_POINT('',(2.5,0.0,0.0));
25#16=CARTESIAN_POINT('',(4.0,0.0,0.0));
26#17=CARTESIAN_POINT('',(4.75,0.0,0.0));
27#18=CARTESIAN_POINT('',(5.0,0.0,0.0));
28#19=B_SPLINE_CURVE_WITH_KNOTS('gn038_c1_break',2,(#13,#14,#15,#16,#17,#18),.UNSPECIFIED.,.F.,.F.,(3,3,3),(0.0,0.5,1.0),.UNSPECIFIED.);
29#20=SURFACE_CURVE('gn038_sc',#19,(#12),.PCURVE_S1.);
30#21=CARTESIAN_POINT('',(0.0,0.0,0.0));
31#22=CARTESIAN_POINT('',(5.0,0.0,0.0));
32#23=CARTESIAN_POINT('',(5.0,5.0,0.0));
33#24=CARTESIAN_POINT('',(0.0,5.0,0.0));
34#25=VERTEX_POINT('',#21);
35#26=VERTEX_POINT('',#22);
36#27=VERTEX_POINT('',#23);
37#28=VERTEX_POINT('',#24);
38#29=EDGE_CURVE('gn038_edge',#25,#26,#20,.T.);
39#30=CARTESIAN_POINT('',(5.0,0.0,0.0));
40#31=DIRECTION('',(0.0,1.0,0.0));
41#32=VECTOR('',#31,5.0);
42#33=LINE('',#30,#32);
43#34=CARTESIAN_POINT('',(1.0,0.0));
44#35=DIRECTION('',(0.0,1.0));
45#36=VECTOR('',#35,5.0);
46#37=LINE('',#34,#36);
47#38=DEFINITIONAL_REPRESENTATION('pcdef',(#37),#6);
48#39=PCURVE('pc',#5,#38);
49#40=SURFACE_CURVE('sc',#33,(#39),.PCURVE_S1.);
50#41=EDGE_CURVE('ec',#26,#27,#40,.T.);
51#42=CARTESIAN_POINT('',(5.0,5.0,0.0));
52#43=DIRECTION('',(-1.0,0.0,0.0));
53#44=VECTOR('',#43,5.0);
54#45=LINE('',#42,#44);
55#46=CARTESIAN_POINT('',(1.0,1.0));
56#47=DIRECTION('',(-1.0,0.0));
57#48=VECTOR('',#47,5.0);
58#49=LINE('',#46,#48);
59#50=DEFINITIONAL_REPRESENTATION('pcdef',(#49),#6);
60#51=PCURVE('pc',#5,#50);
61#52=SURFACE_CURVE('sc',#45,(#51),.PCURVE_S1.);
62#53=EDGE_CURVE('ec',#27,#28,#52,.T.);
63#54=CARTESIAN_POINT('',(0.0,5.0,0.0));
64#55=DIRECTION('',(0.0,-1.0,0.0));
65#56=VECTOR('',#55,5.0);
66#57=LINE('',#54,#56);
67#58=CARTESIAN_POINT('',(0.0,1.0));
68#59=DIRECTION('',(0.0,-1.0));
69#60=VECTOR('',#59,5.0);
70#61=LINE('',#58,#60);
71#62=DEFINITIONAL_REPRESENTATION('pcdef',(#61),#6);
72#63=PCURVE('pc',#5,#62);
73#64=SURFACE_CURVE('sc',#57,(#63),.PCURVE_S1.);
74#65=EDGE_CURVE('ec',#28,#25,#64,.T.);
75#66=ORIENTED_EDGE('',$,$,#29,.T.);
76#67=ORIENTED_EDGE('',$,$,#41,.T.);
77#68=ORIENTED_EDGE('',$,$,#53,.T.);
78#69=ORIENTED_EDGE('',$,$,#65,.T.);
79#70=EDGE_LOOP('',(#66,#67,#68,#69));
80#71=FACE_OUTER_BOUND('',#70,.T.);
81#72=ADVANCED_FACE('',(#71),#5,.T.);
82#73=OPEN_SHELL('',(#72));
83#74=SHELL_BASED_SURFACE_MODEL('',(#73));
84#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
85#9051=PRODUCT('Gn038','Gn038','',(#9050));
86#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
87#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
88#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
89#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
90#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
91#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
92#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
93#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
94#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
95#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#74),#9060);
96#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
97ENDSEC;
98END-ISO-10303-21;