examples/pl-functions/test-grid2D.cpp
author Dmitriy Morozov <dmitriy@mrzv.org>
Sun, 26 Nov 2017 18:42:36 -0800
changeset 292 b90319e7126f
parent 183 0ca59b0ebc47
permissions -rw-r--r--
Vanessa's fix for e/a/alphashapes3d-periodic for CGAL 4.11

#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;
}