I am trying to name the nodes/faces in my obj file. So that after translation when I open the file in forge viewer I should be able to see the same names in model browser. I tried using 'o' parameter for object naming in my .obj file but still, I am seeing names like Node 1, Node 2 .... and so on.
This is my .obj file :
mtllib Classification.mat
v 0.000000 2.000000 2.000000
v 0.000000 0.000000 2.000000
v 2.000000 0.000000 2.000000
v 2.000000 2.000000 2.000000
v 0.000000 2.000000 0.000000
v 0.000000 0.000000 0.000000
v 2.000000 0.000000 0.000000
v 2.000000 2.000000 0.000000
# 8 vertices
usemtl Cone
o Cone
f 1 2 3 4
usemtl Cylinder
o Cylinder
f 8 7 6 5
usemtl plane
o plane
f 4 3 7 8
usemtl Sphere
o Sphere
f 5 1 4 8
usemtl Torus
o Torus
f 5 6 2 1
usemtl BSpline
o BSpline
f 2 6 7 3
# 6 elements
This is my Material file (Classification.mat):
newmtl Cone
Ka 1.00 1.00 1.00
Kd 0.3333333333333333 1.0 1.0
Killum 1
newmtl Cylinder
Ka 1.00 1.00 1.00
Kd 1.0 1.0 0.4980392156862745
Killum 1
newmtl plane
Ka 1.00 1.00 1.00
Kd 0.3333333333333333 0.6666666666666666 1.0
Killum 1
newmtl Sphere
Ka 1.00 1.00 1.00
Kd 1.0, 0.6666666666666666, 0.0
Killum 1
newmtl Torus
Ka 1.00 1.00 1.00
Kd 1.0, 0.3333333333333333, 1.0
Killum 1
newmtl BSpline
Ka 1.00 1.00 1.00
Kd 1.0, 0.0, 0.0
Killum 1
I am using a .zip for translation containing these two files. It would really great if anyone could help me out here ....
Thank You,