How can i load obj models with group information

I want divide head,face and eye ball :-\

Hello,

If you want to create OBJ with polygroups:

  • assign different materials to different polygons of the mesh in 3DsMax or Maya
  • export the mesh to OBJ with “export materials” turned on
  • open the OBJ file in notepad and automatically replace all "usemtl " occurances to "g " (note space at the end in both cases)
  • save OBJ file

All materials will become polygroups.

If you want to make selection based on specific polygroup there are two options.

First option:

  • selection = wrap.selectPolygons(geom)
  • in Polygon selection tab find a combo-box between Shrink and Hide selected buttons. Select a polygroup name from combo-box and click “+” button.

Second option:

Thank you!