|
@@ -1182,17 +1182,17 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
target + File.separator + "extras" + File.separator + "vision.txt");
|
|
|
|
|
|
String ossResultPath = sceneService.getDataSource(num, scenePlus.getSceneSource(), scenePlusExt.getDataSource());
|
|
|
- FileUtil.copy(ossResultPath + "data.json", target + File.separator+"data.json", true);
|
|
|
- FileUtil.copy(ossResultPath + "project.json",target + File.separator+"project.json", true);
|
|
|
+// FileUtil.copy(ossResultPath + "data.json", target + File.separator+"data.json", true);
|
|
|
+// FileUtil.copy(ossResultPath + "project.json",target + File.separator+"project.json", true);
|
|
|
|
|
|
//data.json增加extras为执行重建算法
|
|
|
- String data = FileUtils.readFile(target + File.separator+"data.json");
|
|
|
- if(data != null){
|
|
|
+// String data = FileUtils.readFile(target + File.separator+"data.json");
|
|
|
+// if(data != null){
|
|
|
JSONObject floorplanJson = new JSONObject();
|
|
|
floorplanJson.put("has_source_images", true);
|
|
|
floorplanJson.put("has_vision_txt", true);
|
|
|
|
|
|
- JSONObject dataJson = JSONObject.parseObject(data);
|
|
|
+ JSONObject dataJson = new JSONObject();
|
|
|
dataJson.put("extras", floorplanJson);
|
|
|
dataJson.put("split_type", "SPLIT_V8");
|
|
|
//V5表示不需要生成high,low文件
|
|
@@ -1210,7 +1210,7 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
// }
|
|
|
dataJson.put("skybox_type", skyboxType);
|
|
|
FileUtils.writeFile(target + File.separator+"data.json", new String(dataJson.toString().getBytes(), "UTF-8"));
|
|
|
- }
|
|
|
+// }
|
|
|
if(new File(target + File.separator + "capture").exists()){
|
|
|
new File(target + File.separator + "capture").delete();
|
|
|
}
|