UpdateData(true);
double translation[3]={0,0,0};
double matrix[16];
FTN(uf5943)(translation, matrix);
tag_t objects[1];
//tag_t body_tag;
//UF_MODL_ask_feat_body(m_surftest, &body_tag);
objects[0]=m_OBJsId3[0];
int n_objects=1;
int move_or_copy=2; //wrhit copy
int dest_layer=-1;
int trace_curves=2;
tag_t copies[1];
tag_t trace_curve_group[1];
int status;
FTN(uf5947)(matrix, objects, &n_objects,&move_or_copy,
&dest_layer, &trace_curves, copies,trace_curve_group,
&status);
uf_list_p_t feature_tag_list;
UF_MODL_create_list(&feature_tag_list);
UF_MODL_ask_body_feats(copies[0],&feature_tag_list );
char str[5];
itoa(m_offset3, str, 10);
char *offset=str;
tag_t feat;
UF_MODL_ask_list_item(feature_tag_list,0,&feat);
uf_list_t features;
features.eid=feat;
features.next=NULL;
UF_MODL_create_feature_offset(offset, &features, &m_OffsetSurf3);
UF_MODL_delete_list(&feature_tag_list); |