/[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 2699 by gross, Mon Aug 24 01:57:34 2009 UTC revision 2700 by gross, Wed Sep 30 08:28:55 2009 UTC
# Line 1742  class PropertySet(Primitive, PrimitiveBa Line 1742  class PropertySet(Primitive, PrimitiveBa
1742          Adds items. An item my be any `Primitive` but no `PropertySet`.          Adds items. An item my be any `Primitive` but no `PropertySet`.
1743          """          """
1744          for i in items:          for i in items:
1745                if not (isinstance(i, Manifold1D) or isinstance(i, Manifold2D) or isinstance(i, Manifold3D) ):
1746                      raise TypeError, "Illegal argument type %s added to PropertySet."%(i.__class__)
1747            for i in items:
1748              if not i in self.__items:              if not i in self.__items:
1749                 if len(self.__items)>0:                 if len(self.__items)>0:
1750                    m=self.getManifoldClass()                    m=self.getManifoldClass()

Legend:
Removed from v.2699  
changed lines
  Added in v.2700

  ViewVC Help
Powered by ViewVC 1.1.26