/[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 1123 by gross, Thu May 3 04:13:52 2007 UTC revision 1270 by gross, Thu Aug 23 03:13:11 2007 UTC
# Line 924  class PlaneSurface(Primitive, Manifold2D Line 924  class PlaneSurface(Primitive, Manifold2D
924         """         """
925         if not isinstance(loop.getUnderlyingPrimitive(),CurveLoop):         if not isinstance(loop.getUnderlyingPrimitive(),CurveLoop):
926             raise TypeError("argument loop needs to be a CurveLoop object.")             raise TypeError("argument loop needs to be a CurveLoop object.")
927         for l in loop.getCurves():         # for l in loop.getCurves():
928             if not isinstance(l.getUnderlyingPrimitive(),Line):         #     if not isinstance(l.getUnderlyingPrimitive(),Line):
929               raise TypeError("loop may be formed by Lines only.")         #       raise TypeError("loop may be formed by Lines only.")
930         for i in range(len(holes)):         for i in range(len(holes)):
931              if not isinstance(holes[i].getUnderlyingPrimitive(), CurveLoop):              if not isinstance(holes[i].getUnderlyingPrimitive(), CurveLoop):
932                   raise TypeError("%i-th hole needs to be a CurveLoop object.")                   raise TypeError("%i-th hole needs to be a CurveLoop object.")
933              for l in holes[i].getCurves():         #      for l in holes[i].getCurves():
934                 if not isinstance(l.getUnderlyingPrimitive(),Line):         #         if not isinstance(l.getUnderlyingPrimitive(),Line):
935                    raise TypeError("holes may be formed by Lines only.")         #            raise TypeError("holes may be formed by Lines only.")
936         #TODO: check if lines and holes are in a plane         #TODO: check if lines and holes are in a plane
937         #TODO: are holes really holes?         #TODO: are holes really holes?
938         Primitive.__init__(self)         Primitive.__init__(self)

Legend:
Removed from v.1123  
changed lines
  Added in v.1270

  ViewVC Help
Powered by ViewVC 1.1.26