scad-utils
scad-utils copied to clipboard
shapes.scad - where to find this module ?
I'm trying to use the scad-utils as described by mathgrl at https://mathgrrl.com/hacktastic/2018/11/knots-in-openscad-with-sweeper/
use <sweep.scad> use <scad-utils/shapes.scad>
function f(a,b,t) = // rolling knot [ a * cos (3 * t) / (1 - b* sin (2 t)), a * sin( 3 * t) / (1 - b sin (2 t)), 1.8 * b * cos (2 * t) /(1 - b sin (2 *t)) ];
a = 0.8; b = sqrt (1 - a * a);
function shape() = circle(60, $fn=48);
step = 0.005; path = [for (t=[0:step:1-step]) 200 * f(a,b,t*360)]; path_transforms = construct_transform_path(path); sweep(shape(), path_transforms, true);
Lots of the code in sweeper seems to rely on scad-utils and includes something called shapes.scad from there.
Anyone know where to find that as its no longer here it seems ?
Sorry if this is a dull question
All help much appreciated.
+1 to this, I am trying to work with a different model (https://github.com/pseudoku/Dactyl-It-Yourself-Editor) which requires scad-utils/lists.scad as well as scad-utils/shapes.scad and I cannot find it for the life of me.
Seems like a simple thing but has me stumped
Cheers!
@nerif-tafu you probably want the openscad fork of scad-utils: https://github.com/openscad/scad-utils - this includes a shapes.scad file and the 'transform' function