×
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

Finding similar (shared) faces in multi-part NX models

Finding similar (shared) faces in multi-part NX models

Finding similar (shared) faces in multi-part NX models

(OP)
Hi
I am looking for a solution for following problem:
Given: A multi-part NX model with faces already split over intersections to their smallest pieces without more intersection with other bodies.
Desired: Finding similar faces belonging to different parts. By similar I mean those which specify same geometrical region even though their normal vectors might be opposite.
Proper comparison of faces involves lots of type-specific comparison of face definitions and type-specific edge definitions and probably different ways the edges are sorted and direction of each edge. These information might be accessible from UF but not normal NxOpen API and seems too complicated to cover everything. There might already be some method in the API that I am not aware of or some easier way to handle it. Any suggestion?

RE: Finding similar (shared) faces in multi-part NX models

I ran into a somewhat similar problem a while back, in my case it was looking for duplicate faces in a single file (imported from IGES). Your problem is different enough that you won't be able to use my code directly, but perhaps the overall strategy will still apply. I started by getting the bounding box for all the faces, if two bounding boxes overlapped (within a tolerance) then the faces might be duplicates. UF_MODL_compare or UF_MODL_compare_topology was then used to thoroughly check the candidate pairs. It worked for our purposes and was fairly fast.

You can see the code at:
http://nxjournaling.com/content/find-duplicate-she...

www.nxjournaling.com

RE: Finding similar (shared) faces in multi-part NX models

(OP)
Thanks cowski for your precious help. Your code was pretty much what I needed. I adopted that into my java code. However I have a few doubts about the results that I need to verify. Thanks!

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