Hey All...
I'm fiddling with C# in grasshopper to try and make a "shelling" script component.
The idea is to make a simple loop that runs through a collection of surfaces, and for each offsets it, lofts each side and joins them as a Brep.
And sadly, I find that I have a problem already even if my code is no more than 3 lines ATM. There seems to be an overload issue with my input in the "new OnNurbsSurface" part. (the input is a single surface from a Surface component in GH)
bool RunScript(OnSurface inSurface, double inDistance)
{
OnNurbsSurface Srf = new OnNurbsSurface(inSurface);
Srf.Offset(inDistance, 0.0);
A = Srf;
}
the errors are:
Error: The best overloaded method match for 'RMA.OpenNURBS.OnNurbsSurface.OnNurbsSurface(RMA.OpenNURBS.IOnBezierSurface)' has some invalid arguments (line 71)
Error: Argument '1': cannot convert from 'RMA.OpenNURBS.OnSurface' to 'RMA.OpenNURBS.IOnBezierSurface' (line 71)
any help appriciated.
Tags: