Maybe this question is kind of simple but it really troubles me a lot.
ArcCurve type should be inherited from Curve type. But why curve can generate brep through “Rhino.Geometry.CreateFromLoft” , while circle as ArcCurve type can not?
Here’s the code
import rhinoscriptsyntax as rs import Rhino.Geometry as rg circle_1 = rs.coercecurve(c1) circle_2 = rs.coercecurve(c2) brep = rg.Brep.CreateFromLoft([circle_1,circle_2], circle_1.PointAtStart, circle_2.PointAtStart, rg.LoftType.Normal, True) brep = rg.Brep.CreateFromLoft([circle_1,circle_2], rg.Point3d.Unset, rg.Point3d.Unset, rg.LoftType.Normal, True)
For both brep, I got empty
Is there anyway to convert ArcCurve into Curve? I only find how to convert ArcCurve type into NurbsCurve type, and still failed to get loft with NurbsCurve - type - circle. And it can’t construct a new curve through Rhino.Geometry.curve(circle).
Or how to get loft shape with circle in RhinoCommon?