From d765a43b087178d342e9a0939e474a86c6b31ba8 Mon Sep 17 00:00:00 2001 From: Lazaro Alonso Date: Tue, 6 Aug 2024 20:49:11 +0200 Subject: [PATCH] parsing comments? issue --- examples/3d/meshes/isosurfaces.jl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/3d/meshes/isosurfaces.jl b/examples/3d/meshes/isosurfaces.jl index ba3c9932..7eeb6f92 100644 --- a/examples/3d/meshes/isosurfaces.jl +++ b/examples/3d/meshes/isosurfaces.jl @@ -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,