christophwaibel / GH_Solar_V2

Solar irradiation model plug-in for Rhinoceros Grasshopper. Version 2.
GNU General Public License v3.0
5 stars 0 forks source link

Rhino.geometry multi-threading #9

Closed christophwaibel closed 4 years ago

christophwaibel commented 4 years ago

Currently, all rhino.geometry operations are non-parallelised, because I thought they are not thread-safe. But: https://discourse.mcneel.com/t/grasshopper-python-parallel-implementation/75213

"No, only the Rhino.Geometry namespace of RhinoCommon is intended for thread safe usage https://developer.rhino3d.com/api/RhinoCommon/html/N_Rhino_Geometry.htm 13"

Try it out! mesh-ray intersections in CShadow.cs

christophwaibel commented 4 years ago

yeah it works.

CShadow.CalcSpecularNormal5(...) needs to be translated to MT

christophwaibel commented 4 years ago

even when MT=false, it uses MT after the Rhino.Geometry simulations. Maybe in (3/4) CalcIrradiation? Or in (4/4) Writing Data to Rhino?