Hi to all.
I have written a small Python script that creates a simple 2D surface (square) and then loops over its constituent elements, namely faces, wires, edges and vertices, to retrieve some basic information. I would like to access (if possible) the following information:
- Face label: Meaning an index/number identifying the face. Is there such a thing?
- Face connectivity: Meaning the ordered list of vertices making up the face.
- Edge label: Same as face label
- Edge connectivity: Same as face connectivity
- Vertex label: Same as face label
- Vertex coordinates: The X-, Y- and Z-coodinates that define the vertex location in space.
I have tried to retrieve this information using the TopExp_Explorer class from the OCC.Core.TopExp package but cannot go beyond the pure shape abstraction. Attached you can find the Python script. Any feedback or comment would be immensly appreciated.
Great to find this community!
Cheers
I have written a small Python script that creates a simple 2D surface (square) and then loops over its constituent elements, namely faces, wires, edges and vertices, to retrieve some basic information. I would like to access (if possible) the following information:
- Face label: Meaning an index/number identifying the face. Is there such a thing?
- Face connectivity: Meaning the ordered list of vertices making up the face.
- Edge label: Same as face label
- Edge connectivity: Same as face connectivity
- Vertex label: Same as face label
- Vertex coordinates: The X-, Y- and Z-coodinates that define the vertex location in space.
I have tried to retrieve this information using the TopExp_Explorer class from the OCC.Core.TopExp package but cannot go beyond the pure shape abstraction. Attached you can find the Python script. Any feedback or comment would be immensly appreciated.
Great to find this community!
Cheers