Exemplo n.º 1
0
        private void Swap(cVertex first, cVertex second)
        {
            cVertex temp = new cVertex();

            temp = new cVertex(first.Point.X, first.Point.Y);
            temp.IndexInModel = first.IndexInModel;
            temp.IsProcessed  = first.IsProcessed;

            list.ResetVertex(first, second.Point.X, second.Point.Y, second.IndexInModel, second.IsProcessed);
            list.ResetVertex(second, temp.Point.X, temp.Point.Y, temp.IndexInModel, temp.IsProcessed);
        }