Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple scenes #8

Closed
mikedh opened this issue Apr 8, 2017 · 1 comment
Closed

multiple scenes #8

mikedh opened this issue Apr 8, 2017 · 1 comment

Comments

@mikedh
Copy link

mikedh commented Apr 8, 2017

Hi, thanks for the great library!

Someone opened an issue on trimesh about the errors that get printed when you allocate multiple scenes. It's not really a functional problem as pyembree still returns the correct result, I was wondering if there was a procedure or destructor I could call to suppress these warnings?

import numpy as np

from pyembree import rtcore_scene
from pyembree.mesh_construction import TriangleMesh

if __name__ == '__main__':
     triangles_a = np.random.random((10,3,3))
     scene_a = rtcore_scene.EmbreeScene()
     mesh_a = TriangleMesh(scene_a, triangles_a)

     # do something to deallocate here?

     triangles_b = np.random.random((10,3,3))
     scene_b = rtcore_scene.EmbreeScene()
     mesh_b = TriangleMesh(scene_b, triangles_b)

produces this warning:

ERROR CAUGHT IN EMBREE
ERROR: Invalid operation
ERROR MESSAGE: b'/home/benthin/Projects/embree_v251/kernels/common/rtcore.cpp (157): already initialized'

Best,
Mike

@scopatz
Copy link
Owner

scopatz commented Apr 11, 2017

Hi @mikedh, Pull requests are very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants