roundedCubeTest.frink

View or download roundedCubeTest.frink in plain text format


/** This tests Frink's rendering of cubes with rounded corners. */

v = callJava["frink.graphics.VoxelArray", "makeRoundedCube", [20, 150, -20, 140, -30, 110, 50]]

v.projectX[undef].show["X"]
v.projectY[undef].show["Y"]
v.projectZ[undef].show["Z"]   

outfile = "roundedCubeTest.obj"
w = new Writer[outfile]
print["Writing $outfile..."]
w.println[v.toObjFormat["test", 1]]
w.close[]
println["done."]


View or download roundedCubeTest.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 19023 days, 7 hours, 45 minutes ago.