private void numericUpDown1_ValueChanged(object sender, EventArgs e)
        {
            if (m == null)
            {
                return;
            }

            // contourLines = VisualizationOperations.CalculateContours(m, (int)numericUpDown1.Value, dataIndex, ref contourColors, valueToColorHandler, colorMap1.GetMode());

            //  CalcControusOnEdges();
            //shapes = VisualizationOperations.CalcShapes(m, (int)numericUpDown1.Value, dataIndex, valueToColorHandler, colorMap1.GetMode());
            //MarchingCube(double.Parse(isoValueText.Text));
            //MarchingCubeCount();
            isoTri = VisualizationOperations.CalcIsoSurfaces(m, dataIndex, (int)numericUpDown1.Value, valueToColorHandler, colorMap1.GetMode());
            glControl1.Invalidate();
        }