turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Siemens PLM Community
- NX Customization and Programming
- NX Programming & Customization Forum
- Extreme points/Convex Hull of a CAEFace

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-26-2017 04:45 AM

Hello.

With the help of this forum, I managed to obtain the list of nodes of the face of the FEM elements included in a CAEFace (see this post: https://community.plm.automation.siemens.com/t5/NX-Programming-Customization-Forum/NXOpen-Access-the... )

The next step is to draw a polygon on top of that face. I have the code working using UDOs to do this, but the call to UserDefinedObjectDisplayContext::drawPolygon(std::vector<NXOpen::NXPoint3d>) needs the points of the polygon to be ordered, so I get something very ugly because I can't control the order of the nodes obtained with the SmartSelectionManager.

Therefore, now I need the list of nodes of a CAEFace in an ordered manner.

Is there a way, in NXOpen, to:

- obtain the extreme nodes included in the CAEFace? or
- method to calculate the Convex Hull of a set of NXPoint3d?

If not, I will need to write myself an algorithm to calculate the convex hull of the set of points. I came across an older post here, but it was suggested to use the convex hull algorithm included in scipy, but I work in C++, so I don't want to use Python.

Thank you!

Follow Siemens PLM Software

© 2018 Siemens Product Lifecycle Management Software Inc