yanchengPowerSupply/node_modules/mxdraw/dist/lib/MxModule/MxDbAnyLine/index.d.ts

29 lines
887 B
TypeScript

/** @module MxDbAnyLine*/
import McGiWorldDraw from '../McGiWorldDraw';
import MxDbEntity from '../MxDbEntity';
import drawMxDbAnyLine from './draw';
/**
* MxDbAnyLine
* 任意线段
*/
declare class MxDbAnyLine extends MxDbEntity {
static cmd: string;
static draw: typeof drawMxDbAnyLine;
/** 构成线段的顶点坐标集合 */
points: THREE.Vector3[];
getTypeName(): string;
create(): MxDbAnyLine;
worldDraw(pWorldDraw: McGiWorldDraw): void;
/** 设置线段points
* @param points 构成线段的多个点
*/
setPoints(points: THREE.Vector3[]): this;
/** 获取线段的包围盒的中心点坐标 */
getCenter(): THREE.Vector3;
getGripPoints(): THREE.Vector3[];
moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
dwgIn(obj: any): boolean;
dwgOut(obj: any): object;
}
export default MxDbAnyLine;