So we have 2 Brep Edges, and are trying to (in C#) loft between them with matching start and end tangent.
To demonstrate the results I am looking for, do the follow)
Create 2 planar surfaces in the top viewport (from 4 corner points SrfPt), rotate one of them in the front viewport, so that they are not both in the same plane.
Now run the command loft, pick 2 brep edges 1 from each surface with the mouse, press enter, and then in the dialog box that pops up click the boxes next to ‘Match start tangent’ & ‘Match end tangent’
Next click the Preview button, (or OK) and you get a nice smooth surface that flows between the original 2 surfaces.
How can this be done from C#? using either RhinoCommon or Rhino .NET SDK?
I have tried the example here:
adapted it to pick OnBrepEdge’s and then experimented with:
args.m_bAllowStartTangent =true; args.m_bAllowEndTangent = true;
args.m_start_condition = (int)IArgsRhinoLoft.eLoftEnds.leTangent; args.m_end_condition = (int)IArgsRhinoLoft.eLoftEnds.leTangent;
and other combinations, but cannot achieve the result described above from using the loft command.
Is this result possible? or am I out of luck?
in this image, you can see the black wireframe brep made from the Loft command, and the gold flat result is all I can get back from my C# code.