algorithmic modeling for Rhino
Hi Mohammed,
the RayShoot method is in the Rhino.Geometry.Intersect namespace, try this:
Private void RunScript(Point3d P, Vector3d D, List<GeometryBase> G, int N, ref object A)
{
Ray3d ray = new Ray3d(P, D);
A = Rhino.Geometry.Intersect.Intersection.rayShoot(ray, G, N);
}
Dear Pieter,
Thanks for your help. It work well. just the syntax of "rayShoot" function name is incorrect. the correct name is "RayShoot" . (I think it was just a typing fault).
Again Thanks for your help
Regards
Mohammad
LOL
I myself was wondering how to efficiently get the indices of hit surfaces in a list. I was trying by meassuring distances to closest points, but I have a feeling that's not the way to go.
Of coarse I can use the Collision One/Many component, but I'd like to learn how to implement that in the RayShoot scripted component.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by