Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Optimal way to iteratively unite 2D triangles

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Optimal way to iteratively unite 2D triangles


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] Optimal way to iteratively unite 2D triangles
  • Date: Mon, 18 Mar 2019 09:14:25 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:N9MSLRysHPZntZfXCy+O+j09IxM/srCxBDY+r6Qd2+kTIJqq85mqBkHD//Il1AaPAdyDraodw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94DPbwlSmDaxfK55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRH1likHOT43/mLZhMN+g61Uog6uqgdlzILIeoyYLuZyc63fcN4cWGFPXtxRVytEAo6kc4YPCfcOPfxGoIbnvFsFsBuwChO3C+P1yz9Dm3j70rc80+s8CwHJwhYvH8kUvHTattr6L70SUeGuwanH0zrDaPZW1inh6IjSchEhr+uDUq5sccrW00kuFxnJgUmXqYzgJj6Y0PkGvWac7+plT+2vimgnphl3oje13cgjkY3JiZwPxl/Y8iV5xYA4LsC7Rk5jedOpH5pduzuHO4dqQs4uWWNltSYgxrAIuJO3ZCwHxIg9yxPcavGLaZaE7g79WOqLPDt0mn1odbSijBio60eg0PfzVsys3VZKsCVFlt7Mu2gT2xDJ78iHTfVw8l2k2TmV1gDT7vhIIUcplarHMZIhxaAwlpoJvUTFACD2hF36jK6Qdko65uil8+vqb7T8qpOBK4N5ihvyP6Yul8ClD+k1MxACX22B9uS90L3j81f5QLJPjvAuiKbZto3VJd4FqaGjGA9ZyIgj5AykADe80dQVhnYHI0xCeBKCkYfpJ0vOIfD2Dfiln1usjDBrx+rGP7H7HprNKX3DnK/7fblh805c1BYzzddH6p1IBbEOOvbzVlbsu9zZFR82LxG0w/38CNhmzYMfWWePAreDP6/IsF+I4PgvI+iWa4MPtjb9Matt2/m7hnAwnRoRfLKiwIAMQHG+BPVvZUuDMlT2hdJUOGEGpAc3V6TEgVeYUHYHbnC+Ra81/Xc1AYi8DK/MS4eojaCbzSmyFYFRfHEAAVeJRyS7P76YUusBPXrBavRqlSYJAOD4Gt0RkCq2vQq/8IJJa+/d+ykWr5XmjoEn6ODUkBwu7y16Bs+B1HucCWpzmzFQHmNk7OVEuUV4j2y7/+1gmfUCTI5c6vRMXxsgJJDVxPB9EcG0UQXELI/QFQSWB+6+CDR0deofht8DZ0EnR4f4yBXEhGyvCr4R0ruWGNoz7KKa2XXtdZ5w

Hello,

And what kind of operation do you perform with the intermediate results?

Best,

Andreas

On 3/16/2019 10:59 PM, tfmk wrote:
Hi, I would like to achieve the best possible performance when iteratively
uniting (2D boolean union) 2D triangles into one larger polygon. I expect to
unite a lot of triangles, so I think that using a BSP tree for the larger
polygon would be useful. I expect CGAL to use BSP trees, but I think that
the default behaviour for CGAL would be to reconstruct the tree every time I
called the CGAL::join() function to add another triangle. What should I do
to avoid reconstructing the BSP tree? I should stress that I have to perform
the unions iteratively - I can't unite them all at once.

Also, given the scenario, is there a faster way to perform this than to use
Polygon_2 for the individual triangles, Polygon_with_holes_2 for the
resulting polygon and then CGAL::join them together? I know there is a class
Triangle_2, but the CGAL::join() doesn't seem to accept it as an input.

Thank you.



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

-- 
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri



Archive powered by MHonArc 2.6.18.

Top of Page