Skip to content

Commit

Permalink
scope
Browse files Browse the repository at this point in the history
  • Loading branch information
lazarusA committed Aug 6, 2024
1 parent f6dfcfd commit a9119ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/3d/meshes/isosurfaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ using GLMakie
using Meshing, GeometryBasics
GLMakie.activate!()

isoval = 100
algo = MarchingCubes(; iso=isoval)
function show_isosurface(f,h,ξ; color=(:dodgerblue,0.5), isoval=100)
algo = MarchingCubes(; iso=isoval)

function show_isosurface(f,h,ξ; color=(:dodgerblue,0.5))
s = [h(x,y,z) for x in ξ, y in ξ, z in ξ] .+ isoval
# generate the mesh using marching cubes
vts, fcs = isosurface(s, algo)
Expand Down

0 comments on commit a9119ef

Please sign in to comment.