You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to update my compat on Meshing.jl from 0.6 to 0.7, but could not easily figure out what changed in the interim?
Were there significant changes to the API?
Thanks!
The text was updated successfully, but these errors were encountered:
I'm also trying to update Meshing.jl from 0.6 to 0.7, but this snippet (from here) is now broken:
# Visualize a mesh from the level set of a functionusing Meshing: MarchingTetrahedra
using GeometryBasics: Mesh, HyperRectangle
f = x ->sum(sin, 5* x)
mesh =Mesh(f, HyperRectangle(Vec(-1, -1, -1), Vec(2, 2, 2)), MarchingTetrahedra())
setobject!(vis, mesh, MeshPhongMaterial(color=RGBA{Float32}(1, 0, 0, 0.5)))
using Meshing: MarchingTetrahedra, isosurface
using GeometryBasics:
Mesh,
TriangleFace,
Vec,
Point
xr,yr,zr =ntuple(_->LinRange(-1,1,50),3)
f = x ->sum(sin, 5* x)
sdf = [f(Vec(x,y,z)) for x in xr, y in yr, z in zr]
vts, fcs =isosurface(sdf, MarchingTetrahedra(), xr, yr, zr)
mesh =Mesh(Point.(vts), TriangleFace.(fcs))
setobject!(vis, mesh, MeshPhongMaterial(color=RGBA{Float32}(1, 0, 0, 0.5)))
v0.7 has a very simple API now with basically just one function: isosurface
I'd like to update my compat on Meshing.jl from 0.6 to 0.7, but could not easily figure out what changed in the interim?
Were there significant changes to the API?
Thanks!
The text was updated successfully, but these errors were encountered: