Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] closest point with AABB_tree

Subject: CGAL users discussion list

List archive

[cgal-discuss] closest point with AABB_tree


Chronological Thread 
  • From: Oliver Gloth <>
  • To:
  • Subject: [cgal-discuss] closest point with AABB_tree
  • Date: Fri, 4 Jul 2014 18:12:49 +0200

Hello,

I am fairly new to CGAL and managed to use it in order to project a point in 3D space onto the closest location on a triangulated surface. The background of this is the generation of a computational mesh for CFD (open-source tool enGrid, see http://engits.eu/engrid).

Computing the closest point in terms of an (x, y, z) triple works and you can find the code here:
https://github.com/enGits/engrid/blob/new_concept/src/libengrid/cgaltricadinterface.h
https://github.com/enGits/engrid/blob/new_concept/src/libengrid/cgaltricadinterface.cpp

What I would also like to have is the index of the triangle on which the projected point is. With this information we would like to compute additional properties like, for example, local curvature or the local normal vector of the surface.

Is this possible? If yes, does somebody have a small piece of example code which illustrates how to do this?

Best regards,
Oliver

Dr.-Ing. Oliver Gloth (managing partner)
phone: +49 (0)7671-992-5110, fax: -222-9689, mobile +49 (0)173-317-3698

enGits GmbH, http://engits.eu, Todtnau, AG Freiburg HRB 700491
Geschaeftsfuehrer/managing partner: Dr. Oliver Gloth




Archive powered by MHonArc 2.6.18.

Top of Page