ansys / ansys/pyprimemesh

Add possibility to extract more vertices information

Open
#789 2 comments 0 reactions 0 assignees View on GitHub
aps enhancement
Dominant language
Python
Stars
35
Forks
14
Avg merge
3d 5h
Merged PRs (30d)
11

Description

### 📝 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

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named in the issue. Start with the linked discussion #777 and clarify the API contract for vertices, facets, and normals, including how the three lists stay related; done means users can retrieve all requested information together for a mesh.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.