How can I make a solid triangular prism?

조회 수: 3 (최근 30일)
Jacob Vialou-Clark
Jacob Vialou-Clark 2018년 3월 23일
figure(1)
v = [0 0 0; 5 5 0; 0 5 0; 0 0 2; 5 5 2; 0 5 2];
f = [1 2 5 4; 2 3 6 5; 1 3 6 4];
axes('XLim',[-7 7],'YLim',[0 5],'ZLim',[0 2],'XDir','reverse','YDir','reverse'); view(3);
patch('Faces',f,'Vertices',v,'FaceAlpha',0);
This generates an outline, what is the best way to modify it to make a solid shape?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Animation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by