Skip to content

Commit

Permalink
parsing comments? issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lazarusA committed Aug 6, 2024
1 parent a9119ef commit d765a43
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions examples/3d/meshes/isosurfaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ function show_isosurface(f,h,ξ; color=(:dodgerblue,0.5), isoval=100)
algo = MarchingCubes(; iso=isoval)

s = [h(x,y,z) for x in ξ, y in ξ, z in ξ] .+ isoval
# generate the mesh using marching cubes

## generate the mesh using marching cubes

vts, fcs = isosurface(s, algo)
# mc = GeometryBasics.Mesh(s, algo)
return mesh(f, vts, map(v -> GeometryBasics.TriangleFace(v...), fcs); color,

## mc = GeometryBasics.Mesh(s, algo)

return mesh(f, vts, map(v -> GeometryBasics.TriangleFace(v...), fcs);
color,
diffuse = Vec3f0(0.8),
specular = Vec3f0(1.1),
shininess = 30f0,
Expand Down

0 comments on commit d765a43

Please sign in to comment.