Grasshopper

algorithmic modeling for Rhino

Hi All, 

I am new to GH, coming from a Maya & MEL Script background. I'm looking to use GH components to build the following: (any help would be most appreciated)


1. input: curve
2. input: geometry 

3. check intersection of curve with geometry.
4. select range of curve(s) intersecting with geometry.
5. for each curve plot distance between points of intersection (find the mid of intersection along curve).
6. add control point to curve at mid-intersection point. 

7. plot mid point of geometry and mid-intersection point as a vector. 
8. move control point at mid-intersection point away from mid point of geometry until intersection = 0. 

I think I know how to go about doing most of these, but I am having issues with 3-6. Any ideas. 
BCX gives me the instances of intersection but does not seem to select the curve which are intersecting the range. 

Thanks in advance. 

Views: 561

Replies to This Discussion

If you repost the 3dm file rather that the rhino lock file I'll take a look for you.
I've got the 3dm file now but the link to the 100825_Component.ghx is wrong as well.
How about this? It's slow as hell, but it looks sort of like your sketch.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Attachments:
Hi P,

0.7 should be able to load the file even though it was written by a newer version. What happens when you close the IO messages.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
No, that's not even close to how it's supposed to look.
I'll try and figure out what's going on.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi P,

I installed 0.7.0048 on my machine and the file reads correctly. I only get the warning about the newer version. None of the components or connections are missing.

Which errors and warnings do you get precisely when you attempt to open the file with 0.7.0048?

--
David Rutten
david@mcneel.com
Poprad, Slovakia


--
David Rutten
david@mcneel.com
Poprad, Slovakia

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service