roundedCubeTest.frink

Download or view 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."]


Download or view 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 20145 days, 6 hours, 55 minutes ago.