Archived

This topic is now archived and is closed to further replies.

How can I draw a cylinder between two nodes?

This topic is 4961 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Now there are two nodes (x1,y1,z1), (x2,y2,z2). I would like to draw a cylinder. The base''s center is (x1,y1,z1), the top''s center is (x2,y2,z2). How can I do that? I glTransfer(x1,y1,z1) and then glRotatef an angle. and then gluCylinder. but I don''t know how to caculate the angle. Thank you.

Share this post


Link to post
Share on other sites