Exemple #1
0
        //Brush currentBrush = CreateDrawingBrush(0.06,0.03);

        private void UpdateSurface(DynamicCodeSurface3D surface1, string src)
        {
            surface1.Source     = null;
            surface1.MeshSizeU  = _viewModel.MeshSizeU;
            surface1.MeshSizeV  = _viewModel.MeshSizeV;
            surface1.ParameterW = _viewModel.ParameterW;

            // now the surface should be updated
            surface1.Source = src;

            source1.BorderBrush = surface1.HasErrors() ? Brushes.LightCoral : Brushes.Transparent;
        }
Exemple #2
0
        //Brush currentBrush = CreateDrawingBrush(0.06,0.03);

        private void UpdateSurface(DynamicCodeSurface3D surface1, string src)
        {
            // make sure the surface does not update yet
            surface1.DisableUpdates();
            surface1.Source     = null;
            surface1.MeshSizeU  = _viewModel.MeshSizeU;
            surface1.MeshSizeV  = _viewModel.MeshSizeV;
            surface1.ParameterW = _viewModel.ParameterW;
            //GradientBrushes.Hue;
            surface1.EnableUpdates();
            // now the surface should be updated
            surface1.Source = src;

            source1.BorderBrush = surface1.HasErrors() ? Brushes.LightCoral : Brushes.Transparent;
        }
        //Brush currentBrush = CreateDrawingBrush(0.06,0.03);

        private void UpdateSurface(DynamicCodeSurface3D surface1, string src)
        {
            surface1.Source = null;
            surface1.MeshSizeU = _viewModel.MeshSizeU;
            surface1.MeshSizeV = _viewModel.MeshSizeV;
            surface1.ParameterW = _viewModel.ParameterW;

            // now the surface should be updated
            surface1.Source = src;

            source1.BorderBrush = surface1.HasErrors() ? Brushes.LightCoral : Brushes.Transparent;
        }
        //Brush currentBrush = CreateDrawingBrush(0.06,0.03);
        
        private void UpdateSurface(DynamicCodeSurface3D surface1, string src)
        {
            // make sure the surface does not update yet
            surface1.DisableUpdates();
            surface1.Source = null;
            surface1.MeshSizeU = _viewModel.MeshSizeU;
            surface1.MeshSizeV = _viewModel.MeshSizeV;
            surface1.ParameterW = _viewModel.ParameterW;
            //GradientBrushes.Hue;
            surface1.EnableUpdates();
            // now the surface should be updated
            surface1.Source = src;

            source1.BorderBrush = surface1.HasErrors() ? Brushes.LightCoral : Brushes.Transparent;
        }