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

1 view (last 30 days)
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?

Answers (1)

Walter Roberson
Walter Roberson on 9 Sep 2017
"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.

Community Treasure Hunt

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

Start Hunting!