I’m trying to select and keep track of brep objects using only Rhino Python script in Rhino 6, without using the Brep component in Grasshopper. To do this, I was wondering exactly what the Brep component in Grasshopper does and how pieces of its functionality can be scripted. My understanding of this is what I have written below. Would very much appreciate any feedback.
To my understanding, the Brep component allows only valid brep objects (to be selected by the user) as input. I was thinking this could be substituted by repeated rs.GetObject (where rs is short for rhinoscriptsyntax) calls and rs.IsBrep checks.
Since the Brep component also returns the brep objects, I’m thinking that the guids returned by rs.GetObject would also need to be converted to the geometric objects they represent using rs.coercegeometry.
Does this scripting seem to be on the right track? Does it cover the functionality of the Brep component (minus advanced features such as the ability to manage/view the details of the breps selected)?
Thanks you so much!