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

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

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

revision 1020 by gross, Tue Feb 27 08:12:37 2007 UTC revision 1021 by gross, Tue Mar 13 02:06:30 2007 UTC
# Line 271  class Design(object): Line 271  class Design(object):
271          each primitve appears once. The primitives are ordered by their          each primitve appears once. The primitives are ordered by their
272          order of generation          order of generation
273          """          """
274          prims=set()          prims=[]
275          for i in self.getItems(): prims|=set(i.getPrimitives())          for i in self.getItems():
276          prims=list(prims)              for p in i.getPrimitives():
277                    if not p in prims: prims.append(p)
278          prims.sort()          prims.sort()
279          return prims          return prims
280    

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

  ViewVC Help
Powered by ViewVC 1.1.26