How to make Triangle to Triangle Intersection Algorithm ??
4 ビュー (過去 30 日間)
古いコメントを表示
I see Ray-Triangle Intersection Source Code But I want Triangle-Triangle Intersection Code
I cant make that... Please help or Code Supplement
2 件のコメント
回答 (2 件)
Matt J
2021 年 11 月 16 日
編集済み: Matt J
2021 年 11 月 16 日
triangle1=polyshape([0 0 ; 1 0; 0 1]);
triangle2=polyshape([0 0 ; 1 0; 1 1]);
p=intersect([triangle1,triangle2]);
tiledlayout(1,2)
nexttile; plot([triangle1,triangle2],'FaceColor','r'); ylim([-0.2,1.2]);
nexttile; plot(p,'FaceColor','r'); ylim([-0.2,1.2]);
Matt J
2021 年 11 月 17 日
But I want Intersection in 3D space Can U one more help for me??
You can use intersectionHull() in this File Exchange submission:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

