How to make Triangle to Triangle Intersection Algorithm ??
Mostrar comentarios más antiguos
Respuestas (2)
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]);
1 comentario
토즈 토즈
el 17 de Nov. de 2021
Matt J
el 17 de Nov. de 2021
0 votos
But I want Intersection in 3D space Can U one more help for me??
You can use intersectionHull() in this File Exchange submission:
Categorías
Más información sobre Resizing and Reshaping Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

