VoxelRotateTest.frink

Download or view VoxelRotateTest.frink in plain text format


/** This program tests the rotation of a VoxelArray. */

v = callJava["frink.graphics.VoxelArray", "construct", [-10, 10, -20, 20, -30, 30, true]]

v = v.rotate[0,0,0, 1,1,0, 10 deg]

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

filename = "VoxelRotateTest.obj"
print["Writing $filename..."]
w = new Writer[filename]
w.println[v.toObjFormat["rotate"]]
w.close[]
println["done."]


Download or view VoxelRotateTest.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 19305 days, 19 hours, 47 minutes ago.