examples/grid/test-grid2D.cpp
author Dmitriy Morozov <morozov@cs.duke.edu>
Fri, 17 Aug 2007 15:08:27 -0400
changeset 57 07a8ed7c97a3
parent 5 ee9052408c40
permissions -rw-r--r--
Merged CGAL 3.3 changes with the work on ARVineyard

#include "grid2D.h"
#include <iostream>

int main()
{
	Grid2D grid(40,60);
	int i = 0;
	for (int x = 0; x < 40; ++x)
		for (int y = 0; y < 60; ++y)
		{
			grid(x,y) = i++;
		}

	std::cout << grid(20,30) << std::endl;
	std::cout << grid << std::endl;
}