Distance between a point and a triangle in 3D

버전 1.6.0.0 (2.99 KB) 작성자: Gwendolyn Fischer
pointTriangleDistance calculates the distance between a point and a triangle in 3D.
다운로드 수: 3.5K
업데이트 날짜: 2010/10/14

라이선스 보기

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 (2024). Distance between a point and a triangle in 3D (https://www.mathworks.com/matlabcentral/fileexchange/22857-distance-between-a-point-and-a-triangle-in-3d), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14SP2
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Computational Geometry에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.6.0.0

Bug Fix due to yet another typo.

1.5.0.0

Bug Fix because of typo. Thanks to Gordon.

1.1.0.0

Fixed a Bug spotted by Jorge Riera

1.0.0.0