

def create(self):
    for i in range(5):
        if (i < 4):
            self.makeTriangle(self.topPent[i], self.topPoint, self.topPent[(i + 1)])
            self.makeTriangle(self.bottomPent[i], self.bottomPoint, self.bottomPent[(i + 1)])
        else:
            self.makeTriangle(self.topPent[i], self.topPoint, self.topPent[0])
            self.makeTriangle(self.bottomPent[i], self.bottomPoint, self.bottomPent[0])
    for i in range(5):
        if (i < 3):
            self.makeTriangle(self.topPent[i], self.bottomPent[(i + 1)], self.bottomPent[(i + 2)])
            self.makeTriangle(self.bottomPent[(i + 2)], self.topPent[i], self.topPent[(i + 1)])
        elif (i == 3):
            self.makeTriangle(self.topPent[i], self.bottomPent[(i + 1)], self.bottomPent[0])
            self.makeTriangle(self.bottomPent[0], self.topPent[i], self.topPent[(i + 1)])
        elif (i == 4):
            self.makeTriangle(self.topPent[self], self.bottomPent[0], self.bottomPent[1])
            self.makeTriangle(self.bottomPent[1], self.topPent[i], self.topPent[0])

dataset/ETHPy150Open jdf/processing.py/mode/examples/Topics/Geometry/Icosahedra/icosahedron.py Icosahedron.create/VarMisuse@311/392 `i`->`self`