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
Tags:
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
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2025 Created by Scott Davidson.
Powered by