I was trying to figure out how to trace an image directly by grasshopper.
It is really time consuming if I manually trace a complicated image using the bitmap method.
If possible can anyone post the grasshopper file for tracing image.It doesn't need to be very accurate.
There had been a discussion on it before but it did not give me the output as I saw.There might be some error in theĀ file I created.
Could anyone post the working grasshopper file for it?
Nik Willmore
A possibly superior way to puff these up into 3D is here:
http://www.grasshopper3d.com/forum/topics/puffing-of-flat-surfaces-...
Feb 25, 2016
Nik Willmore
The potrace Python script now works with spaces in the file path to the .bmp image:
The line:
p = subprocess.Popen("%s %s -o %s -b dxf -u 10 " % (potrace_File_Path,Image_File_Path,output_dxf_path), stdout=subprocess.PIPE, creationflags=0x08000000) #creationflags suppresses blank CMD.exe window.
...became:
p = subprocess.Popen("cmd /C \"\"%s\" \"%s\" -o \"%s\" -b dxf -u 10 \"" % (potrace_File_Path,Image_File_Path,output_dxf_path), stdout=subprocess.PIPE, creationflags=0x08000000) #creationflags suppresses blank CMD.exe window.
...based on this Google hit:
http://stackoverflow.com/questions/6376113/spaces-problem-in-cmd
Feb 27, 2016
Nik Willmore
Potrace has been bettered by a new neural network program, no source code yet though:
http://hi.cs.waseda.ac.jp/~esimo/en/research/sketch/
Apr 29, 2016