mirror of https://gitee.com/cf-fz/WebCAD.git
parent
bd0bc02bb3
commit
2c744de1e0
@ -0,0 +1,16 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`圆的包围盒 1`] = `
|
||||
Box3 {
|
||||
"max": Vector3 {
|
||||
"x": 797.2893269281506,
|
||||
"y": 28.66753717738038,
|
||||
"z": 0,
|
||||
},
|
||||
"min": Vector3 {
|
||||
"x": -653.9554950751378,
|
||||
"y": -1422.577284825908,
|
||||
"z": 0,
|
||||
},
|
||||
}
|
||||
`;
|
@ -0,0 +1,9 @@
|
||||
import { Circle } from "../../src/api";
|
||||
import { LoadEntityFromFileData } from "../Utils/LoadEntity.util";
|
||||
|
||||
test('圆的包围盒', () =>
|
||||
{
|
||||
let d = { "file": [1, "Region", 8, 2, 105, false, 1, 7, 0, [0.6691018466770633, 0.7431707198035619, 0, 0, -0.7431707198035619, 0.6691018466770633, 0, 0, 0, 0, -1, 0, 71.6669159265063, -696.9548738242638, 0, 1], 0, 0, true, [0.6691018466770633, 0.7431707198035619, 0, 0, -0.7431707198035619, 0.6691018466770633, 0, 0, 0, 0, -1, 0, 71.6669159265063, -696.9548738242638, 0, 1], 0, 1, 1, 1, 1, "Circle", 8, 2, 0, false, 0, 7, 0, [0.6691018466770633, 0.7431707198035619, 0, 0, 0.7431707198035619, -0.6691018466770633, 0, 0, 0, 0, -1, 0, 71.6669159265063, -696.9548738242638, 0, 1], 0, 0, true, [0.7431707198035619, -0.6691018466770633, 0, 0, 0.6691018466770633, 0.7431707198035619, 0, 0, 0, 0, -1, 0, -2215.799673512821, 1439.917154472948, 0, 1], 0, 1, 725.6224110016442, 0], "basePt": { "x": -653.9554950751378, "y": -1422.577284825908, "z": 0 }, "ucs": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] };
|
||||
let ens = LoadEntityFromFileData(d) as Circle[];
|
||||
expect(ens[0].BoundingBox).toMatchSnapshot();
|
||||
});
|
Loading…
Reference in new issue