|
|
|
@ -82,35 +82,7 @@ public class PointToImageMapper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int count = 0;
|
|
|
|
int count = 0;
|
|
|
|
// for (int h =1; h<=5; h++){
|
|
|
|
|
|
|
|
// if (map.containsKey(h) && map.get(h).size()>1000){
|
|
|
|
|
|
|
|
// double area = 0;
|
|
|
|
|
|
|
|
// try {
|
|
|
|
|
|
|
|
// List<double[]> 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--){
|
|
|
|
for (int h =5; h>0; h--){
|
|
|
|
if (map.containsKey(h) && map.get(h).size()>1000){
|
|
|
|
if (map.containsKey(h) && map.get(h).size()>1000){
|
|
|
|
double area = 0;
|
|
|
|
double area = 0;
|
|
|
|
|