Question

I have a problem with CGAL, I divide a polygon (Polygon_with_holes_2) in different parts using intersection and difference functions and then I make a dissolve with the join function. But after using difference, the result of join function is not right, some lines hadn't been cut and it provokes a lot of errors. Does anybody knows how to solve this? It's a big problem and I've tried some solutions but anything works.

Was it helpful?

Solution

The problem was that I was using my own structures (with float type) between join and difference operations, because of that, I was losing precission, so the vertex didn't match and strange lines appeared everywhere. I've tried to update the title to add [SOLVED] but it didn't work, I'll try again. Thank you!!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top