discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Spline interpolation - nSpline()

LB
L Boyd
Thu, Dec 31, 2015 5:25 PM

From my experiments, it doesn't matter if the start point is defined once or

twice.


Larry

View this message in context: http://forum.openscad.org/Spline-interpolation-nSpline-tp15207p15398.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

>From my experiments, it doesn't matter if the start point is defined once or twice. ----- Larry -- View this message in context: http://forum.openscad.org/Spline-interpolation-nSpline-tp15207p15398.html Sent from the OpenSCAD mailing list archive at Nabble.com.
P
Parkinbot
Fri, Jan 1, 2016 5:15 PM

Hi Johan,

I just updated sweep() and it fits your needs now. You can download it from
http://www.thingiverse.com/thing:1208001

BTW sweep() is NOT a full blown algorithm you can use with any shape. It
consumes convex shapes and weakly symmetric shapes like airfoils only, but
NO fancy stuff. skin() has a more general implementation.

Don't forget to use the proper version of circle_() now.

function circle_(r, N) = [  for(i=[0:N-1])  let(angle = i360/N)
[r
sin(angle), r*cos(angle)]];

  • Rudolf

--
View this message in context: http://forum.openscad.org/Spline-interpolation-nSpline-tp15207p15406.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi Johan, I just updated sweep() and it fits your needs now. You can download it from http://www.thingiverse.com/thing:1208001 BTW sweep() is NOT a full blown algorithm you can use with any shape. It consumes convex shapes and weakly symmetric shapes like airfoils only, but NO fancy stuff. skin() has a more general implementation. Don't forget to use the proper version of circle_() now. > function circle_(r, N) = [ for(i=[0:N-1]) let(angle = i*360/N) > [r*sin(angle), r*cos(angle)]]; - Rudolf -- View this message in context: http://forum.openscad.org/Spline-interpolation-nSpline-tp15207p15406.html Sent from the OpenSCAD mailing list archive at Nabble.com.
JJ
Johan Jonker
Sun, Mar 20, 2016 10:58 PM

Hi Parkinbot,

Sorry for my very late reaction. I was very busy with a lot of things. But
today I again encountered the small bugs with your earlier version of sweep
and thought. Maybe Parkinbot has already made a new version. And YES, that
is the case! And is it working perfect now!
Many thanks for that!!

kind regards Johan

--
View this message in context: http://forum.openscad.org/Spline-interpolation-nSpline-tp15207p16608.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi Parkinbot, Sorry for my very late reaction. I was very busy with a lot of things. But today I again encountered the small bugs with your earlier version of sweep and thought. Maybe Parkinbot has already made a new version. And YES, that is the case! And is it working perfect now! Many thanks for that!! kind regards Johan -- View this message in context: http://forum.openscad.org/Spline-interpolation-nSpline-tp15207p16608.html Sent from the OpenSCAD mailing list archive at Nabble.com.