Grasshopper

algorithmic modeling for Rhino

Does anybody know the vb script for finding intersection points derived from meshes and curves(lines)?

Let me know any idea.

Thanks.

Views: 1961

Replies to This Discussion

Hi Jihoon,

the Rhino SDK does not provide a mechanism for finding intersections between meshes and curves. It only supports meshes with (semi-infinite) rays and meshes with polylines.

Would you be happy with converting your curves to polylines first?

--
David Rutten
david@mcneel.com
Seattle, WA
Thank you for your instant reply, David.

Yes. Actually, If I can find the script for intersection points between meshes and polylines, it will be very nice.
Ok, all the intersection functions in RhinoCommon (which you should use from Grasshopper 0.7 onwards) are located in Rhino.Geometry.Intersect.Intersection

You'll find both MeshRay and MeshPolyline there. I see that MeshPolyline actually takes a PolylineCurve instead of a Polyline. I think this is a bit silly. I'll add an overload for that method that takes Polylines directly.

--
David Rutten
david@mcneel.com
Seattle, WA
Thanks.

I will try that on 0.8 .
I saw Mesh|Curve in grasshopper. That means we can find the intersection between nurbs curve and mesh too. How did you do this for grasshopper? Will this method be available in RhinoCommon too?

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