Grasshopper

algorithmic modeling for Rhino

Hello, upon testing the containment of a grid of points and their inclusion within a series of bounding boxes it will it allow me to cull out points inside the boundaries (culling 1), and the points intersecting the boundaries (culling 0) thought it will not allow me to cull the points on the exterior of the boundaries (culling 2). Is anyone else running into this problem?

If there is a way passed this could some hints be sent this way?

Thanks.

Nick

Views: 2190

Replies to This Discussion

Once you have culled he inner and intersectiong points, you can invert the culling pattern to have the outer points... this might work

 

I am having the exact same issue, and reversing the pattern does not cull the exterior points. This is surely because I am using multiple containment inputs (with a graft), but I have not figured out how to manage the lists effectively to select the points that are not contained. Any input here would be greatly appreciated.  

 

 

Attachments:

 

Chris

Thanks Chris,

 

Do you think that this can be done by using one curve container with multiple referenced curves? Imagine if the definition used 100 boxes instead of 2. This is the list management problem that I am having with  on the definition above.

 

Cheers.

Laurenz,

I couldn't get the definition to work with multiple containment curves in one parameter.  It seems like it should work that way so it may be a bug but it may also just be the limitation of the component.  It could also be that we're not using it correctly.  Hopefully someone else will be able to comment on this for clarification.

 

Chris

Thanks for the efforts anyway Chris... 

 

I will post a clean definition when I figure out a work around... 

All,

 

The problem is that the component recognizes each curve alone thus resulting in a series of overlapping data to cull when grafted. The solution posted is not the most elegant (having to weave culled lists) but does work if you understand the limits of your definition at the time. Would be easier written VB allowing for change in inputs I bet but here is a temp solution.

 

Best,

 

Nick

Attachments:
Beautiful... Many thanks Nick, this is a true help!

Here's a solution that works for an arbitrary number of bounding curves without any weaving or definition modification required.

 

Attachments:

Even better yet! This is the exact list management trick that I was looking for.Though seemingly simple, I seriously would have never thought of it... 

Brilliant!

 

Very instructive.  Thanks Andrew.

 

Chris

Flip Matrix! I never knew it existed..Thanks Andrew very clean

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service