//--------------------------------------------------------------------------------------------------

        #endregion

        #region Image

        public Bitmap RenderToBitmap(uint width, uint height)
        {
            if (V3dView == null || width == 0 || height == 0)
            {
                return(null);
            }

            try
            {
                _ShowTriedron(false);
                var pixmap = new Image_AlienPixMap();
                pixmap.InitZero(Image_Format.Image_Format_RGB, width, height);
                V3dView.ToPixMap(pixmap, (int)width, (int)height);
                _ShowTriedron(true);

                return(Occt.Helper.PixMapHelper.ConvertToBitmap(pixmap));
            }
            catch (Exception)
            {
                _ShowTriedron(true);
                return(null);
            }
        }