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
参考リンク
https://x.com/mos_burger/status/1913156821558444517
https://discourse.julialang.org/t/makie-doesnt-show-anything-when-run-as-a-script/97664