/[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 999 by gross, Tue Feb 27 08:12:37 2007 UTC revision 1021 by gross, Tue Mar 13 02:06:30 2007 UTC
# Line 75  class PrimitiveBase(object): Line 75  class PrimitiveBase(object):
75          """          """
76          returns the points used to construct the primitive          returns the points used to construct the primitive
77          """          """
78          out=set()          out=[]
79          for i in self.getPrimitives():          for i in self.getPrimitives():
80             if isinstance(i,Point): out.add(i)             if isinstance(i,Point): out.append(i)
81          return list(out)          return out
82    
83      def getPrimitives(self):      def getPrimitives(self):
84          """          """
85          returns a list of primitives used to construct the primitive with no double entries          returns a list of primitives used to construct the primitive with no double entries
86          """          """
87          out=set()          out=[]
88          return list(set([p for p in self.collectPrimitiveBases()]))          for p in self.collectPrimitiveBases():
89            if not p  in out: out.append(p)
90            return out
91    
92      def copy(self):      def copy(self):
93         """         """

Legend:
Removed from v.999  
changed lines
  Added in v.1021

  ViewVC Help
Powered by ViewVC 1.1.26