webcad-ue4-api/types/DatabaseServices/Shape.d.ts

68 lines
2.5 KiB
TypeScript
Raw Normal View History

2021-01-28 10:17:21 +08:00
import { Matrix3, Matrix4, Shape as TShape, Vector3 } from 'three';
import { ObjectSnapMode } from '../Editor/ObjectSnapMode';
import { CADFiler } from './CADFiler';
import { Contour } from './Contour';
import { Curve } from './Entity/Curve';
export declare class Shape {
private _Outline;
private _Holes;
constructor(_Outline?: Contour, _Holes?: Contour[]);
2021-01-28 10:17:21 +08:00
get Outline(): Contour;
get Holes(): Contour[];
get Area(): number;
get BoundingBox(): import("../Geometry/Box").Box3Ext;
set Outline(con: Contour);
set Holes(holes: Contour[]);
2021-01-28 10:17:21 +08:00
get Shape(): TShape;
get Position(): Vector3;
set Position(p: Vector3);
Z0(): this;
MatrixPlanarizere(): void;
ApplyMatrix(m: Matrix4): this;
ApplyScaleMatrix(m: Matrix4): this;
Explode(): Curve[];
Clone(): Shape;
SetColor(color: number): void;
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3): Vector3[];
GetGripPoints(): Vector3[];
MoveGripPoints(indexList: Array<number>, vec: Vector3): void;
GetStretchPoints(): Vector3[];
MoveStretchPoints(indexList: Array<number>, vec: Vector3): void;
IntersectionBoolOperation(targetShape: Shape): Shape[];
UnionBoolOperation(targetShape: Shape, checkIntersect?: boolean): Shape[];
/**
* ,0.1n个
* @param targetShapes
*/
SubstactBoolOperation(targetShapes: Shape[]): Shape[];
Equal(targetShape: Shape): boolean;
private targetOutlinesSubHoles;
/**
*
*
* @private
* @param {Contour[]} tarContours
* @param {Contour[]} holes
* @returns {Contour[]}
* @memberof Shape
*/
private targetOutlineSubHoleOutline;
static pairHoleAndOutline(contours: Contour[]): Shape[];
/**
* ,使(),.
* canSidewipe ,,,
*/
static mergeContours(holes: Contour[], canSidewipe?: boolean): Contour[];
/**
* .(,)
*
* @private
* @param {Contour[]} tmpHoles
* @returns {Contour[]} .
* @memberof Shape
*/
private static removeBeContaineredHoles;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=Shape.d.ts.map