type_ & Manoloide

main
Alexandre B A Villares 2018-01-09 21:25:41 -02:00
rodzic ee052ac0fd
commit 70fe358649
2 zmienionych plików z 4 dodań i 4 usunięć

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -1,5 +1,5 @@
def PlatonicFactory(type=0, size_=None):
def PlatonicFactory(type_=0, size_=None):
classes = {0: Tetrahedron,
1: Hexahedron,
2: Octahedron,
@ -10,9 +10,9 @@ def PlatonicFactory(type=0, size_=None):
if size_:
solid_size = size_
else:
solid_size = default_sizes[type]
solid_size = default_sizes[type_]
return classes[type](solid_size)
return classes[type_](solid_size)
class Tetrahedron():
@ -271,4 +271,4 @@ class Dodecahedron():
vertex(self.vert[self.faces[i][j]].x,
self.vert[self.faces[i][j]].y,
self.vert[self.faces[i][j]].z)
endShape()
endShape()