Pf014 — Long helix exported as huge B-spline (millions of poles)

§12.10 (sub-class: long-curve)

P2 — spec deviation (no data loss)

performance

Sources

Description

When a long 3D helix is projected onto its hosting cylinder, OCCT emitted a B-spline approximation rather than the analytic 2D line segment; analogous issue: `sweep(circle, helix(h≥30))` produces missing-faces output sensitive to sub-percent offset (build123d #1064). Parameter-space curve becomes huge B-spline with thousands of knots.

Reproducer recipe

`EDGE_CURVE` whose 3D curve is a helix on a `CYLINDRICAL_SURFACE` with no pcurve; or sweep a circle along a tall (h ≥ 30) helix and export to STEP.

Expected kernel behavior

Heal and accept: detect the line-on-elementary-surface helix case and coerce export to a compact analytical form rather than a million-pole B-spline.

Notes

**See also**: P008, P009.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

P008, P009

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Pf014: helix on CYLINDRICAL_SURFACE exported as huge B-spline pcurve instead of analytic 2D LINE; thousands of poles/knots; the defect entity is emitted but sits unreachable from the shape-rep root (product chain roots a GEOMETRIC_CURVE_SET stub), so OCC loads only a 1-vertex stub (shape(1)); byte-present but oracle-invisible to the load-time shape-count oracles */
3HEADER;
4FILE_DESCRIPTION(('Pf014'),'2;1');
5FILE_NAME('Pf014.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=GEOMETRIC_CURVE_SET('',(#1));
12#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
13#9051=PRODUCT('Pf014','Pf014','',(#9050));
14#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
15#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
16#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
17#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
18#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
19#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
20#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
21#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
22#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
23#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#2),#9060);
24#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
25#9063=CARTESIAN_POINT('',(0.0,0.0,0.0));
26#9064=DIRECTION('',(0.0,0.0,1.0));
27#9065=DIRECTION('',(1.0,0.0,0.0));
28#9066=AXIS2_PLACEMENT_3D('',#9063,#9064,#9065);
29#9067=CYLINDRICAL_SURFACE('',#9066,5.0);
30#9068=CARTESIAN_POINT('',(0.0,0.0,0.0));
31#9069=DIRECTION('',(1.0,1.0,0.0));
32#9070=VECTOR('',#9069,1.0);
33#9071=LINE('',#9068,#9070);
34#9072=CARTESIAN_POINT('',(5.0,0.0,0.0));
35#9073=CARTESIAN_POINT('',(4.91964794299,0.892784473993,0.857142857143));
36#9074=CARTESIAN_POINT('',(4.6811743532,1.75687412041,1.71428571429));
37#9075=CARTESIAN_POINT('',(4.29224396801,2.56449638703,2.57142857143));
38#9076=CARTESIAN_POINT('',(3.76535733002,3.2896936297,3.42857142857));
39#9077=CARTESIAN_POINT('',(3.11744900929,3.90915741234,4.28571428571));
40#9078=CARTESIAN_POINT('',(2.36934331236,4.40297765928,5.14285714286));
41#9079=CARTESIAN_POINT('',(1.54508497187,4.75528258148,6.0));
42#9080=CARTESIAN_POINT('',(0.671166329088,4.95474880884,6.85714285714));
43#9081=CARTESIAN_POINT('',(-0.224324151753,4.99496533271,7.71428571429));
44#9082=CARTESIAN_POINT('',(-1.11260466978,4.87463956091,8.57142857143));
45#9083=CARTESIAN_POINT('',(-1.96512515827,4.59763886276,9.42857142857));
46#9084=CARTESIAN_POINT('',(-2.75448490726,4.17286626861,10.2857142857));
47#9085=CARTESIAN_POINT('',(-3.45531324493,3.61397431914,11.1428571429));
48#9086=CARTESIAN_POINT('',(-4.04508497187,2.93892626146,12.0));
49#9087=CARTESIAN_POINT('',(-4.50484433951,2.16941869559,12.8571428571));
50#9088=CARTESIAN_POINT('',(-4.81981430348,1.33018422783,13.7142857143));
51#9089=CARTESIAN_POINT('',(-4.97987146998,0.448196544517,14.5714285714));
52#9090=CARTESIAN_POINT('',(-4.97987146998,-0.448196544517,15.4285714286));
53#9091=CARTESIAN_POINT('',(-4.81981430348,-1.33018422783,16.2857142857));
54#9092=CARTESIAN_POINT('',(-4.50484433951,-2.16941869559,17.1428571429));
55#9093=CARTESIAN_POINT('',(-4.04508497187,-2.93892626146,18.0));
56#9094=CARTESIAN_POINT('',(-3.45531324493,-3.61397431914,18.8571428571));
57#9095=CARTESIAN_POINT('',(-2.75448490726,-4.17286626861,19.7142857143));
58#9096=CARTESIAN_POINT('',(-1.96512515827,-4.59763886276,20.5714285714));
59#9097=CARTESIAN_POINT('',(-1.11260466978,-4.87463956091,21.4285714286));
60#9098=CARTESIAN_POINT('',(-0.224324151753,-4.99496533271,22.2857142857));
61#9099=CARTESIAN_POINT('',(0.671166329088,-4.95474880884,23.1428571429));
62#9100=CARTESIAN_POINT('',(1.54508497187,-4.75528258148,24.0));
63#9101=CARTESIAN_POINT('',(2.36934331236,-4.40297765928,24.8571428571));
64#9102=CARTESIAN_POINT('',(3.11744900929,-3.90915741234,25.7142857143));
65#9103=CARTESIAN_POINT('',(3.76535733002,-3.2896936297,26.5714285714));
66#9104=CARTESIAN_POINT('',(4.29224396801,-2.56449638703,27.4285714286));
67#9105=CARTESIAN_POINT('',(4.6811743532,-1.75687412041,28.2857142857));
68#9106=CARTESIAN_POINT('',(4.91964794299,-0.892784473993,29.1428571429));
69#9107=CARTESIAN_POINT('',(5.0,0.0,30.0));
70#9108=B_SPLINE_CURVE_WITH_KNOTS('helix_approx',3,(#9072,#9073,#9074,#9075,#9076,#9077,#9078,#9079,#9080,#9081,#9082,#9083,#9084,#9085,#9086,#9087,#9088,#9089,#9090,#9091,#9092,#9093,#9094,#9095,#9096,#9097,#9098,#9099,#9100,#9101,#9102,#9103,#9104,#9105,#9106,#9107),.UNSPECIFIED.,.F.,.F.,(4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4),(0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,33,33,33),.UNSPECIFIED.);
71#9109=VERTEX_POINT('',#9072);
72#9110=VERTEX_POINT('',#9107);
73#9111=EDGE_CURVE('',#9109,#9110,#9108,.T.);
74#9112=GEOMETRIC_CURVE_SET('helix_curves',(#9071,#9108));
75ENDSEC;
76END-ISO-10303-21;