Using cylinder to represent robot joint

I'm developing a robot simulation GUI. Each robot link was represent by a stick as shown in figure below:
I wish to use cylinder to represent link joint,as shown in figure below:
I have x,y,z coordinates for point2,point3 and point4. How can i manipulate this data to generate the cylinder?

Answers (0)

This question is closed.

Asked:

on 7 Dec 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!