I’m fairly new to coding in rhino
I am trying to control the views which are affected by clipping planes from withing a GH file in the c# component.
I can seem to access the enable pat of the clipping plane.
I don’t know where to call it from
it seems to live in the display pipeline
but when I try this:
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
Any help would be much appreciated
Thanks in advance