Hello Dears,
I have a shape defined as follows which I want to convert it to Iges file. I used Igesout function forwarded by Daniel, but I found some difficulties, how could I solve it?
k1=3; k2=2; k3=2/30;
rx; ry ; rz;
[theta, beta]=meshgrid((pi/2):(pi/100):(pi/2),0:(pi/50):2*pi);
%% define purturbation function
g=(ry/10)*(abs(sin(k1.*beta/2))+ 2.^(k2.*theta) 2.^(k3.*theta)); % the partition of the fruit is twice the costant inside the sine function
%% x,y,z values
x=rx.*cos(theta).*cos(beta);
y=ry.*sin(theta)+ g; % including the concave shape of a tomato
z=rz.*cos(theta).*sin(beta);
I tried different options like:
xx=reshape(x,1,[ ]);
yy=reshape(y,1,[ ]);
zz=reshape(z,1,[ ]);
igesout(XYZ,'mukera')
but it does not work for me. What is wrong with my usage? or do I need exra file?
thanks
