Passing OpenMesh data/object/pointer between C++ and Python (bidirectionally)
Hi, I am looking at OpenMesh as a possible in-memory polygonal mesh representation for a library I am writing. However, there will be instances where some of the computation are more easily done in C++ but some are easier in Python hence the need to pass data between them. Is OpenMesh suitable for such use case ? Is there some code I can see where the bidirectional passing of such OpenMesh data is happening so that I can learn from it? Cheers -- Nicholas Yue Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5 Custom Dev - C++ porting, OSX, Linux, Windows http://au.linkedin.com/in/nicholasyue https://vimeo.com/channels/naiadtools
Hi, I wrote an OpenFlipper Plugin some years ago, where you were able to manipulate the OpenMesh Object created by OpenFlipper (C++ OpenMeshObject) with the Python bindings and vice versa. You can find the project here: - https://github.com/TinyTinni/OF_Plugin-PyMesh Note that I used a slightly modified OpenMesh-Python Version. The changes can be found here: - https://graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/merge_reques... The patches never got merged, but got re-implemented? See the end comments of the MR. Due to time constraints, I never looked into OpenMesh 8.1, but since OpenMesh-Python just supports 8.0 so far, everything should still work with 8.0. Regards, Matthias Möller On 02/12/2020 05:49, Nicholas Yue wrote:
Hi,
I am looking at OpenMesh as a possible in-memory polygonal mesh representation for a library I am writing.
However, there will be instances where some of the computation are more easily done in C++ but some are easier in Python hence the need to pass data between them.
Is OpenMesh suitable for such use case ?
Is there some code I can see where the bidirectional passing of such OpenMesh data is happening so that I can learn from it?
Cheers -- Nicholas Yue Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5 Custom Dev - C++ porting, OSX, Linux, Windows http://au.linkedin.com/in/nicholasyue <http://au.linkedin.com/in/nicholasyue> https://vimeo.com/channels/naiadtools <https://vimeo.com/channels/naiadtools>
_______________________________________________ OpenMesh mailing list -- openmesh@lists.rwth-aachen.de To unsubscribe send an email to openmesh-leave@lists.rwth-aachen.de https://lists.rwth-aachen.de/postorius/lists/openmesh.lists.rwth-aachen.de
participants (2)
-
Matthias Möller
-
Nicholas Yue