How to Draw Arbitrary 3D Graphics in CST?

Status
Not open for further replies.

mfhsu

Newbie level 3
Joined
Sep 27, 2007
Messages
4
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,302
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.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…