Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Draw-a-sphere/Frink/draw-a-sphere.frink
Normal file
13
Task/Draw-a-sphere/Frink/draw-a-sphere.frink
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
res = 254 / in
|
||||
v = callJava["frink.graphics.VoxelArray", "makeSphere", [1/2 inch res]]
|
||||
|
||||
v.projectX[undef].show["X"]
|
||||
v.projectY[undef].show["Y"]
|
||||
v.projectZ[undef].show["Z"]
|
||||
|
||||
filename = "sphere.stl"
|
||||
print["Writing $filename..."]
|
||||
w = new Writer[filename]
|
||||
w.println[v.toSTLFormat["sphere", 1/(res mm)]]
|
||||
w.close[]
|
||||
println["done."]
|
||||
Loading…
Add table
Add a link
Reference in a new issue