Grasshopper

algorithmic modeling for Rhino

hi,

 

i have a number of points.

i want to put them in multiple (list) groups.

if the groups are build,

then try to calculate the closest point

to the midpoint of the particular group.

hope to get an answer!

 

 

thanks

 


Views: 671

Attachments:

Replies to This Discussion

Not sure if this is what you were after, but I've had a go at your definition and done so that it maintains the flow of multiple objects through the components and keeps each set of geometry together to produce the results you were after. In the image below you can see the user defined variables for 3 sets of geometry. If you what to know more about the definition let me know.

 

Attachments:

Your patterns are pretty cool. Random Setup:

Results:

Lovely.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

I uploaded the wrong file. Here is the ghx:
Attachments:

dear danny,

 

thanks a lot.

you are cool, man.

my pattern is your pattern. (:

 

thanks

dear danny,

i have try to work with your definition,
but it seems to me that I didn´t understand
your definition correctly, because I´m not able
to build a rekursiv tiling on it.
if you could help me one more time,
I really would appreciate it!

thanks a lot.

rassul

Attachments:

Hi Rassul,

 

Straight Of I can see your problem. In order to let a definition work independently for multiple inputs you cannot use either a Flatten Component or a Flattening Input Utility. It has to be managed by another way that keeps the multi level structure intact. This normally takes the form of the Pathmapper Component or some other Path management components.

 

I'll have a look and see what needs to be done with this case.

 

Danny

Hi Rassul,

 

I've added a C# Script written by Daniel Davis called "Compare every item in a list" component, available from here: (thanks to Andrew Heumann for the heads up)   http://parametricmodel.com/Compareeveryiteminalist/38.html

This has gotten rid of your duplicate points problem from weeks ago. What it does is compares the first item with every other item and the second with every item except the first and so on.

 

Apart from the Pathmappers the other addition I've done is to automatically generate the boundary curve from the furthest points out on the "spokes". In order to do this though you need to order them around the centre. See definition for method.

 

Areas in Purple are altered.

I'll try a third time to upload the file!
Attachments:

There's an error in the above definition. Instead of synchronously sorting the CPs you need to change this to the original points.

dear danny,


thanks a lot. it's amazing.
i learn much from you.
i will try to build a rekursiv tiling now.
hope it works.

dear danny,

the new sorting def. is great!

thanks a lot.

 

 

 

 

 

 

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