VoxelArrayTest.frink

View or download VoxelArrayTest.frink in plain text format


// This is a simple test to make a VoxelArray and output it as a Wavefront
// object file for use in a 3-D printer.
v = newJava["frink.graphics.VoxelArray", [9,9,9,true]]

v.setRange[0,2,0,8,0,2,false]

triangles = callJava["frink.graphics.MarchingCubes", "triangulateHull", [-1,10,11,-1,10,11,-1,10,11,v,0.5]]
println[callJava["frink.graphics.WavefrontObj", "toObjFormat", [triangles, "test"]]]


View or download VoxelArrayTest.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 18864 days, 10 hours, 9 minutes ago.