Grasshopper

algorithmic modeling for Rhino

Get the lenght of each segment in a divided line

Hi everyone!

In order to divide a facade into different parts (vertical separation), a line is divided into n number of segments, that can vary according to a slider. Some parabolic equations are used so the length of each segment is increasing. How can we get the lenght of those segments in order to then be able to input a % of the lenght, to control how much glazing vs full panel we want between each two points? It has to be automatic, linked to the number of points that are increasing or decreasing according to the slider.

Thanks for your help!

Views: 379

Replies to This Discussion

The length domain component is probably the easiest. It would be helpful if you posted a definition.

Here is the file. The aim is to get the distance between the "final points", or to be able to link point 0 to 1, 1 to 2, 2 to 3;... until the maximum varying with the red slider; to then create a shading length according to a percentage of this length. Thanks!

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service