mfhsu
Newbie level 3
Hi Everybody,
We can easily draw 2D/3D curves with polygon/spline and some simple 3D solids in CST. But how can we draw an arbitrary 3D surface in CST?
For example, how to put the following Matlab draw 3D surface into CST?
Matlab code:
/---------------------------------------------------------------------
function saddle_surf()
[th,r]=meshgrid((0:5:360)*pi/180,0:.05:1);
[X,Y]=pol2cart(th,r);
Z=X+i*Y;
F=abs( (Z.^4-1).^(1/4));
S=[X( : ),Y( : ),Z( : )];
surf(X,Y,F);
/----------------------------------------------------------------------
Thanks for your reply in advance.
We can easily draw 2D/3D curves with polygon/spline and some simple 3D solids in CST. But how can we draw an arbitrary 3D surface in CST?
For example, how to put the following Matlab draw 3D surface into CST?
Matlab code:
/---------------------------------------------------------------------
function saddle_surf()
[th,r]=meshgrid((0:5:360)*pi/180,0:.05:1);
[X,Y]=pol2cart(th,r);
Z=X+i*Y;
F=abs( (Z.^4-1).^(1/4));
S=[X( : ),Y( : ),Z( : )];
surf(X,Y,F);
/----------------------------------------------------------------------
Thanks for your reply in advance.