|
如果想用表达式来创建,这样写应该没问题
: S- _6 d/ L4 l. ddouble origin[3] = {0.0,0.0,0.0};" E- K$ t. E- r; n8 J: ~
char *hight_exp = "hight=500.0";
7 Y. n- ^) G* X; p; r( e9 s UF_MODL_create_exp(hight_exp);
7 q& E* \6 e9 T2 W. `( v5 K char *diam[2] = {"base=60.0","top=20.0"};
6 H) U& c& Y0 @% m( h2 s UF_MODL_create_exp(diam[0]);! t5 E( d" J: t1 `
UF_MODL_create_exp(diam[1]);- i4 D0 V7 w T: S" s% y0 F
double direction[3] = {0.0,0.0,1.0};8 K7 }; k- {% o
char *p_exp_str[3] = {"hight", "base", "top"};* t3 \( H" `! e1 U
tag_t cone_tag;; _: T3 `* x& t6 p* M# C
UF_MODL_create_cone1(UF_NULLSIGN,origin,p_exp_str[0],&p_exp_str[1],direction,&cone_tag); |
|