This commit is contained in:
ChenX
2024-10-29 17:14:43 +08:00
parent 3cdbeeb178
commit dccd6ec73e
2683 changed files with 37067 additions and 201 deletions

26
types/Geometry/Box.d.ts vendored Normal file
View File

@@ -0,0 +1,26 @@
import { Box3 } from 'three';
/**
* 盒子的切割类型
*/
export declare enum SplitType {
X = 0,
Y = 1,
Z = 2
}
/**
* 扩展Box3,添加切割方法,体积等
*/
export declare class Box3Ext extends Box3 {
TempData: any;
get Volume(): number;
isSolid(minSize?: number): boolean;
substract(b: Box3Ext, spaceType: SplitType): Box3Ext[];
clampSpace(b2: Box3Ext, splitType: SplitType): this;
containsBox(box: Box3, fuzz?: number): boolean;
intersectsBox(box: Box3, fuzz?: number): boolean;
}
export declare function IntersectsBox(box1: Box3, box2: Box3, fuzz?: number): boolean;
/**盒子二维面是否相交 */
export declare function IntersectBox2(box1: Box3, box2: Box3, fuzz?: number): boolean;
export declare function BoxIsSolid(box: Box3, minSize?: number): boolean;
//# sourceMappingURL=Box.d.ts.map