Subject: CGAL users discussion list
List archive
- From: Nick Alger <>
- To:
- Subject: [cgal-discuss] Use AABB tree for 2D triangulation by setting z=0
- Date: Wed, 6 Oct 2021 18:10:02 -0500
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-hdrordr: A9a23:zFJxOqPUoiHYd8BcTsyjsMiBIKoaSvp037BL7TEXdfUxSKalfq+V7ZcmPHPP6Ar5O0tApTnjAtjjfZq0z/ccirX5Vo3SOTUO1lHYSL2KLrGP/9QjIUDDHyJmupuIupIRNOHN
- Ironport-phdr: A9a23:DO/llRUc3wEjZn4MzL1qtekLtnjV8KzEVTF92vMcY1JmTK2v8tzYMVDF4r011RmVB92duqsP1rWempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffRlEiCC5bL9vIxm7rQfcvdQKjIV/Lao81gHHqWZSdeRMwmNoK1OTnxLi6cq14ZVu7Sdete8/+sBZSan1cLg2QrJeDDQ9LmA6/9brugXZTQuO/XQTTGMbmQdVDgff7RH6WpDxsjbmtud4xSKXM9H6QawyVD+/6apgVR3mhzodNzMh/27ZisJ+gqFGrhy/uxNy2JTbbJ2POfdkYq/RYdEXSGxcVchRTSxBBYa8YpMXAeoAIelYrJT2qkcKrRuxGwasHv7kxzhOhnDs2a063PouERvY0AA+H98Dq3vUrNDvO6cTVeC51rXHzTLGb/5P3zr29YfHfAw7r/6WQbJwbdTeyVMpFw7dgFudq5DoMi6b2OkDvWaX8+VuWP+yh2ApqAx8vDuiytkih4XUmI8Z1lTJ+CFkzIs2J9C1SlN3bN2gHZdOuS+XK417Sd4hTWFwoCs21KEKtJqhcCUJyJkr3QDTZ+Kaf4SS4h/uW+CcKipiin1/YrKwnROy/FCgyuLiUsm0105Hri9fndnNsnABzhLS6tKaRvdk8Ees2TmC2xrc6uFDJkA0mq7bJIA7zrEskZoTtFzPHi7wmErokK+bblso9vSs5uj9YbjrpoWQO5Fqhg3jKKgjmsOyDfw9MgcUXmib/eq81Kfk/U38WLhKiOc5kq3WsJ/EP8QXuLC1Dg9O34Ys7hawFTam0NACkXYbK1JFfQqLj5L1NFHWPPD4EfC/jkywnzdk3f/GOqTtDYjMLnjYjLjhYK1961VHxQoozdFf4opUBasbLPLyXE/xrt3YAQUjPwy62ea0QOl6g4gRUGbKDq6CO77JqneJ4PguKq+Cftw7ojH4ft4k7P2mpHs2lEVVKa+g2ZQaciriQ9xpJkyYZTznhdJXQjRChRY3UOG/0A7KajVUfXvnB8rUAxk0DYunCcHIQYX/2NRpMw+0G5RXYiZNDVXeSB8Alq2BUvYILT2Ie4pvz2BCWr+mRIsskxqpsV2io4c=
Hi. I have never used CGAL before, and I am trying to determine if it is appropriate for the task I'm working on, or whether I should look for another library.
I have a nonconvex nonuniform triangulation in 2D that comes from a finite element discretization, and I want to use an AABB tree to perform geometric queries. (e.g., What triangle is a point in? What is the closest point in the triangulation? etc...)
I see that CGAL can make AABB trees for 3D, but not 2D. I can use the 3D AABB tree by taking my 2D points, and making them 3D by setting the z coordinate equal to zero. Is this an advisable hack? Will the CGAL AABB tree algorithm still perform well when the triangles are all on the same plane and infinitely thin?
Also, where I can find more details on the algorithm that CGAL uses for constructing AABB trees? I know about AABB trees in general; I am looking for specifics. How does CGAL choose which boxes to group when building the hierarchy, etc..?
Thanks for any help!
- [cgal-discuss] Use AABB tree for 2D triangulation by setting z=0, Nick Alger, 10/07/2021
Archive powered by MHonArc 2.6.19+.