Added new file for not-so-regular shapes

This commit is contained in:
Elmom 2011-09-06 12:14:44 +03:00
parent 754ca14785
commit 85cc1c54d8
1 changed files with 10 additions and 0 deletions

10
unregular_shapes.scad Normal file
View File

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