bezier_curve() produces an excess point at the end of the output array. This may cause undesirable effects when the output is fed to e.g. path_extrude():
Proposed fix attached and seems to work:
The code to reproduce:
include <../src/bezier_curve.scad>;
curve_pts = [[5,5,0],[10,10,10],[20,20,20]];
path_pts = bezier_curve(0.1,curve_pts);
echo(path_pts=path_pts); // See the output
include <../src/polysections.scad>;
include <../src/rotate_p.scad>;
include <../src/path_extrude.scad>;
shape_pts = [[5, -5], [5, 5], [-5, 5], [-5, -5]]; // 10mm square
path_extrude(shape_pts,path_pts,triangles="SOLID");
bezier_curve()
produces an excess point at the end of the output array. This may cause undesirable effects when the output is fed to e.g.path_extrude()
:Proposed fix attached and seems to work:![image](https://user-images.githubusercontent.com/536698/39460202-c2e408de-4d2b-11e8-999f-816f3670cbd4.png)
The code to reproduce: