|
|
@ -6,6 +6,7 @@ import { RoomWallParse } from "../../src/DatabaseServices/Room/ParseService/Room
|
|
|
|
import "../Utils/jest.util";
|
|
|
|
import "../Utils/jest.util";
|
|
|
|
import { LoadEntityFromFileData } from "../Utils/LoadEntity.util";
|
|
|
|
import { LoadEntityFromFileData } from "../Utils/LoadEntity.util";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test('重叠墙分析丢失墙体', () =>
|
|
|
|
test('重叠墙分析丢失墙体', () =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let d =
|
|
|
|
let d =
|
|
|
@ -91,7 +92,6 @@ test('测试重叠墙裁剪共面墙', () =>
|
|
|
|
{ "file": [9, "RoomWallLine", 1, 1, 8, 2, 102, false, 1, 1, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 7582.936440680016, 4072.8217140340644, 0, 11404.772886843615, 4072.8217140340644, 0, "RoomWallLine", 1, 1, 8, 2, 104, false, 1, 3, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 344.67866612827356, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 344.67866612827356, 0, 1], 0, 120, 8317.832194362007, 2405.5987617151795, 0, 8948.8726815918, 3591.519677371171, 0, "RoomWallLine", 1, 1, 8, 2, 105, false, 1, 2, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 344.67866612827356, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 344.67866612827356, 0, 1], 0, 120, 8948.8726815918, 3591.519677371171, 0, 10363.27377365858, 1720.1582324828173, 0, "RoomWallLine", 1, 1, 8, 2, 120, false, 1, 2, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -768.0628669331354, 38.73618487825024, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -768.0628669331354, 38.73618487825024, 0, 1], 0, 120, 7712.618614009485, 5843.207171574814, 0, 6464.123975442953, 5843.207171574814, 0, "RoomWallLine", 1, 1, 8, 2, 121, false, 1, 3, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 33.27857761626092, 1189.278029150868, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 33.27857761626092, 1189.278029150868, 0, 1], 0, 120, 5662.782530893557, 4692.665327302197, 0, 5662.782530893557, 4315.6736278761255, 0, "RoomWallLine", 1, 1, 8, 2, 122, false, 1, 1, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -768.0628669331354, 38.73618487825024, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -768.0628669331354, 38.73618487825024, 0, 1], 0, 120, 6464.123975442953, 5963.207171574814, 0, 7536.78656169138, 5963.207171574814, 0, "RoomWallLine", 1, 1, 8, 2, 123, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 33.27857761626092, 1189.278029150868, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 33.27857761626092, 1189.278029150868, 0, 1], 0, 120, 5662.782530893557, 4812.665327302197, 0, 5662.782530893557, 5140.162418546004, 0, "RoomWallLine", 1, 1, 8, 2, 124, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1013.3654121365089, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1013.3654121365089, 0, 0, 1], 0, 120, 8556.896201417756, 6120.087165973126, 0, 11068.716186983665, 6120.087165973126, 0, "RoomWallLine", 1, 1, 8, 2, 125, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1013.3654121365089, 120, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1013.3654121365089, 120, 0, 1], 0, 360, 11068.716186983665, 6120.087165973126, 0, 8556.896201417756, 6120.087165973126, 0], "basePt": { "x": 5636.061108509818, "y": 2028.6590400585872, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
|
|
|
{ "file": [9, "RoomWallLine", 1, 1, 8, 2, 102, false, 1, 1, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 7582.936440680016, 4072.8217140340644, 0, 11404.772886843615, 4072.8217140340644, 0, "RoomWallLine", 1, 1, 8, 2, 104, false, 1, 3, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 344.67866612827356, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 344.67866612827356, 0, 1], 0, 120, 8317.832194362007, 2405.5987617151795, 0, 8948.8726815918, 3591.519677371171, 0, "RoomWallLine", 1, 1, 8, 2, 105, false, 1, 2, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 344.67866612827356, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 344.67866612827356, 0, 1], 0, 120, 8948.8726815918, 3591.519677371171, 0, 10363.27377365858, 1720.1582324828173, 0, "RoomWallLine", 1, 1, 8, 2, 120, false, 1, 2, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -768.0628669331354, 38.73618487825024, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -768.0628669331354, 38.73618487825024, 0, 1], 0, 120, 7712.618614009485, 5843.207171574814, 0, 6464.123975442953, 5843.207171574814, 0, "RoomWallLine", 1, 1, 8, 2, 121, false, 1, 3, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 33.27857761626092, 1189.278029150868, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 33.27857761626092, 1189.278029150868, 0, 1], 0, 120, 5662.782530893557, 4692.665327302197, 0, 5662.782530893557, 4315.6736278761255, 0, "RoomWallLine", 1, 1, 8, 2, 122, false, 1, 1, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -768.0628669331354, 38.73618487825024, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -768.0628669331354, 38.73618487825024, 0, 1], 0, 120, 6464.123975442953, 5963.207171574814, 0, 7536.78656169138, 5963.207171574814, 0, "RoomWallLine", 1, 1, 8, 2, 123, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 33.27857761626092, 1189.278029150868, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 33.27857761626092, 1189.278029150868, 0, 1], 0, 120, 5662.782530893557, 4812.665327302197, 0, 5662.782530893557, 5140.162418546004, 0, "RoomWallLine", 1, 1, 8, 2, 124, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1013.3654121365089, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1013.3654121365089, 0, 0, 1], 0, 120, 8556.896201417756, 6120.087165973126, 0, 11068.716186983665, 6120.087165973126, 0, "RoomWallLine", 1, 1, 8, 2, 125, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1013.3654121365089, 120, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1013.3654121365089, 120, 0, 1], 0, 360, 11068.716186983665, 6120.087165973126, 0, 8556.896201417756, 6120.087165973126, 0], "basePt": { "x": 5636.061108509818, "y": 2028.6590400585872, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallLine>(d);
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallLine>(d);
|
|
|
|
|
|
|
|
|
|
|
|
new RoomWallParse(true, undefined, false).Do(walls);
|
|
|
|
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -101,7 +101,6 @@ test('月牙', () =>
|
|
|
|
{ "file": [2, "RoomWallArc", 1, 8, 2, 100, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 4496.077612614482, -741.9233039201708, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1620.5085099927596, 2464.3397133082917, 0, 1], 0, 120, 2, 1756.2993543878508, 2.8629180296730343, 5.25597253402777, false, "RoomWallArc", 1, 8, 2, 106, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5234.303124908539, -226.36979470591615, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5234.303124908539, -226.36979470591615, 0, 1], 0, 120, 2, 2426.985013452408, 4.347491344276138, 3.1549543991895943, true], "basePt": { "x": 2747.5401166365295, "y": -2549.6124485068253, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
|
|
|
{ "file": [2, "RoomWallArc", 1, 8, 2, 100, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 4496.077612614482, -741.9233039201708, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1620.5085099927596, 2464.3397133082917, 0, 1], 0, 120, 2, 1756.2993543878508, 2.8629180296730343, 5.25597253402777, false, "RoomWallArc", 1, 8, 2, 106, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5234.303124908539, -226.36979470591615, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5234.303124908539, -226.36979470591615, 0, 1], 0, 120, 2, 2426.985013452408, 4.347491344276138, 3.1549543991895943, true], "basePt": { "x": 2747.5401166365295, "y": -2549.6124485068253, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallArc>(d);
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallArc>(d);
|
|
|
|
|
|
|
|
|
|
|
|
new RoomWallParse(true, undefined, false).Do(walls);
|
|
|
|
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -111,7 +110,6 @@ test('双圆弧', () =>
|
|
|
|
{ "file": [2, "RoomWallArc", 1, 8, 2, 112, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 4660.422705930473, -1880.3542100014474, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1784.8536033087516, 1325.9088072270151, 0, 1], 0, 120, 2, 1883.3093734998954, 4.864938171508393, 4.013217893950692, true, "RoomWallLine", 1, 1, 8, 2, 113, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 3448.3559093243402, -3321.793864262949, 0, 4946.607028421562, -3741.792559738791, 0], "basePt": { "x": 3409.7409432351606, "y": -3823.6618271889474, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
|
|
|
{ "file": [2, "RoomWallArc", 1, 8, 2, 112, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 4660.422705930473, -1880.3542100014474, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1784.8536033087516, 1325.9088072270151, 0, 1], 0, 120, 2, 1883.3093734998954, 4.864938171508393, 4.013217893950692, true, "RoomWallLine", 1, 1, 8, 2, 113, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 3448.3559093243402, -3321.793864262949, 0, 4946.607028421562, -3741.792559738791, 0], "basePt": { "x": 3409.7409432351606, "y": -3823.6618271889474, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallArc>(d);
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallArc>(d);
|
|
|
|
|
|
|
|
|
|
|
|
new RoomWallParse(true, undefined, false).Do(walls);
|
|
|
|
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -122,7 +120,6 @@ test('直线与圆弧', () =>
|
|
|
|
|
|
|
|
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallArc>(d);
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallArc>(d);
|
|
|
|
|
|
|
|
|
|
|
|
new RoomWallParse(true, undefined, false).Do(walls);
|
|
|
|
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -143,7 +140,6 @@ test('直线圆弧2', () =>
|
|
|
|
{ "file": [2, "RoomWallArc", 1, 8, 2, 102, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2875.5691026217214, -3206.2630172284626, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 2, 1427.019691385767, 1.5707963267948963, 5.12541940334308, true, "RoomWallLine", 1, 1, 8, 2, 103, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 3448.3559093243402, -4513.28270861423, 0, 7698.725050158591, -4513.28270861423, 0], "basePt": { "x": 2875.569102621722, "y": -4573.28270861423, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
|
|
|
{ "file": [2, "RoomWallArc", 1, 8, 2, 102, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2875.5691026217214, -3206.2630172284626, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 2, 1427.019691385767, 1.5707963267948963, 5.12541940334308, true, "RoomWallLine", 1, 1, 8, 2, 103, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 3448.3559093243402, -4513.28270861423, 0, 7698.725050158591, -4513.28270861423, 0], "basePt": { "x": 2875.569102621722, "y": -4573.28270861423, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallArc>(d);
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallArc>(d);
|
|
|
|
|
|
|
|
|
|
|
|
new RoomWallParse(true, undefined, false).Do(walls);
|
|
|
|
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -167,7 +163,6 @@ test('圆弧变大', () =>
|
|
|
|
|
|
|
|
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallArc>(d);
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallArc>(d);
|
|
|
|
|
|
|
|
|
|
|
|
new RoomWallParse(true, undefined, false).Do(walls);
|
|
|
|
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -178,7 +173,6 @@ test('圆弧与直线延伸连接错误', () =>
|
|
|
|
|
|
|
|
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallArc>(d);
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallArc>(d);
|
|
|
|
|
|
|
|
|
|
|
|
new RoomWallParse(true, undefined, false).Do(walls);
|
|
|
|
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -201,3 +195,28 @@ test('因为面域分析导致的墙类型不对', () =>
|
|
|
|
w.LidCurves.forEach(TestCurveType);
|
|
|
|
w.LidCurves.forEach(TestCurveType);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test('墙厚度导致的破面', () =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
let d =
|
|
|
|
|
|
|
|
{ "file": [5, "RoomWallLine", 1, 1, 8, 2, 182, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 240, 11267.149565616683, 3556.463141871858, 0, 6209.54639995897, 1648.7027338926612, 0, "RoomWallLine", 1, 1, 8, 2, 226, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 13215.079750883982, 2493.2410833026615, 0, 4095.0486089909755, 2493.2410833026615, 0, "RoomWallLine", 1, 1, 8, 2, 348, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 6209.54639995897, 1648.7027338926612, 0, 13215.079750883982, 2493.2410833026615, 0, "RoomWallLine", 1, 1, 8, 2, 350, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 240, 19704.739930166426, 2493.2410833026615, 0, 14776.045214490798, 1417.472659820908, 0, "RoomWallLine", 1, 1, 8, 2, 351, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 14776.045214490798, 1417.472659820908, 0, 14890.795870036949, -473.79760778945183, 0], "basePt": { "x": 4095.0486089909755, "y": -477.4313566665644, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
|
|
|
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallBase>(d);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
let d2 =
|
|
|
|
|
|
|
|
{ "file": [3, "RoomWallLine", 1, 1, 8, 2, 182, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 240, 6727.498057253742, 3560.1172669223483, 0, 6209.54639995897, 1648.7027338926612, 0, "RoomWallLine", 1, 1, 8, 2, 226, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 13215.079750883982, 2493.2410833026615, 0, 4095.0486089909755, 2493.2410833026615, 0, "RoomWallLine", 1, 1, 8, 2, 348, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0, 120, 6209.54639995897, 1648.7027338926612, 0, 13215.079750883982, 2493.2410833026615, 0], "basePt": { "x": 4095.0486089909755, "y": 1589.1340295891598, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
walls = LoadEntityFromFileData<RoomWallBase>(d2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test('TODO:应该适当的延伸,应该合理的判断', () =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
let d =
|
|
|
|
|
|
|
|
{ "file": [4, "RoomWallLine", 1, 1, 8, 2, 100, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -4214.193942419408, -1440.0043542405433, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -4214.193942419408, -1440.0043542405433, 0, 1], 0, 240, 7967.554880617505, 3146.8334229914917, 0, 6209.54639995897, 1648.7027338926612, 0, "RoomWallLine", 1, 1, 8, 2, 101, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -4214.193942419408, -1440.0043542405433, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -4214.193942419408, -1440.0043542405433, 0, 1], 0, 120, 6209.54639995897, 1648.7027338926612, 0, 4161.649025909495, 2005.5816431119943, 0, "RoomWallLine", 1, 1, 8, 2, 102, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -3647.4661029658027, -2776.6553702892907, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -3647.4661029658027, -2776.6553702892907, 0, 1], 0, 240, 4095.0486089909755, 2493.2410833026615, 0, 6075.834594752296, 1322.2148703338619, 0, "RoomWallLine", 1, 1, 8, 2, 103, false, 1, 7, 0, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -3647.4661029658027, -2776.6553702892907, 0, 1], 0, 0, true, [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -3647.4661029658027, -2776.6553702892907, 0, 1], 0, 120, 6075.834594752296, 1322.2148703338619, 0, 7901.571915130223, 1858.040227258869, 0], "basePt": { "x": -62.84563758389231, "y": -1557.7388499328842, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
|
|
|
|
|
|
|
let walls = LoadEntityFromFileData<RoomWallBase>(d);
|
|
|
|
|
|
|
|
TestWallCurveParse(walls);
|
|
|
|
|
|
|
|
});
|
|
|
|