Segfault when using getEdges() / getFaces() without creating edges/faces first
I tried to play with the functions mesh.getEdges()
and mesh.getFaces()
using the python API. After some trial and error, it seems that mesh.createElementEdges()
/ mesh.createElementFaces()
need to be called prior to using these. If i do not call these in advance, the python session crashes with a segfault.
I think it would be helpful to
- describe that requirement in the function docs of
getEdges
/getFaces
- raise an exception when the edges/faces have not been created to prevent segfaults
Additionally, it would be great if there is a way to check beforehand if the edges/faces have been created already.
Kind regards Tim