color a portion of a sphere surface
조회 수: 3 (최근 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!