fill a portion of a sphere specifying bounds with edges rather than vertices
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm trying to fill a portion of a specifically segmented sphere (pictured below) but the fill3() and patch() functions aren't working because they use polygon vertices as the inputs, and the polygons below are created by the intersection of 2 curved lines. Is there a way to fill a portion of this curved surface by specifying its bounds with its edges rather than its vertices?
댓글 수: 0
답변 (1개)
Walter Roberson
2017년 9월 9일
"Is there a way to fill a portion of this curved surface by specifying its bounds with its edges rather than its vertices"
No, there is not.
However, instead of using fill3(), create the patch with FaceColor 'flat', and specify CData or FaceVertexCData with one color per face, giving the neutral grey for the other faces and giving red for the two faces you want to fill.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!