You want to make sure that you associate the correct colors with the correct geometry when baking.
In the example below, baking the output directly from the ladybug windrose component will generate colored meshes. (For some reason I have noticed that my windrose meshes always need to be flipped once they are baked).
You could go the long way, (as I droned on about in my previous post), and continue working with the meshes…or you could take Andrew’s advice and do one or two more steps and bake them as colored hatches. That way you can export the results directly to an AI file.
(the attached definition requires ladybug/honeybee, human tools, and I think UTO mesh edit tools…not sure if the explode and deconstruct mesh components are native or not). I’ve attached the weather file I used.
Steps after the windrose component are as follows: (i’m sure there are other ways as well);
1- explode mesh (prepping data structure of color selection)
2a - decompose mesh faces to extract vertex colors (each face will have a number of vertices, in this case 4, that will all have the same color).
2b - get the outlines/curves of each mesh face
3 - use the SET component to “clean” the color values. (each face has 4 vertices, meshes are “colored” by vertices, so each faces vertices will be the same color. we only need one.)
4 - use Human tools to create color attributes from the cleaned, (with data structure in tact).
5- use Human tools create hatch using mesh face curves and color attributes. Bake into rhino, export as AI file.
WindRoseExampleHatch.gh (53.8 KB)
USA_OH_Akron.725210_TMY2.epw (1.48 MB)
