revision 2213 by jfenwick, Wed Jan 14 00:23:39 2009 UTC revision 2214 by jfenwick, Wed Jan 14 03:39:41 2009 UTC
# Line 34  __author__="Lutz Gross, l.gross@uq.edu.a Line 34  __author__="Lutz Gross, l.gross@uq.edu.a
34
35  from primitives import *  from primitives import *
36
37  def Brick(start,end):  def Brick(start,end):
38        """
39        Creates a brick with given start and end point.
40      """      """
create brick with start and end point.
"""
41      dx=end.getCoordinates()-start.getCoordinates()      dx=end.getCoordinates()-start.getCoordinates()
42      p000=start+[   0.,0.,0.]      p000=start+[   0.,0.,0.]
43      p100=start+[dx[0],0.,0.]      p100=start+[dx[0],0.,0.]
# Line 66  def Brick(start,end): Line 66  def Brick(start,end):
66      left=PlaneSurface(CurveLoop(l11,-l42,-l41,l40))      left=PlaneSurface(CurveLoop(l11,-l42,-l41,l40))
67      right=PlaneSurface(CurveLoop(-l21,l20,l31,-l22))      right=PlaneSurface(CurveLoop(-l21,l20,l31,-l22))
68      return SurfaceLoop(bottom,top,front,back,left,right)      return SurfaceLoop(bottom,top,front,back,left,right)
69

Legend:
 Removed from v.2213 changed lines Added in v.2214