static tag_t create_rough_offset(tag_t fceTag,double dist,double dvt,double step)
{
UF_MODL_rough_offset_t parms;
tag_t sheetTag (NULL_TAG);//大致偏置面的tag值
parms.entities = &fceTag;
parms.num_entities = 1;
parms.smart_csys = NULL_TAG;
sprintf_s(parms.offset_distance, UF_MAX_EXP_LENGTH, "%lf", dist);
sprintf_s(parms.offset_deviation, UF_MAX_EXP_LENGTH, "%lf", dvt);
sprintf_s(parms.stepover_distance, UF_MAX_EXP_LENGTH, "%lf", step);
parms.surf_method = UF_RSO_SURF_METHOD_ROUGH_FIT; // 曲面生成方法
parms.surf_ctrl_type = UF_RSO_SURF_CTRL_BY_SYSTEM;
parms.u_patches = 1;
parms.boundary_trim = UF_RSO_TRIM_OPT_NO;
UF_MODL_create_rough_offset(&parms, &sheetTag); // 大致偏置ufun
tag_t curr (NULL_TAG);
UF_MODL_ask_current_feature(workPart->Tag(), &curr);
//UF_MODL_ask_feat_body(curr,&curr);
return curr;
}
【UG\NX二次开发】UF 大致偏置(UF_MODL_create_rough_offset)
于 2023-11-10 15:23:53 首次发布