Skip to Content.
Sympa Menu

cgal-discuss - Re[2]: [cgal-discuss] Speeding up Intersection

Subject: CGAL users discussion list

List archive

Re[2]: [cgal-discuss] Speeding up Intersection


Chronological Thread 
  • From: jana jelenki <>
  • To:
  • Subject: Re[2]: [cgal-discuss] Speeding up Intersection
  • Date: Tue, 04 May 2021 10:01:35 +0300
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=Pass
  • Ironport-hdrordr: A9a23:fniNsao3tFaP2O6gb7MovFAaV5v8L9V00zAX/kB9WHVpW+SFisGjm+ka3xfoiDAXHEotg8yEJbPoewKlybde544NMbC+GDT3oWfAFvAE0aLO4R3FXxf/+OlUyLt6f8FFY+HYIFBmga/BkWqFOvk6xt3vysyVrMfYi0xgVAR7L5xnhj0JbDqzNm1TaE14CYEiFJyaj/AnmxOFdW4MZsq2QlkpNtKzw+Hjr57tbR4YCxNP0mDn516VwYX3HBSC0hAVXykn+8ZazUH/nxX99uGftZiAu33h/lXO5JdbksaJ8LV+LfGL4/J7Fhzczlj1O9k8Be2r1QpF292H2RJ1zvaR/0Z4Za1ImgnsV1Dw/zTEhlnL+2pG0Q6e9XaoxVG6jOChaRoQYvAx+b5xQ1/yuhV87P0sgMtwrh2knqsSIE+fsX7Uy/WgbWAVqmOE5V4rkeselBVkMbc2Wft0pYwb518QNLdoJlOK1KkXVM1nDMTG+LJtfVSWY2uxhBge/PWcGlApFg3ueDlwhuWllwFMnHZjz1YJrfZv+0soxdYGUpFBjt60QJhVqA==
  • Ironport-phdr: A9a23:wRVUoB9nTIEMh/9uWSG7ngc9DhMPi/DPJgcQr6AfoPdwSMyLwZ3uMQTl6Ol3ixeRBMOHsqMC0bGL+Pm5AiQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTagZb5+Ngu6oAvRu8UZnIduN6g8wQbVr3VVfOhb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GaJDxJKRA5lh8Kva1jDzKsJwzXXHnP0hi1QsTcJnMGSnguhl6l6AVMbyj0yFmvPyJuwn1ynX+TLbpUK++XpAWQs1ap3rGHUWZ0/Yt9P8jmvHRr6qT646YFIp4f7HEbNDb5jStXsDXO3qUPzbamO13X2tV07g7oPJV5LjfiAm5AuYCEUAlGg78yrdbE4/QCKoomaYFiE8TDrS

Hi,
 
I find this topic very interesting. I already use spatial partitioning and also OpenMP. For an average Triangle_3 Triangle_3 intersection my program needs on average 0.1ms in release mode. I also use the exact kernel. Is this the limit of the CGLAL implementation, are there any numbers or benchmarks?  Or can you squeeze there even further?
 
Best
Вторник, 4 мая 2021, 6:35 +03:00 от Andrew Cunningham <>:
 
Hi Anish,
Since your code is a N^2 algorithm , it's not surprising that this is
taking a long time. The first thing that comes to mind is to bound
each triangle with a CGAL AABB (BoundingBox) and use CGAL AABB
algorithms to find the pairs of intersecting bounding boxes(pairs of
potential triangle intersections). That would make a huge difference
in execution time.
And once you have done that, you could loop over the intersecting
pairs and use OpenMP or other threading approaches like TBB to process
the intersecting pairs in parallel. I personally have had great
success with OpenMP tasks and CGAL.

Andrew

On Mon, May 3, 2021 at 1:17 PM Rasal Raj, Anish
<> wrote:
>
> Hello Guys,
>
> I have recently started working with CGAL. I have a doubt.
>
>
> I am using CGAL intersection operation on a list of triangles. currently, it takes some time to complete the information. What are the possible ways to improve the execution time?
>
>
> Note: the list of triangles contains around 25k triangles. I have attached a sample code with this e-mail. I am using Exact_predicates_exact_constructions_kernel kernel.
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
 
 
 
--
jana jelenki
 



Archive powered by MHonArc 2.6.19+.

Top of Page