Last active
April 19, 2025 07:33
-
-
Save terasakisatoshi/8f52664a559f65478d9d65741dd8afea to your computer and use it in GitHub Desktop.
モスバーガーのSTLふぁいる可視化
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MeshIO | |
using FileIO | |
using GLMakie | |
function main() | |
buns01 = load("buns01.stl") | |
patty = load("patty.stl") | |
lettuce = load("lettuce.stl") | |
tomato = load("tomato.stl") | |
buns02 = load("buns02.stl") | |
fig = Figure() | |
ax = Axis3(fig[1,1]) | |
mesh!(ax, buns01) | |
mesh!(ax, patty) | |
mesh!(ax, lettuce) | |
mesh!(ax, tomato) | |
mesh!(ax, buns02) | |
wait(display(fig)) | |
end | |
if abspath(PROGRAM_FILE) == @__FILE__ | |
main() | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Result
How to run
Install
GLMakie
,FileIO
, andMeshIO