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

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

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

revision 2713 by gross, Wed Sep 30 08:28:55 2009 UTC revision 2714 by gross, Wed Oct 7 23:29:19 2009 UTC
# Line 1174  class Manifold2D(PrimitiveBase): Line 1174  class Manifold2D(PrimitiveBase):
1174          if top==None or bottom == None:          if top==None or bottom == None:
1175               raise ValueError,"transfinite meshing cannot be applied to boundary is not closed. Most likely the orientation of some boundray segments is wrong."               raise ValueError,"transfinite meshing cannot be applied to boundary is not closed. Most likely the orientation of some boundray segments is wrong."
1176          if opposite == None:  # three sides only          if opposite == None:  # three sides only
1177               if not top.getElementDistribution() == bottom.getElementDistribution(): start, top, bottom= bottom, start, top               if not top.getElementDistribution()[0] == bottom.getElementDistribution()[0]: start, top, bottom= bottom, start, top
1178          if not top.getElementDistribution() == bottom.getElementDistribution():          if not top.getElementDistribution() == bottom.getElementDistribution():
1179               raise ValueError,"transfinite meshing requires oposite faces to be have the same element distribution."               raise ValueError,"transfinite meshing requires oposite faces to be have the same element distribution."
1180          if not opposite == None:          if not opposite == None:
1181              if not start.getElementDistribution() == opposite.getElementDistribution():              if not start.getElementDistribution()[0] == opposite.getElementDistribution()[0]:
1182                  raise ValueError,"transfinite meshing requires oposite faces to be have the same element distribution."                  raise ValueError,"transfinite meshing requires oposite faces to be have the same element distribution."
1183          if opposite == None:          if opposite == None:
1184              if bottom.getEndPoint ==  top.getStartPoint():              if bottom.getEndPoint ==  top.getStartPoint():

Legend:
Removed from v.2713  
changed lines
  Added in v.2714

  ViewVC Help
Powered by ViewVC 1.1.26