Grasshopper

algorithmic modeling for Rhino

Create points from origin, distance and vector

Sorry for the n00b question, but I am lost.

I want to do the following: Create a "row" of points that later will be turned into a polyline as well as points on a separate curve. The thing is that I want to create the points one by one by moving to the next by: origin, vector and distance. The only way I have found to do this (I think) is by using "Line SDL" and then extracting the end points. But that feels terribly cluttered, surely there is a better way?

Also, while I am at it: Is there a simple way to put the distances and vectors in some sort of list in order to simplify the whole thing?

I am pretty sure my efforts so far have leed me down wrong routes so I have not included any examples of previous work. But what I am trying to design is a backpack where the points are bends on a U-shaped external frame, as well as "contact points" of the actual fabric.

Views: 1214

Replies to This Discussion

I would suggest an Anemone loop, a single origin point and a list of vectors (which include "distance" based on their length).  How you create the list of vectors is up to you...  Here is one very boring list of six vectors used sequentially instead of randomly, but you get the idea?

Attachments:

A 'Random' vector element added (blue group), chooses randomly from the list of vectors.

Attachments:

This is a case where the loop isn't necessary after all...

Attachments:

Random lengths added to the random vectors; in the domain of plus/minus the 'Scale' slider.  Separate 'Seed' sliders.

Attachments:

Thanks Joseph! I am really grateful!

Now I found some time to play around with this. Unfortunately Anemone loop does not work for Mac. Had it done it would probably have done the job. The other examples look great, but I am simply to dumb to tweak them to my needs.

So I went back to my original plan. An unpretty and basic solution. But I hit a new hurdle: I want to put a bend in one dimension between each segment. The thing is that as it progresses the segments have a axis of their own. So trying to bend them along x-y-z gives the wrong results. What would be a clever way to do what I want? Segment with X length, one bend along its axis by Y degres, next segment and repeat.

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service