Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Distance between two Point_3 and distance between a Point_3 and a triangle
Chronological Thread
- From: Nicholas Mario Wardhana <>
- To:
- Subject: Re: [cgal-discuss] Distance between two Point_3 and distance between a Point_3 and a triangle
- Date: Sat, 10 Mar 2012 03:05:50 +0800
On 10 March 2012 02:56, sgdimitris
<>
wrote:
> Hello,
> I would like to ask if there is any CGAL function that
> calculates the distance between two Point_3 ? (every point has x,y,z
> parameter)
> Also, if there is a function that calculates the distance between a point
> and a triangle or in general a plane?
> With regards,
> Dimitris
>
> --
> View this message in context:
> http://cgal-discuss.949826.n4.nabble.com/Distance-between-two-Point-3-and-distance-between-a-Point-3-and-a-triangle-tp4460318p4460318.html
> Sent from the cgal-discuss mailing list archive at Nabble.com.
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
You can try this one here:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Kernel_23_ref/Function_squared_distance.html
for point-point and point-plane distances, but I am not sure whether
CGAL has one for point-triangle. However, I think implementing it is
not hard. You might want to see these:
http://www.geometrictools.com/Documentation/DistancePoint3Triangle3.pdf
http://www.geometrictools.com/LibMathematics/Distance/Wm5DistPoint3Triangle3.cpp
Hope this helps.
Best regards,
Nicholas
- [cgal-discuss] Distance between two Point_3 and distance between a Point_3 and a triangle, sgdimitris, 03/09/2012
- Re: [cgal-discuss] Distance between two Point_3 and distance between a Point_3 and a triangle, Nicholas Mario Wardhana, 03/09/2012
- [cgal-discuss] Re: Distance between two Point_3 and distance between a Point_3 and a triangle, sgdimitris, 03/09/2012
- Re: [cgal-discuss] Distance between two Point_3 and distance between a Point_3 and a triangle, Nicholas Mario Wardhana, 03/09/2012
Archive powered by MHonArc 2.6.16.