color a portion of a sphere surface

3 visualizaciones (últimos 30 días)
lmac456
lmac456 el 13 de Sept. de 2017
Comentada: Andy el 31 de Ag. de 2022
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 comentario
Andy
Andy el 31 de Ag. de 2022
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.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 13 de Sept. de 2017
Editada: Walter Roberson el 13 de Sept. de 2017
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 comentarios
lmac456
lmac456 el 13 de Sept. de 2017
Editada: lmac456 el 13 de Sept. de 2017
I keep running into this same problem using the patch function even with setting FaceColor to flat (attached image). Is this what you mean by the face possibly being too "rough"?
Walter Roberson
Walter Roberson el 14 de Sept. de 2017
Can you attach the data file for the shape?

Iniciar sesión para comentar.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by