@chris Thanks for the reply. I knew their was an easier way to do it! The mesh recolouring works well and is displaying as intended, but I don’t think the average view is correct.
In your example, you are getting the average of the average. Unless all the surfaces have the same number of analysis points - this is going to give false results. For example, if you run it on just one building brep, the average is 46.2%. (My model might be slightly different to the one previously uploaded). This sounds like the correct value.
If you re-run the analysis using the faces from the brep grafted, the average is 29.9%. This doesn’t look right as I believe it is the average of the average (as per your example).
Flattening the input, the average is 46.2%. This sounds like the correct value.
So to run over multiple breps, I think we need to do something like this. ‘Debrep’ to get the number of faces per brep. Flatten the input. Run analysis but then use ‘pointIsVisible’ output to reconstruct the results for the average view . The Ladybug output will be the average view per development (all breps). By partitioning the results first (based on the number of faces per brep), then working out the average, will give you results per building. Using this method we get 46.2% for the first building and the development average matches the ladybug output.
Do you agree with this logic?
Also, is it fair to say that the sunlight hours analysis and radiation analysis components behave in the same way in terms of geometry input and results?