Ejemplo n.º 1
0
 def __init__(self, diameter, height, offset):
     SceneObject.__init__(self, Point3D(), GL_SMOOTH, True)
     self.diameter = diameter
     self.height = height
     self.offset = offset
     self.cylinder = gluNewQuadric()
     gluQuadricTexture(self.cylinder, GL_TRUE)
     gluQuadricNormals(self.cylinder, GLU_SMOOTH)
Ejemplo n.º 2
0
 def __init__(self,diameter,height,offset):
   SceneObject.__init__(self,Point3D(),GL_SMOOTH,True)
   self.diameter = diameter
   self.height = height
   self.offset = offset
   self.cylinder = gluNewQuadric()
   gluQuadricTexture(self.cylinder, GL_TRUE)
   gluQuadricNormals(self.cylinder, GLU_SMOOTH)
Ejemplo n.º 3
0
 def __init__(self,diameter,center_pole,center_equator,strip_top,strip_bottom):
   SceneObject.__init__(self,Point3D(),GL_SMOOTH,True)
   self.diameter = diameter
   self.center_pole = center_pole
   self.center_equator = center_equator
   self.strip_top = strip_top
   self.strip_bottom = strip_bottom
   self.sphere = gluNewQuadric()
   gluQuadricTexture(self.sphere, GL_TRUE)
   gluQuadricNormals(self.sphere, GLU_SMOOTH)
Ejemplo n.º 4
0
 def __init__(self, diameter, center_pole, center_equator, strip_top,
              strip_bottom):
     SceneObject.__init__(self, Point3D(), GL_SMOOTH, True)
     self.diameter = diameter
     self.center_pole = center_pole
     self.center_equator = center_equator
     self.strip_top = strip_top
     self.strip_bottom = strip_bottom
     self.sphere = gluNewQuadric()
     gluQuadricTexture(self.sphere, GL_TRUE)
     gluQuadricNormals(self.sphere, GLU_SMOOTH)
Ejemplo n.º 5
0
 def __init__(self, material: Material, vertex1: Point3D, vertex2: Point3D,
              vertex3: Point3D):
     SceneObject.__init__(self, material)
     self.vertex1 = vertex1
     self.vertex2 = vertex2
     self.vertex3 = vertex3
     self.center = Point3D((self.vertex1.vector.x + self.vertex2.vector.x +
                            self.vertex3.vector.x) / 3,
                           (self.vertex1.vector.y + self.vertex2.vector.y +
                            self.vertex3.vector.y) / 3,
                           (self.vertex1.vector.z + self.vertex2.vector.z +
                            self.vertex3.vector.z) / 3)
Ejemplo n.º 6
0
 def __init__(self, a, b, c, d, height, yawAngle, pitchAngle, fov=68.2, aspectRatio=0.75):  # Projectors
     SceneObject.__init__(self, Point3D(), GL_FLAT, False)
     self.a = a
     self.b = b
     self.c = c
     self.d = c
     self.yawAngle = yawAngle
     self.pitchAngle = pitchAngle
     self.aspectRatio = aspectRatio
     self.fov = fov
     self.height = height
     self.draw = True
Ejemplo n.º 7
0
 def __init__(
         self,
         a,
         b,
         c,
         d,  # Projectors
         height,
         yawAngle,
         pitchAngle,
         fov=68.2,
         aspectRatio=0.75):
     SceneObject.__init__(self, Point3D(), GL_FLAT, False)
     self.a = a
     self.b = b
     self.c = c
     self.d = c
     self.yawAngle = yawAngle
     self.pitchAngle = pitchAngle
     self.aspectRatio = aspectRatio
     self.fov = fov
     self.height = height
     self.draw = True
Ejemplo n.º 8
0
 def __init__(self, material:Material, center:Point3D, radius:float):
     SceneObject.__init__(self, material)
     self.center = center
     self.radius = radius