Reimplemented from general_optic. Definition at line 1479 of file general_optics.py. 01479 : 01480 if hasattr(self,"height"): 01481 height=self.height 01482 else: 01483 height=self.width 01484 01485 top=height/2.0 01486 bottom=-height/2.0 01487 01488 front=-self.thickness/2.0 01489 back=-front 01490 01491 fo=self.front_face_offset 01492 bo=self.back_face_offset 01493 01494 left=0.5*self.width 01495 right=-left 01496 01497 baserect=Numeric.array(( 01498 (left, right, right, left, left, left, right, right, left, left, right, right), 01499 (top, top, bottom, bottom, top, top, top, bottom, bottom, top, bottom, bottom), 01500 (front-fo, front+fo, front+fo, front-fo, front-fo, back-bo, back+bo, back+bo, back-bo, back-bo, back+bo, front+fo))) 01501 return Numeric.transpose(Numeric.dot(self.matrix_to_global, baserect))+self.center 01502 def polygon_list(self):
|