|
/*注册孔定位的用户函数*/7 c: E* G9 v) h
int rpo_routine_hole(tag_t obj_id)2 M$ G' Q+ v- N- J) A( _6 }6 _4 ^7 z. t
{7 P3 S+ v% }, j% z U( y
int irc;5 i/ ^% }/ p: W3 w' O& B6 ?) g
uf_list_p_t edge_list;8 h5 k7 u3 }: X
tag_t obj_id_target[1],obj_id_tool[1];0 L3 X0 ]& A0 y, a0 X* H1 J$ P3 |5 d
char *constraint_value[]={"0.0"};
, o& N& B3 n# a4 b4 vchar *constraint_array[]={"PARA_DIST_PARMS"}; s3 w& W: n. _+ Q( \( K+ `
int target_qualifier[]={UF_MODL_ARC_CENTER};
4 Y3 o, r2 I, F: Rint tool_qualifier[]={UF_MODL_ARC_CENTER};
# h( J( v5 K4 D4 sUF_MODL_ask_feat_edges(obj_id, &edge_list );
% w+ H3 Y$ E# C; J7 pUF_MODL_ask_list_item(edge_list, 0, &obj_id_tool[0]);
4 L4 U4 n* }" i; V- ~ _UF_MODL_delete_list(&edge_list);- o+ Z+ o( w" W$ i" D
obj_id_target[0] = target_edge;( E+ x4 v& A+ W& w; L. e1 ?; h& u/ ~
irc=UF_MODL_create_rpo_constraints(obj_id,NULL_TAG,NULL_TAG,obj_id_target,
( z2 j% n7 r: { Ltarget_qualifier,obj_id_tool,tool_qualifier,constraint_value,constraint_array,1);. Y7 h+ l( J& y
return irc;
* J. z* b. f) B} |
|