-
Notifications
You must be signed in to change notification settings - Fork 70
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
void ovd::VoronoiDiagram::add_edges(ovd::HEFace, ovd::HEFace, ovd::HEFace, std::pair<void*, void*>): Assertion `(new_count % 2) == 0' failed. Aborted (core dumped) #48
Comments
can you draw your points and line-sites in a 2D drawing and attach it here? |
@aewallin Thanks for your quick response. |
Any suggestions to solve this problem? @aewallin |
in your first example above, I am guessing the error comes from inserting the second line-site, vd->insert_line_site(id1, id2), which is co-linear with the first site? one would have to study the code in depth to look at what is causing the problem. line-sites that are either at 90-degrees to each other, or like in your case at 0-degrees/co-linear to each other are special cases. |
So line-sites can not at 90-degrees to each other? |
There are two ways to solve this:
In practice I haven't had much time to work on openvoronoi in the past years, so I don't know if/when this might move forward. If there's another maintainer that is eager to take over then please go ahead! |
hello @zengtaiping , did you find the solution |
When I am trying to use the cpp_examples medial_axis, I found the error:
With the code:
However, when I remove Point p1 and remake, it works without errors.
With the code:
I think the different points caused the problems. But I did not find why it happens.
Thanks.
The text was updated successfully, but these errors were encountered: