Distance between a point and a triangle in 3D

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 Center および MATLAB AnswersComputational Geometry についてさらに検索
謝辞

ヒントを与えたファイル: GJK algorithm distance of closest points in 3D

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