Hi,
I’m trying to create a loft with tangency!
On the left is the result created by this code, and on the right is geometry created by code but the loft in Rhino. Any idea what I’m doing wrong? It is ignoring the tangency.
var curve1 = new Circle(Plane.WorldXY, 1).ToNurbsCurve();
var brep = Surface.CreateExtrusion(curve1, -Vector3d.ZAxis).ToBrep();
RhinoDoc.ActiveDoc.Objects.AddBrep(brep);
var plane2 = Plane.WorldYZ;
plane2.Origin = new Point3d(-5, 0, 5);
var curve2 = new Circle(plane2, 0.5).ToNurbsCurve();
RhinoDoc.ActiveDoc.Objects.AddCurve(curve2);
var result = Brep.CreateFromLoft(new Curve[] { brep.Trims[3].Edge, curve2 }, Point3d.Unset, Point3d.Unset, true, false,
brep.Trims[3], null, LoftType.Normal, false);
RhinoDoc.ActiveDoc.Objects.AddBrep(result[0]);
return Result.Success;
Thanks,
Raf