/[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 930 by gross, Wed Jan 17 07:41:13 2007 UTC revision 931 by gross, Fri Jan 19 03:06:33 2007 UTC
# Line 30  from datetime import date Line 30  from datetime import date
30  import tempfile  import tempfile
31  import os  import os
32    
33    class PrimitiveBaseStack(object):
34          def __init__(self,*items):
35            self.__prims=set()
36            for i in items:
37                self.__prims|=i.getPrimitives()
38            self.__prims=list(self.__prims)
39            self.__prims.sort()
40    
41          def getGmshCommands(self,scaling_factor=1.):
42            out=""
43            for i in self.__prims:
44               out+=i.getGmshCommand(scaling_factor)+"\n"
45            return out
46    
47  class Design(object):  class Design(object):
48      """      """
49      template for elementary geometrical object      template for elementary geometrical object

Legend:
Removed from v.930  
changed lines
  Added in v.931

  ViewVC Help
Powered by ViewVC 1.1.26