Download or view cometCap.frink in plain text format
/** This makes a 3-D model for a Comet cleaner cap LOL */
r = 254/in
innerDiam = 74.0 mm/2
outerDiam = innerDiam + 1.5 mm
h = .5 in
// Outer main cylinder
c1 = callJava["frink.graphics.VoxelArray", "makeCylinder", [0, 0, 0, 0, 0, h r, outerDiam r]]
// Inner main cylinder
cin = callJava["frink.graphics.VoxelArray", "makeCylinder", [0, 0, 10, 0, 0, h r, innerDiam r]]
c1.remove[cin]
c1.projectX[undef].show["X"]
c1.projectY[undef].show["Y"]
c1.projectZ[undef].show["Z"]
filename = "comet2.obj"
print["Writing $filename..."]
w = new Writer[filename]
w.println[c1.toObjFormat["test", 1/(r mm)]]
w.close[]
println["done."]
Download or view cometCap.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, 11 hours, 48 minutes ago.