fill a portion of a sphere specifying bounds with edges rather than vertices

조회 수: 2 (최근 30일)
lmac456
lmac456 2017년 9월 8일
답변: Walter Roberson 2017년 9월 9일
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?

답변 (1개)

Walter Roberson
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.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by