Hi there, I’m doing a study of a fully glazed observation tower, and I need to calculate the % of glazing that is within each orientation zone. I have a very simple script on grasshopper that renders the surfaces in a rhino model in a colour relating to its orientation. Can anyone help with improving the script so that, for example, I can choose to select surfaces that are in the NE-NW quadrants (45-315 degrees). So far, I have just been judging the colours by eye, which is good enough for now but not as accurate as I’d like it to be.
Without having access to your geometry, I would say that you can obtain what you want by obtaining the normal vectors of all your meshes, and then removing the Z value from them, as you only care about the orientation on the XY plane. This is what I am doing in my case, but all my surfaces are vertical.
With this, you define the lower value and the upper value of your domain of angles to select only the surfaces inside that domain of angles (45 to 315 in your case).
Hi Fernando,
Just wanted to check with you - the legend that comes out of the ColourFaceAttr component doesn’t match up with the colour of surfaces that are shown for a specified domain range (for example this is set at 45-270 degrees). Is this an error somewhere that you can think of ?