I am actually stuck with the generation of the second argument. I want to put all the visible objects that are in the document. I was thinking to go with
Rhino.DocObjects.ObjectEnumeratorSettings settings = new Rhino.DocObjects.ObjectEnumeratorSettings();
var tmpUniverse = thePanelUserControl.theDoc.Objects.GetObjectList(settings);
- first I am not sure that’s the right way to list all the objects in the current document (I haven’t found the right keys to look for a sample exposing the right method. Each time I’m looking for it, I find solutions where the user has to click on the faces),
- second it returns a [Rhino.DocObjects.Tables.ObjectTable.EnumeratorWrapper] and not the IEnumerable required by RayShoot.