Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Area of union of circles

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Area of union of circles


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Area of union of circles
  • Date: Fri, 28 Feb 2020 15:08:53 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:wtppHhC5cNSQPlHLe2p2UyQJP3N1i/DPJgcQr6AfoPdwSPX7rsbcNUDSrc9gkEXOFd2Cra4d16yH4+u9BiQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vIxi6twHcu8oZjYZiKKs61wfErGZPd+lKymxkIk6ekQzh7cmq5p5j9CpQu/Ml98FeVKjxYro1Q79FAjk4Km45/MLkuwXNQguJ/XscT34ZkgFUDAjf7RH1RYn+vy3nvedgwiaaPMn2TbcpWTS+6qpgVRHlhDsbOzM/7WrajNF7gqBGrxK7vxFx3pDaYI+VOvR9cK3Sc9wVSmhdUcheTCFBHoGxYpETA+YdM+tVrY/wrEYOoxukAgmsAfvixjFViHDoxqI1yf8hER3H3AM+GdIFrXLarNLvNKcTVuC10LTDwTHCYfxI3jf97ZbHcgw7ofCMXbx/a9beyVUoFwPfjlScrILpNC6S2+QWt2ib6PBgVeOoi247sQ1xpzyvy9wjionMnI0Vy1TE+T9lz4YyIN21UUh2asOqHptXsiGVLYp2QsU6Tm50tyY10LkGtYS8fCgQx5QqwQPUZf+fc4WQ/B7vSOKcLS17iX9lYr6zmQi+/VW6xuDzSMW4yEhGoTBZntXRs30CyQDf5dKCR/dj4kutxDOC2g/N5u5aPUw5kKvWJIIvwrMzk5cesUfOEjLqlEjzjqKWeEsk+uat5uv6frrrpZGROolpgQ/kKKsugNawAeEgPwgOQWeb/eO82aXm/ULjQbVKiuQ6k6fDsJzHPMgbqKG0DxFP3oYs7Ba/CDim0NAGknUdMF1FfxeHg5DoO1HIPv/4Ee+yj0qwnDpv3fzLPb3sDo/TInTdjbvtZ7lw51BExAo2199f5pZUCr8bIPL0X0/8rMfYDhs+MwyuwubnD8l92pkbWWKLGaKZP6bSvkWJ5uIrOeWDeIgVuDPlJ/g/+/HulWM5mUMafaSxwZQXZ2q3HvB/L0qEYHrsmcsOEXoRvgolV+Hqk12DUTtLZ3moRa485zc7CJinDYjZXIytjqaBj2+HGchdaWlCT1yNCnz1bJ6sWvEWaSvULNUyvCYDUO3rcIIr3AqytQL8g55gNOvT5mVYmp/k0dVp/fz9nBou8iZlTo7Vh3qJSHt1mX9OQjse06V2oEg7wVCGh/sry8dEHMBesqsaGjwxMoTRmrQjVoLCHznZd9LMc26IB9WrBTZrE4A0yt4KJllnQpCs0kqF0C2tDLsY0beMAc5sq/OO7z3KP894jk3++uwkhlgiTNFIMDT/1KF6/gnXQYXOlhfAzvr4ReEnxCfIsVy74y+WpkgBCVx/VKzEWTYUYU6E9dk=

As an alternative solution to Efi's, you can compute the boundary of the
union of the disks efficiently using the 2D Alpha shape package.

Then the area of the union of disk is given by a formula that involves
the signed arc length and angle between tangents at intersection point.
I don't remember precisely the formula but I guess you can easily find
it online.

For the union of disks, if you are interested we can send you a link to
some code that is computing the union of the disks that we wrote some
time ago (yet another piece of code that should be integrated into
CGAL).

Best regards,

Sebastien.

On 2/26/20 3:09 PM, Yann GAVET wrote:
Hi all,

Sorry to bother with this probably naive question. I want to compute the area of the union of a set of disks. I found the example of "2D regularized boolean set-operations", at the end of this page:

https://doc.cgal.org/latest/Boolean_set_operations_2/index.html.

Is there a way to modify this example in order to compute the area of the union, which is (if I am right) a general polygon with holes.


thank you for your time.

regards




Archive powered by MHonArc 2.6.18.

Top of Page