def __init__ (   self,
  name,
  entrance_face_angle = 0.0,
  exit_face_angle = 0.0,
  thickness = 0.05,
  width = 0.025,
  index = None,
  center = (0.,0.,
  angle = 0.0,
  extras 
)

Definition at line 1456 of file general_optics.py.

01456                                                                                                                                                                :
01457                 
01458                 if index is None:
01459                         raise "No index of refraction (scalar or function) given as index=foo creating dielectric trapezoid"
01460                 
01461                 my=dielectric_trapezoid
01462                 self.thickness=thickness
01463                 self.width=width
01464                 
01465                 self.front_face_offset=math.tan(entrance_face_angle*deg)*width*0.5
01466                 self.back_face_offset=math.tan(exit_face_angle*deg)*width*0.5
01467                 
01468                 optics={}
01469                 optics[my.ENTRANCE]=dielectric_interface("entrance face", angle=entrance_face_angle, index=index,
01470                                 center=(0,0,-0.5*thickness))
01471                 optics[my.CENTER]=null_optic("trapezoid center", center=(0,0,0), width=width*0.05, thickness=width*0.05)
01472                 optics[my.EXIT]=dielectric_interface("exit face", angle=exit_face_angle+180.0, index=index,
01473                                 center=(0,0,0.5*thickness) )
01474                 order=[my.ENTRANCE, my.CENTER, my.EXIT]
01475                 
01476                 #specify reference as (0,0,0) to make our coordinates referenced to (0,0,0)
01477                 composite_optic.init(self, name, optics, order, (0,0,0), center, angle, extras=extras )
01478                 
        def polygon(self):


Generated on Wed Nov 21 10:18:32 2007 for analysis by  doxygen 1.5.4