* color1 = (0, 0, 1) → blue for the lowest (bottom) vertices
* color2 = (1, 0, 0) → red for the highest (top) vertices
Vertex colors is linearly interpolated smoothly along the cow’s z-axis.
So vertices at the minimum z get pure blue and and vertices at the maximum z get pure red.
My explanation : (By adjusting the values of the R_relative and T_relative matrix - I was able to obtain output):
* R_relative (The deteminant of this matrix must not be zero): This is used to rotate the axis. By default is [[1, 0, 0], [0, 1, 0], [0, 0, 1]] - this points in left, up and z direction.
* T_relative: This is to move the object front, back, left and right.
* Rending quality of Meshes is far higher than Mesh.
* Rending speed of Point Cloud is faster than Mesh. So rending Mesh fast can prove to be expensive.
* Memory useage by Point Cloud is less compared to Mesh.
* Point Clouds are easier to use and lightweight - Mesh require faces to be well defined.
* Meshes supports lighting, and point cloud needs needs estimated normals or splatting.