danb3
Mechanical
- Jun 21, 2021
- 8
Hi all,
I have a part that is an Orphan Mesh, and I am writing a python script that creates a Surface on the part. In CAE this is very easy, I can just select the regions for the surface by angle, which selects all of the element faces for me and creates a Surface.
I am trying to replicate this in the script, using 'getElemFacesByFaceAngle', which seems to do a similar thing. However I am struggling to then use this as an input then into the Surface method, which asks for the 6 different element faces(face1Elements, face2Elements etc...). I can then go and loop through all the faces returned by 'getElemFacesByFaceAngle' and find which face they relate to and build the six different face sequences, but this is very slow.
Is there an easier way to use the results of 'getElemFacesByFaceAngle' with the Surface method?
Thanks in advance.
I have a part that is an Orphan Mesh, and I am writing a python script that creates a Surface on the part. In CAE this is very easy, I can just select the regions for the surface by angle, which selects all of the element faces for me and creates a Surface.
I am trying to replicate this in the script, using 'getElemFacesByFaceAngle', which seems to do a similar thing. However I am struggling to then use this as an input then into the Surface method, which asks for the 6 different element faces(face1Elements, face2Elements etc...). I can then go and loop through all the faces returned by 'getElemFacesByFaceAngle' and find which face they relate to and build the six different face sequences, but this is very slow.
Is there an easier way to use the results of 'getElemFacesByFaceAngle' with the Surface method?
Thanks in advance.