JuliaPolyhedra / Polyhedra.jl

Polyhedral Computation Interface
Other
172 stars 27 forks source link

no method matching `setobject!(::Visualizer, ::Polyhedra.Mesh)` #222

Closed chriselrod closed 3 years ago

chriselrod commented 3 years ago

I can't run any of the MeshCat examples, e.g. from the documentation: https://juliapolyhedra.github.io/Polyhedra.jl/latest/plot/#D-plotting-with-Plots-2 or examples https://github.com/JuliaPolyhedra/Polyhedra.jl/blob/v0.6.7/examples/3D%20Plotting%20a%20projection%20of%20the%204D%20permutahedron.ipynb

using Polyhedra, MeshCat

v = convexhull([0,0,0]) + conichull([1,0,0], [0,1,0], [0,0,1])

p = polyhedron(v)

m = Polyhedra.Mesh(p)

vis = Visualizer()
setobject!(vis, m)
open(vis)
blegat commented 3 years ago

Can you try this branch https://github.com/JuliaPolyhedra/Polyhedra.jl/pull/212 and see if it works?

chriselrod commented 3 years ago

It works.

blegat commented 3 years ago

Closed by https://github.com/JuliaPolyhedra/Polyhedra.jl/pull/212