UG/OPEN - request faster way to collect face
UG/OPEN - request faster way to collect face
(OP)
Hi All,
Does any one has idea how to highlight the face which has a point on it quickly....?
I did the code asking each point and each face using mini. distance or UF_MODL_ask_point_containment but it will take very long time when the model consisted of large number of faces.
I appreciate if anyone has idea to do it quickly....
Thanks all
Gary
Does any one has idea how to highlight the face which has a point on it quickly....?
I did the code asking each point and each face using mini. distance or UF_MODL_ask_point_containment but it will take very long time when the model consisted of large number of faces.
I appreciate if anyone has idea to do it quickly....
Thanks all
Gary





RE: UG/OPEN - request faster way to collect face
If you have multiple bodies then I would suggest using a bounding box for a body so that you can reduce the possible number of points (that lie inside the bounding box) to check against a reduced number of faces (the faces of the body).
Now if you have only one body but many points and many faces we need to avoid as much as possible repeated executing nx methods. That is we need to reduce the number of points and faces to do nx testing. For example one pass might be to get bounding box values for each face. A second pass would associate points with each face where the point lies within the bounding box of that face. It is very likely that any one face could have more than one point within its bounding box. For each face it is a much faster method to find if a point lies on the face.
Hope this makes sense.
Frank Swinkels