Canguro.Model.Section.FrameSection.calcLODSize C# (CSharp) Method

calcLODSize() protected method

protected calcLODSize ( ) : void
return void
        protected void calcLODSize()
        {
            // Calculate LOD Size based on contour
            //float sizeX = 0, sizeY = 0;
            //short[] indices = ContourIndices[0];
            //for (int i = 0; i < indices.Length - 1; i++)
            //{
            //    sizeX += Math.Abs(contour[0][indices[i]].X);
            //    sizeY += Math.Abs(contour[0][indices[i]].Y);
            //}

            //lodSize = sizeX * sizeX + sizeY * sizeY;

            // Upcoming code was moved to calculateBB

            //short[][] contourIndices = ContourIndices;
            //if (contourIndices != null)
            //{
            //    short[] indices = contourIndices[0];
            //    //blCorner = trCorner = contour[0][indices[0]];
            //    boundingBox[0] = boundingBox[1] = contour[0][indices[0]];

            //    // Bounding Box
            //    for (int i = 0; i < indices.Length - 1; i++)
            //    {
            //        boundingBox[0] = Microsoft.DirectX.Vector2.Minimize(contour[0][indices[i]], boundingBox[0]);
            //        boundingBox[1] = Microsoft.DirectX.Vector2.Maximize(contour[0][indices[i]], boundingBox[1]);
            //    }

            lodSize = (boundingBox[1] - boundingBox[0]).Length();
            //}
        }