How to use convexhull in Meshes.jl?

p_f
Sun, 15 Sep 2024 16:46:53 +0000
General Usage

I found the convexhull function in Meshes.jl:
convexhull doc

The docs description “Convex hull of object.”

I have a vector of 2d points:

julia> points
1000-element Vector{Vector{Float64}}:
 [0.5090075873973284, 0.7935895094356397]
 [0.5896006255338349, 0.8640965436930047]
 [0.31107945002334914, 0.1282829645428072]
 ⋮
 [0.6629464927439436, 0.27566263195149276]
 [0.5735250132020138, 0.6521340975802663]

I tried convexhull(points), but I got ERROR: StackOverflowError:...

Am I doing this wrong? I am not sure what object the function is expecting, but since I didn’t get a method error I’m assuming I’m using it correctly?

I also tried convexhull(Point2f.(points)) and got the same

5 posts - 2 participants