1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/examples/knot.scad

20 lines
330 B
OpenSCAD
Raw Normal View History

2020-01-27 16:50:29 +08:00
use <shape_pentagram.scad>;
use <path_extrude.scad>;
use <torus_knot.scad>;
2019-07-08 08:10:31 +08:00
p = 2;
q = 3;
phi_step = 0.05;
star_radius = 0.5;
pts = torus_knot(p, q, phi_step);
shape_pentagram_pts = shape_pentagram(star_radius);
path_extrude(
shape_pentagram_pts,
[each pts, pts[0]],
2019-07-08 08:10:31 +08:00
closed = true,
method = "EULER_ANGLE"
);