webcad-api/types/DatabaseServices/ShapeManager.d.ts

29 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-05-08 10:53:13 +08:00
import { Matrix4 } from 'three';
2020-09-24 11:04:12 +08:00
import { BoolOpeartionType } from '../GraphicsSystem/BoolOperateUtils';
import { CADFiler } from './CADFiler';
import { Shape } from './Shape';
export declare class ShapeManager {
private _ShapeList;
2023-05-08 10:53:13 +08:00
constructor(_ShapeList?: Shape[]);
2020-09-24 11:04:12 +08:00
get ShapeList(): Shape[];
get ShapeCount(): number;
get ShapeArea(): number;
AppendShapeList(shapes: Shape | Shape[]): this;
Clear(): void;
BoolOper(otherMg: ShapeManager, booltype: BoolOpeartionType): boolean;
IntersectionBoolOperation(target: ShapeManager): boolean;
UnionBoolOperation(targetMg: ShapeManager): boolean;
SubstactBoolOperation(target: ShapeManager): boolean;
/**
* region.ApplyMatrix不同的是,.
* .
*
*
* @param {Matrix4} mat4
* @memberof ShapeManager
*/
ApplyMatrix(mat4: Matrix4): void;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=ShapeManager.d.ts.map