I am trying to use the rayshoot method on some objects in a rhino scene.
geometry = rs.GetObject ("Pick object") intPt = Rhino.Geometry.Intersect.Intersection.RayShoot(ray, [geometry], bounce) print intPt
currently I an just trying to get it to work by selecting the object (mesh or surface) and see the return value. This gives the error:
Unable to cast object of type 'System.Guid' to type 'Rhino.Geometry.GeometryBase'.
Is there a way to convert a Guid to a geometry base object?
Ultimately I want to just parse the entire scene and go through all the objects, so the user wont be selecting each one, but for now, I can’t find information on how to get the basetype and not the guid.