step-examples/12-2a-pcurves/Gp045.stp
Sources
- synthesized — no external source cited
Description
FixSameParameter copies EDGE_CURVE to new TEdge but preserves old range bounds. New BSpline's actual knot domain differs from preserved bounds, causing parameter mismatch between 3D and 2D curves. Geometry: PLANE host; 3D B-spline degree 2, knots (0.0, 0.333, 0.667, 1.0); matching PCURVE B-spline.
Reproducer recipe
Expected kernel behavior
The edge's 3D geometry is trimmed to [0.05, 0.95] while its pcurve spans the full knot domain [0, 1] of the same B-spline: detect that the two representations do not bound the same parameter sub-domain, instead of trusting any stored "same range" assertion. Re-derive the pcurve's range from the 3D curve's actual domain, or re-project one from the other, so that both agree; report an invalid-range condition on the edge if they cannot be reconciled.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Tier-3 assertions
shape_null == False
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gp045: PLANE face bottom edge: 3D B-spline degree 2 knots [0.0,0.333,0.667,1.0]; PCURVE B-spline same knot structure but parameter range inherited as stale [0.05,0.95] after EDGE_CURVE copy â does not cover full knot domain [0,1]; FixSameParameter edge-copy trap: stale bounds cause 3D/2D parameter mismatch */ 3HEADER; 4FILE_DESCRIPTION(('Gp045'),'2;1'); 5FILE_NAME('Gp045.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('',#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('',(10.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(10.0,5.0,0.0)); 19#10=CARTESIAN_POINT('',(0.0,5.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=CARTESIAN_POINT('',(2.5,0.0,0.0)); 26#17=CARTESIAN_POINT('',(5.0,0.0,0.0)); 27#18=CARTESIAN_POINT('',(7.5,0.0,0.0)); 28#19=CARTESIAN_POINT('',(10.0,0.0,0.0)); 29#20=B_SPLINE_CURVE_WITH_KNOTS('',2,(#15,#16,#17,#18,#19),.UNSPECIFIED.,.F.,.F.,(3,1,1,3),(0.0,0.333,0.667,1.0),.UNSPECIFIED.); 30#21=CARTESIAN_POINT('',(0.0,0.0)); 31#22=CARTESIAN_POINT('',(2.5,0.0)); 32#23=CARTESIAN_POINT('',(5.0,0.0)); 33#24=CARTESIAN_POINT('',(7.5,0.0)); 34#25=CARTESIAN_POINT('',(10.0,0.0)); 35#26=B_SPLINE_CURVE_WITH_KNOTS('',2,(#21,#22,#23,#24,#25),.UNSPECIFIED.,.F.,.F.,(3,1,1,3),(0.0,0.333,0.667,1.0),.UNSPECIFIED.); 36#27=DEFINITIONAL_REPRESENTATION('pc_bot',(#26),#6); 37#28=PCURVE('bot_pc',#5,#27); 38#29=TRIMMED_CURVE('stale_trim',#20,(PARAMETER_VALUE(0.05)),(PARAMETER_VALUE(0.95)),.T.,.PARAMETER.); 39#30=SURFACE_CURVE('bottom',#29,(#28),.PCURVE_S1.); 40#31=EDGE_CURVE('bot_edge',#11,#12,#30,.T.); 41#32=DIRECTION('',(0.0,1.0,0.0)); 42#33=VECTOR('',#32,5.0); 43#34=LINE('',#8,#33); 44#35=CARTESIAN_POINT('',(10.0,0.0)); 45#36=DIRECTION('',(0.0,1.0)); 46#37=VECTOR('',#36,5.0); 47#38=LINE('',#35,#37); 48#39=DEFINITIONAL_REPRESENTATION('pc_right',(#38),#6); 49#40=PCURVE('right_pc',#5,#39); 50#41=SURFACE_CURVE('right',#34,(#40),.PCURVE_S1.); 51#42=EDGE_CURVE('right_edge',#12,#13,#41,.T.); 52#43=DIRECTION('',(-1.0,0.0,0.0)); 53#44=VECTOR('',#43,10.0); 54#45=LINE('',#9,#44); 55#46=CARTESIAN_POINT('',(10.0,5.0)); 56#47=DIRECTION('',(-1.0,0.0)); 57#48=VECTOR('',#47,10.0); 58#49=LINE('',#46,#48); 59#50=DEFINITIONAL_REPRESENTATION('pc_top',(#49),#6); 60#51=PCURVE('top_pc',#5,#50); 61#52=SURFACE_CURVE('top',#45,(#51),.PCURVE_S1.); 62#53=EDGE_CURVE('top_edge',#13,#14,#52,.T.); 63#54=DIRECTION('',(0.0,-1.0,0.0)); 64#55=VECTOR('',#54,5.0); 65#56=LINE('',#10,#55); 66#57=CARTESIAN_POINT('',(0.0,5.0)); 67#58=DIRECTION('',(0.0,-1.0)); 68#59=VECTOR('',#58,5.0); 69#60=LINE('',#57,#59); 70#61=DEFINITIONAL_REPRESENTATION('pc_left',(#60),#6); 71#62=PCURVE('left_pc',#5,#61); 72#63=SURFACE_CURVE('left',#56,(#62),.PCURVE_S1.); 73#64=EDGE_CURVE('left_edge',#14,#11,#63,.T.); 74#65=ORIENTED_EDGE('',$,$,#31,.T.); 75#66=ORIENTED_EDGE('',$,$,#42,.T.); 76#67=ORIENTED_EDGE('',$,$,#53,.T.); 77#68=ORIENTED_EDGE('',$,$,#64,.T.); 78#69=EDGE_LOOP('',(#65,#66,#67,#68)); 79#70=FACE_OUTER_BOUND('',#69,.T.); 80#71=ADVANCED_FACE('',(#70),#5,.T.); 81#72=OPEN_SHELL('',(#71)); 82#73=SHELL_BASED_SURFACE_MODEL('',(#72)); 83#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 84#9051=PRODUCT('Gp045','Gp045','',(#9050)); 85#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 86#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 87#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 88#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 89#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 90#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 91#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 92#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 93#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 94#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#73),#9060); 95#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 96ENDSEC; 97END-ISO-10303-21;