Distance between a point and a triangle in 3D
                    版本 1.6.0.0 (3.0 KB) 作者:  
                  Gwendolyn Fischer
                
                
                  pointTriangleDistance calculates the distance between a point and a triangle in 3D.
                
                  
              Calculate the distance of a given point P from a triangle TRI.
Point P is a row vector of the form 1x3. The triangle is a matrix
 formed by three rows of points TRI = [P1;P2;P3] each of size 1x3.
 dist = pointTriangleDistance(TRI,P) returns the distance of the point P to the triangle TRI.
 [dist,PP0] = pointTriangleDistance(TRI,P) additionally returns the closest point PP0 to P on the triangle TRI.
引用格式
Gwendolyn Fischer (2025). Distance between a point and a triangle in 3D (https://ww2.mathworks.cn/matlabcentral/fileexchange/22857-distance-between-a-point-and-a-triangle-in-3d), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
              创建方式
              R14SP2
            
            
              兼容任何版本
            
          平台兼容性
Windows macOS Linux类别
      在 Help Center 和 MATLAB Answers 中查找有关 Computational Geometry 的更多信息
    
  标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!