Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Intersection of a ray and a delaunay triangulation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Intersection of a ray and a delaunay triangulation


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] Intersection of a ray and a delaunay triangulation
  • Date: Thu, 24 Mar 2016 14:23:17 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:JnxaDx89vxZ7RP9uRHKM819IXTAuvvDOBiVQ1KB91u4cTK2v8tzYMVDF4r011RmSDdWdsqIP17eempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lSsiL34/riqibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYh/V0/MFJVeD2fr8zUKdDJDUgKWE8osPx5jfZSg7az30QSGgfiVJmCgLf7VmuV5H9qCbzraxz0SOAPOX5QLcxVCi4/qliQwPvkjZBPDk8pjKEwvdshb5W9Ury7yd0xJTZNdmY
  • Organization: GeometryFactory



On 24/03/2016 13:19, Olivier Devillers wrote:

On 24 Mar 2016, at 12:33, Pol Monsó Purtí Helimap
<
<mailto:>>
wrote:

Hello all,

How can I intersect a 3d ray with a 2D Constrained Delaunay
Triangulation created from 3d points using the project_xy traits?

I've seen this post:
http://cgal-discuss.949826.n4.nabble.com/Intersection-segment-and-cells-from-3D-Delaunay-triangulation-td4660891.html

But I don't understand andreas for the second approach.

I don't have that many queries, around 200 of them. I might have,
however, lots of points, > 200 milion.

Is it worth it to build a tree? what other approach could I follow?
Iterating over all the faces seems highly inefficient.

for one ray, you could iterate on the faces intersecting the ray in
projection using the line-face-circulator.


Look for
Line Face Circulator
http://doc.cgal.org/4.8/Triangulation_2/classCGAL_1_1Triangulation__2.html#ad720b1a9adc835ed1a27c228eea1e36c

It might still be a rather expensive operation, namely when
you only intersect very few triangles close to mountain peaks,
but traverse all the triangles in the vertical projection
(~sqrt(200 mio)).

Give the AABB tree a try. It will take you an hour to implement.


--
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