Drawing tetrahedron with surface normals

2 ビュー (過去 30 日間)
Mike Glaz
Mike Glaz 2017 年 4 月 14 日
回答済み: Sanjana Ramakrishnan 2017 年 4 月 18 日
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?

回答 (1 件)

Sanjana Ramakrishnan
Sanjana Ramakrishnan 2017 年 4 月 18 日
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

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by