|
@@ -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
|