Download or view 16Pesci.frink in plain text format
/** Program to 3-D Print Enzo Mari's "16 Pesci"
Original image used for extracting:
https://frinklang.org/frinksamp/16PesciOrig.jpg
Cleaned-up image: (you will need this to run this program)
https://frinklang.org/frinksamp/16PesciBW.png
A program to print a box for this puzzle can be found at:
16PesciBox.frink
*/
r = 254/in
// This program only extrudes the puzzle to a depth of 1 mm but
// you should extend the the height in your slicer software
// (I printed it at 12 mm height).
depth = 1 mm
// The image file to extrude can be loaded from:
// https://frinklang.org/frinksamp/16PesciBW.png
img = new image["file:16PesciBW.png"]
v = callJava["frink.graphics.VoxelArray", "extrudeZ", [img, round[depth r]]]
v.projectZ[undef].show["Z"]
filename = "16Pesci.obj"
print["Writing $filename..."]
w = new Writer[filename]
w.println[v.toObjFormat["16Pesci", 1/(r mm)]]
w.close[]
println["done."]
Download or view 16Pesci.frink in plain text format
This is a program written in the programming language Frink.
For more information, view the Frink
Documentation or see More Sample Frink Programs.
Alan Eliasen was born 20143 days, 9 hours, 59 minutes ago.