|
|
@@ -253,6 +253,17 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
|
|
|
model = new Model();
|
|
|
}
|
|
|
if(model.getModelId() != null && StringUtils.isNotBlank(model.getModelGlbUrl()) && StringUtils.isNotBlank(model.getModelSize())){
|
|
|
+ if(isObj == 1 ){
|
|
|
+ String mesh3DtilesPath = String.format(FilePath.OBJ_OSS_PATH,num) + "/images/3dtiles/tileset.json";
|
|
|
+ String sizePath = String.format(FilePath.OBJ_OSS_PATH,num) + "/images/3dtiles";
|
|
|
+ if(fYunFileServiceInterface.fileExist(mesh3DtilesPath)){
|
|
|
+ model.setModelDateType("b3dm");
|
|
|
+ model.setModelType("b3dm");
|
|
|
+ model.setModelGlbUrl(JSONArray.toJSONString(Arrays.asList(CacheUtil.queryPath +mesh3DtilesPath)));
|
|
|
+ model.setModelSize(FileWriterUtil.setFileSize(fYunFileServiceInterface.getSpace("4dkankan", sizePath)));
|
|
|
+ this.saveOrUpdate(model);
|
|
|
+ }
|
|
|
+ }
|
|
|
return model;
|
|
|
}
|
|
|
model.setModelDateType("obj");
|