Distance between a point and a triangular plane segment

  • Context: Graduate 
  • Thread starter Thread starter lemonCBI
  • Start date Start date
  • Tags Tags
    Plane Point
Click For Summary
SUMMARY

The discussion focuses on calculating the distance between a point in space and a triangular plane segment defined by three non-collinear points. The user initially considers finding the distance to the infinite plane and then checking if the closest point lies within the triangle. If not, they plan to determine the nearest line segment of the triangle to the point using Pythagorean theorem. MATLAB is the chosen tool for these calculations, and optimization of the code is also a concern.

PREREQUISITES
  • Understanding of 3D geometry and triangular plane segments
  • Familiarity with distance calculation methods in geometry
  • Proficiency in MATLAB programming
  • Knowledge of optimization techniques in numerical methods
NEXT STEPS
  • Research methods for calculating distances from a point to a plane in 3D geometry
  • Learn how to determine if a point lies within a triangle in 3D space
  • Explore MATLAB functions for optimizing numerical calculations
  • Investigate the use of barycentric coordinates for point-triangle distance calculations
USEFUL FOR

Mathematicians, computer scientists, and engineers involved in 3D modeling, computational geometry, and those seeking to optimize distance calculations in MATLAB.

lemonCBI
Messages
2
Reaction score
0
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!
 
Physics news on Phys.org
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:
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K