Pārlūkot izejas kodu

修复holes的地面高度

xushiting 4 gadi atpakaļ
vecāks
revīzija
e26340b986

+ 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");
 		}