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

3 次查看(过去 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?

回答(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