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

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

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

revision 3892 by jfenwick, Tue Apr 10 08:57:23 2012 UTC revision 3893 by jfenwick, Wed Apr 11 01:40:10 2012 UTC
# Line 214  class Design(design.Design): Line 214  class Design(design.Design):
214             p=prim.getUnderlyingPrimitive()             p=prim.getUnderlyingPrimitive()
215             if isinstance(p, Point):             if isinstance(p, Point):
216                 c=p.getCoordinates()                 c=p.getCoordinates()
217                 out+="Point(%s) = {%s , %s, %s , %s };\n"%(p.getID(),c[0],c[1],c[2], p.getLocalScale()*h)                 out+="Point(%s) = {%f , %f, %f , %f };\n"%(p.getID(),c[0],c[1],c[2], p.getLocalScale()*h)
218    
219             elif isinstance(p, Spline):             elif isinstance(p, Spline):
220                 out+="Spline(%s) = {%s};\n"%(p.getID(),self.__mkArgs(p.getControlPoints()))+self.__mkTransfiniteLine(p)                 out+="Spline(%s) = {%s};\n"%(p.getID(),self.__mkArgs(p.getControlPoints()))+self.__mkTransfiniteLine(p)
# Line 314  class Design(design.Design): Line 314  class Design(design.Design):
314               else:               else:
315                  out+="Transfinite Surface{%s} = {%s} %s;\n"%(p.getID(),out2,s[1])                  out+="Transfinite Surface{%s} = {%s} %s;\n"%(p.getID(),out2,s[1])
316           if not o == None:           if not o == None:
317             out+="Recombine Surface {%s} = %s;\n"%(p.getID(),o/DEG)             out+="Recombine Surface {%s} = %f;\n"%(p.getID(),o/DEG)
318           return out           return out
319      def __mkTransfiniteVolume(self,p):      def __mkTransfiniteVolume(self,p):
320           out=""           out=""

Legend:
Removed from v.3892  
changed lines
  Added in v.3893

  ViewVC Help
Powered by ViewVC 1.1.26