-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix module name #1
Conversation
Coincidentally, and somewhat unrelatedly, trying this on Windows, I hit: julia> ConvexHull(rand(2,8))
ERROR: could not load symbol "qh_alloc_qh":
The specified procedure could not be found.
Stacktrace:
[1] qh_alloc_qh (repeats 2 times)
@ C:\Users\tchr\.julia\packages\DirectQhull\MDcrJ\src\DirectQhull.jl:63 [inlined]
[2] ConvexHull(pnts::Matrix{Float64}, qhull_options::Vector{String}) (repeats 2 times)
@ DirectQhull C:\Users\tchr\.julia\packages\DirectQhull\MDcrJ\src\DirectQhull.jl:345
[3] top-level scope
@ REPL[15]:1 which seems to fail on this line. On Linux, 2D examples seem to work (nice!), but 3D fails with: julia> ConvexHull(rand(3, 12))
ERROR: MethodError: no method matching iterate(::DirectQhull.var"#2#4"{Ptr{DirectQhull.qhT}})
Closest candidates are:
iterate(::Union{LinRange, StepRangeLen}) at range.jl:664
iterate(::Union{LinRange, StepRangeLen}, ::Int64) at range.jl:664
iterate(::T) where T<:Union{Base.KeySet{var"#s79", var"#s78"} where {var"#s79", var"#s78"<:Dict}, Base.ValueIterator{var"#s77"} where var"#s77"<:Dict} at dict.jl:693
...
Stacktrace:
[1] unique(itr::Function)
@ Base ./set.jl:127
[2] ConvexHull(pnts::Matrix{Float64}, qhull_options::Vector{String})
@ DirectQhull ~/.julia/packages/DirectQhull/MDcrJ/src/DirectQhull.jl:364
[3] ConvexHull(pnts::Matrix{Float64})
@ DirectQhull ~/.julia/packages/DirectQhull/MDcrJ/src/DirectQhull.jl:345
[4] top-level scope
@ REPL[15]:1 |
Thanks, never crossed my mind to check the module name. :) |
For the windows error: |
The 3D error should also now be fixed. Implementation for 3D vertices had not been done correctly. |
I checked whether the Windows error was still present: it is. Is that expected? |
Well, not expected. I do get the same error. |
This fixes the problem I noted in JuliaPolyhedra/QHull.jl#19 (comment).