Hi all,
I am trying to make grasshopper component using ghPython. But I get following error
Runtime error (ArgumentTypeException): expected IEnumerable[GeometryBase], got Brep
2Question related to this script.
- Why I get above mentioned error even though I set context as GeometryBase?
- Are IEnumerable[GeometryBase] and GeometryBase different as data type? Are there any page or document explaining these definition?
My script and setting for each input is following.
Pts: Point3D List Access
Vectors : Vector 3D List Access
context : GeometryBase Item Access
numofBounce int Item Access
def makeRays(Pts,Vectors,context,numofBounce):
for testPt in Pts:
for vec in Vectors:
ray=rc.Geometry.Ray3d(testPt,vec)
intPts=rc.Geometry.Intersect.Intersection.RayShoot(ray,context,numOfBounce)