lyhzzz 3 mēneši atpakaļ
vecāks
revīzija
1d49311034

+ 2 - 2
src/main/java/com/fdkankan/fusion/common/util/OBJToGLBUtil.java

@@ -222,13 +222,13 @@ public class OBJToGLBUtil {
         File file = new File(targetPath);
         FileUtil.copyContent(objPathFile,file,true);
 
-        String cmd = String.format(ShellCmd.osgbTob3dmCmd,targetPath,sourcePath);
+        String cmd = String.format(ShellCmd.osgbTob3dmCmd2,targetPath,sourcePath);
         ShellUtil.execCmd(cmd);
         return sourcePath;
     }
 
     public static String OsgbToB3dm(String  targetPath,String sourcePath) {
-        String cmd = String.format(ShellCmd.osgbTob3dmCmd,targetPath,sourcePath);
+        String cmd = String.format(ShellCmd.osgbTob3dmCmd2,targetPath,sourcePath);
         ShellUtil.execCmd(cmd);
         return sourcePath;
     }

+ 2 - 0
src/main/java/com/fdkankan/fusion/common/util/ShellCmd.java

@@ -25,5 +25,7 @@ public class ShellCmd {
 
 	public static  String osgbTob3dmCmd = base_cmd +"3dtile"+File.separator  + "3dtile.exe -f osgb -i " +
 			"%s -o %s";
+	public static  String osgbTob3dmCmd2 = base_cmd +"3dtile"+File.separator  + "ConvertApp.exe  -f OSGB -m true -i " +
+			"%s -o %s";
 	public static  String ffmpegCmd = base_cmd   + "ffmpeg.exe ";
 }