You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/__test__/Geometry/boxExt.test.ts

14 lines
329 B

import { Box3Ext } from "../../src/Geometry/Box";
import { Vector3 } from "three";
test('盒子相减', () =>
{
let b = new Box3Ext(new Vector3(), new Vector3(100, 100, 100));
let b2 = new Box3Ext(new Vector3(200, 0, 0), new Vector3(205, 10, 300));
let bs = b.substract(b2, 0);
expect(bs.length).toBe(1);
});