GH/C#: Drawing a Plane in DrawViewport?

Is it possible to draw a Plane from the method DrawViewportWires(IGH_PreviewArgs args)?

I managed to draw points (using “args.Display.DrawActivePoint(pt);” and other listed types), but I couldn’t find any dedicated draw option for planes.

//Rolf

There’s no dedicated plane drawing method. You’ll have to draw a bunch of lines. Although there might be something for ConstructionPlanes in RhinoCommon…

Okidoki. I’ll have to look for some suitable drawing tool then… :wink:

I believe this may be what David is referring to.
https://developer.rhino3d.com/api/rhinocommon/rhino.display.displaypipeline/drawconstructionplane

1 Like