Example #1
0
 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)
Example #2
0
    def init(self):
        self.surface.informdriver()
        fblib.fbinit()
        for i in self.polys.getthem():
            fblib.fbaddpoly(i[0],i[1],i[2],self.polynr)

        self.mynumber = self.polynr
        self.increment()
        print self.mynumber
Example #3
0
 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)
Example #4
0
    def init(self):
        self.surface.informdriver()
        fblib.fbinit()
        for i in self.polys.getthem():
            fblib.fbaddpoly(i[0], i[1], i[2], self.polynr)

        self.mynumber = self.polynr
        self.increment()
        print self.mynumber
Example #5
0
    def addpoly(self, x, y, z):
        """
            just a test for the moment
            I have to store this in this
            instance...
            and then on draw3dpolys should I
            call the drivers addpoly!!!

            addpoly(<x array>,<y array>, )
               
        """        

        if isinstance(x,np.ndarray) and isinstance(y, np.ndarray) and isinstance(z,np.ndarray):
            x1 = x
            y1 = y
            z1 = z
        else:
            x1 = np.array(x, dtype=np.int32)
            y1 = np.array(y, dtype=np.int32)
            z1 = np.array(z, dtype=np.int32)
        return fblib.fbaddpoly(x1,y1,z1)
        #self.polys.x.append(x1)
        #self.polys.y.append(y1)
        #self.polys.z.append(z1)
        return 0
Example #6
0
    def addpoly(self, x, y, z):
        """
            just a test for the moment
            I have to store this in this
            instance...
            and then on draw3dpolys should I
            call the drivers addpoly!!!

            addpoly(<x array>,<y array>, )
               
        """

        if isinstance(x, np.ndarray) and isinstance(
                y, np.ndarray) and isinstance(z, np.ndarray):
            x1 = x
            y1 = y
            z1 = z
        else:
            x1 = np.array(x, dtype=np.int32)
            y1 = np.array(y, dtype=np.int32)
            z1 = np.array(z, dtype=np.int32)
        return fblib.fbaddpoly(x1, y1, z1)
        #self.polys.x.append(x1)
        #self.polys.y.append(y1)
        #self.polys.z.append(z1)
        return 0