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

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

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

revision 3733 by caltinay, Tue Feb 8 00:11:15 2011 UTC revision 3734 by caltinay, Fri Dec 9 04:48:08 2011 UTC
# Line 54  class Design(design.Design): Line 54  class Design(design.Design):
54         if dim != 2:         if dim != 2:
55             raise ValueError("only dimension 2 is supported by Triangle.")             raise ValueError("only dimension 2 is supported by Triangle.")
56         design.Design.__init__(self,dim=dim,keep_files=keep_files)         design.Design.__init__(self,dim=dim,keep_files=keep_files)
57           self.__scriptname=""
58         self.setScriptFileName()         self.setScriptFileName()
59         self.setMeshFileName()         self.setMeshFileName()
60         self.setOptions()         self.setOptions()
# Line 63  class Design(design.Design): Line 64  class Design(design.Design):
64         Sets the filename for the Triangle input script. If no name is given         Sets the filename for the Triangle input script. If no name is given
65         a name with extension I{poly} is generated.         a name with extension I{poly} is generated.
66         """         """
67           if self.__scriptname:
68               os.unlink(self.__scriptname)
69         if name == None:         if name == None:
70             self.__scriptname=tempfile.mkstemp(suffix=".poly")[1]             self.__scriptname=tempfile.mkstemp(suffix=".poly")[1]
71         else:         else:
# Line 80  class Design(design.Design): Line 83  class Design(design.Design):
83         """         """
84         Sets the name of the Triangle mesh file.         Sets the name of the Triangle mesh file.
85         """         """
86           if self.__mshname:
87               os.unlink(self.__mshname)
88         if name == None:         if name == None:
89             self.__mshname=tempfile.mkstemp(suffix="")[1]             self.__mshname=tempfile.mkstemp(suffix="")[1]
90         else:         else:

Legend:
Removed from v.3733  
changed lines
  Added in v.3734

  ViewVC Help
Powered by ViewVC 1.1.26