升级依赖,修复面域导出

pull/685/head
ChenX 5 years ago
parent 02ccd977de
commit ebcc6b774c

@ -46,7 +46,7 @@
"gitlog": "^3.1.2", "gitlog": "^3.1.2",
"html-loader": "^0.5.5", "html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"jest": "^23.6.0", "jest": "^24.9.0",
"jest-snapshot": "^24.9.0", "jest-snapshot": "^24.9.0",
"less": "^3.10.3", "less": "^3.10.3",
"less-loader": "^5.0.0", "less-loader": "^5.0.0",
@ -89,7 +89,7 @@
"react-dom": "^16.12.0", "react-dom": "^16.12.0",
"react-rnd2": "^1.0.1", "react-rnd2": "^1.0.1",
"stats.js": "^0.17.0", "stats.js": "^0.17.0",
"three": "^0.111.0", "three": "^0.112.0",
"xaop": "^1.3.3" "xaop": "^1.3.3"
}, },
"jest": { "jest": {

@ -16,7 +16,6 @@ import { TextureTableRecord } from "../DatabaseServices/Texture";
import { Command } from "../Editor/CommandMachine"; import { Command } from "../Editor/CommandMachine";
import { PromptStatus } from "../Editor/PromptResult"; import { PromptStatus } from "../Editor/PromptResult";
export class Command_ExportData implements Command export class Command_ExportData implements Command
{ {
async exec() async exec()
@ -113,8 +112,14 @@ function ConverSweep2Data(e: SweepSolid)
function ConveRegion2Data(e: Region) function ConveRegion2Data(e: Region)
{ {
e = e.Clone();
let reg: any = {}; let reg: any = {};
reg.Type = "Region"; reg.Type = "Region";
let ocsInv = e.OCSInv;
for (let s of e.ShapeManager.ShapeList)
s.ApplyMatrix(ocsInv);
reg.Shapes = e.ShapeManager.ShapeList.map(ConverShape2Data); reg.Shapes = e.ShapeManager.ShapeList.map(ConverShape2Data);
reg.OCS = e.OCS.toArray(); reg.OCS = e.OCS.toArray();
return reg; return reg;

Loading…
Cancel
Save