I usually do something like this:

for each edge in mesh
find the two vertices that make up the edge, v0 and v1
duplicate and move the object to v0
find the vector between the two points, Ve
rotate the object by the angle between the axis of the object (usually x:
<<1.0, 0.0, 0.0>>) and Ve
scale the object by the magnitude of vector Ve

I think that there are some scripts on creativecrash that let you do
something similar for the purposes of rendering a wireframe by placing
cylinders at edges and spheres at vertices.
--
Michiel

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to