Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Is there a bug in Subd.CreateFromSweep()?

$
0
0

I am getting conflicting errors that makes the SubD.CreateFromSweep static method not work for me.

            this.prongSubD = RG.SubD.CreateFromSweep(centerlineCurve, profiles, true, false, false);

This gives the error

 Argement 2 cannot convert from System.Collection.Generic.List<Rhino.Geometry.NurbsCurve> to Rhino.Geometry.NurbsCurve

So I add the same rail twice to satisfy what appears to be the second signature.

            this.prongSubD = RG.SubD.CreateFromSweep(centerlineCurve, centerlineCurve, profiles, true, false, false);

And I get the error:
Argument2 cannot convert from Rhino.Geometry.NurbsCurve to Sytem.Collections.Generic.IEnumerable<Rhino.Geometry.NurbsCurve>

It seems When I try the first signature I get the error message as if it is the second overload method, and when I try the second signature I get a warning as if it is the first! Maybe I missed something, but here seems to be a bug preventing me from using this method.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles