-
Notifications
You must be signed in to change notification settings - Fork 9
Sg/voronoi #355
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
base: main
Are you sure you want to change the base?
Sg/voronoi #355
Conversation
test/methods/voronoi.jl
Outdated
| # @testset "Voronoi with custom boundary" begin | ||
| # # Create points inside a square | ||
| # points = [(0.25, 0.25), (0.75, 0.25), (0.75, 0.75), (0.25, 0.75), (0.5, 0.5)] | ||
|
|
||
| # # Create a square boundary | ||
| # boundary = GI.Polygon([ | ||
| # GI.LinearRing([(0.0, 0.0), (1.0, 0.0), (1.0, 1.0), (0.0, 1.0), (0.0, 0.0)]) | ||
| # ]) | ||
|
|
||
| # polygons = GO.voronoi(points, boundary) | ||
| # @test length(polygons) == 5 | ||
|
|
||
| # # All polygons should be valid | ||
| # for poly in polygons | ||
| # @test GI.isgeometry(poly) | ||
| # @test GI.geomtrait(poly) isa GI.PolygonTrait | ||
| # end | ||
| # end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this test fail? What was the issue here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! These were commented out on your branch and I didn't look at them. I will work on that later and update the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! My implementation must not have been working then. I'll try to get it to work with DelaunayTriangulation's api then.
|
Okay I had to add some more advanced clean up for the Thoughts though? Look good to go @asinghvi17? |
Cleaning up and adding in the wrapper of
DelaunyTriangulation'svoronoifunction such that it returnsGeoInterfacepolygons.