马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如你说我设置了个全局变量接收用户数据作为立方体的边,可是结果出不来。问题在哪儿呢?
char b[3];
static void do_it(void)
{
UF_FEATURE_SIGN sign = UF_NULLSIGN;
double block_orig[3] = {0.0,0.0,0.0};
//char *block_len[3] = {"50","50","50"};
char *block_len[3] = {b,b,b};
tag_t blk_fea;
/* Block */
UF_MODL_create_block1(sign, block_orig, block_len, [$blk_fea)]
}
int CHANGE_input_cb ( int dialog_id,
void* client_data,
UF_STYLER_item_value_type_p_t callback_data)
{
UF_STYLER_item_value_type_t value;
if ( UF_initialize() != 0)
return ( UF_UI_CB_CONTINUE_DIALOG );
/* ---- Enter your callback code here ----- */
value.item_id=CHANGE_BREITE;
value.item_attr=UF_STYLER_VALUE;
value.indicator=UF_STYLER_STRING_VALUE;
UF_STYLER_ask_value(dialog_id,[$value)]
value.value.string=b;
UF_STYLER_free_value([$value)]
UF_terminate ();
return (UF_UI_CB_CONTINUE_DIALOG);
} |