wp.setNodes(nodes);
private static WallPart parseWallPart(ReversableWay rw, Perspective pPerspective) { Way way = rw.getWay(); WallPart wp = new WallPart(); List<WallNode> wnList = new ArrayList<WallNode>(); if (!rw.isReversed()) { for (int i = 0; i < way.getNodesCount(); i++) { WallNode wn = parseWallNode(way.getNode(i), pPerspective); wnList.add(wn); } } else { for (int i = way.getNodesCount() - 1; i >= 0; i--) { WallNode wn = parseWallNode(way.getNode(i), pPerspective); wnList.add(wn); } } wp.setNodes(wnList); wp.setBuildingElements(parseBuildingAttributeWallElement(way)); // String parseFacadeName = // BuildingAttributeParser.parseFacadeMaterialName(w); // wp.setFacadeTextureData(BuildingAttributeParser.parseFacadeTexture(parseFacadeName, // this.textureLibraryService)); // wp.setColor(BuildingAttributeParser.parseFacadeColor(w)); wp.setFacadeMaterialType(BuildingAttributeParser.parseFacadeMaterialName(way)); wp.setFacadeColor(BuildingAttributeParser.parseFacadeColor(way)); wp.setRoofMaterialType(BuildingAttributeParser.parseRoofMaterialName(way)); wp.setRoofColor(BuildingAttributeParser.parseRoofColor(way)); return wp; }