Hello,

I am trying to obtain the daylight factor diagram using RECOLOR MESH.

I am developing a script that it is possible to change the number of buildings and its dimensions and number of floors. But in the part to evaluate DF, I am having this warning:

- length of the results [=120] is not equal to the number of mesh faces [=4] or mesh vertices[=9].

This is because I have 120 test points but for some reason I can’t have the same value for mesh vertices. I tried flattening the meshes but still didn’t work.

I see that some topics already discussed about this matter but I couldn’t really find a solution for mine.

I send the file here, any help is appreciated. I circled in red the part of DF.

Thank you!!

Radiation analysis 02.gh (817.5 KB)