Beispiel #1
0
        public static PointData FromArray(vtkFloatArray array)
        {
            var result = new PointData {
                Name = array.GetName(), Data = new double[array.GetNumberOfTuples()]
            };

            for (var i = 0; i < array.GetNumberOfTuples(); i++)
            {
                result.Data[i] = array.GetTuple1(i);
                result.Min     = Math.Min(result.Min, result.Data[i]);
                result.Max     = Math.Max(result.Max, result.Data[i]);
            }
            return(result);
        }