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)