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)
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?
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)
Nice Job!Thanks bro