So I have a profile that I am rotating to make a 3D surface like this
a=0.661/0.511;r=2.8179;vo=1;m=0.511;theta=linspace(0,pi);vp=vo./(1+a.*(1-cos(theta)));dOmega=r^2/2.*(vp./vo).^2.*(vo./vp+vp./vo-sin(theta).^2);figureplot(dOmega.*cos(theta),dOmega.*sin(theta),'r','LineWidth',2)
Which produces the following plot
I am trying to make a surface using the cylinder command like this
[X,Y,Z] = cylinder(dOmega.*sin(theta)); figure surf(8.*Z,Y,X)
However, the profile negates the x-part of the 2D profile and instead of rounded ends it comes out pointy as shown below.
Does anyone know how to get around this? Thank you in advance for your help!
Richard
Best Answer