How to resolve the algorithm Death Star step by step in the Frink programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Death Star step by step in the Frink programming language
Table of Contents
Problem Statement
Display a region that consists of a large sphere with part of a smaller sphere removed from it as a result of geometric subtraction. (This will basically produce a shape like a "death star".)
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Death Star step by step in the Frink programming language
Source code in the frink programming language
res = 254 / in
v = callJava["frink.graphics.VoxelArray", "makeSphere", [1/2 inch res]]
dish = callJava["frink.graphics.VoxelArray", "makeSphere", [1/2 inch res]]
dish.translate[round[.45 inch res], round[.45 inch res], round[.45 inch res]]
v.remove[dish]
v.projectX[undef].show["X"]
v.projectY[undef].show["Y"]
v.projectZ[undef].show["Z"]
filename = "DeathStar.stl"
print["Writing $filename..."]
w = new Writer[filename]
w.println[v.toSTLFormat["DeathStar", 1/(res mm)]]
w.close[]
println["done."]
You may also check:How to resolve the algorithm Hunt the Wumpus step by step in the Julia programming language
You may also check:How to resolve the algorithm Boolean values step by step in the Frink programming language
You may also check:How to resolve the algorithm Optional parameters step by step in the Ruby programming language
You may also check:How to resolve the algorithm Read a configuration file step by step in the UNIX Shell programming language
You may also check:How to resolve the algorithm Read a configuration file step by step in the JavaScript programming language