cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Creo 10 toolkit: detecting if an edge is inner or outer edge

C_TK
4-Participant

Creo 10 toolkit: detecting if an edge is inner or outer edge

Hello,
in a toolkit application I need to know if an edge is an inner or an outer edge.

In the attachment I have an example what I mean with inner and outer edge.
What I have up to now:
I use visit functions to get all the edges in the part model. A function to determine if the edge is "inner" or "outer" seems not to exist (I found none). But there is the function ProEdgeNeighborsGet(), which has the two surfaces for every edge as an output parameter. Is ist possible to get the inner/outer information with this two surfaces? Or is there another procedure to get the information.

Any help would be appreciated.

regards HP

 

 

 

6 REPLIES 6
RPN
17-Peridot
17-Peridot
(To:C_TK)

An edge has always 2 surfaces attached. The neighbor function will return this 2 ones. Next you may want to check the surface type. For a planar one, you need know two compare the angles of this 2 normals. For me, based on the picture you have 0-180 and 180-360 degree to compare.  But you know your requirements much better.

 

FV
17-Peridot
17-Peridot
(To:RPN)

I don't think there are  terms 'inner edge' or 'outer edge' in pro/toolkit. there are terms "inner contour" and "outer contour". take a look at the user guide 'Geometry Traversal' chapter for the explanation.

 

 

 

  

C_TK
4-Participant
(To:FV)

Inner/outer contour information of the function ProContourTraversalGet() is not that what I need.

Imagine a cube with a borehole. The circular contour of the hole is the inner contour and the quadratic contour of the cube surface with the borehole is the outer contour. But the edges of the circular contour (circular arcs) are "outer edges" in my sense.

YaroslavSin
17-Peridot
(To:RPN)

Some additional thoughts...

Inner edge - normals are crossing

Outer edge - normals not crossing

img-2024-12-12-09-40-16.png

 

For a non-planar surfaces the algorithm must be different.

FV
17-Peridot
17-Peridot
(To:YaroslavSin)

this makes sense - following the train of thoughts - inner edge replaced by a fillet would make  a concave surface and outer edge would make a convex surface. Is it what you are thinking?

C_TK
4-Participant
(To:FV)

yes, this describes also what I need with other words.

Announcements


Top Tags