Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Face centroid

Status
Not open for further replies.

PawelSulikowski

Aerospace
Jul 23, 2013
12
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.
 
Replies continue below

Recommended for you

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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor