tag_t a_face,a_ptid;
double junk[3],ok_dist;
UF_MODL_ask_minimum_dist(a_face, a_ptid, FALSE, junk,
FALSE, junk, &ok_dist, junk, junk);
這函數我用的多了! 要直接表面id與點id 來求取
如果不用點id 是pt [3]
tag_t a_face;
double pt[3],junk[3],ok_dist;
UF_MODL_ask_minimum_dist(NULL_TAG,a_face, TRUE, pt,
FALSE, NULL, &mini_dist, junk, junk); |