Use a 2D filled polygon in a 3D plot

조회 수: 11 (최근 30일)
Jorrit
Jorrit 2011년 8월 14일
Hi all,
I have a 3D plot of an aircraft, plotted with the surf function. I also have the nacelles in there as a surf. What I'd like to do, is plot a filled circle inside the engine, representing the fans. Normally you would use fill(x,y,c) to plot a 2D filled polygon, but is there a way to plot it in 3D at a specific location?

채택된 답변

Walter Roberson
Walter Roberson 2011년 8월 14일
2D plots cannot be plotted at 3D locations. You can, though, use fill3() with a constant Z location.
  댓글 수: 1
Jorrit
Jorrit 2011년 8월 14일
Thank you! That was very easy, I wasn't aware of the existence of fill3()

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by