Borrar filtros
Borrar filtros

Drawing tetrahedron with surface normals

1 visualización (últimos 30 días)
Mike Glaz
Mike Glaz el 14 de Abr. de 2017
Respondida: Sanjana Ramakrishnan el 18 de Abr. de 2017
I have the following code to draw a tetrahedron:
x = [1 1 -1 -1]
y = [1 -1 1 -1]
z = [1 -1 -1 1]
t = [1 2 3; 1 2 4; 2 3 4; 1 3 4]
trisurf(t,x,y,z)
How do I also draw the surface normals?

Respuestas (1)

Sanjana Ramakrishnan
Sanjana Ramakrishnan el 18 de Abr. de 2017
You can use 'triangulation' and 'faceNormal' functions to draw the surface normals. Refer the below link for more information:
https://www.mathworks.com/help/matlab/ref/triangulation.facenormal.html

Categorías

Más información sobre Delaunay Triangulation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by