Grasshopper

algorithmic modeling for Rhino

Hi guys,

I want know, if its possible to create an object if a certain criteria fits.

I've a grid of points on a surface and a curve. The aim is to check the distance of each point on the surface to the closest point on the curve. If the distance is for example smaller than x, than i want to add an object at this point.

U Guys know, how to implement this?

Views: 839

Attachments:

Replies to This Discussion

try smaller than component....then dispatch the points that are closer to the curve and place an object on then

it works. thanks a lot!

maybe this?

Attachments:

did it already :)

great!

cheers

m

are you familiar with the hoopsnake-plugin? I'm tryin to do an iteration trough all the points to create multiple object and hope that hoopsnake could do that.

could you please explain a little bit more?

what are you planning to do with hsnake?

what is your criteria to place those point and then generate those objects?

what I have know is a system that indicates me, if a distance from a point on the surface to the closest point on the curve is larger than 50. But I pick for myself a point on the surface by moving the slider.

Hoopsnake should do this for me, by checking every single point on the surface and adding an objects if the distance to the curve is larger than my defined value?

hope u understand what i mean :) its been a very long time since i've explained an issue  in english ;)

i think you need to use galapagos intead of hoopsnake for this particular problem.

Please try this

Note that i´m using galapagos

If you double click on it, you will see that

i have written 50 on the fitness box

since galapagos will try to find where the distance is 50 (actually it will find 49.94 mts)

cheers

Attachments:

I'm not sure if I read you right, but if you want to add an object to every point on the curve that is closest point to one of the surface points and has a distance smaller than 50, you should just skip this whole "select one item" group.

If you want to select only the one point on the curve, that has a distance closest to 50, you can sort the ClosestPoints by distance and select by distance the most similar to 50.

Attachments:

I want it the other way :) Instead of adding an object on the curve, I want to add an object on the surface/site. in order of that, i need to pick each point on the surface and check the distance to the curve. If the distance is smaller 50, than add an object

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