Open zengtaiping opened 4 years ago
can you draw your points and line-sites in a 2D drawing and attach it here? (for example crossing lines are not allowed input to openvoronoi)
@aewallin Thanks for your quick response. There are no crossing lines in this simple example. I plot the points and connected lines without the last point to the start point, for easy viewing. The six points figure with error:
The five points figure without error:
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.