示例#1
0
 def __init__(self,x,y,z,c=-1):
     self.x=x
     self.y=y
     self.z=z
     if c<0:
        c=FF.randICOL()
     if type(c)==type(tuple()):
        r,g,b=c
        c=FF.getICOL(r,g,b)
     self.c=c
示例#2
0
 def __init__(self, x, y, z, c=-1):
     self.x = x
     self.y = y
     self.z = z
     if c < 0:
         c = FF.randICOL()
     if type(c) == type(tuple()):
         r, g, b = c
         c = FF.getICOL(r, g, b)
     self.c = c
示例#3
0
 def __init__(self,P1,P2,P3,Surf=None):
     self.Ps=P1,P2,P3
     if Surf:
        try:
           r,g,b=Surf
           self.Surf=FF.getICOL(r,g,b)
        except:
           self.Surf=Surf
        self.hassurf=True
     else:
        self.Surf=None
        self.hassurf=False
     self.BCts=BariConsts(self.Ps)
     self.Area=self.getArea()
     self.n=self.getn()
     self.lum=0.1
示例#4
0
 def __init__(self, P1, P2, P3, Surf=None):
     self.Ps = P1, P2, P3
     if Surf:
         try:
             r, g, b = Surf
             self.Surf = FF.getICOL(r, g, b)
         except:
             self.Surf = Surf
         self.hassurf = True
     else:
         self.Surf = None
         self.hassurf = False
     self.BCts = BariConsts(self.Ps)
     self.Area = self.getArea()
     self.n = self.getn()
     self.lum = 0.1