Преглед изворни кода

修复holes的地面高度

xushiting пре 4 година
родитељ
комит
e26340b986
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      src/main/java/com/example/demo/util/ConvertCadKjl.java

+ 4 - 4
src/main/java/com/example/demo/util/ConvertCadKjl.java

@@ -302,11 +302,11 @@ public class ConvertCadKjl {
 		JSONArray points = input.getJSONArray("vertex-xy");
 		for(int i=0;i<result.size();++i) {
 			JSONObject item = result.getJSONObject(i);
-			int wallId = item.getIntValue("groundClearance");
+			//int wallId = item.getIntValue("groundClearance");
 			double _bottom = item.getDouble("bottom");
-			double bottom = getbottomForWallId(wallId);
-			double groundClearance = _bottom - bottom;
-			item.put("groundClearance", groundClearance);
+			//double bottom = getbottomForWallId(wallId);
+			//double groundClearance = _bottom - bottom;
+			item.put("groundClearance", _bottom);
 			item.put("wallId", wallId);
 			item.remove("bottom");
 		}