Commit 4609650a authored by Petter Reinholdtsen's avatar Petter Reinholdtsen

New upstream version 0.13.2

parent 526657db
# #
# Code under the MIT license by Alexander Pruss # Code under the MIT license by Alexander Pruss
# #
from mc import * from mc import *
import drawing import drawing
...@@ -28,7 +28,7 @@ def drawTetrahedron(height, apex, block): ...@@ -28,7 +28,7 @@ def drawTetrahedron(height, apex, block):
for point in bottom: for point in bottom:
a = float(i)/height a = float(i)/height
triangle.append(((1-a)*apex[0]+a*point[0],apex[1]-i,(1-a)*apex[2]+a*point[2])) triangle.append(((1-a)*apex[0]+a*point[0],apex[1]-i,(1-a)*apex[2]+a*point[2]))
d.face(triangle,block) d.face(triangle,block)
return triangle return triangle
def average(a,b): def average(a,b):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment