/[escript]/trunk/pycad/py_src/shapes.py
ViewVC logotype

Diff of /trunk/pycad/py_src/shapes.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1809 by ksteube, Thu Sep 25 06:43:44 2008 UTC revision 2180 by caltinay, Thu Dec 18 00:30:25 2008 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.1809  
changed lines
  Added in v.2180

  ViewVC Help
Powered by ViewVC 1.1.26