В Python есть очень удобная библиотека для работы с 3D мешами OpenMesh. is a very powerful library for processing 3D meshes. It provides a wide range of operations for meshes (like creating vertices and faces, manipulation with texture mapping of vertices) and moreover includes handful functions for iterating over adjacent vertices and faces in mesh. OpenMesh has Python version which can be used for fast implementation.
Here I will show how to work with 3D meshes using Python bindings of OpenMesh library.
Install it using pip: