Strange behavior with Rhino.Geometry CreateFromLoft

I am using the following python snippet to loft two curves;

`   ieList = List[rc.Geometry.Curve]()
        for crv in list_crv:
            ieList.Add(crv)
        loft = rg.Brep.CreateFromLoft(ieList, rg.Point3d.Unset, rg.Point3d.Unset, rg.LoftType.Straight, False)`

However I am getting the above behavior when I modify the original curves and the corners are not “tightly” lofting the shape creating chamfered lofts on all the corners other then the seam corner. What could be causing this?

You are missing the next step in these kind of lofts which is to split kinky faces. Your geometry is actually fine but until you split kinky faces the display will look odd. (Bake that geometry in Rhino which will split it automatically and you will see the geometry is fine)

Here is the method you need:
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Collections_BrepFaceList_SplitKinkyFaces.htm

1 Like

I am having trouble stitching the solution to the above code. What is the syntax to access the BrepFaceList for the loft to use SplitKinkyFaces() in python?

Should be loft.Faces.SplitKinkyFaces()

1 Like

That did it. Thanks!

1 Like