34 |
34 |
35 def run_openscad(output): |
35 def run_openscad(output): |
36 """ |
36 """ |
37 Run openSCAD process, then convert the ascii stl to binary by using vtk |
37 Run openSCAD process, then convert the ascii stl to binary by using vtk |
38 """ |
38 """ |
|
39 import vtk |
39 if os.path.isfile(output): |
40 if os.path.isfile(output): |
40 print "skipping existing file %s" % output |
41 print "skipping existing file %s" % output |
41 return |
42 return |
42 print "rendering %s" % output |
43 print "rendering %s" % output |
43 subprocess.check_call([ |
44 subprocess.check_call([ |