def draw(self): self.surface.informdriver() fblib.fbsettrafoL(self.anglex, self.angley, self.anglez, self.tx, self.ty, self.tz, np.array(self.order, dtype=np.int32), len(self.order)) fblib.fbdraw3dpolys(self.mynumber)
def draw3dpolys(self, resend, polynr): self.informdriver() #now I can upload the polys to the driver: if resend==1: #fblib.fbfreepolys() fblib.fbinit()#set visit=0 for i in self.polys.getthem(): fblib.fbaddpoly(i[0],i[1],i[2],polynr) fblib.fbdraw3dpolys(polynr)
def draw3dpolys(self, resend, polynr): self.informdriver() #now I can upload the polys to the driver: if resend == 1: #fblib.fbfreepolys() fblib.fbinit() #set visit=0 for i in self.polys.getthem(): fblib.fbaddpoly(i[0], i[1], i[2], polynr) fblib.fbdraw3dpolys(polynr)
def draw(self): self.surface.informdriver() fblib.fbsettrafoL( self.anglex, self.angley, self.anglez, self.tx, self.ty, self.tz, np.array(self.order, dtype=np.int32),len(self.order)) fblib.fbdraw3dpolys(self.mynumber)