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 +}