필터 지우기
필터 지우기

Drawing tetrahedron with surface normals

조회 수: 3 (최근 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 CenterFile Exchange에서 Delaunay Triangulation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by