Zaun
zaun.py — Python Source, 1 KB (1592 bytes)
Dateiinhalt
# -*- coding: utf-8 -*- from visual import * import time class zaun(frame): def __init__(self,pos = (0,0,0), groesse = 1): frame.__init__(self) self.funke1 = curve(frame = self, pos =[(0,1.5,0),(0,0,0)], axis = (0,0,0),radius = 0.05,material = materials.wood) self.funke1 = curve(frame = self, pos =[(0.2,1.5,0),(0.2,0,0)], axis = (0,0,0),radius = 0.05,material = materials.wood) self.funke1 = curve(frame = self, pos =[(-0.2,1.5,0),(-0.2,0,0)], axis = (0,0,0),radius = 0.05,material = materials.wood) self.funke1 = curve(frame = self, pos =[(0.4,1.5,0),(0.4,0,0)], axis = (0,0,0),radius = 0.05,material = materials.wood) self.funke1 = curve(frame = self, pos =[(-0.4,1.5,0),(-0.4,0,0)], axis = (0,0,0),radius = 0.05,material = materials.wood) self.funke1 = curve(frame = self, pos =[(-0.4,1.3,0),(0.4,1.3,0)], axis = (0,0,0),radius = 0.05,material = materials.wood) self.funke1 = curve(frame = self, pos =[(-0.4,1,0),(0.4,1,0)], axis = (0,0,0),radius = 0.05,material = materials.wood) self.funke1 = curve(frame = self, pos =[(-0.4,0.7,0),(0.4,0.7,0)], axis = (0,0,0),radius = 0.05,material = materials.wood) self.funke1 = curve(frame = self, pos =[(-0.4,0.4,0),(0.4,0.4,0)], axis = (0,0,0),radius = 0.05,material = materials.wood) zaun = zaun()