Exemplo n.º 1
0
        private void UpdatePathOccupiedVeryFast(SimPathStore pathStore)
        {
            float detail = pathStore.StepSize; // -0.001f;
            float MinX   = OuterBox.MinX;
            float MaxX   = OuterBox.MaxX;
            float MinY   = OuterBox.MinY;
            float MaxY   = OuterBox.MaxY;

            float MinZ = OuterBox.MinZ;
            float MaxZ = OuterBox.MaxZ;

            for (float x = MinX; x <= MaxX; x += detail)
            {
                for (float y = MinY; y <= MaxY; y += detail)
                {
                    PathStore.SetObjectAt(x, y, this, MinZ, MaxZ); //return true;
                }
            }
            PathStore.SetObjectAt(MaxX, MaxY, this, MinZ, MaxZ);
        }