|
|
|
@ -16,7 +16,6 @@ import { TextureTableRecord } from "../DatabaseServices/Texture";
|
|
|
|
|
import { Command } from "../Editor/CommandMachine";
|
|
|
|
|
import { PromptStatus } from "../Editor/PromptResult";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class Command_ExportData implements Command
|
|
|
|
|
{
|
|
|
|
|
async exec()
|
|
|
|
@ -113,8 +112,14 @@ function ConverSweep2Data(e: SweepSolid)
|
|
|
|
|
|
|
|
|
|
function ConveRegion2Data(e: Region)
|
|
|
|
|
{
|
|
|
|
|
e = e.Clone();
|
|
|
|
|
|
|
|
|
|
let reg: any = {};
|
|
|
|
|
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.OCS = e.OCS.toArray();
|
|
|
|
|
return reg;
|
|
|
|
|