polyhedronEx1.scad 340 B

123456
  1. polyhedron(
  2. points=[ [10,10,0],[10,-10,0],[-10,-10,0],[-10,10,0], // the four points at base
  3. [0,0,10] ], // the apex point
  4. triangles=[ [0,1,4],[1,2,4],[2,3,4],[3,0,4], // each triangle side
  5. [1,0,3],[2,1,3] ] // two triangles for square base
  6. );