step-examples/12-2a-pcurves/Gp064.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Edge.FixRemovePCurve degenerate-on-cone
Reproducer recipe
Expected kernel behavior
The edge's 3D curve collapses onto the cone apex over the first half of its range and then jumps ~0.7 mm to rejoin the spoke, while its pcurve is a clean radial line: the 3D curve is the untrustworthy representation here, so discard IT and rebuild it by evaluating the pcurve on the surface — not the reverse. Over a surface singularity the pcurve is the only usable representation and must be kept, with the collapsed sub-segment marked degenerate; if neither representation can be rebuilt, reject the edge with a diagnostic naming it instead of returning an empty shape.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gp064: Left spoke on CONICAL_SURFACE (semi_angle=pi/4): degree-2 B-spline 3D curve with C-1 positional break at t=0.5 (knot mult=3); break at CP[2]=(0,0,0) vs CP[3]=(0.5,0,0.5) represents FixRemovePCurve removing apex pcurve and FixSameParameter stitching zero-length apex stub to non-degenerate spoke half; 0.707-unit jump â OCC empty */ 3HEADER; 4FILE_DESCRIPTION(('Gp064'),'2;1'); 5FILE_NAME('Gp064.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=CONICAL_SURFACE('',#4,0.0,0.785398163397); 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('',(1.0,0.0,1.0)); 18#9=CARTESIAN_POINT('',(0.0,1.0,1.0)); 19#10=VERTEX_POINT('',#7); 20#11=VERTEX_POINT('',#8); 21#12=VERTEX_POINT('',#9); 22#13=CARTESIAN_POINT('',(0.0,0.0,0.0)); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#15=CARTESIAN_POINT('',(0.0,0.0,0.0)); 25#16=CARTESIAN_POINT('',(0.5,0.0,0.5)); 26#17=CARTESIAN_POINT('',(0.75,0.0,0.75)); 27#18=CARTESIAN_POINT('',(1.0,0.0,1.0)); 28#19=B_SPLINE_CURVE_WITH_KNOTS('fixremovepcurve_apex_stub',2,(#13,#14,#15,#16,#17,#18),.UNSPECIFIED.,.F.,.F.,(3,3,3),(0.0,0.5,1.0),.UNSPECIFIED.); 29#20=CARTESIAN_POINT('',(0.0,0.0)); 30#21=DIRECTION('',(0.0,1.0)); 31#22=VECTOR('',#21,1.0); 32#23=LINE('',#20,#22); 33#24=DEFINITIONAL_REPRESENTATION('pc_spoke0_def',(#23),#6); 34#25=PCURVE('spoke0_degenerate_apex',#5,#24); 35#26=SURFACE_CURVE('spoke0',#19,(#25),.PCURVE_S1.); 36#27=EDGE_CURVE('spoke_u0',#10,#11,#26,.T.); 37#28=CARTESIAN_POINT('',(0.0,0.0,1.0)); 38#29=DIRECTION('',(0.0,0.0,1.0)); 39#30=DIRECTION('',(1.0,0.0,0.0)); 40#31=AXIS2_PLACEMENT_3D('',#28,#29,#30); 41#32=CIRCLE('',#31,1.0); 42#33=CARTESIAN_POINT('',(0.0,1.0)); 43#34=DIRECTION('',(1.0,0.0)); 44#35=VECTOR('',#34,1.57079632679); 45#36=LINE('',#33,#35); 46#37=DEFINITIONAL_REPRESENTATION('pc_rim_def',(#36),#6); 47#38=PCURVE('rim_arc',#5,#37); 48#39=SURFACE_CURVE('rim_arc',#32,(#38),.PCURVE_S1.); 49#40=EDGE_CURVE('rim_arc',#11,#12,#39,.T.); 50#41=DIRECTION('',(0.0,0.707106781187,0.707106781187)); 51#42=VECTOR('',#41,1.41421356237); 52#43=LINE('',#7,#42); 53#44=CARTESIAN_POINT('',(1.57079632679,0.0)); 54#45=DIRECTION('',(0.0,1.0)); 55#46=VECTOR('',#45,1.0); 56#47=LINE('',#44,#46); 57#48=DEFINITIONAL_REPRESENTATION('pc_spoke90_def',(#47),#6); 58#49=PCURVE('spoke90',#5,#48); 59#50=SURFACE_CURVE('spoke90',#43,(#49),.PCURVE_S1.); 60#51=EDGE_CURVE('spoke_u90',#10,#12,#50,.T.); 61#52=ORIENTED_EDGE('',$,$,#27,.T.); 62#53=ORIENTED_EDGE('',$,$,#40,.T.); 63#54=ORIENTED_EDGE('',$,$,#51,.F.); 64#55=EDGE_LOOP('',(#52,#53,#54)); 65#56=FACE_OUTER_BOUND('',#55,.T.); 66#57=ADVANCED_FACE('',(#56),#5,.T.); 67#58=OPEN_SHELL('',(#57)); 68#59=SHELL_BASED_SURFACE_MODEL('',(#58)); 69#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 70#9051=PRODUCT('Gp064','Gp064','',(#9050)); 71#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 72#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 73#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 74#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 75#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 76#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 77#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 78#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 79#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 80#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#59),#9060); 81#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 82ENDSEC; 83END-ISO-10303-21;