
PGM to OpenSCAD surface (normed zero-one)
thingiverse
This is a refined version of the original script, meaning it produces a ".dat" file with grayscale values ranging from 0-255 converted to 0.00-1.00 precision. This approach works particularly well when uploading openSCAD code to Thingiverse's Customizer feature. Note that I'm not a Python expert; I arrived at the correct depthval value through trial and error. If you have Python-related questions, @sawdusty is the authority on this topic. The original script creates a ".dat" file with grayscale values ranging from 0-255 converted to 0.00-7.65, which is acceptable but incompatible with Thingiverse's requirements. Please refer to Thingiverse's Customizer documentation for image surfaces at: http://customizer.makerbot.com/image_surface Additionally, keep in mind that openSCAD's surface command adds a 1mm offset below the zero point when creating surfaces.
With this file you will be able to print PGM to OpenSCAD surface (normed zero-one) with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on PGM to OpenSCAD surface (normed zero-one).