public void Init(int row, int col) { xSize = row; zSize = col; yMax = float.MinValue; if (positionInfo == null) { positionInfo = new List <PositionInfo>(); } else { positionInfo.Clear(); } if (drawInfo == null) { drawInfo = new List <DrawGeometry>(); } else { drawInfo.Clear(); } if (MeshDataSeries == null) { MeshDataSeries = new UniformGridDataSeries3D <double, double, double>(xSize, zSize); } else { MeshDataSeries.Clear(); } if (marker == null) { marker = new XyzDataSeries3D <double>(); marker.DataSeriesChanged += OnScatterSelected; } else { marker.Clear(); } movePoint = false; annotIdx = -1; // 0 base selectedIdx = -1; }