color a portion of a sphere surface
2 次查看(过去 30 天)
显示 更早的评论
How would I color just the portion of the surface of the sphere below connected by the 4 black dots? The fill3 or patch function do not work because the surface is curved and not flat.
1 个评论
Andy
2022-8-31
lmac456: May I ask to see the code that you used to generate your plot? I'm trying to do something similar, but with hexagonal sections.
回答(1 个)
Walter Roberson
2017-9-13
编辑:Walter Roberson
2017-9-13
Each face of the sphere is locally flat for drawing purposes. If that is too "rough" then you would need to create additional faces that subdivide to get a finer approximation to curvature.
2 个评论
另请参阅
类别
在 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!