Download or view ellipsoidTest.frink in plain text format
/** This tests Frink's rendering of ellipsoid and superellipsoid family for 3-D
printing.
*/
r = 254/in
v = callJava["frink.graphics.VoxelArray", "makeSuperellipsoid", [.5 in r, .5 in r, .5 in r, .3, 1]]
v.projectX[undef].show["X"]
v.projectY[undef].show["Y"]
v.projectZ[undef].show["Z"]
outfile = "ellipsoidTest.obj"
w = new Writer[outfile]
print["Writing $outfile..."]
w.println[v.toObjFormat["ellipsoid", 1/(r mm)]]
w.close[]
println["done."]
Download or view ellipsoidTest.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 20145 days, 7 hours, 42 minutes ago.