-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Description
From this discourse question, which i can reproduce in my machine using Polyhedra v0.6.5, Makie v0.11.0:
using Makie, CDDLib, Polyhedra
v = convexhull([0, 0, 0]) + conichull([1, 0, 0], [0, 1, 0], [0, 0, 1])
p = polyhedron(v)
m = Polyhedra.Mesh(p)
Makie.mesh(m, color=:blue)
MethodError: no method matching iterate(::Polyhedra.Mesh{3,Rational{BigInt},DefaultPolyhedron{Rational{BigInt},Polyhedra.Intersection{Rational{BigInt},Array{Rational{BigInt},1},Int64},Polyhedra.Hull{Rational{BigInt},Array{Rational{BigInt},1},Int64}}})
Closest candidates are:
iterate(!Matched::Core.SimpleVector) at essentials.jl:603
iterate(!Matched::Core.SimpleVector, !Matched::Any) at essentials.jl:603
iterate(!Matched::ExponentialBackOff) at error.jl:253
...
Stacktrace:
[1] isempty(::Polyhedra.Mesh{3,Rational{BigInt},DefaultPolyhedron{Rational{BigInt},Polyhedra.Intersection{Rational{BigInt},Array{Rational{BigInt},1},Int64},Polyhedra.Hull{Rational{BigInt},Array{Rational{BigInt},1},Int64}}}) at ./essentials.jl:739
[2] xyz_boundingbox(::Function, ::Polyhedra.Mesh{3,Rational{BigInt},DefaultPolyhedron{Rational{BigInt},Polyhedra.Intersection{Rational{BigInt},Array{Rational{BigInt},1},Int64},Polyhedra.Hull{Rational{BigInt},Array{Rational{BigInt},1},Int64}}}) at /home/mforets/.julia/packages/AbstractPlotting/q9DyS/src/layouting/data_limits.jl:64
[3] atomic_limits(::Mesh{...}) at /home/mforets/.julia/packages/AbstractPlotting/q9DyS/src/layouting/data_limits.jl:17
[4] data_limits at /home/mforets/.julia/packages/AbstractPlotting/q9DyS/src/layouting/data_limits.jl:9 [inlined]
[5] push!(::Scene, ::Mesh{...}) at /home/mforets/.julia/packages/AbstractPlotting/q9DyS/src/scenes.jl:347
[6] plot!(::Scene, ::Type{Mesh{...}}, ::Attributes, ::Tuple{Observable{Polyhedra.Mesh{3,Rational{BigInt},DefaultPolyhedron{Rational{BigInt},Polyhedra.Intersection{Rational{BigInt},Array{Rational{BigInt},1},Int64},Polyhedra.Hull{Rational{BigInt},Array{Rational{BigInt},1},Int64}}}}}, ::Observable{Tuple{Polyhedra.Mesh{3,Rational{BigInt},DefaultPolyhedron{Rational{BigInt},Polyhedra.Intersection{Rational{BigInt},Array{Rational{BigInt},1},Int64},Polyhedra.Hull{Rational{BigInt},Array{Rational{BigInt},1},Int64}}}}}) at /home/mforets/.julia/packages/AbstractPlotting/q9DyS/src/interfaces.jl:653
[7] plot!(::Scene, ::Type{Mesh{...}}, ::Attributes, ::Polyhedra.Mesh{3,Rational{BigInt},DefaultPolyhedron{Rational{BigInt},Polyhedra.Intersection{Rational{BigInt},Array{Rational{BigInt},1},Int64},Polyhedra.Hull{Rational{BigInt},Array{Rational{BigInt},1},Int64}}}; kw_attributes::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /home/mforets/.julia/packages/AbstractPlotting/q9DyS/src/interfaces.jl:580
[8] plot! at /home/mforets/.julia/packages/AbstractPlotting/q9DyS/src/interfaces.jl:549 [inlined]
[9] mesh(::Polyhedra.Mesh{3,Rational{BigInt},DefaultPolyhedron{Rational{BigInt},Polyhedra.Intersection{Rational{BigInt},Array{Rational{BigInt},1},Int64},Polyhedra.Hull{Rational{BigInt},Array{Rational{BigInt},1},Int64}}}; attributes::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol},NamedTuple{(:color,),Tuple{Symbol}}}) at /home/mforets/.julia/packages/AbstractPlotting/q9DyS/src/recipes.jl:15
[10] top-level scope at In[9]:1
Metadata
Metadata
Assignees
Labels
No labels