Hexahedron volume plot

I have found a way to get the color value for each vertex position of a mesh element. I took average of color values of all elements adjacent to a vertex as color of that vertex.

Now i have color value for each vertex in mesh element.

  • Can it be done that i subdivide/tesselate these Hexahedron elements into small cuboids :ice: and interpolate these colors to cuboids vertices and get volume plot of these cuboids and then stitch together ? My mesh has these two types of many Hexahedrons.
    for element(g,1)
    for element(g,2)