private ArrayList<TriangulationPoint> buildList(int startIndex, int endIndex, boolean forward)
	{
		List<TriangulationPoint> points = base.getPoints();
		ArrayList<TriangulationPoint> result = new ArrayList<TriangulationPoint>();
		int index = startIndex;
		while(index!=endIndex)
		{
			result.add(points.get(index));
			if(forward)
			{
				index++;
				if(index==points.size())
					index = 0;
			}
			else
			{
				index--;
				if(index==-1)
					index = points.size()-1;
			}
		}
		result.add(points.get(endIndex));
		return result;
	}