c++ - Calculate polygon intersection area with GPC or Clipper -


i have 2d particle system, particles represented ellipses. need calculate ellipse - ellipse overlap areas, hard analytical problem ellipse-ellipse overlap. represent ellipses 20-gons, "polygonized" , using boost.geometry make necessary calculations.

however, often, exception boost.geometry : boost.geometry overlay invalid input exception. searched , found known bug of boost.geometry , there no fix of version 1.53. documentation on upcoming v1.54 not fixing problem.

i have stumbled upon clipper , gpc - general polygon clipper library. seem want, output boolean results. know if there way output area of calculated intersections these libraries? guess since intersection stored in memory kind of polygon, use triangulation or other method calculate area. pointers appreciated!

the boost overlay exception consistent in msvc 2010 , 2012 under win7 x64, mingw , qt 4.8.1 under linux mint 14.

it seems you're wrong clipper , gpc "they output boolean results". both libraries calculate intersection polygon - example, @ code snippet picture on clipper page.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -