protected void CreateStatisticInfo()
{
_minPoint.X = Double.MaxValue;
_minPoint.Y = Double.MaxValue;
_minPoint.Z = Double.MaxValue;
_maxPoint.X = Double.MinValue;
_maxPoint.Y = Double.MinValue;
_maxPoint.Z = Double.MinValue;
for (int i = 0; i < pData.Width; i++)
{
for (int j = 0; j < pData.Height; j++)
{
PixelInfo pInfo = pData.Points[i, j];
if (pInfo != null)
{
Vec3 coord = formula.GetTransform(pInfo.Coord.X, pInfo.Coord.Y, pInfo.Coord.Z);
if (coord.X < _minPoint.X)
_minPoint.X = coord.X;
if (coord.Y < _minPoint.Y)
_minPoint.Y = coord.Y;
if (coord.Z < _minPoint.Z)
_minPoint.Z = coord.Z;
if (coord.X > _maxPoint.X)
_maxPoint.X = coord.X;
if (coord.Y > _maxPoint.Y)
_maxPoint.Y = coord.Y;
if (coord.Z > _maxPoint.Z)
_maxPoint.Z = coord.Z;
}
}
}
}