if (!UF_CALL(UF_UI_set_sel_mask(
select, //输入选择的点
UF_UI_SEL_MASK_CLEAR_AND_ENABLE_SPECIFIC, //面动作
4, //Number of mask triples
mask) //Array of mask triples
))
return (UF_UI_SEL_SUCCESS);
else
return (UF_UI_SEL_FAILURE);
}
static int deletecurve(char *prompt, tag_t **curves)
{
int
resp,n,ii;
UF_CALL(
UF_UI_select_with_class_dialog( //Select multiple objects with the class selection dialog.
"Select curves", //Cue line message to display
prompt, //Dialog Title or Null提示
UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY, /*int scope,选择范围
Selection scope
UF_UI_SEL_SCOPE_NO_CHANGE
UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY
UF_UI_SEL_SCOPE_WORK_PART
UF_UI_SEL_SCOPE_WORK_PART_AND_OCC*/
mask_for_curves, //按分类选择
NULL, //User data for initialization procedure or NULL
&resp, /*UF_UI_BACK
UF_UI_CANCEL
UF_UI_OK*/
&n, //被选择对象的个数
curves) //被选中对象标示的数组
);
for (ii = 0; ii < n; ii++)
UF_CALL(UF_DISP_set_highlight((*curves)[ii], 0));
return n;
for ( n=0;n<n_curves;n++ )
{
tag_t
last,
offset,
start;
UF_CALL(UF_SO_create_scalar_double( //Creates a double scalar.
curves_id[n], //Tag of object in part
UF_SO_update_after_modeling, //Update option
0.0, //Real constant常数
&start) //Pointer to double scalar
);
UF_CALL(UF_SO_create_point_on_curve( //Creates a smart point via a curve and scalar value t
curves_id[n], //Tag of object in part
UF_SO_update_after_modeling, //Update option
curves_id[n], //Tag of curve
start, //Tag of scale
&last) //Pointer to tag of point
);
UF_CALL(UF_SO_set_visibility_option( //Sets the visibility option for the specified smart object
last, //Tag of smart object
UF_SO_invisible) //visibility option
);