Browse Source

去除dam压缩逻辑

tianboguang 3 years ago
parent
commit
77c638f77b

+ 1 - 13
4dkankan-utils-model/src/main/java/com/fdkankan/model/utils/CreateObjUtil.java

@@ -258,7 +258,7 @@ public class CreateObjUtil {
 
 
 	}
 	}
 	
 	
-	public static void convertTxtToDam(String srcpath,String despath,Boolean gzip)throws Exception{
+	public static void convertTxtToDam(String srcpath,String despath)throws Exception{
 		BigSceneProto.binary_mesh.Builder builder = BigSceneProto.binary_mesh.newBuilder();
 		BigSceneProto.binary_mesh.Builder builder = BigSceneProto.binary_mesh.newBuilder();
 		InputStream inputStream = new FileInputStream(srcpath);
 		InputStream inputStream = new FileInputStream(srcpath);
 		InputStreamReader reader = new InputStreamReader(inputStream, "ASCII");
 		InputStreamReader reader = new InputStreamReader(inputStream, "ASCII");
@@ -275,18 +275,6 @@ public class CreateObjUtil {
 		}
 		}
 		bis.close();
 		bis.close();
 		bos.close();
 		bos.close();
-
-		if(!ObjectUtils.isEmpty(gzip) && gzip){
-			// gzip压缩
-			FileUtil.writeBytes(ZipUtil.gzip(new File(despath)),despath + ".gzip");
-
-			// 重命名
-			FileUtil.rename(new File(despath + ".gzip"), despath, true);
-		}
-	}
-
-	public static void convertTxtToDam(String srcpath,String despath)throws Exception{
-		convertTxtToDam(srcpath,despath,true);
 	}
 	}
 	
 	
 	public static void convertVisionmodeldataToTxt(String srcpath,String despath)throws Exception
 	public static void convertVisionmodeldataToTxt(String srcpath,String despath)throws Exception