Rhino.DocObjects.ObjRef obj = new Rhino.DocObjects.ObjRef(id);
Rhino.DocObjects.ClippingPlaneObject cpObj = obj.Object() as Rhino.DocObjects.ClippingPlaneObject;
Rhino.Display.DisplayPipeline.EnableClippingPlanes(true);
it throws this error:
Error (CS0120): An object reference is required for the non-static field, method, or property ‘Rhino.Display.DisplayPipeline.EnableClippingPlanes(bool)’ (line 80)
if I try to add the clipping plane inside the parenthesis next to the true it tells me it only takes one argument
I don’t know how to access the enable in side the plane
what I want to do is add a view port id to the list that the plane is clipping, but I cant seem to find where this list lives inside the clipping plane class.
I can access attributes, geometry, etc… But not the list of views being clipped.
Rhino.DocObjects.ObjRef obj = new Rhino.DocObjects.ObjRef(id);
Rhino.DocObjects.ClippingPlaneObject cpObj = obj.Object() as Rhino.DocObjects.ClippingPlaneObject;
A = cpObj.ViewsIds;
I get this error.
. Error (CS1061): ‘Rhino.DocObjects.ClippingPlaneObject’ does not contain a definition for ‘ViewsIds’ and no extension method ‘ViewsIds’ accepting a first argument of type ‘Rhino.DocObjects.ClippingPlaneObject’ could be found (are you missing a using directive or an assembly reference?) (line 73)
So I’m still not finding where this views live
Cant seem to find it within the plane, maybe they’re are stored somewhere else.
I tried to access them though the Rhino.Render.ChangeQueue namespace