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

specular reflections per obstacle calculated too often #2

Open christophwaibel opened 4 years ago

christophwaibel commented 4 years ago

The routine for calculating specular reflections per specular obstacle is within the loop for each mesh vertex. It should really be somewhere global, because we only need to do this once, if specBounces > 0. Then, per mesh vertex, we can perform the translation of the reflected ray onto the sensor point. E.g. In CCalculateSolarMesh.RunAnnualSimulation, lines 1682-1721.