I am trying to render mesh objects in compute.rhino3d with WinForms. I created a headless rhino doc and added a viewport, DisplayModes and some geometry objects. I enabled conduit and set DisplayPipeline events. I also called doc.Views.EnableRedraw and doc.Views.Redraw. However there isn’t any DisplayPipeline event to be triggered.
When I added ViewportControl to my WinForms, most of DisplayPipeline and conduit events were triggered. I compared the properties of both doc objects. They are the same.
There isn’t documents and source code about RhinoWindows.Forms.Controls.ViewportControl. I don’t know what the additional settings are in ViewportControl to make DisplayPipeline work.