From f626724cb3dc502c9641eba863350c8865cda6f7 Mon Sep 17 00:00:00 2001 From: Steve Kelly Date: Sun, 30 Jun 2024 09:16:42 -0400 Subject: [PATCH] add gyroid warp example --- examples/gyroid.jl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/gyroid.jl diff --git a/examples/gyroid.jl b/examples/gyroid.jl new file mode 100644 index 0000000..f81534a --- /dev/null +++ b/examples/gyroid.jl @@ -0,0 +1,16 @@ +using Revise +using Descartes: Gyroid, Cuboid, PolarWarp, Cylinder +using GeometryBasics: Mesh, HyperRectangle + +holes = [[0,0,0], [15, 0, 0], [7.5, 7.5, 0]] + + +p = intersect(PolarWarp(Gyroid(0.5), 200), Cuboid([50,50,50])) + +h = HyperRectangle(p) + +m = Mesh(p) + +using WGLMakie +WGLMakie.activate!(resize_to=:body) +mesh(m)