/[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 931 by gross, Fri Nov 17 01:59:49 2006 UTC revision 932 by gross, Fri Jan 19 09:27:15 2007 UTC
# Line 49  def Brick(start,end): Line 49  def Brick(start,end):
49      l22=Line(p101,p111)      l22=Line(p101,p111)
50      l32=Line(p111,p011)      l32=Line(p111,p011)
51      l42=Line(p011,p001)      l42=Line(p011,p001)
52      bottom=Surface(CurveLoop(-l10,-l40,-l30,-l20))      bottom=PlaneSurface(CurveLoop(-l10,-l40,-l30,-l20))
53      top=Surface(CurveLoop(l12,l22,l32,l42))      top=PlaneSurface(CurveLoop(l12,l22,l32,l42))
54      front=Surface(CurveLoop(-l11,l10,l21,-l12))      front=PlaneSurface(CurveLoop(-l11,l10,l21,-l12))
55      back=Surface(CurveLoop(l30,l41,-l32,-l31))      back=PlaneSurface(CurveLoop(l30,l41,-l32,-l31))
56      left=Surface(CurveLoop(l11,-l42,-l41,l40))      left=PlaneSurface(CurveLoop(l11,-l42,-l41,l40))
57      right=Surface(CurveLoop(-l21,l20,l31,-l22))      right=PlaneSurface(CurveLoop(-l21,l20,l31,-l22))
58      return SurfaceLoop(bottom,top,front,back,left,right)      return SurfaceLoop(bottom,top,front,back,left,right)

Legend:
Removed from v.931  
changed lines
  Added in v.932

  ViewVC Help
Powered by ViewVC 1.1.26