ellipsoidTest.frink

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, .2, 2]]

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 19355 days, 11 hours, 43 minutes ago.