传面的tag返回相邻面的数量,输出相邻面的容器
int PKAskAdjacentFace(tag_t face_tag,vector<tag_t> &adjfaces)
{
if(!face_tag)return 0;
tag_t ps_tag=NULL;
UF_PS_ask_ps_tag_of_object(face_tag,&ps_tag);
PK_FACE_t face=ps_tag;
PK_FACE_ask_faces_adjacent_o_t options;
PK_FACE_ask_faces_adjacent_o_m(options);
int num=0;
PK_FACE_t *faces;
PK_FACE_ask__faces_adjancent(q,&face,&options,&num,&faces);
if(!num)return num;
for(int i=0;i<num;i++)
{
tag_t obj=NULL;
UF_PS_ask_object_of_ps_tag(faces[i],&obj);
adjfaces.push_back(obj);
}
return num;
}