/// <summary>
        /// Creates a DataManipulation object.
        /// </summary>
        public DataManipulation(DXViewport.Viewport viewport)
        {
            _buffers               = new BufferObjects();
            _buffers.VertexSize    = 0.25f;
            _buffers.ColorByHeight = false;
            _buffers.MainViewport  = viewport;

            _viewport            = viewport;
            _moveVertex          = false;
            _pauseMoveVertex     = false;
            _isMoving            = false;
            _softSelection       = false;
            _falloff             = true;
            _enableLighting      = true;
            _softDistanceSquared = 0.2f * 0.2f;                         // Squared for quicker calculations
            _history             = new DataHistory();
            _redoHistory         = new DataHistory();
            _pageCopy            = null;
            _renderTextures      = true;
            _ray          = Vector3.Empty;
            _copyPosition = 0f;

            _plugins = new PlugIns();

            // Set shader versions
            _vertexShaderVersion = _viewport.SupportedVertexShaderVersion;
            _pixelShaderVersion  = _viewport.SupportedPixelShaderVersion;
        }
        /// <summary>
        /// Creates a DataManipulation object.
        /// </summary>
        public DataManipulation( DXViewport.Viewport viewport )
        {
            _buffers = new BufferObjects();
            _buffers.VertexSize = 0.25f;
            _buffers.ColorByHeight = false;
            _buffers.MainViewport = viewport;

            _viewport = viewport;
            _moveVertex = false;
            _pauseMoveVertex = false;
            _isMoving = false;
            _softSelection = false;
            _falloff = true;
            _enableLighting = true;
            _softDistanceSquared = 0.2f * 0.2f;		// Squared for quicker calculations
            _history = new DataHistory();
            _redoHistory = new DataHistory();
            _pageCopy = null;
            _renderTextures = true;
            _ray = Vector3.Empty;
            _copyPosition = 0f;

            _plugins = new PlugIns();

            // Set shader versions
            _vertexShaderVersion = _viewport.SupportedVertexShaderVersion;
            _pixelShaderVersion = _viewport.SupportedPixelShaderVersion;
        }