Grasshopper

algorithmic modeling for Rhino

Hi All, 

The attached GH file is designed to calculate the area of the working plane with a direct view of the sky. It names the room being assessed and culls the mesh to values above a defined threshold before displaying this in Rhino. 

Unfortunately, it only works for one reference plane / room at a time. I've tried a bunch of things but am getting nowhere fast. When I select 3no. floorplates for the Test Surface brep, GH reports that the reColourMesh stage fails and is reporting the following: '1. length of the results [=288] is not equal to the number of mesh faces [=864]''. However, I can see that the .pts and .res files both have 864 values each. (288 values is the number for a single room)

I would appreciate help on adapting it to do the following: 

  1. Allow for multiple reference planes / grids in the same model - ie I would like to be able to study any number of rooms in the same model at the same time.  
  2. Label each of the rooms / breps individually - ie room 1, room 2, room 3 etc. 
  3. Calculate the view of sky for each room / reference plane and cull each to the same threshold before displaying. 
  4. Create a list, which I can export / copy to Excel with Room name, total floor area, area above threshold value, ratio of floor area above threshold value.

I would really appreciate any help from you all. 

Many thanks

Nick

Views: 1184

Attachments:

Replies are closed for this discussion.

Replies to This Discussion

Hi Nick,

To use recolor mesh for multiple mesh faces at the same time you either need to join the meshes into a single mesh or remove flatten from analysiResult input. Since you want to set all of them to the same threshold I suggest to join the analysis meshes into a single mesh.

Mostapha

Here you go. You just needed to flatten the results.

You're using an outdated version of Ladybug and Honeybee. I strongly recommend to download the most recent release.

Attachments:

So many thanks Mostapha for the speedy reply.

I've changed it so that the Larger component in the Cull area now takes the input values from the Flatten component you inserted. (I did this as all three rooms were displaying the same area of working plane even after I varied the window configuration to check).  

I've also taken the workplane area directly from the initial meshes output from the generate test points component, as this was previously reporting the combined area of all three rooms. 

So, hopefully the final question is that in the attached example, the Workplane Area Above Threshold panel at the end of the culling process appears to be reporting the combined area of the three rooms above the threshold value. I'm unclear how to make this report the individual value for each room - which is what I really want. 

btw - I hadn't updated the LB & HB versions, as a previous version of the same file developed an error message in the RunDaylightSimulation componen when I did (1. Solution exception:exportTypeFile() takes exactly 4 arguments (3 given)) and I couldn't figure out what was wrong. 

many thanks 

Nick

Attachments:

Hi Nick,

The key is data matching. You can use the original meshes to remove the faces based on the results and then find the area for each surface. Check the attached file for an example.

Attachments:

Brilliant. Thanks Mostapha. 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service