algorithmic modeling for Rhino
As the SDK states, CreatePatch requires a lit of Curves, BrepTrims, Points, PointClouds and Meshes. All of which derive from GeometryBase. Casting to BaseType is done as it needs to. You will need a List<Geometrybsae> only if you combine multiple types of geometry. If you have a List<Point>, you can just pass that to CreatePatch.
A quick glace at Point3d will reveal that this is a struct and does not derive from GeometryBase. Any attempt to pass those to CreatePatch must fail. You cannot cast Point3d to GeometryBase. You can either wrap your Point3ds into Rhino.Geometry.Points or just directly pass the mesh you got the points from.
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
© 2024 Created by Scott Davidson. Powered by