/***************************************************/ public static void RenderMeshes(BHG.NurbsSurface surface, Rhino.Display.DisplayPipeline pipeline, DisplayMaterial material) { RHG.GeometryBase geometry = surface.ToRhino(); if (geometry is RHG.Surface) { geometry = RHG.Brep.CreateFromSurface((RHG.Surface)geometry); } pipeline.DrawBrepShaded((RHG.Brep)geometry, material); }
/***************************************************/ public static void RenderWires(BHG.NurbsSurface surface, Rhino.Display.DisplayPipeline pipeline, Color bhColour) { RHG.GeometryBase geometry = surface.ToRhino(); if (geometry is RHG.Surface) { geometry = RHG.Brep.CreateFromSurface((RHG.Surface)geometry); } pipeline.DrawBrepWires((RHG.Brep)geometry, bhColour, 2); }