×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

UG/OPEN - request faster way to collect face

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

RE: UG/OPEN - request faster way to collect face

If by some chance the point is a point feature (i.e. point on face) then it would be a simple task to get the point feature parent.

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources