step-examples/12-2a-pcurves/Gp044.stp
Sources
- synthesized — no external source cited
Description
Both endpoints and interior point are equidistant from probe point. Project's endpoint-bias returns endpoint distance even when interior local-min is the true projection. PCURVE maps to wrong parameter bounds. Geometry: PLANE host; 3D B-spline arc degree 2 with inflection at midspan; PCURVE B-spline.
Reproducer recipe
Expected kernel behavior
reject-with-diagnostic naming the edge, or heal by re-projecting the pcurve from the 3D curve: the 3D curve bows to y=2 at midspan while its pcurve stays flat at v=0, so the two representations of the same edge disagree by 2 units in-plane.
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/* Gp044: PLANE face bottom edge: 3D B-spline arc degree 2 bows above plane y=0 (inflection at midspan at (5,1,0)); PCURVE LINE maps [0,10] in U at V=0; endpoint-bias projection selects endpoint over interior local-min projection; PCURVE parameter bounds misaligned with actual 3D geometry */ 3HEADER; 4FILE_DESCRIPTION(('Gp044'),'2;1'); 5FILE_NAME('Gp044.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('',(5.0,2.0,0.0)); 26#17=CARTESIAN_POINT('',(10.0,0.0,0.0)); 27#18=B_SPLINE_CURVE_WITH_KNOTS('',2,(#15,#16,#17),.UNSPECIFIED.,.F.,.F.,(3,3),(0.0,1.0),.UNSPECIFIED.); 28#19=CARTESIAN_POINT('',(0.0,0.0)); 29#20=DIRECTION('',(1.0,0.0)); 30#21=VECTOR('',#20,10.0); 31#22=LINE('',#19,#21); 32#23=DEFINITIONAL_REPRESENTATION('pc_bot',(#22),#6); 33#24=PCURVE('bot_pc',#5,#23); 34#25=SURFACE_CURVE('bottom',#18,(#24),.PCURVE_S1.); 35#26=EDGE_CURVE('bot_edge',#11,#12,#25,.T.); 36#27=DIRECTION('',(0.0,1.0,0.0)); 37#28=VECTOR('',#27,5.0); 38#29=LINE('',#8,#28); 39#30=CARTESIAN_POINT('',(10.0,0.0)); 40#31=DIRECTION('',(0.0,1.0)); 41#32=VECTOR('',#31,5.0); 42#33=LINE('',#30,#32); 43#34=DEFINITIONAL_REPRESENTATION('pc_right',(#33),#6); 44#35=PCURVE('right_pc',#5,#34); 45#36=SURFACE_CURVE('right',#29,(#35),.PCURVE_S1.); 46#37=EDGE_CURVE('right_edge',#12,#13,#36,.T.); 47#38=DIRECTION('',(-1.0,0.0,0.0)); 48#39=VECTOR('',#38,10.0); 49#40=LINE('',#9,#39); 50#41=CARTESIAN_POINT('',(10.0,5.0)); 51#42=DIRECTION('',(-1.0,0.0)); 52#43=VECTOR('',#42,10.0); 53#44=LINE('',#41,#43); 54#45=DEFINITIONAL_REPRESENTATION('pc_top',(#44),#6); 55#46=PCURVE('top_pc',#5,#45); 56#47=SURFACE_CURVE('top',#40,(#46),.PCURVE_S1.); 57#48=EDGE_CURVE('top_edge',#13,#14,#47,.T.); 58#49=DIRECTION('',(0.0,-1.0,0.0)); 59#50=VECTOR('',#49,5.0); 60#51=LINE('',#10,#50); 61#52=CARTESIAN_POINT('',(0.0,5.0)); 62#53=DIRECTION('',(0.0,-1.0)); 63#54=VECTOR('',#53,5.0); 64#55=LINE('',#52,#54); 65#56=DEFINITIONAL_REPRESENTATION('pc_left',(#55),#6); 66#57=PCURVE('left_pc',#5,#56); 67#58=SURFACE_CURVE('left',#51,(#57),.PCURVE_S1.); 68#59=EDGE_CURVE('left_edge',#14,#11,#58,.T.); 69#60=ORIENTED_EDGE('',$,$,#26,.T.); 70#61=ORIENTED_EDGE('',$,$,#37,.T.); 71#62=ORIENTED_EDGE('',$,$,#48,.T.); 72#63=ORIENTED_EDGE('',$,$,#59,.T.); 73#64=EDGE_LOOP('',(#60,#61,#62,#63)); 74#65=FACE_OUTER_BOUND('',#64,.T.); 75#66=ADVANCED_FACE('',(#65),#5,.T.); 76#67=OPEN_SHELL('',(#66)); 77#68=SHELL_BASED_SURFACE_MODEL('',(#67)); 78#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 79#9051=PRODUCT('Gp044','Gp044','',(#9050)); 80#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 81#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 82#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 83#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 84#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 85#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 86#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 87#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 88#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 89#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#68),#9060); 90#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 91ENDSEC; 92END-ISO-10303-21;