Grasshopper

algorithmic modeling for Rhino

Hi there,

I've been using the exposure component for some sun simulations. It's calculating solar load on a building at different times of the year and for different neighbouring building conditions.

Into the 'exposure mesh' imput, I've got a mesh with 30 faces.
Into the 'obstructing geo' input I've got a data structure {[0-1]} containing lists of geometry to use as obstructions. Currently I have 2 branches going in here while i'm testing it.
Going into the 'ray direction' input is a similar data structure containing lists of vectors {[0-11]} (one branch for each month, each branch has multiple items) going in here.

If I set the exposure component to shortest or longest list, it gives out 12 branches with 30 items in each branch (for each mesh vertex).

If I set the component to 'cross multiply', it gives out 24 branches with 30 items in each. However, the 24 branches simply go from {0} to {23} which means that I can't separate out the results from the two sets of obstructing geometry.

Is it possible to a) get the exposure component to give the correct output, or b) reassemble the output into a {[0-1];[0-11]} format?

Thank you for your help!
Steven

Views: 635

Replies to This Discussion

I'd be interested to know if someone has a better solution to this problem, but in situations like this I tend to use a combination of the list length component and the duplicate data component.

for example:

Exposure mesh: single mesh.
Ray Direction - Grafted List of vectors
Obstructing Geometry: Take a list length component and get the list length of the grafted list of vectors.
Connect your flat list of obstructing geometry to a duplicate data component, and connect the list length component to its "N" input.

This should allow you to get all the necessary levels of data hierarchy.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service