You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thank you for the library development.
I want to use this lib in my python project. In addition to 3D geometry (draco mesh) I have to serialize/deserialize custom metadata attached to the mesh in the draco file. I see that current version of DracoPy doesn't support custom metadata. So I decided to make my own implementation of this in DracoPy.pyx file. And here I bumped into the problem:
I implemented recursive metadata struct.
in DracoPy.h:
Also I added a function (to DracoPy.h) parsing draco metadata to MetadataObject and pass it into encode_mesh function.
And when I try to compile my solution I got cython compilation error: RecursionError: maximum recursion depth exceeded while calling a Python object
I know declaring recursive structures is possible in Cython.
But it seems impossible to declare EXTERNAL recursive structures in Cython (I didn't find anything about it in google)
So my question is do you have ideas how to forward draco structure Metadata to Python?
The text was updated successfully, but these errors were encountered:
Hi!
First, thank you for the library development.
I want to use this lib in my python project. In addition to 3D geometry (draco mesh) I have to serialize/deserialize custom metadata attached to the mesh in the draco file. I see that current version of DracoPy doesn't support custom metadata. So I decided to make my own implementation of this in DracoPy.pyx file. And here I bumped into the problem:
I implemented recursive metadata struct.
in DracoPy.h:
And DracoPy.pxd
Also I added a function (to DracoPy.h) parsing draco metadata to
MetadataObject
and pass it intoencode_mesh
function.And when I try to compile my solution I got cython compilation error:
RecursionError: maximum recursion depth exceeded while calling a Python object
I know declaring recursive structures is possible in Cython.
But it seems impossible to declare EXTERNAL recursive structures in Cython (I didn't find anything about it in google)
So my question is do you have ideas how to forward draco structure Metadata to Python?
The text was updated successfully, but these errors were encountered: