I made a custom class and created method. On using the method it is throwing me an error. when i am using it just as a method not inside a class, its working fine.
Anything I am missing? attached script and error picture
Building bB = new Building();
List<Extrusion> eX = bB.InnerSkin(x);
A = eX;
}
// <Custom additional code>
class Building{
//Constructor
public Building()
{
}
public List<Extrusion> InnerSkin(List<Curve>crvs)
{
List<Extrusion> iSkn = new List<Extrusion>();
for(int i = 0; i < crvs.Count;i++){
var cT = crvs[i].Offset(Plane.WorldXY, -3000, RhinoDocument.ModelAbsoluteTolerance,
CurveOffsetCornerStyle.Sharp)[0];
//c2.Add(cT);
iSkn.Add(Extrusion.Create(cT, -4000 + 300, false));
}
return iSkn;
}
}