Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

How to get the node on the edge of a face after calculating mesh?

yuhan_quan
Observer

How to get the node on the edge of a face after calculating mesh?

yuhan_quan
Observer
Observer

Hi, everyone

 

After calculating the mesh using createMeshCalculator method for a BRepFace, I get a TriangleMesh class including some nodes and triangle faces.

Now I would like to know, for the nodes in TriangleMesh, how do I know which nodes are located on the edge of this face(BrepFace.edges), and which BRepEdge they are on for each node? In other words, for each edge, how can I get the indexes of all nodes of mesh on it in order?

 

0 Likes
Reply
Accepted solutions (1)
267 Views
2 Replies
Replies (2)

BrianEkins
Mentor
Mentor
Accepted solution

Unfortunately, you can't. There is no topological information provided with the mesh. The only workaround I see is to get the mesh of the face you're interested in and the mesh from the face that shares the edge you're interested in. If you geometrically compare the location of the nodes in each face, the nodes from one face that are at the same position as a node on the other face will be along the shared edge.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes

yuhan_quan
Observer
Observer
Thanks for your help! I have solved this problem by following your advice.
0 Likes