×
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

Face centroid

Face centroid

Face centroid

(OP)
Hello.

I'm using NX7.5.3. I have body, that has mirrorplane. This means that I have two sets of corresponding faces (on the one side and "mirrored" side). Let's assume that the body is defeatured and those face are not planar (just 2 sets of body faces).
I need to match each face wfrom one set to it's corresponding mirroded copy. I thing the easiest way will be reading face centroid, mirroring the point and looking for face with centroid nearby (searching in second face set). I found that if user manually select a face and use Info -> Object it draws normal vector at centroid (It seems to me to be a face centroid. At least it seems to be characteristic enough for me.)
Question:
Is there a way to get this information using VB Journal script? Or any other methon to get face characteristic point or centroid?

Pawel S.

RE: Face centroid

Do you have only the 2 bodies, or do you also have the mirror plane to work with (a datum plane or other planar object)?

www.nxjournaling.com

RE: Face centroid

(OP)
Lets say it is one body + mirror plane.

RE: Face centroid

Originally, you wanted to find corresponding faces in the mirror body copy.

What do you want to do with the one body and mirror plane?

www.nxjournaling.com

RE: Face centroid

(OP)
I originally wanted to match faces from one side of the body with corresponding faces on the other side.

Anyway i managed to solve this by searching for mirrored copy of face center. I calculated the center using this code:

CODE

Dim theScalar As Scalar = workPart.Scalars.CreateScalar(0.5, Scalar.DimensionalityType.None, SmartObject.UpdateOption.AfterModeling)
Dim thePoint As Point = workPart.Points.CreatePoint(targetFace, theScalar , theScalar , SmartObject.UpdateOption.AfterModeling)
return thePoint.Coordinates 

RE: Face centroid

(OP)
Not the way I wanted to solve it, but yes, solved.

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