I have a obj file which contains vertex groups along with the main object. I am trying to assign color to each of the groups tagged through vertex group. What I could find is that in three.js each vertex group is of type Object3D and there is no function like setColor, instead each such children has two children of the type THREE.Mesh and it has setColor function accessed through a material property. I am not clear about this hierarchy. How do I set color to each vertex group.
One more thing earlier version of three.js had different hierarchy of object children relationship. please provide me some input. I am profoundly looking for a solution