step-examples/12-2a-pcurves/Gp108.stp
Sources
- synthesized — no external source cited
Description
CheckPCurveRange B-spline-out-of-knot
Reproducer recipe
Expected kernel behavior
The edge is parameterised over [-1, 6] while its pcurve's knots cover only [0, 5]: detect that part of the edge's interval falls outside the pcurve's valid domain and refuse to evaluate the pcurve there, since evaluating past the end knots extrapolates silently and yields plausible-looking nonsense. Either restrict the edge to the intersection of the two domains, or discard the pcurve and rebuild it by projecting the 3D curve; report the out-of-domain range on the edge either way.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Tier-3 assertions
shape_null == Falsen_vertices_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gp108: EDGE_CURVE with 3D LINE spanning parameter [-1, 6] (via oversized vector); PCURVE B-spline knot domain [0, 5]; edge parametrization [-1, 6] extends outside pcurve's valid domain; CheckPCurveRange must detect and report out-of-domain evaluation; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Gp108'),'2;1'); 5FILE_NAME('Gp108.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=CARTESIAN_POINT('',(0.0,0.0,0.0)); 12#3=DIRECTION('',(0.0,0.0,1.0)); 13#4=DIRECTION('',(1.0,0.0,0.0)); 14#5=AXIS2_PLACEMENT_3D('',#2,#3,#4); 15#6=PLANE('',#5); 16#7=CARTESIAN_POINT('edge_start_at_neg1',(-1.0,0.0,0.0)); 17#8=CARTESIAN_POINT('edge_end_at_6',(6.0,0.0,0.0)); 18#9=VERTEX_POINT('',#7); 19#10=VERTEX_POINT('',#8); 20#11=DIRECTION('',(1.0,0.0,0.0)); 21#12=VECTOR('',#11,7.0); 22#13=LINE('',#7,#12); 23#14=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('','2D')); 24#15=CARTESIAN_POINT('',(0.0,0.0)); 25#16=CARTESIAN_POINT('',(1.0,1.0)); 26#17=CARTESIAN_POINT('',(2.5,0.5)); 27#18=CARTESIAN_POINT('',(3.5,1.5)); 28#19=CARTESIAN_POINT('',(4.5,0.5)); 29#20=CARTESIAN_POINT('',(5.0,0.0)); 30#21=B_SPLINE_CURVE_WITH_KNOTS('pcurve_knots_0_to_5',3,(#15,#16,#17,#18,#19,#20),.UNSPECIFIED.,.F.,.F.,(4,1,1,4),(0.0,1.667,3.333,5.0),.UNSPECIFIED.); 31#22=DEFINITIONAL_REPRESENTATION('pcurve_domain_0_5',(#21),#14); 32#23=PCURVE('pcurve_knot_range_0_5',#6,#22); 33#24=SURFACE_CURVE('out_of_knot',#13,(#23),.PCURVE_S1.); 34#25=EDGE_CURVE('edge_param_outside_pcurve_domain',#9,#10,#24,.T.); 35#26=GEOMETRIC_CURVE_SET('gcs',(#1,#25)); 36#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 37#9051=PRODUCT('Gp108','Gp108','',(#9050)); 38#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 39#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 40#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 41#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 42#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 43#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 44#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 45#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 46#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 47#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#26),#9060); 48#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 49ENDSEC; 50END-ISO-10303-21;