Hi,
I am trying to patch a surface and control colors of each face. I have an mx3 array of faces (fvc.faces), and an nx3 array of vertices (fvc.vertices) and an mx1 array of numbers which represents an intensity for every face (fvc.facevertexcdata). I can set a colormap and map the surface as with a jet colormap as follows:
g = colormap(jet(128)); h = patch(fvc) shading flat
This gives me the surface with colors of each face mapped to this jet colormap. However, I would like to manually change some of the faces, for example, I want to make the color of face 10 black, while not changing anything else. I am not having success doing this. Since fvc.facevertexcdata is a 1D array, I cannot change a particular face to an RGB vector. What I was thinking is somewhere matlab must store the rbg values for each face when it applies the jet colormap. If I can get to this I think I could change a face color individually and set this mx3 array as fvc.facevertexcdata. I just don't know where to find where matlab stores this data when matlab applies the colormap to the facevertexcdata I have.
If anyone has experience with this I would greatly appreciate any help.
Thanks
Best Answer