Esempio n. 1
0
        private void PlotSurfaceBtn_Click(object sender, RoutedEventArgs e)
        {
            var B     = ILMath.tosingle(sigma);
            var scene = new PlotCube(twoDMode: false)
            {
                // add a surface
                new Surface(B)
                {
                    // make thin transparent wireframes
                    Wireframe = { Color = Color.FromArgb(50, Color.LightGray) },
                    // choose a different colormap
                    Colormap = Colormaps.Jet,
                }
            };

            scene.Axes.XAxis.Max = (float)arguments[0].Maximum;
            scene.Axes.XAxis.Min = (float)arguments[0].Minimum;
            scene.Axes.YAxis.Max = (float)arguments[1].Maximum;
            scene.Axes.YAxis.Min = (float)arguments[1].Minimum;
            scene.First <PlotCube>().Rotation = Matrix4.Rotation(new Vector3(1f, 0.23f, 1), 0.7f);

            PlotSurface form = new PlotSurface(scene);

            form.Refresh();
            form.ShowDialog();
        }
Esempio n. 2
0
 public PlotSurface(PlotCube sc)
 {
     scene = sc;
     InitializeComponent();
 }