Esri / cityengine-sdk

CityEngine is a 3D city modeling software for urban design, visual effects, and VR/AR production. With its C++ SDK you can create plugins and standalone apps capable to execute CityEngine CGA procedural modeling rules.
https://esri.github.io/cityengine/cityenginesdk
Apache License 2.0
204 stars 64 forks source link

How to call generate for each initial shape in parallel? #25

Closed c00284934 closed 9 years ago

c00284934 commented 9 years ago

Dear experts, if the "numberWorkerThreads" can not generate initial shapes in parallel, then how to achieve it. Could you give me some tips on how to use the cityengine sdk to call generate for each initial shape in parallel ?
Looking forward to your reply.

mistafunk commented 9 years ago

hi,

just call the generate function for each initial shape in parallel.

best, simon

c00284934 commented 9 years ago

Thank you! Do you mean that I should call the generate function for each initial shape by multiple threads ?

mistafunk commented 9 years ago

yes, this is supported. make sure that the callback implementation you are using for the parallel generate calls is thread safe.

best, simon

c00284934 commented 9 years ago

OK,thank you!