I would like to ask about Rhino 6 WIP preview in grasshopper.
I noticed that my previous components for mesh preview also some of human plugin components displaying geometry in a slow manner comparing with rhino 5.
Before I was overriding bounding box, and displaying mesh and wires through args.display…
Did the display procedure changed?
If yes is it possible to get an example how can I properly display geometry from component?
Grasshopper doesn’t actually provide a separate mechanism for drawing geometry, all it does is call the DrawViewportWires() and DrawViewportMeshes() methods and give you a Rhino.Display.DisplayPipeline instance for you to draw with. So just call whatever method on the pipeline draws what you want to draw.
One obvious thing to keep in mind is that you want to do the absolute minimum amount of work inside the drawing methods. Don’t validate meshes, don’t compute boundingboxes, certainly don’t compute meshes from breps. Everything you want to draw should basically be cached.