Skip to content

Commit

Permalink
add gyroid warp example
Browse files Browse the repository at this point in the history
  • Loading branch information
sjkelly committed Jun 30, 2024
1 parent 4f1e797 commit f626724
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/gyroid.jl
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit f626724

Please sign in to comment.