Rhino Grasshopper

hello,
maybe someone can help me or has an idea of how or whether this works at all.
as an example, i have a study here for the sun hours, where i have a “Nullfall” (i.e. existing building) and a “Planfall” (old building is demolished and a new one is to be built). i have then determined where i fall below a value for the sunshine duration of < 1.5 hours for the first time.
to create an overview plan of the buildings, i always click on all the buildings and place them on a new level. but this is often very time-consuming. my question now would be whether it is possible to display all the buildings that have a red area (first time < 1.5 hours) in one color and all the buildings that do not have a red area in another color in order to then create an overview plan with the top view? thank you very much for your help.
best regards, michael
Test.gh (2.2 MB)
Test.3dm (921.9 KB)

Your meshes are unwelded.
This results in a way heavier computation.
Maybe there is a way to avoid this? I don’t know Ladybug.


I welded your meshes.
Also, as your mesh is a single object, to work per-building I used “split disjoint mesh” component.

With a c# script we can iterate through all the mesh vertex colors of a mesh and find if there is some red (255,0,0).

Test.gh (2.2 MB)

Hi @maje90 ,
thanks a lot! that looks good!
i also tried it with another model, but unfortunately it doesn’t recognize all the red areas or marks the buildings that are affected in red. can you change or adapt something in the script or should i send you the example if you could help me again? would be great!
and about the point with the undwelded meshes. i’m still relatively new to rhino and grasshopper and am constantly learning. can you briefly explain what it does or helps me to weld the meshes? that sounds interesting that rhino then no longer calculates for so long.
many thanks!
kind regards, michael

Yeah, try to attach it here and let’s see.

thank you very much for your help. here are the files. for some buildings, only red areas are shown slightly enlarged.
further on the test(2) file (yellow area) i have tried another simulation. here i would like to show all buildings that are affected by the additional shading (black areas) due to the ‘plan case’ in one colour (red, blue, yellow, depending on the case). it would be great if you could help me with this too.
thank you very much for your help, michael


Test (1).3dm (4.4 MB)

Test (1).gh (16.5 MB)

Test (2).gh (16.6 MB)