Grasshopper

generative modeling for Rhino

here is what I want to do.

Specify two curves from rhino

divide both by an integer (say 10)

connect the division points from 4-8 only.

How can I do this?

thanks

Views: 980

Reply to This

Replies to This Discussion

cull pattern, set pattern as true, false or vise versa. Or use dispatch component

another approach might be something like this.  

Reference in curves from rhino, divide curves, define range of list items that you wish to retrieve, (i used a series but you could also use a domain and range component), then feed that into a list item component. In this case, 2 curves were referenced in from rhino into the same curve parameter.

When those are fed into a divide curve component, the data is structured into 2 separate data branches, (one for each line).  so we end up with a list of points that lhas a data structure like this:

{0;0} N=11

{0;1} N=11

The series component defines the range of items I want to retrieve.  By feeding the list of points into a list item, then using the series of numbers as the items to retrieve, you get the corresponding items out of both branches of data.  The explode tree component separates the branches, (list of points for each curve), then connect them!

Hope that helps with an understanding of one possible approach!

without exploding trees, which can get annoying if you change the number of original curves or if you have a lot of curves.

hi,
wanted to ask a question related to the topic.
i have a 3 dimensional list of points.
how can i cull the list in 3x3 dimensional list?
so that i can create (with this cull-pattern) lines
in the spezific (x,y,z) directions.

or you know one blog_diskussion for this item?

many thanks

 

Attachments:

RSS

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service