public TriangleComponent getTriangle(int i) {
		if (layerBasket.isEmpty())
			return null;
		int n = 0;
		synchronized (layerBasket) {
			for (Layered o : layerBasket) {
				if (o instanceof TriangleComponent) {
					if (i == n)
						return (TriangleComponent) o;
					n++;
				}
			}
		}
		return null;
	}