Grasshopper

algorithmic modeling for Rhino

Hi, first of all thank you for the great help.. :) 

I'm quite new to Grasshopper so I'm having quite a hard time solving problems.

 

At the moment I'm trying to create a system that create a hierarchical space in the given Area, which is better explained by the attachment photo that i put than my poor English skill.

There is 3d grid (give Area)

First starting point

system starts from one point.

from the one of the point it draws a boundary square and sampling the points(which is the points of given 3d grid points) and choose the one most close point

(Ideal variable for me is not only the distance between the points and attractor point but more complicated data set such as environmental impact.. etc)

 

and it keeps on doing that until my desired number of it.

 

point that has been selected is removed from the list

 

Second starting point

basically doing exactly the same as the first point

but since the points chosen by the first path has been removed from the list

it choose the path around the first path if there's any conflict.

 

and 3rd 4th 100th..

 

this is basically the one i want to create.. 

 

and i'm hopelessly lost.. 

try to learn/touch VB.net since i think i need some looping in this system.. 

but it's bit hard and slow..

 

What i've done so far is just brutal copy and pasting which make everything very messy.

 

Is there any good way of solving this problem

with scripting or GH?

I add my files and GH file and some illustration for explain it. 

 

Thank you for the help! :D

Views: 536

Attachments:

Replies to This Discussion

I think the reason no one has responded is that your question is too vast.  Can you breakdown your question into simpler terms.

 

Stan

Yes.. that might be the reason.. 

I think.. if i can simplify it greatly, 

 

I need to find a way to be able to examine the dots within its 3Ddomain it and select the one point most suitable for its option(at the moment the condition is the shortest distance towards the attractor). 

 

what i did in the example file is

I made a box just big enough to cover the dots right next to it so that i can list them

and sort those dots with it's distance towards to the attractor point and chose a first item(which is the closest)

 

and after that 

I need to iterate this activity on that chosen dot from the process just before.

Iteration happens as many as i want it to be... like slider integer number.. 

 

The problem for me is

I want to remove the dot that just selected from the list so that same dot is not chosen from further process.

 

so the question is..

1.

how to make a Iterative system..,

I'm happy about using VB.net.. i think it make my life easier.. but i do not know the way to write the script that does the same what it's done in GH

I think after figuring out that, it's a matter of Loop..? 

 

2. 

how to make updating list along the process goes.

 

hope it makes a question a bit clearer?

sorry the question is to vast..... 

all i want to know is how to simplify the definition i already have

and how to make it loop as many as i want.. 

As a strating point have you seen Giulio's Shortest Walk?  http://www.grasshopper3d.com/group/shortestwalk

oh this is Great!!

I'll have a look at this, and see if i can do what i want to do

and i'll post the result.. 

Thank you Danny!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service