color a portion of a sphere surface
5 ビュー (過去 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167179/image.png)
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!