How to sweep one with trim in Grasshopper like Rhino

Hey, everyone! When I sweep one on a polyline in grasshopper, I got a Error result. I tried to change the MiterType, but it didn’t work. Is it possible to achieve the effect of Rhino in Grasshopper?


sweepone with polyline.gh (8.7 KB)

You can use CreateFromSweep like this:

private void RunScript(Curve rail, List<Curve> shapes, ref object A)
{
    A = Brep.CreateFromSweep(rail, shapes, rail.IsClosed, RhinoDocument.ModelAbsoluteTolerance);
}

CreateFromSweep.gh (6.3 KB)

1 Like

Nice Job!Thanks bro :saluting_face: