Been trying to use the CreatePatch method, but got stuck on its first parameter: IEnumerable(GeometryBase).
from System.Collections.Generic import IEnumerable from Rhino.Geometry import Point import rhinoscriptsyntax as rs import Rhino import System pt_ids = rs.GetObjects() pts = [rs.coerce3dpoint(pt_id) for pt_id in pt_ids] pointL = [Rhino.Geometry.Point(pt) for pt in pts] IEGB = IEnumerable[Point](pointL)
got the following error message (one the last line of the upper code):
Cannot create instances of IEnumerable[Point] because it is abstract
I thought that maybe a “conversion” of Point3d needs to be done, as Point class has been derived from GeometryBase. Is this causing the problem?