开发:清理

pull/1998/MERGE
ChenX 2 years ago
parent bddae0cb2b
commit 56788ac24d

@ -481,11 +481,10 @@ export class DrawDoorTool
doors.push(en); doors.push(en);
} }
let ocs = doors[0].SpaceOCSInv; let ocsInv = doors[0].SpaceOCSInv;
let doorBox: Box3 = doors[0].GetBoundingBoxInMtx(ocs); let doorBox = new Box3;
for (let door of doors)
for (let i = 1; i < doors.length; i++) doorBox.union(door.GetBoundingBoxInMtx(ocsInv)); //获取门板空间盒子
doorBox.union(doors[i].GetBoundingBoxInMtx(ocs)); //获取门板空间
let brBoxCache: Map<Board, Box3Ext> = new Map(); let brBoxCache: Map<Board, Box3Ext> = new Map();
@ -502,7 +501,7 @@ export class DrawDoorTool
for (let ironware of ironwareEnts) for (let ironware of ironwareEnts)
{ {
let realityBox = ironware.BoundingBox; let realityBox = ironware.BoundingBox;
let inventedBox = ironware.GetBoundingBoxInMtx(ocs); let inventedBox = ironware.GetBoundingBoxInMtx(ocsInv);
for (let otherEnt of allOtherEntitys) for (let otherEnt of allOtherEntitys)
{ {

Loading…
Cancel
Save