Closed RobinLasserye closed 10 months ago
I have the impression (after my tests) that I need to render my scene for the evaluator to work.
There's no need to render in order to perform a CSG evaluation. It can be performed without a scene, renderer, or anything. It is just important that the Brush matrixWorld
matrices be updated before performing an operation.
So I always get a mesh with empty attributes (array(0)).
Without providing a working example it won't be possible to tell what might be happening here. Make sure you transfer the world matrices to the worker, as well, and that the operations are working without the WebWorker.
Hello,
I'm currently working on a project that requires me to generate intersections. However, I'm using meshes that can be complex and I need to do this on a recurring basis. So I'm looking to use three-bvh-csg with Webworkers.
However, I'm stuck, I have the impression (after my tests) that I need to render my scene for the evaluator to work. But I can't provide my scene in a WebWorker.
So I always get a mesh with empty attributes (array(0)). Is it possible to activate the evaluator outside a render?
Here's the code for my main thread:
And here the code of my WebWorker script: