Compute union of two arbitrary shapes

后端 未结 6 1964

I\'m working on an application, I need to be able to combine two overlapping arbitrary shapes as drawn by the user. This would be a Union operation on the two shapes. The re

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-30 11:47

    Implementing boolean operations correctly is not trivial; fortunately, there are libraries that already implement this functionality.

    What language are you using? If it's C++, take a look at CGAL, the Computational Geometry Algorithms Library.

提交回复
热议问题