/***************************************************/ private Rhino.Geometry.BoundingBox Bounds() { try { if (Value == null) { return(Rhino.Geometry.BoundingBox.Empty); } BH.oM.Geometry.BoundingBox bhBox = m_Geometry.IBounds(); if (bhBox == null) { return(Rhino.Geometry.BoundingBox.Empty); } return(bhBox.ToRhino()); } catch { return(Rhino.Geometry.BoundingBox.Empty); } }
/***************************************************/ /**** Public Methods - Miscellanea ****/ /***************************************************/ public static void RenderMeshes(BHG.BoundingBox bbBox, Rhino.Display.DisplayPipeline pipeline, DisplayMaterial material) { pipeline.DrawBrepShaded(RHG.Brep.CreateFromBox(bbBox.ToRhino()), material); }
/***************************************************/ /**** Public Methods - Miscellanea ****/ /***************************************************/ public static void RenderWires(BHG.BoundingBox bbBox, Rhino.Display.DisplayPipeline pipeline, Color bhColour) { pipeline.DrawLines(bbBox.ToRhino().GetEdges(), bhColour, 2); }