private void addClickedPosition(int x, int y)
	{
		Vector3D clickedVector = getClickedVector(x,y);
		Vector3D camPosition = canvas.getCamera().getPosition();
		double factor = -camPosition.z/clickedVector.z;
		PolygonPoint point = new PolygonPoint((camPosition.x+factor*clickedVector.x), (camPosition.y+factor*clickedVector.y));
		if(model.firstPointClicked(point, canvas.getZoom()))
		{
			model.close();
			model.triangulate();
		}
		else
		{		
			model.addPoint(point);
		}
	}