ehmdjii
05-11-2007, 01:22 PM
hello,
i just want a little script that gives me all the vertices from a mesh in maya 8.5.
but when i run the following on a mesh consisting just of three triangles (5 vertices) i get 26 vertices.
$verts = "myShape.vtx";
print (size($verts));
26
i guarantee the mesh has only 5 vertices and if i look at the vertices more closely, they look like this:
vert 0 ( 0.4971784949 0.0122718811 )
vert 1 ( 0.9999041557 0.01259565353 )
vert 2 ( 1.000000119 0.9877278805 )
vert 3 ( 9.161233902e-005 0.01259350777 )
vert 4 ( 1.192092896e-007 0.9877278805 )
vert 5 ( 1.192092896e-007 0.9877278805 )
vert 6 ( 1.192092896e-007 0.9877278805 )
vert 7 ( 1.192092896e-007 0.9877278805 )
vert 8 ( 1.192092896e-007 0.9877278805 )
....
vert 25 ( 1.192092896e-007 0.9877278805 )
you can see that starting from the 6th vertex, all values are the same.
these are the UVs for example.
where is the problem?
how can i get the correct number of vertices on a mesh?
thanks a lot!
i just want a little script that gives me all the vertices from a mesh in maya 8.5.
but when i run the following on a mesh consisting just of three triangles (5 vertices) i get 26 vertices.
$verts = "myShape.vtx";
print (size($verts));
26
i guarantee the mesh has only 5 vertices and if i look at the vertices more closely, they look like this:
vert 0 ( 0.4971784949 0.0122718811 )
vert 1 ( 0.9999041557 0.01259565353 )
vert 2 ( 1.000000119 0.9877278805 )
vert 3 ( 9.161233902e-005 0.01259350777 )
vert 4 ( 1.192092896e-007 0.9877278805 )
vert 5 ( 1.192092896e-007 0.9877278805 )
vert 6 ( 1.192092896e-007 0.9877278805 )
vert 7 ( 1.192092896e-007 0.9877278805 )
vert 8 ( 1.192092896e-007 0.9877278805 )
....
vert 25 ( 1.192092896e-007 0.9877278805 )
you can see that starting from the 6th vertex, all values are the same.
these are the UVs for example.
where is the problem?
how can i get the correct number of vertices on a mesh?
thanks a lot!
