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!

convert curve to edge

Status
Not open for further replies.

lugan2

Mechanical
Apr 10, 2013
42
Hi All

Please could anyone tell me how to convert a NXOpen::Curve object to a NXOpen::Edge object using NX API?
The reason I am asking is that I want to build two polygons using the curves and do the polygon intersection/union in 2D. I guess the steps will be: curve->edge->face->NX::Feature::Unite()/Intersect(). This is the way how I did through OpenCascade. But I cannot figure out how to do it in NX.
Am I thinking in the right way? Can anyone help please?!

Many thanks!
Gan
 
Replies continue below

Recommended for you

Not sure what, or for that matter, why you want an 'edge'. To say nothing of the fact that there can be NO edge without a body. What is that you think an 'edge' will give you that a 'curve' will not.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
sorry, I might be in the wrong thinking. I think I need to create few curves(edges) in order to build a closed polygon(Body or Face in Nx) and then can use the Boolean operations provided from NX. Because I only found the function NX::Feature::Unite()/Intersect() which does the polygon Boolean operation. Am I right?

Thanks very much for your reply.

Gan
 
NX's boolean features only work on solid bodies. You cannot take 2 closed curve polygons and "unite" them into 1 closed curve region.

As a workaround, you should be able to take each closed curve polygon and extrude them a small distance then unite the resulting solids. From here, you can extract the resulting face/edges that you need.

Or, you may be able to make clever use of the selection functions such as chaining, stop at intersection, and path selection. It may be possible to extract the "united" region from that.

www.nxjournaling.com
 
Thanks for the reply! Sorry for my late response.
So NX cannot do 2D polygon union at all? Oh.... that's a bad news for me...
Yes, the selection function can certainly do that, but it is too troublesome.
I will try to do the extrude and do the unite then.
Many thanks for your reply.

Gan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor