Пример #1
0
        /***************************************************/

        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);
            }
        }
Пример #2
0
        /***************************************************/
        /**** Public Methods  - Miscellanea             ****/
        /***************************************************/

        public static void RenderMeshes(BHG.BoundingBox bbBox, Rhino.Display.DisplayPipeline pipeline, DisplayMaterial material)
        {
            pipeline.DrawBrepShaded(RHG.Brep.CreateFromBox(bbBox.ToRhino()), material);
        }
Пример #3
0
        /***************************************************/
        /**** Public Methods  - Miscellanea             ****/
        /***************************************************/

        public static void RenderWires(BHG.BoundingBox bbBox, Rhino.Display.DisplayPipeline pipeline, Color bhColour)
        {
            pipeline.DrawLines(bbBox.ToRhino().GetEdges(), bhColour, 2);
        }