How joining two Polygon_with_holes_2 on cgal

Viewed 392

I have two polygons (Polygon_with_holes_2) how joining it into thirth Polygon_with_holes_2

I need general solution. Get any polygon_with_holes (or not if empty hole list but still polygon_with_holes structures) and joining it with other and get polygon_with_holes. How check orientation (cgal not can joining if it not good), reducing points etc. How to do this with good code without memory leak.

0 Answers
Related