Project points at random distances away from a curve

Hi all,

I’m still pretty new to grasshopper and having fun playing with all the plugin’s functionalities.

I’ve come to a dead end trying to project point that I have previously created on a curve through the use of a Sine function. This step I have managed, but I am now struggling to project those given points away from the curve at random. Could somebody have a look at the definition attached below?

I know it might be pretty simple but I haven’t found any resources in previous posts on the new or old forum.

RandomPtProjectedAwayfromCrv.gh (14.1 KB)
RandomPtProjectedAwayfromCrv.3dm (3.8 MB)

I don’t see a lot of sense in this exercise… Not sure why you are feeding a point (‘Eval P’) as ‘Random R’ input? But the fatal flaw is ‘Split B’ output is null, which causes ‘Pt’ to be null.

This still doesn’t make much sense, except for the notion that if you want to move (not “project”) those original points on the curve, they must be connected to ‘Move’:


Project_points_2017Dec9a.gh (15.3 KB)

Notice how the same random vector is applied to all the points?

Hi Joseph,

Sorry, I didn’t make my intentions clear. What I’m trying to achieve is that the points would be pushed away on either side of the curve at random, not just on one side of it. I am also trying to make that distance random in the XY plane too.

Does that help a little bit more?

I’m not the one who needs the help here. :wink:

I just added a top view showing the same vector being applied to all the points. There are other anomalies in your earlier code that I won’t go into because I can see you are experimenting. My advice is to keep a very close eye on component outputs at every step in a GH model. Panels work well for this. Understand the data. Visualize it. The ‘VDis (Vector Display)’ component is an example.

Have fun.

1 Like

Thanks for the tips. I’ll try out more stuff and monitor my definitions through the panels.