From 85cc1c54d8f4e3f53ba0e7de7b00b5d0027e9d30 Mon Sep 17 00:00:00 2001 From: Elmom Date: Tue, 6 Sep 2011 12:14:44 +0300 Subject: [PATCH] Added new file for not-so-regular shapes --- unregular_shapes.scad | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 unregular_shapes.scad diff --git a/unregular_shapes.scad b/unregular_shapes.scad new file mode 100644 index 0000000..f1d0a64 --- /dev/null +++ b/unregular_shapes.scad @@ -0,0 +1,10 @@ +// Copyright 2011 Elmo Mäntynen +// LGPL 2.1 + +// Give a list of 4+4 points (check order) to form an 8 point polyhedron +module connect_squares(points){ + polyhedron(points=points, + triangles=[[0,1,2], [3,0,2], [7,6,5], [7,5,4], // Given polygons + [0,4,1], [4,5,1], [1,5,2], [2,5,6], // Connecting + [2,6,3], [3,6,7], [3,4,0], [3,7,4]]);// sides +}