马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
功能:先选择边,按下apply按钮后,倒圆角
程序:int BBB_apply_cb ( int dialog_id,
void * client_data,
UF_STYLER_item_value_type_p_t callback_data)
{
char *radius="5";
uf_list_p_t edge_list;
tag_t disp_part;
tag_t feature_obj_id;
/* Make sure User Function is available. */
if ( UF_initialize() != 0)
return ( UF_UI_CB_CONTINUE_DIALOG );
/* ---- Enter your callback code here ----- */
disp_part=UF_PART_ask_display_part();
if(UF_MODL_ask_feat_edges (disp_part, &edge_list)==0)
{
UF_MODL_create_blend( radius,
edge_list,0,
0,
0,
0,
[$feature_obj_id)]
UF_MODL_delete_list([$edge_list)]
UF_MODL_update();
UF_terminate ();
/* Callback acknowledged, do not terminate dialog */
/* A return value of UF_UI_CB_EXIT_DIALOG will not be accepted */
/* for this callback type. You must respond to your apply button.*/
return (UF_UI_CB_CONTINUE_DIALOG);
}
问题:按下apply后没有反应!!! |