Grasshopper

algorithmic modeling for Rhino

Hi, I need some help, 

The thing i have to do is divide a line parametrically,and from each point create a line, which connect with the curve created in rhino.

I divided the line, and created a a set of planea which are crossing the curve. 

Than I created a lines linking points from both geometries.

The problemis that my task was only to create a set of parallel lines, but the line command creates conections between every single point. Does anybody know how to eliminate other lines and leave only a set of parallels ?

 

Here is the code

Can anybody tell me how to modyfy the code to leave only this lines i marked with blue?

Thanks in advance for help !

Views: 4766

Replies to This Discussion

Flatten the point list entering the final line component.  ie. right click on the 'A' input and choose 'Flatten' in the dialogue box.

 

Chris

Thanks a lot Chris 

It is working, but there are still a lines at the begining , which are not parallel, the number of them change depending on numbmber of division on the line, how to get rid of them ?

Marta,

 

It's because of the default method for data matching is set to LONG. You probably want to set it to SHORT -- Right-clicking on the last Line component and choose "Short" from the pop-up menu.

 

To learn more about the data matching in Grasshopper, refer to The Grasshopper Primer Second Edition, which can be downloaded from Tutorials > Getting Started in this forum.

thanks, I changed this setting

For sure I want to learn more, but this one is kind of urgent,

so thanks a lot for help again :)

start with tutorials from digitaltoolbox.com :)
I will check that too :)
We can speak po polsku ;]

Marta,

Here's another way to do parallel lines.  If the lines need to be parallel and perpendicular to the base line (which is suggested by your use of the plane component to get the points on the second line) then you'll need to do something else (probably list matching) in your original definition.

 

Chris

Attachments:

That was what I needed, this lines to be perpendicular to the base, parametrical line 

I tried to open this file, but it is not working on my computer.. I hope this time would be enough to leave it like this

Thank you for the suggestions

 

Marta

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