How do I map colour onto a mesh grid??

If I have a cubic meshgrid, made of 27 nodes, (so technically, 8 small cubes), how do I colour each of the small faces of the cube a single colour? Whenever I try using the surf command, with 'FaceColour','Flat', the whole meshgrid disappears.
It's almost meant to be like a 3D version of Tetris
Thanks!

 Réponse acceptée

KSSV
KSSV le 24 Avr 2017

0 votes

Have a look on this file exchange; it might be helpful.

2 commentaires

kofort
kofort le 24 Avr 2017
Hi, thanks but I have to use the meshgrid command!
KSSV
KSSV le 25 Avr 2017
Attach the nodes data....

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Performance dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by