How do I map colour onto a mesh grid??

6 views (last 30 days)
kofort
kofort on 23 Apr 2017
Commented: KSSV on 25 Apr 2017
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!

Accepted Answer

KSSV
KSSV on 24 Apr 2017
Have a look on this file exchange; it might be helpful.
  2 Comments
kofort
kofort on 24 Apr 2017
Hi, thanks but I have to use the meshgrid command!
KSSV
KSSV on 25 Apr 2017
Attach the nodes data....

Sign in to comment.

More Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!