How to make Triangle to Triangle Intersection Algorithm ??

10 visualizaciones (últimos 30 días)
토즈 토즈
토즈 토즈 el 16 de Nov. de 2021
Respondida: Matt J el 17 de Nov. de 2021
I see Ray-Triangle Intersection Source Code But I want Triangle-Triangle Intersection Code
I cant make that... Please help or Code Supplement
  2 comentarios
KSSV
KSSV el 16 de Nov. de 2021
Your question is not clear. Any pictorial example? More information needed.
토즈 토즈
토즈 토즈 el 17 de Nov. de 2021
Like this One. But This is Three time Ray Intersect in Ray-Triangle Intersection Algorithm
I want Triangle-Triangle intersection Algorithm and, I want know Ray-Triangle n Triangle-Triangle Algorithm have a difference?

Iniciar sesión para comentar.

Respuestas (2)

Matt J
Matt J el 16 de Nov. de 2021
Editada: Matt J el 16 de Nov. de 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]);
  1 comentario
토즈 토즈
토즈 토즈 el 17 de Nov. de 2021
Really thx But I want Intersection in 3D space Can U one more help for me??

Iniciar sesión para comentar.


Matt J
Matt J el 17 de Nov. de 2021
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 Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by