Grasshopper

algorithmic modeling for Rhino

Hello everyone.

I came up with a small problem during some study work. All I need to proceed is somehow a boolean pattern (for culling) from an intersection operation.

In my def I have a bunch of lines intersecting a brep. I actually need only the lines not intersecting the brep therefore I want to cull them out and you can imagine my desire for a cull pattern ;) ideas?


Cheers, Patrick

Views: 4122

Replies to This Discussion

hi pat

you have to write a vbnet component
this is just the pseudocode :
RhUtil.RhinoCurveBrepIntersect=false then ... add curve to a new list
thats all --- the result is a list with all the curves not intersecting your geo

best to]
cheers my personal superhero!
There is also a simple and purely GH way of achieving this if that is of any interest.

Mmh...I will have a look at this. Cheers mate pat
Hi Sameer

first of all thanks for the response. I've tried your strategy with the following problem occuring: my input curves are stored in 25 several lists (which are needed later on) and I'm facing a pathing problem.

The BCX is giving me the intersection pts all pathed (in my case 600) which I have to use for retrieving the item inside the tree later on. I think all it needs is to split the tree of intersection pts in 25 branches but I'm so far too dumb to get it :(


I'll attach the def so maybe you'll give it a try

thx pat
Attachments:
Pat,

To get the intersection command to preserve your paths, you need to get the data tree structure of the curves and that of the brep to match. See intersection-a.jpg where I have simplified the curve data tree and grafted the brep. As you can see, the result is giving me 24 paths...


However, this will not help you in singling out the lines that intersect the brep. To be able to check each line for intersection, you may need to flatten them out completely. As you can see in the image above, the number of intersection points are per path and not per curve. If you look at the image below however, the 600 paths tell you a different story which can easily become a cull pattern. All you have to do is to flatten the lines entering the cull-pattern component.

Exactly. Without having a deeper look into it again its telling the same story as I mentioned earlier. The problem is that I need the path structure later on to point out how many lines in each point are intersecting the brep :(

So thats the crucial point I have to work on. If you got an idea how to match the path structures let me know - I'll play around this night so hopefully things will be clarified asap

cheers mate . pat
Pat,

You might be able to extract something from the "intersections" portion of the grillage definition I made. It's checking for all surface/surface intersections that occur.

definition guide

It's a bit too complicated to try to explain the routine with words, but if you have specific questions I can (maybe) explain what I was thinking.

-taz
I have a similar problem, I have some lines and a Brep and I want to select the lines that don't intersect the Brep, I was thinking also in some kind of boolean but I really don't know how to do it... Any suggestions?

Aida,

Look at this thread:

http://www.grasshopper3d.com/forum/topics/curvebrep-problem

Hope that helps.

S

Sameer, thank you! It was very helpful!

 

-Aida

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service