Grasshopper

algorithmic modeling for Rhino

hey,

i am just having a question about point in curve component or its behaviour.

in the attached sample i have a curve on a random populated box, i expected to get choosen just the innercurve ones, but its selcted the hole cylinder down.

Anybody know  why or knows a workaround?

thanks and regards

Views: 637

Attachments:

Replies to This Discussion

What are you expecting to happen exactly? If your points are in 3d space and your curve is planar, are you expecting to only have the points that are in the same plane as, and within, the curve?

If so your file would not count any of those points as inside the curve, because they are all below the plane of the curve.

Now that you have all of the points whose x and y values are contained in that curve, you could look at their Z values, compare them to the Z value of the curves plane, and do what you want with it from there (i.e. show me all the points inside this curve that are within 1 mm from the curve in the z direction).

yes i expected only to selcetd the ones in the same plane. just wondering why its acting like this... is there another component to select just the one in the same plane?

The problem is, like I mentioned, that none of your points are in the same plane as the circle. 

If you want to take all of the points that are within the X and Y boundaries of the circle, and then narrow that list down to include only points that are within some distance to the circle, then you can do something like this:

yes i understand your explanation and the solution, i just wondered if there in general is another  solution possible(like with one component).

thanks brian!

for the ones that are interested in a similiar solution. got it solved in python

Attachments:

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