Plotting a 3d cone
215 views (last 30 days)
I am trying to plot a 3d cone. I have the following details about it.
- The coordinates of the vertex.
- the height of the cone and the axis of the cone (the axis is not predefined as x,y,z axis. i have a separate line along which i have to plot the cone).
- The angle at the vertex from the axis. (that is the value of theta and not 2 times theta.
i am trying a lot, but unable to do so. the general cone generators like 'cylinder([0 1])' are not usable for me.
Can anyone give any suggestions ot tips regarding the same?
Matt J on 20 Apr 2021
Edited: Matt J on 20 Apr 2021
the general cone generators like 'cylinder([0 1])' are not usable for me.
I think they are. You just have to reposition the cone with an hgtransform.
axis([-3 +3,-3 +3,-3 +3])