Skip to content

Instantly share code, notes, and snippets.

@terasakisatoshi
Last active April 19, 2025 07:33
Show Gist options
  • Save terasakisatoshi/8f52664a559f65478d9d65741dd8afea to your computer and use it in GitHub Desktop.
Save terasakisatoshi/8f52664a559f65478d9d65741dd8afea to your computer and use it in GitHub Desktop.
モスバーガーのSTLふぁいる可視化
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
@terasakisatoshi
Copy link
Author

terasakisatoshi commented Apr 19, 2025

Result

image

How to run

Install GLMakie, FileIO, and MeshIO

$ julia main.jl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment