修复:Expv对Sweep传送数据错误

pull/1876/MERGE
ChenX 2 years ago
parent 10ce50b6aa
commit d8aee3710e

@ -21,6 +21,7 @@ import { Curve } from "../DatabaseServices/Entity/Curve";
import { Entity } from "../DatabaseServices/Entity/Entity";
import { EntityRef } from '../DatabaseServices/Entity/EntityRef';
import { ExtrudeSolid } from "../DatabaseServices/Entity/Extrude";
import { Line } from '../DatabaseServices/Entity/Line';
import { Polyline } from "../DatabaseServices/Entity/Polyline";
import { Region } from "../DatabaseServices/Entity/Region";
import { HardwareCompositeEntity } from '../DatabaseServices/Hardware/HardwareCompositeEntity';
@ -251,6 +252,16 @@ function Curve2Data(cu: Curve, AligenToWCS = true): Object
cud.Center = cu.Center;
cud.Radius = cu.Radius;
}
else if (cu instanceof Line)//我们暂时转换为多段线,因为Sweep会使用这个
{
cud.Type = "Polyline";
let sp = cu.StartPoint;
let ep = cu.EndPoint;
cud.Pts = [sp, ep];
cud.Buls = [0, 0];
cud.IsClose = false;
}
return cud;
}

Loading…
Cancel
Save