[Python] Name edges in a CAD model using Python

Discussão em 'Python' iniciado por Stack, Agosto 26, 2025.

  1. Stack

    Stack Membro Participativo

    I am looking for a way to programmatically identify and name edges in a CAD model (ideally in .step format), preferably using python. Ideally, the logic to identify and name the edges would be based on the name of the faces.

    My best bet is to use pythonocc to open, read and modify the file. I have tried mainly using the TopExp_Explorer but I haven't achieved my goal or any intermediate ones apart from opening the file.

    Any help or hint would be appreciated to:

    • List the faces and their names
    • Identify edges connected to a face
    • Name the edges

    Alternatively, if someone can point me in the right direction in the documentation that would be helpful as well. I am happy to consider any open-source alternatives from pythonocc if pertinent.

    I can provide simple example CAD models to show what I am trying to achieve.

    Continue reading...

Compartilhe esta Página