Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Euclidean distance Point_3 to Triangle

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Euclidean distance Point_3 to Triangle


Chronological Thread 
  • From: Camille Wormser <>
  • To:
  • Subject: Re: [cgal-discuss] Euclidean distance Point_3 to Triangle
  • Date: Mon, 25 May 2009 15:31:32 +0200

That seems to work, thanks!
My last question to that function would be what is meant by the bound?
I use my Point P0 as origin and the triangle. But what point represents bound?

nearest_point_3(const Point_3<K>& origin,
const Triangle_3<K>& triangle,
const Point_3<K>& bound)



If bound is closer to origin than triangle is, bound is returned.

If you want the closest point on the triangle, set bound to be one of the vertices of the triangle.
--
Camille




Archive powered by MHonArc 2.6.16.

Top of Page