|
|
|
@ -40,9 +40,20 @@ export class GeneralSpaceParse extends SpaceParse
|
|
|
|
|
spliteBoxes.push(box);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let spaces = this.MergeSpaces(unionBoxes) as Box3Ext;
|
|
|
|
|
|
|
|
|
|
spaces && this.SpliteBoxs(spaces, spliteBoxes);
|
|
|
|
|
if (unionBoxes.length > 0)
|
|
|
|
|
{
|
|
|
|
|
let spaces = this.MergeSpaces(unionBoxes) as Box3Ext;
|
|
|
|
|
|
|
|
|
|
spaces && this.SpliteBoxs(spaces, spliteBoxes);
|
|
|
|
|
}
|
|
|
|
|
else if (spliteBoxes.length > 0)
|
|
|
|
|
{
|
|
|
|
|
//获得总空间后用除第一个空间以外得空间进行切割
|
|
|
|
|
let box = new Box3Ext()
|
|
|
|
|
spliteBoxes.reduce((b1, b2) => <Box3Ext>b1.union(<Box3Ext>b2), box);
|
|
|
|
|
this.SpliteBoxs(box, spliteBoxes.slice(1));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|