Sounds simple but no luck so far. I hope this isn’t a “Do my work for me” question. I’m building a C# plugin for Grasshopper. Model data comes into the plug-in from Rhino as follows:
pManager.AddBrepParameter(“intSurf”, “intSurf”, “intSurf”, GH_ParamAccess.list);
then, in SolveInstance I declare:
List iFaceList = new List();
I’m trying to pass acoustical information about the model via the RGB codes. I can get that for layers in general:
Rhino.RhinoDoc thisDoc = Rhino.RhinoDoc.ActiveDoc; int absCoef1 = thisDoc.Layers.FindName("Seats").Color.G; int absCoef2 = thisDoc.Layers.FindName("GypsumBoard").Color.G;
But I need the RGB codes for each surface, i.e. each of my Breps in what I’ve called iFaceList. Is RGB information no longer available in a Brep? How can I dig deeper into the Doc information?
Any help will be most appreciated.