Ejemplo n.º 1
0
 def __init__(self, center, radius, color=Color()):
     self._pp = Plane(Vector(), Vector(), Color())
     self._pn = Plane(Vector(), Vector(), Color())
     Sphere.__init__(self, center, radius, color)
     self.set_reflectivity(0.2)
     self.set_orientation(Vector())
     self.set_cosine(1.0)
Ejemplo n.º 2
0
 def __init__(self, center, radius, color = Color()):
     self._pp = Plane(Vector(), Vector(), Color())
     self._pn = Plane(Vector(),Vector(), Color())
     Sphere.__init__(self, center, radius, color)
     self.set_reflectivity(0.2)
     self.set_orientation( Vector() )
     self.set_cosine(1.0)
Ejemplo n.º 3
0
 def __init__(self, center = Vector(0.0,0.0,0.0),
         radius = 1.0,
         color = Color(),
         orientation = Vector(0.0,1.0,0.0)):
     Sphere.__init__(self, center, radius, color)
     self.set_orientation(orientation)
     self.set_reflectivity(0.9,0.1)