public TriangleComponent[] getTriangles() {
		int n = getNumberOfInstances(TriangleComponent.class);
		TriangleComponent[] l = new TriangleComponent[n];
		n = 0;
		synchronized (layerBasket) {
			for (Layered c : layerBasket) {
				if (c instanceof TriangleComponent)
					l[n++] = (TriangleComponent) c;
			}
		}
		return l;
	}