|
@@ -67,9 +67,9 @@ public class DevController {
|
|
BreakpointsEntity breakpointsEntity=new BreakpointsEntity();
|
|
BreakpointsEntity breakpointsEntity=new BreakpointsEntity();
|
|
breakpointsEntity.setAppId("0000000001");
|
|
breakpointsEntity.setAppId("0000000001");
|
|
PointPO po=new PointPO();
|
|
PointPO po=new PointPO();
|
|
- po.setX(a.getJSONObject("position").getDoubleValue("x"));
|
|
|
|
- po.setY(a.getJSONObject("position").getDoubleValue("y"));
|
|
|
|
- po.setZ(a.getJSONObject("position").getDoubleValue("z"));
|
|
|
|
|
|
+ po.setX(a.getJSONObject("position").getDoubleValue("x")*100);
|
|
|
|
+ po.setY(a.getJSONObject("position").getDoubleValue("y")*100);
|
|
|
|
+ po.setZ(a.getJSONObject("position").getDoubleValue("z")*100);
|
|
breakpointsEntity.setPosition(po);
|
|
breakpointsEntity.setPosition(po);
|
|
breakpointsEntity.setBreakPointId(a.getLong("id"));
|
|
breakpointsEntity.setBreakPointId(a.getLong("id"));
|
|
|
|
|
|
@@ -79,7 +79,7 @@ public class DevController {
|
|
breakpointsService.save(breakpointsEntity);
|
|
breakpointsService.save(breakpointsEntity);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+// //break*100
|
|
// File[] ls = FileUtil.ls(path);
|
|
// File[] ls = FileUtil.ls(path);
|
|
// for (File l : ls) {
|
|
// for (File l : ls) {
|
|
// List<File> files = FileUtil.loopFiles(l);
|
|
// List<File> files = FileUtil.loopFiles(l);
|
|
@@ -107,7 +107,7 @@ public class DevController {
|
|
// po.setY(a.getJSONObject("position").getDoubleValue("y"));
|
|
// po.setY(a.getJSONObject("position").getDoubleValue("y"));
|
|
// po.setZ(a.getJSONObject("position").getDoubleValue("z"));
|
|
// po.setZ(a.getJSONObject("position").getDoubleValue("z"));
|
|
// rotateFrameEntity.setCameraPosition(po);
|
|
// rotateFrameEntity.setCameraPosition(po);
|
|
-// rotateFrameEntity.setBreakPointId(l.getName());
|
|
|
|
|
|
+// rotateFrameEntity.setBreakPointId(Long.parseLong(l.getName()));
|
|
// rotateFrameEntity.setAppId("0000000001");
|
|
// rotateFrameEntity.setAppId("0000000001");
|
|
// rotateFrameEntityList.add(rotateFrameEntity);
|
|
// rotateFrameEntityList.add(rotateFrameEntity);
|
|
// }
|
|
// }
|
|
@@ -136,8 +136,8 @@ public class DevController {
|
|
// moveFrameEntity.setCameraPosition(po);
|
|
// moveFrameEntity.setCameraPosition(po);
|
|
// String name = file.getName().replace(".json", "");
|
|
// String name = file.getName().replace(".json", "");
|
|
// String[] s1 = name.split("_");
|
|
// String[] s1 = name.split("_");
|
|
-// moveFrameEntity.setStartBreakPointId(Integer.parseInt(s1[0]));
|
|
|
|
-// moveFrameEntity.setEndBreakPointId(Integer.parseInt(s1[1]));
|
|
|
|
|
|
+// moveFrameEntity.setStartBreakPointId(Long.parseLong(s1[0]));
|
|
|
|
+// moveFrameEntity.setEndBreakPointId(Long.parseLong(s1[1]));
|
|
// moveFrameEntity.setAngle(Integer.parseInt(s1[2]));
|
|
// moveFrameEntity.setAngle(Integer.parseInt(s1[2]));
|
|
// moveFrameEntity.setFrameIndex(a.getInteger("frame"));
|
|
// moveFrameEntity.setFrameIndex(a.getInteger("frame"));
|
|
// moveFrameEntity.setDirectory(file.getName().replace(".json",""));
|
|
// moveFrameEntity.setDirectory(file.getName().replace(".json",""));
|