Grasshopper

algorithmic modeling for Rhino

Hi Guys,

This is my first post and I am very new to Grasshopper, hope you can help me out.

I've made a routine to draw lines through two points; One is a fixed basepoint, the other one is a 'point on curve'. If I lineair array this, I get the following (see attached images).

I would really like to 'advance' the 'point on curve' by a factor, so that each next curves starts a little later (wave effect). Unfortunately, I can't add the integer of the 'point on curve' slider.

Do you have any ideas how it can be done? Maybe with a 'divide curve'? I tried that also, but my newbie status got in the way ;)

Thanks in advance,

Jeroen

Views: 645

Attachments:

Replies to This Discussion

Without any GH code, I don't want to play. ;)

However, if your question is about placing points on a curve at irregular intervals(?), there are several methods:

  1. You can 'Reparameterize' a curve and then use 'Eval (Evaluate Curve)' with a list of 't' values between zero and one, perhaps obtained from a 'Graph Mapper'.
  2. For a list of points at specific distance intervals, you can look at this thread from yesterday:

divide curve by distance between points

Thanks Joseph, I will try to explain myself a bit better;

If I have for instance 5 (x) curves with a 'point on curve' applied, I would like to get the following result; curve 1, point @ 0% - curve 2, point @ 20%, curve 3, point @ 40% and so on. If I change X, the percentage of each curve changes. This way, I will end up with a wave-like pattern in my array of curves.

Upon your request, here is the code :)

Attachments:

I'm sorry but I don't know what you mean by that :/

It's solved when I can connect these two lists of points to each other in this matter;

centerpoint 1 to divide point 1 of 3

centerpoint 2 to divide point 2 of 3

centerpoint 3 to divide point 3 of 3

Attachments:

Right click on the 'Curve' geometry and select "Internalize data".  Otherwise your code is useless without the Rhino file where that curve is located.

Sorry, I don't understand what you're asking.  Have fun.

You forgot to internalize your curves and reference points?  Like this?

Attachments:

I suggest that you avoid renaming components as you did here with 'ArrLinear' => 'crv'.  Fine to rename inputs and outputs but it's nice to know at a glance what the component is.

Attachments:

This is helpfull Joseph, thanks! I think I can manage to get what I want with this :)

I didn't learn about the Eval Curve yet, that did the trick!

I figured it out completely after watching the Lynda.com tutorial. This is awesome!

If you say so.  I learn more by looking at actual GH code instead of screen images.

Just getting used to this Joseph, give me some slack here ;)

Attachments:

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