From 6c2350517ffab3ddc987d7192c0346c0c8ab050b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAPTOP-S9HJSOEB=5C=E6=98=8A=E5=A4=A9?= Date: Wed, 2 Sep 2026 15:05:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/algorithm/PointToImageMapper.java | 30 +------------------ 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/web/src/main/java/com/zhehekeji/web/service/algorithm/PointToImageMapper.java b/web/src/main/java/com/zhehekeji/web/service/algorithm/PointToImageMapper.java index db261d1..637806f 100644 --- a/web/src/main/java/com/zhehekeji/web/service/algorithm/PointToImageMapper.java +++ b/web/src/main/java/com/zhehekeji/web/service/algorithm/PointToImageMapper.java @@ -82,35 +82,7 @@ public class PointToImageMapper { } } int count = 0; -// for (int h =1; h<=5; h++){ -// if (map.containsKey(h) && map.get(h).size()>1000){ -// double area = 0; -// try { -// List pointsLayers = map.get(h); -// if (map.containsKey(h+1)&& map.get(h+1).size()>1000){ -// pointsLayers.addAll(map.get(h+1)); -// } -// -// area = drawPointsAndCalculateArea(pointsLayers, String.valueOf(h),pojo,l,w); -// -// } catch (Exception e) { -// throw new RuntimeException(e); -// } -// if (area>0){ -// System.out.println("面积:"+area); -// System.out.println("个数:"+area/(double) (l*w)); -// int i =(int) Math.min(Math.round(area/(double) (l*w)),layersCount); -// if (i==0|| i>=layersCount) { -// count+=layersCount; -// }else { -// return i +count; -// } -// } -// }else { -// -// count+=layersCount; -// } -// } + for (int h =5; h>0; h--){ if (map.containsKey(h) && map.get(h).size()>1000){ double area = 0;