BrepFaces input

Hi there,

I have a very basic difficulty. I’m writting a C# script in grasshopper and trying to use the ChangeSeam method, but I’m not able to give the proper input. The first input is a BrepFace but I’m stuck on how to extract the face from the Brep and pass it on as an input.

The best shot so far I’ve tried the following:

private void RunScript(Brep S, ref object A)
{
A = S.ChangeSeam(S.Faces[0], 1, 0.5, 0);
}

However I get the following error:

  1. Error (CS0176): Member ‘Rhino.Geometry.Brep.ChangeSeam(Rhino.Geometry.BrepFace, int, double, double)’ cannot be accessed with an instance reference; qualify it with a type name instead (line 57)

I’m sure I’m missing something pretty fundamental here, any help would be great.

Thanks a lot

Brep.ChangeSeam is a static method so you should call it like this:

A = Brep.ChangeSeam(S.Faces[0], 0, t, 0.1);

Ruy Sevalho.gh (12.8 KB)

Thanks Mahdiyar