aboutsummaryrefslogtreecommitdiff
path: root/chess
diff options
context:
space:
mode:
Diffstat (limited to 'chess')
-rw-r--r--chess/bezier.scad12
-rw-r--r--chess/demo.scad2
2 files changed, 1 insertions, 13 deletions
diff --git a/chess/bezier.scad b/chess/bezier.scad
deleted file mode 100644
index 8fb41e9..0000000
--- a/chess/bezier.scad
+++ /dev/null
@@ -1,12 +0,0 @@
-
-function de_casteljau(points, t) =
- len(points) == 1 ?
- points[0] :
- de_casteljau(
- [for (i = [0:len(points)-2]) (1 - t) * points[i] + t * points[i + 1]],
- t
- ) ;
-
-function bezier_curve(points, $fn=$fn) =
- [for (i = [0:$fn]) de_casteljau(points, i / $fn)] ;
-
diff --git a/chess/demo.scad b/chess/demo.scad
index d796bd9..682dc34 100644
--- a/chess/demo.scad
+++ b/chess/demo.scad
@@ -1,5 +1,5 @@
-use <bezier.scad>;
+use <../lib/bezier.scad>;
$fn = 8;