Using NXOpen, is there an effective mechanism to quickly query the elements with free faces of a mesh?
I have a 3D mesh on a block, I wish to identify the elements on the faces.
What you really need to do is create your own element face class, then loop through all elements in the mesh creating all of the element face objects for each. Any element face object that ocurrs only once is a free face.
you could use something like this:
For Each Obj As TaggedObject In SelectedFaces 'Get all Nodes on a Polygon Face: Dim relatedNodeMethod1 As CAE.RelatedNodeMethod relatedNodeMethod1 = theSimPart.SmartSelectionMgr.CreateRelatedNodeMethod(DirectCast(Obj, CAE.CAEFace))
'Get all Elements on a Polygon Face: Dim relatedElementMethod1 As CAE.RelatedElemMethod relatedElementMethod1 = theSimPart.SmartSelectionMgr.CreateRelatedElemMethod(DirectCast(Obj, CAE.CAEFace)) Next
For each selected Polygon Face you will then have obtained all Elements and Nodes.
With this info you can then (not really performance oriented) determine the Element Faces which attach to the Polygon Face.