Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Distance between a point and a triangular plane segment

  1. Aug 1, 2011 #1
    I need to determine the distance between a point and a plane segment. I have 1 point in space and 3 points which form a triangula plane segment. I know the 3 points are not colinear and the 4th point is not coplanar with the others. I want to calculate the distance between the point and the triangular plane segment described by the other 3 points.

    My initial idea is to assume the plane is infinite and find the distance. I would then determine if the closest point in the plane lay within the triangle (but was not sure how I was going to do that). If it was then I was done. If not, then I would find which of the 3 line segements of the triangle lay closest to the point in the plane and use Pythagoras to figure out the distance between my original point in space and the triangle.

    Any advice about this or any other method would be greatly appreciated. Also, I am performing these calculations in matlab so any suggestion on how to optimize my code would be very helpful as well. Thanks!
     
  2. jcsd
  3. Aug 2, 2011 #2

    tiny-tim

    User Avatar
    Science Advisor
    Homework Helper

    hi lemonCBI! :smile:

    if you're doing this on a computer, and you're only interested in the distance, how about just minimising (pa + qb + rc)2 for p+q+r = 1, and p q and r all non-negative? :wink:
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Distance between a point and a triangular plane segment
Loading...