Пример #1
0
 def __init__(self, radius=1.):
     """
     Arguments:  
     radius - Set as the sphere's radius.
     
     Private attributes:
     _rad - radius of the sphere, a float. 
     """
     QuadricGM.__init__(self)
     self.set_radius(radius)
Пример #2
0
 def __init__(self, radius=1.):
     """
     Arguments:  
     radius - Set as the sphere's radius.
     
     Private attributes:
     _rad - radius of the sphere, a float. 
     """
     QuadricGM.__init__(self)
     self.set_radius(radius)
Пример #3
0
 def __init__(self, a=1., b=1.):
     """               
     Arguments: 
     a, b - describe the paraboloid as z = (x/a)**2 + (y/b)**2
         (sorry, legacy)
     
     Private attributes:                                                                  
     a, b - describe the paraboloid as z = a*x**2 + b*y**2
     """
     QuadricGM.__init__(self)
     self.a = 1. / (a**2)
     self.b = 1. / (b**2)
Пример #4
0
 def __init__(self, a=1.0, b=1.0):
     """               
     Arguments: 
     a, b - describe the paraboloid as z = (x/a)**2 + (y/b)**2
         (sorry, legacy)
     
     Private attributes:                                                                  
     a, b - describe the paraboloid as z = a*x**2 + b*y**2
     """
     QuadricGM.__init__(self)
     self.a = 1.0 / (a ** 2)
     self.b = 1.0 / (b ** 2)
Пример #5
0
	def __init__(self, a=1., b=1., c=1., d=0., e=0., f=0.):
		"""			   
		Arguments: 
		a, b, c, d, e, f: z = ax**2 + by**2 + cxy + dx + ey + f
		
		""" 
		QuadricGM.__init__(self)
		self.a = a
		self.b = b
		self.c = c
		self.d = d
		self.e = e
		self.f = f
Пример #6
0
    def __init__(self, a=1., b=1., c=1., d=0., e=0., f=0.):
        """			   
		Arguments: 
		a, b, c, d, e, f: z = ax**2 + by**2 + cxy + dx + ey + f
		
		"""
        QuadricGM.__init__(self)
        self.a = a
        self.b = b
        self.c = c
        self.d = d
        self.e = e
        self.f = f
Пример #7
0
 def __init__(self, c = 1., a = 0.):
     """          
     Arguments: 
     c - cone gradient (r/h)
     a - position of cone apex on z axis
     
     Cone equation is x**2 + y**2 = (c*(z-a))**2
     
     Private attributes:                                                      
     c - cone gradient (r/h)
     a - position of cone apex on z axis
     """ 
     QuadricGM.__init__(self)
     self.c = float(c)
     self.a = float(a)
Пример #8
0
 def __init__(self, c, a=0):
     """          
     Arguments: 
     c - cone gradient (r/h)
     a - position of cone apex on z axis
     
     Cone equation is x**2 + y**2 = (c*(z-a))**2
     
     Private attributes:                                                      
     c - cone gradient (r/h)
     a - position of cone apex on z axis
     """ 
     QuadricGM.__init__(self)
     self.c = float(c)
     self.a = float(a)