| | |
| | | String terrainPath = dto.getOutPath() + File.separator + "terrain"; |
| | | File f = new File(terrainPath); |
| | | if (!f.exists() || !f.isDirectory()) f.mkdirs(); |
| | | File tempDir = new File(dto.getTemp()); |
| | | if (!tempDir.exists()) tempDir.mkdir(); |
| | | |
| | | for (int[] sizes : layer.getTerrain().getSize()) { |
| | | String tif = dto.getTemp() + File.separator + "terrain_" + sizes[0] + "_" + sizes[1] + ".tif"; |
| | |
| | | } |
| | | } |
| | | |
| | | public void createFlowPng(float[] depthBuffer, float[] vxBuffer, float[] vyBuffer, String png, int width, int height) { |
| | | public void createFlowPng(float[] depthBuffer, float[] vxBuffer, float[] vyBuffer, |
| | | String png, int width, int height) { |
| | | BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); |
| | | for (int x = 0; x < width; x++) { |
| | | for (int y = 0; y < height; y++) { |