3D graph - Patch function

13 visualizaciones (últimos 30 días)
dimi mouhta
dimi mouhta el 14 de Abr. de 2011
Hi.
I am using the patch function to build a 3d graph, but i want only one side of every patch to be colored and not both. Can someone help me?
  3 comentarios
dimi mouhta
dimi mouhta el 14 de Abr. de 2011
sorry, i mean only one face to be colored.
Walter Roberson
Walter Roberson el 14 de Abr. de 2011
Matt, patches are not restricted to 2-D polygons. The vertices of any one face in a patch do not need to be co-planar.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 14 de Abr. de 2011
dimi, how should the second side appear? Should it be like "one way glass", clear when you look at it from one direction but colored when you look at it from the other direction?
Is what you are trying to do something that could be achieved by lighting effects -- e.g., placing a light inside the polyhedra but no light outside?
  1 comentario
dimi mouhta
dimi mouhta el 14 de Abr. de 2011
i just want it to be different. I want to color the front faces (the front face is defined by the polygon normal), using FaceVertexCData and the back faces can be a flat color (grey), or a glass, as you mentioned. How can i do this?

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by