How to make Triangle to Triangle Intersection Algorithm ??
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I see Ray-Triangle Intersection Source Code But I want Triangle-Triangle Intersection Code
I cant make that... Please help or Code Supplement
2 Commenti
Risposte (2)
Matt J
il 16 Nov 2021
Modificato: Matt J
il 16 Nov 2021
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
il 17 Nov 2021
But I want Intersection in 3D space Can U one more help for me??
You can use intersectionHull() in this File Exchange submission:
0 Commenti
Vedere anche
Categorie
Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

