ansys / pyprimemesh

Pythonic Meshing Client for Ansys Prime Server
https://prime.docs.pyansys.com/
MIT License
19 stars 9 forks source link

Add possibility to extract more vertices information #789

Open StefanThoene opened 2 months ago

StefanThoene commented 2 months ago

📝 Description of the feature

allow a user to extract the coordinate of a vertex/node (x/y/z) and the orientation of the surface normal (unit vector) (x/y/z).

💡 Steps for implementing the feature

method to return a list of al vertice coordinates e.g.

vertices : List[float] Coordinates of all points [p1x, p1y, p1z, p2x, p2y, p2z, ...].

method to return triangle/mesh information

facets : List[int] Indexes of points for all triangles [t1_1, t1_2, t1_3, t2_1, t2_2, t2_3, ...].

method to return normal information

normals: List[float], Normal vector for all points [n1x, n1y, n1z, n2x, n2y, n2z, ...].

the information of all 3 information is related and should be best case returned togethe

🔗 Useful links and references

https://github.com/ansys/pyprimemesh/discussions/777