Grasshopper

algorithmic modeling for Rhino

Hi David and all,

I have a question regarding the c# component.

In the input x i have a list of brep surfaces with type hint list of brep.

inside the code i would like do the follow;

Brep brp = new Brep();

brp = x[1];

However i keep receiving the error below:

Error: 'Rhino.Geometry.Brep.Brep(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingCOntext)'is inaccessible due to its protection level'

is this a syntax error on my end, I would imagine this should be fairly simple operation.

any thought greatly appreciated, 

thanks in advance

Views: 441

Replies to This Discussion

Hi Madu,

you don't need to create a new Brep, you already have breps. Your code should look like this:

Brep brp = x[1];

or:

Brep brp;

brp = x[1];

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service