///
///
///
declare module "copyright" {
export class FoundationRuntimeGraphicsCopyright {
static toString(): string;
}
}
declare module "foundation/runtime/graphics/shape/brep/Curve" {
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
export abstract class Curve extends InstanceObject {
needsUpdate: boolean;
__arcLengthDivisions: any;
cacheArcLengths: any;
constructor();
abstract getPoint(step: any): any;
getPointAt(u: any): any;
getPoints(divisions?: number): Array;
getSpacedPoints(divisions?: number): Array;
getLength(): number;
getLengths(divisions?: any): any;
updateArcLengths(): void;
getUtoTmapping(u: any, distance?: any): number;
getTangent(t: any): any;
getTangentAt(u: any): any;
}
}
declare module "foundation/runtime/graphics/core/GraphicEventEnum" {
export class GraphicEventEnum {
static Added: string;
static Dispose: string;
static Update: string;
static Removed: string;
}
}
declare module "foundation/runtime/graphics/core/Actor" {
import { Node } from 'cross/runtime/framework/node/Node';
import { Euler } from 'foundation/runtime/math/Euler';
import { Matrix3 } from 'foundation/runtime/math/Matrix3';
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { Quaternion } from 'foundation/runtime/math/Quaternion';
import { Value3 } from 'foundation/runtime/math/Value3';
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class Actor extends Node {
static DefaultMatrixAutoUpdate: boolean;
parent: Actor;
typeName: string;
label: string;
visible: boolean;
position: Vector3;
rotation: Euler;
quaternion: Quaternion;
scale: Vector3;
matrixAutoUpdate: boolean;
matrix: Matrix4;
normalMatrix: Matrix3;
modelViewMatrix: Matrix4;
matrixWorld: Matrix4;
matrixWorldNeedsUpdate: boolean;
renderOrder: number;
receiveShadow: boolean;
castShadow: boolean;
up: Vector3;
children: Array;
frustumCulled: any;
constructor();
getWorldPosition(target?: Vector3): Vector3;
getWorldRotation(target: Euler): Euler;
getWorldQuaternion(target: Quaternion): Quaternion;
getWorldDirection(target?: Vector3): Vector3;
getWorldScale(target: any): any;
getObjectByProperty(name: string, value: any): Actor;
getObjectById(id: number): Actor;
getObjectByName(name: string): Actor;
contains(value: Actor): boolean;
localToWorld(value: Vector3): Vector3;
worldToLocal(value: Vector3): Vector3;
translateOnAxis(axis: Value3, distance: number): Actor;
translateX(distance: number): Actor;
translateY(distance: number): Actor;
translateZ(distance: number): Actor;
rotateOnAxis(axis: Vector3, rad: number): Actor;
rotateX(rad: number): Actor;
rotateY(rad: number): Actor;
rotateZ(rad: number): Actor;
setRotationFromAxisAngle(axis: Vector3, angle: number): void;
setRotationFromEuler(value: Euler): void;
setRotationFromQuaternion(value: Quaternion): void;
setRotationFromMatrix(value: Matrix4): void;
applyMatrix(matrix: Matrix4): void;
updateMatrix(): void;
updateMatrixWorld(force?: boolean): void;
lookAt(position: Vector3): void;
raycast(v1?: any, v2?: any): any;
add(actor: Actor, v1?: any, v2?: any, v3?: any, v4?: any, v5?: any, v6?: any): any;
remove(actor: Actor, v1?: any, v2?: any, v3?: any, v4?: any, v5?: any, v6?: any): void;
removeChildren(): void;
traverse(callback: any): void;
traverseVisible(callback: any): void;
traverseAncestors(callback: any): void;
copy(source: Actor, recursive?: boolean): any;
clone(recursive?: boolean): any;
dispose(): void;
}
export type ActorMap = {
[key: string]: Actor;
};
}
declare module "foundation/runtime/graphics/core/BlendingEnum" {
export class BlendingEnum {
static NoBlending: number;
static NormalBlending: number;
static AdditiveBlending: number;
static SubtractiveBlending: number;
static MultiplyBlending: number;
static CustomBlending: number;
static AddEquation: number;
static SubtractEquation: number;
static ReverseSubtractEquation: number;
static MinEquation: number;
static MaxEquation: number;
static ZeroFactor: number;
static OneFactor: number;
static SrcColorFactor: number;
static OneMinusSrcColorFactor: number;
static SrcAlphaFactor: number;
static OneMinusSrcAlphaFactor: number;
static DstAlphaFactor: number;
static OneMinusDstAlphaFactor: number;
static DstColorFactor: number;
static OneMinusDstColorFactor: number;
static SrcAlphaSaturateFactor: number;
}
}
declare module "foundation/runtime/graphics/core/ColorEnum" {
export class ColorEnum {
static NoColors: number;
static FaceColors: number;
static VertexColors: number;
}
}
declare module "foundation/runtime/graphics/core/Component" {
import { Dispatcher } from 'cross/runtime/lang/Dispatcher';
export class Component extends Dispatcher {
typeName: string;
id: string;
name: string;
label: string;
constructor();
}
}
declare module "foundation/runtime/graphics/core/DepthModeEnum" {
export class DepthModeEnum {
static NeverDepth: number;
static AlwaysDepth: number;
static LessDepth: number;
static LessEqualDepth: number;
static EqualDepth: number;
static GreaterEqualDepth: number;
static GreaterDepth: number;
static NotEqualDepth: number;
}
}
declare module "foundation/runtime/graphics/core/ShadingEnum" {
export class ShadingEnum {
static FlatShading: number;
static SmoothShading: number;
}
}
declare module "foundation/runtime/graphics/core/SideEnum" {
export class SideEnum {
static FrontSide: number;
static BackSide: number;
static DoubleSide: number;
}
}
declare module "foundation/runtime/graphics/core/FilterEnum" {
export class FilterEnum {
static NearestFilter: number;
static NearestMipMapNearestFilter: number;
static NearestMipMapLinearFilter: number;
static LinearFilter: number;
static LinearMipMapNearestFilter: number;
static LinearMipMapLinearFilter: number;
}
}
declare module "foundation/runtime/graphics/core/GraphicDataEnum" {
export class GraphicDataEnum {
static UnsignedByteType: number;
static ByteType: number;
static ShortType: number;
static UnsignedShortType: number;
static IntType: number;
static UnsignedIntType: number;
static FloatType: number;
static HalfFloatType: number;
}
}
declare module "foundation/runtime/graphics/core/MappingModeEnum" {
export class MappingModeEnum {
static UVMapping: number;
static CubeReflectionMapping: number;
static CubeRefractionMapping: number;
static EquirectangularReflectionMapping: number;
static EquirectangularRefractionMapping: number;
static SphericalReflectionMapping: number;
static CubeUVReflectionMapping: number;
static CubeUVRefractionMapping: number;
}
}
declare module "foundation/runtime/graphics/core/PixelFormatEnum" {
export class PixelFormatEnum {
static AlphaFormat: number;
static RGBFormat: number;
static RGBEFormat: number;
static RGBAFormat: number;
static LuminanceFormat: number;
static LuminanceAlphaFormat: number;
static DepthFormat: number;
static UnsignedShort4444Type: number;
static UnsignedShort5551Type: number;
static UnsignedShort565Type: number;
}
}
declare module "foundation/runtime/graphics/core/TextureEncodingEnum" {
export class TextureEncodingEnum {
static LinearEncoding: number;
static sRGBEncoding: number;
static GammaEncoding: number;
static RGBEEncoding: number;
static LogLuvEncoding: number;
static RGBM7Encoding: number;
static RGBM16Encoding: number;
static RGBDEncoding: number;
}
}
declare module "foundation/runtime/graphics/core/WrappingModeEnum" {
export class WrappingModeEnum {
static RepeatWrapping: number;
static ClampToEdgeWrapping: number;
static MirroredRepeatWrapping: number;
}
}
declare module "foundation/runtime/graphics/texture/Texture" {
import { Vector2 } from 'foundation/runtime/math/Vector2';
import { Component } from "foundation/runtime/graphics/core/Component";
import { FilterEnum } from "foundation/runtime/graphics/core/FilterEnum";
import { GraphicDataEnum } from "foundation/runtime/graphics/core/GraphicDataEnum";
import { PixelFormatEnum } from "foundation/runtime/graphics/core/PixelFormatEnum";
import { TextureEncodingEnum } from "foundation/runtime/graphics/core/TextureEncodingEnum";
import { WrappingModeEnum } from "foundation/runtime/graphics/core/WrappingModeEnum";
export class Texture extends Component {
static DEFAULT_IMAGE: any;
static DEFAULT_MAPPING: number;
offset: Vector2;
repeat: Vector2;
minFilter: FilterEnum;
magFilter: FilterEnum;
wrapS: WrappingModeEnum;
wrapT: WrappingModeEnum;
format: PixelFormatEnum;
typeCd: GraphicDataEnum;
anisotropy: number;
generateMipmaps: boolean;
premultiplyAlpha: boolean;
encoding: TextureEncodingEnum;
sourceFile: any;
image: any;
mipmaps: any;
mapping: any;
flipY: any;
unpackAlignment: any;
onUpdate: any;
constructor(image?: any, mapping?: any, wrapS?: any, wrapT?: any, magFilter?: any, minFilter?: any, format?: any, typeCd?: any, anisotropy?: any, encoding?: any);
setFilterCd(minCd: FilterEnum, magCd: FilterEnum): void;
setWrapCd(wrapS: WrappingModeEnum, wrapT: WrappingModeEnum): void;
transformUv(uv: any): void;
copy(source: Texture): any;
clone(): any;
dispose(): void;
}
}
declare module "foundation/runtime/graphics/material/Material" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { Color } from 'foundation/runtime/math/Color';
import { BlendingEnum } from "foundation/runtime/graphics/core/BlendingEnum";
import { ColorEnum } from "foundation/runtime/graphics/core/ColorEnum";
import { Component } from "foundation/runtime/graphics/core/Component";
import { DepthModeEnum } from "foundation/runtime/graphics/core/DepthModeEnum";
import { ShadingEnum } from "foundation/runtime/graphics/core/ShadingEnum";
import { SideEnum } from "foundation/runtime/graphics/core/SideEnum";
import { Texture } from "foundation/runtime/graphics/texture/Texture";
export interface MaterialParameters {
name?: string;
side?: any;
opacity?: number;
transparent?: boolean;
blending?: any;
blendSrc?: any;
blendDst?: any;
blendEquation?: any;
depthTest?: boolean;
depthWrite?: boolean;
polygonOffset?: boolean;
polygonOffsetFactor?: number;
polygonOffsetUnits?: number;
alphaTest?: number;
overdraw?: number;
visible?: boolean;
needsUpdate?: boolean;
}
export class Material extends Component {
effectCode: string;
visible: boolean;
sortLevel: number;
transparent: boolean;
opacityBase: number;
opacity: number;
ambientColor: Color;
diffuseColor: Color;
specularColor: Color;
emissiveColor: Color;
shininess: number;
shading: ShadingEnum;
side: SideEnum;
vertexColors: ColorEnum;
depthFunc: DepthModeEnum;
depthTest: boolean;
depthWrite: boolean;
blending: BlendingEnum;
blendSrc: BlendingEnum;
blendSrcAlpha: number;
blendDst: BlendingEnum;
blendDstAlpha: number;
blendEquation: any;
blendEquationAlpha: any;
polygonOffset: boolean;
polygonOffsetFactor: number;
polygonOffsetUnits: number;
textures: Dictionary;
version: number;
type: string;
map: any;
emissiveIntensity: number;
fog: any;
lights: any;
clipping: boolean;
clippingPlanes: any;
clipShadows: any;
colorWrite: any;
precision: any;
alphaTest: any;
premultipliedAlpha: any;
overdraw: any;
_needsUpdate: any;
roughness: any;
metalness: any;
alphaMap: any;
lightMap: any;
bumpMap: any;
bumpScale: any;
normalMap: any;
displacementMap: any;
roughnessMap: any;
metalnessMap: any;
emissiveMap: any;
specularMap: any;
envMap: any;
size: any;
sizeAttenuation: any;
wireframe: any;
wireframeLinewidth: any;
normalScale: any;
displacementScale: any;
displacementBias: any;
aoMap: any;
aoMapIntensity: any;
reflectivity: any;
refractionRatio: any;
combine: any;
skinning: any;
morphTargets: any;
morphNormals: any;
depthPacking: any;
constructor();
findTexture(code: string): Texture;
setTexture(code: string, texture: Texture): void;
setValues(values: any): void;
reset(): void;
update(): void;
dirty(): void;
dispose(): void;
get color(): Color;
get specular(): Color;
get emissive(): Color;
get needsUpdate(): boolean;
set needsUpdate(value: boolean);
copy(source: any): any;
clone(): any;
}
export class MaterialMap {
[key: string]: Material;
}
}
declare module "foundation/runtime/graphics/actor/CurveActor" {
import { Curve } from "foundation/runtime/graphics/shape/brep/Curve";
import { Actor } from "foundation/runtime/graphics/core/Actor";
import { Material } from "foundation/runtime/graphics/material/Material";
export class CurveActor extends Actor {
curve: Curve;
material: Material;
constructor(curve?: Curve, material?: Material);
}
}
declare module "foundation/runtime/graphics/data/BufferAttribute" {
import { DataTypeEnum } from 'cross/runtime/lang/DataTypeEnum';
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { Value2 } from 'foundation/runtime/math/Value2';
import { Value3 } from 'foundation/runtime/math/Value3';
import { Value4 } from 'foundation/runtime/math/Value4';
export class BufferAttribute extends InstanceObject {
dataCd: DataTypeEnum;
dataClazz: Function;
array: any;
stride: number;
normalized: boolean;
protected _position: number;
constructor(clazz?: any, array?: any, stride?: number, normalized?: boolean, dynamic?: boolean);
get count(): number;
set(value: number, offset?: number): BufferAttribute;
getX(index: number): number;
setX(index: number, value: number): BufferAttribute;
getY(index: number): number;
setY(index: number, value: number): BufferAttribute;
getZ(index: number): number;
setZ(index: number, value: number): BufferAttribute;
getW(index: number): number;
setW(index: number, value: number): BufferAttribute;
setXY(index: number, x: number, y: number): BufferAttribute;
setXYZ(index: number, x: number, y: number, z: number): BufferAttribute;
setXYZW(index: number, x: number, y: number, z: number, w: number): BufferAttribute;
setData1(index: number, v1: number): BufferAttribute;
setData2(index: number, v1: number, v2: number): BufferAttribute;
setData3(index: number, v1: number, v2: number, v3: number): BufferAttribute;
setData4(index: number, v1: number, v2: number, v3: number, v4: number): BufferAttribute;
getValue2(index: number, target?: Value2): Value2;
setValue2(index: number, value: Value2): BufferAttribute;
getValue3(index: number, target?: Value3): Value3;
setValue3(index: number, value: Value3): BufferAttribute;
getValue4(index: number, target?: Value4): Value4;
setValue4(index: number, value: Value4): BufferAttribute;
setColor(index: number, color: number, alpha?: number): BufferAttribute;
setColor4(index: number, color: number): BufferAttribute;
setArray(array: Array): void;
copy(source: BufferAttribute): BufferAttribute;
copyAt(index1: number, attribute: any, index2: number): BufferAttribute;
copyArray(array: any): BufferAttribute;
copyColorsArray(colors: Array): BufferAttribute;
copyColorValueArray(colors: Array): BufferAttribute;
copyIndicesArray(indices: Array): BufferAttribute;
copyVector2sArray(vectors: Array): BufferAttribute;
copyVector3sArray(vectors: Array): BufferAttribute;
copyVector4sArray(vectors: Array): BufferAttribute;
resize(length: number): void;
write1(v1: number): any;
write2(v1: number, v2: number): any;
write3(v1: number, v2: number, v3: number): any;
write4(v1: number, v2: number, v3: number, v4: number): any;
writeByte4Color(color: number): any;
writeFloatColor(color: number): any;
writeValue3(value: Value3): any;
writes(v1?: number, v2?: number, v3?: number, v4?: number, v5?: number, v6?: number, v7?: number, v8?: number): any;
clear(): void;
reset(): void;
clone(): any;
dispose(): void;
}
export class Int8Attribute extends BufferAttribute {
constructor(array: any, stride?: number);
}
export class Uint8Attribute extends BufferAttribute {
constructor(array: any, stride?: number);
}
export class Uint8ClampedAttribute extends BufferAttribute {
constructor(array: any, stride?: number);
}
export class Int16Attribute extends BufferAttribute {
constructor(array: any, stride?: number);
}
export class Uint16Attribute extends BufferAttribute {
constructor(array: any, stride?: number);
}
export class Int32Attribute extends BufferAttribute {
constructor(array: any, stride?: number);
}
export class Uint32Attribute extends BufferAttribute {
constructor(array: any, stride?: number);
}
export class Float32Attribute extends BufferAttribute {
constructor(array: any, stride?: number);
}
export class Float64Attribute extends BufferAttribute {
constructor(array: any, stride?: number);
}
export type BufferAttributeMap = {
[key: string]: BufferAttribute;
};
}
declare module "foundation/runtime/graphics/data/IndexBuffer" {
import { BufferAttribute } from "foundation/runtime/graphics/data/BufferAttribute";
export class IndexBuffer extends BufferAttribute {
}
}
declare module "foundation/runtime/graphics/data/BufferComponent" {
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
export class BufferComponent extends InstanceObject {
static IdCounter: number;
typeName: string;
uniqueId: number;
constructor();
makeBufferGeometry(geometry: BufferGeometry): BufferGeometry;
}
}
declare module "foundation/runtime/graphics/data/Lines" {
import { Box3 } from 'foundation/runtime/math/Box3';
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { Sphere } from 'foundation/runtime/math/Sphere';
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { BufferComponent } from "foundation/runtime/graphics/data/BufferComponent";
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
export class Lines extends BufferComponent {
matrix: Matrix4;
boundingBox: Box3;
boundingSphere: Sphere;
needUpdate: boolean;
protected _positions: Array;
protected _colors: Array;
protected _indexes: Array;
protected _dirty: boolean;
constructor();
setData(count: number, positions?: Array, color?: Array, indexes?: Array): void;
setCircleData(count: number, positions?: Array, color?: Array, indexes?: Array): void;
initCircleSegment(segmentCount: number, color: number): void;
initSegment(segmentCount: number, color: number): void;
setAllColor(color: number): void;
get positions(): Array;
hasColor(): boolean;
get colors(): Array;
hasIndexes(): boolean;
get indexes(): Array;
testDirty(): boolean;
computeBoundingBox(): Box3;
computeBoundingSphere(): Sphere;
updateData(precision?: number): void;
update(flag?: boolean): void;
merge(geometry: Lines, faceOffset?: number, faceCount?: number): void;
makeBufferGeometry(geometry?: BufferGeometry, segmentsMode?: boolean): BufferGeometry;
dirty(): void;
reset(): void;
dispose(): void;
}
}
declare module "foundation/runtime/graphics/data/Uint16IndexBuffer" {
import { IndexBuffer } from "foundation/runtime/graphics/data/IndexBuffer";
export class Uint16IndexBuffer extends IndexBuffer {
constructor(stride?: number, count?: number);
}
}
declare module "foundation/runtime/graphics/data/Uint32IndexBuffer" {
import { IndexBuffer } from "foundation/runtime/graphics/data/IndexBuffer";
export class Uint32IndexBuffer extends IndexBuffer {
constructor(stride?: number, count?: number);
}
}
declare module "foundation/runtime/graphics/data/BufferGeometry" {
import { DataStream } from 'cross/runtime/lang/stream/DataStream';
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { BrepBody } from 'foundation/runtime/geometry/brep/BrepBody';
import { BoxSolid } from 'foundation/runtime/geometry/solid/BoxSolid';
import { SphereSolid } from 'foundation/runtime/geometry/solid/SphereSolid';
import { BufferAttribute, BufferAttributeMap } from "foundation/runtime/graphics/data/BufferAttribute";
import { IndexBuffer } from "foundation/runtime/graphics/data/IndexBuffer";
import { Lines } from "foundation/runtime/graphics/data/Lines";
export class BufferGeometryEnum {
static POINT: string;
static LINE: string;
static FACE: string;
}
export class BufferGeometry extends InstanceObject {
typeName: string;
uniqueNumber: number;
id: string;
name: string;
attributes: BufferAttributeMap;
index: IndexBuffer;
boundingBox: BoxSolid;
boundingSphere: SphereSolid;
static MAX_UNDIGEND_SHORT: number;
static MAX_UNDIGEND_INT: number;
constructor();
get vertexCount(): number;
testValid(): boolean;
flipX(): BufferGeometry;
flipY(): BufferGeometry;
flipZ(): BufferGeometry;
flipFace(): BufferGeometry;
flipNormal(): void;
static lineStrip(indexs: Array, flag: number): Array;
static triangleStrip(indexs: Array, flag: number): Array;
indexStrip(): BufferGeometry;
applyMatrix(matrix: Matrix4): BufferGeometry;
isBufferNeedCompress(): boolean;
compressBuffer(): void;
translate(x: number, y: number, z: number): BufferGeometry;
rotateX(angle: number): BufferGeometry;
rotateY(angle: number): BufferGeometry;
rotateZ(angle: any): BufferGeometry;
scale(x: number, y: number, z: number): BufferGeometry;
getAttribute(name: string): BufferAttribute;
getData(name: string): any;
addAttribute(name: string, attribute: BufferAttribute): BufferGeometry;
defineAttribute(name: string, type: Function, itemSize: number, count: number, normalize?: boolean): void;
syncAttribute(name: string, clazz: Function, itemSize: number, count?: number, normalize?: boolean): BufferAttribute;
removeAttribute(name: string): BufferGeometry;
syncIndex(clazz: Function, itemSize: number, count?: number): BufferAttribute;
computeBoundingBox(): BoxSolid;
computeBoundingSphere(): any;
mergeGeometries(geometries: Array, matrixs?: Array, isCheckUV?: boolean): BufferGeometry;
mergeInstanceGeometries(geometries: Array, matrixs?: Array, isCheckUV?: boolean): BufferGeometry;
setIntColor(color: number): void;
setColor(r: number, g: number, b: number, a: number): void;
mergeLines(geometries: Array, matrixs?: Array): BufferGeometry;
normalizeNormals(): void;
computeVertexNormals(): void;
center(): any;
toNonIndexed(): BufferGeometry;
fromDirectGeometry(geometry: any): BufferGeometry;
checkValid(typeCd?: BufferGeometryEnum, isCheckUV?: boolean): boolean;
private checkCommonValid;
private checkFaceValid;
private checkLineValid;
faceReverse(): boolean;
private checkPointValid;
copy(source: any): any;
serialize(output: DataStream): void;
unserialize(input: DataStream): void;
clone(): any;
dispose(): void;
toBrepBody(data?: any, tolerance?: number): BrepBody;
static generateBufferGeometry(indices: Array, positions: Array, normals: Array, uvs: Array, isFloat64?: boolean): BufferGeometry;
}
export class BufferGeometry64 extends BufferGeometry {
computeVertexNormals(): void;
fromDirectGeometry(geometry: any): BufferGeometry;
serialize(output: DataStream): void;
unserialize(input: DataStream): void;
}
}
declare module "foundation/runtime/graphics/actor/DynamicMeshDisplay" {
import { Types } from 'cross/runtime/lang/collection/Types';
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
export class DynamicMeshDisplay extends InstanceObject {
materialCode: string;
material: any;
mergeGeometry: BufferGeometry;
mergeGeometries: Types;
mergeMatrixs: Types;
constructor();
merge(): void;
reset(): void;
}
export type DynamicMeshDisplayMap = {
[key: string]: DynamicMeshDisplay;
};
}
declare module "foundation/runtime/graphics/actor/DynamicMeshMerger" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { Types } from 'cross/runtime/lang/collection/Types';
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { DynamicMesh } from "foundation/runtime/graphics/actor/DynamicMesh";
import { DynamicMeshDisplay } from "foundation/runtime/graphics/actor/DynamicMeshDisplay";
export class DynamicMeshMerger extends InstanceObject {
name: string;
meshs: Types;
displays: Dictionary;
constructor(name?: string);
add(mesh: DynamicMesh): void;
remove(mesh: DynamicMesh): void;
getDisplay(materialCode: string, material?: any): DynamicMeshDisplay;
removeDisplay(display: DynamicMeshDisplay): void;
update(): void;
}
export type DynamicMeshMergerMap = {
[key: string]: DynamicMeshMerger;
};
}
declare module "foundation/runtime/graphics/actor/DynamicMesh" {
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
import { DynamicMeshMerger } from "foundation/runtime/graphics/actor/DynamicMeshMerger";
export class DynamicMesh extends InstanceObject {
merger: DynamicMeshMerger;
code: string;
materialCode: string;
material: any;
geometry: BufferGeometry;
matrix: Matrix4;
constructor();
dispose(): void;
}
export type DynamicMeshMap = {
[key: string]: DynamicMesh;
};
}
declare module "foundation/runtime/graphics/camera/Projection" {
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { Size2 } from 'foundation/runtime/math/Size2';
export class Projection extends InstanceObject {
matrix: Matrix4;
znear: number;
zfar: number;
size: Size2;
left: number;
right: number;
top: number;
bottom: number;
_angle: number;
fieldOfView: number;
zoom: number;
constructor();
get angle(): number;
set angle(value: number);
get distance(): number;
update(): void;
dispose(): void;
}
}
declare module "foundation/runtime/graphics/camera/Camera" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { Actor } from "foundation/runtime/graphics/core/Actor";
import { Projection } from "foundation/runtime/graphics/camera/Projection";
export class Camera extends Actor {
axisX: Vector3;
axisY: Vector3;
axisZ: Vector3;
axisUp: Vector3;
target: Vector3;
direction: Vector3;
zoom: number;
_fov: number;
near: number;
far: number;
left: number;
right: number;
top: number;
bottom: number;
projection: Projection;
constructor();
get fov(): number;
set fov(value: number);
setPosition(x: number, y: number, z: number): void;
lookAtValue(x: number, y: number, z: number): void;
lookAt(direction: Vector3): void;
updateCameraMatrix(): void;
updateProjectionMatrix(): void;
}
}
declare module "foundation/runtime/graphics/camera/OrthoProjection" {
import { Projection } from "foundation/runtime/graphics/camera/Projection";
export class OrthoProjection extends Projection {
update(): void;
}
}
declare module "foundation/runtime/graphics/camera/OrthographicCamera" {
import { Camera } from "foundation/runtime/graphics/camera/Camera";
export class OrthographicCamera extends Camera {
constructor(left?: number, right?: number, top?: number, bottom?: number, near?: number, far?: number);
updateProjectionMatrix(): void;
}
}
declare module "foundation/runtime/graphics/camera/PerspectiveProjection" {
import { Projection } from "foundation/runtime/graphics/camera/Projection";
export class PerspectiveProjection extends Projection {
update(): void;
}
}
declare module "foundation/runtime/graphics/camera/PerspectiveCamera" {
import { Camera } from "foundation/runtime/graphics/camera/Camera";
export class PerspectiveCamera extends Camera {
focus: number;
aspect: number;
view: any;
filmGauge: number;
filmOffset: number;
constructor(fov?: number, aspect?: number, near?: number, far?: number);
setFocalLength(focalLength: number): void;
getFocalLength(): any;
getEffectiveFOV(): any;
getFilmWidth(): any;
getFilmHeight(): any;
setViewOffset(fullWidth: number, fullHeight: number, x: number, y: number, width: number, height: number): void;
clearViewOffset(): void;
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/core/Raycaster" {
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { Ray } from 'foundation/runtime/geometry/Ray';
import { Actor } from "foundation/runtime/graphics/core/Actor";
export class RayParamPoints {
threshold: number;
}
export class RayParams {
mesh: {};
line: {};
lod: {};
points: RayParamPoints;
sprite: {};
}
export class Raycaster extends InstanceObject {
ray: Ray;
near: number;
far: number;
params: RayParams;
linePrecision: number;
constructor(origin?: Vector3, direction?: Vector3, near?: number, far?: number);
set(origin: any, direction: any): void;
setFromCamera(coords: any, camera: any): void;
intersectObject(object: any, recursive?: any): any;
intersectObjects(objects: Array, recursive?: boolean, force?: boolean): any;
static ascSort(a: any, b: any): number;
static intersectObject(object: Actor, raycaster: Raycaster, intersects: Array, recursive?: boolean, force?: boolean): void;
}
}
declare module "foundation/runtime/graphics/core/DrawModeEnum" {
export class DrawModeEnum {
static Unknown: string;
static Points: string;
static Lines: string;
static Triangle: string;
}
}
declare module "foundation/runtime/graphics/core/Face" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class Face {
geometryId: number;
indexs: Array;
coordIndexs: Array;
normal: Vector3;
normalIndexes: Array;
binormalIndexes: Array;
tangentsIndexes: Array;
color: number;
direction: Vector3;
smooth: number;
materialIndex: number;
constructor();
}
}
declare module "foundation/runtime/graphics/core/Vertex" {
import { Vector2 } from 'foundation/runtime/math/Vector2';
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class Vertex {
index: number;
position: Vector3;
normal: Vector3;
binormal: Vector3;
tangent: Vector3;
color: number;
coord1: Vector2;
coord2: Vector2;
static create(x: number, y: number, z: number): Vertex;
}
}
declare module "foundation/runtime/graphics/core/VertexGeometry" {
import { Box3 } from 'foundation/runtime/math/Box3';
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { Sphere } from 'foundation/runtime/math/Sphere';
import { Vector2 } from 'foundation/runtime/math/Vector2';
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { Vector4 } from 'foundation/runtime/math/Vector4';
import { BufferComponent } from "foundation/runtime/graphics/data/BufferComponent";
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
import { DrawModeEnum } from "foundation/runtime/graphics/core/DrawModeEnum";
import { Face } from "foundation/runtime/graphics/core/Face";
import { Vertex } from "foundation/runtime/graphics/core/Vertex";
export class GeometryOptions {
drawModeCd: DrawModeEnum;
clockWise: boolean;
constructor();
}
export class VertexGeometry extends BufferComponent {
options: GeometryOptions;
matrix: Matrix4;
boundingBox: Box3;
boundingSphere: Sphere;
needUpdate: boolean;
protected _vertices: Array;
protected _positions: Array;
protected _coords: Array>;
protected _colors: Array;
protected _normals: Array;
protected _binormals: Array;
protected _tangents: Array;
protected _skinWeights: Array;
protected _skinIndices: Array;
protected _faces: Array;
protected _faceIndexs: Array;
protected _dirty: boolean;
constructor(options?: GeometryOptions);
protected createOptions(): GeometryOptions;
get vertices(): Array;
get positions(): Array;
hasColor(): boolean;
get colors(): Array;
get coordsCount(): number;
get coords(): Array>;
syncCoord(layer?: number): Array;
hasNormal(): boolean;
get normals(): Array;
get binormals(): Array;
get tangents(): Array;
get faces(): Array;
get faceIndexs(): Array;
pushFace(face: Face): void;
testDirty(): boolean;
computeBoundingBox(): Box3;
computeBoundingSphere(): Sphere;
updatePointData(precision?: number): void;
updateLineData(precision?: number): void;
updateTriangleData(precision?: number): void;
update(flag?: boolean): void;
merge(geometry: VertexGeometry, faceOffset?: number, faceCount?: number): void;
makeBufferGeometry(geometry: BufferGeometry, precision?: number): BufferGeometry;
dirty(): void;
reset(): void;
computeFaceNormals(): void;
}
}
declare module "foundation/runtime/graphics/material/LineBasicMaterial" {
import { Material, MaterialParameters } from "foundation/runtime/graphics/material/Material";
export interface LineBasicMaterialParameters extends MaterialParameters {
color?: number;
linewidth?: number;
linecap?: string;
linejoin?: string;
vertexColors?: any;
fog?: boolean;
}
export class LineBasicMaterial extends Material {
width: number;
linewidth: any;
linecap: any;
linejoin: any;
constructor(parameters?: any);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/actor/Line" {
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { Sphere } from 'foundation/runtime/math/Sphere';
import { Ray } from 'foundation/runtime/geometry/Ray';
import { Actor } from "foundation/runtime/graphics/core/Actor";
import { Raycaster } from "foundation/runtime/graphics/core/Raycaster";
export class Line extends Actor {
geometry: any;
material: any;
protected _step: number;
protected raycast_inverseMatrix: Matrix4;
protected raycast_ray: Ray;
protected raycast_sphere: Sphere;
constructor(geometry?: any, material?: any);
raycast(raycaster: Raycaster, intersects: Array): void;
clone(): any;
dispose(): void;
}
}
declare module "foundation/runtime/graphics/actor/LinesActor" {
import { Actor } from "foundation/runtime/graphics/core/Actor";
import { Lines } from "foundation/runtime/graphics/data/Lines";
import { Material } from "foundation/runtime/graphics/material/Material";
export class LinesActor extends Actor {
lines: Lines;
material: Material;
}
}
declare module "foundation/runtime/graphics/actor/LineSegments" {
import { Line } from "foundation/runtime/graphics/actor/Line";
export class LineSegments extends Line {
constructor(geometry?: any, material?: any);
}
}
declare module "foundation/runtime/graphics/core/TriangleDrawModeEnum" {
export class TriangleDrawModeEnum {
static TrianglesDrawMode: number;
static TriangleStripDrawMode: number;
static TriangleFanDrawMode: number;
}
}
declare module "foundation/runtime/graphics/data/Face3" {
import { Color } from 'foundation/runtime/math/Color';
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class Face3 {
a: number;
b: number;
c: number;
normal: Vector3;
vertexNormals: Vector3[];
color: Color;
vertexColors: Color[];
materialIndex: number;
constructor(a?: any, b?: any, c?: any, normal?: any, color?: any, materialIndex?: any);
clone(): any;
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/data/Geometry" {
import { Box3 } from 'foundation/runtime/math/Box3';
import { Color } from 'foundation/runtime/math/Color';
import { Sphere } from 'foundation/runtime/math/Sphere';
import { BufferComponent } from "foundation/runtime/graphics/data/BufferComponent";
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
import { Face3 } from "foundation/runtime/graphics/data/Face3";
export class Geometry extends BufferComponent {
vertices: Array;
colors: Array;
faces: Array;
faceVertexUvs: any;
morphTargets: any;
morphNormals: any;
skinWeights: any;
skinIndices: any;
lineDistances: any;
boundingBox: any;
boundingSphere: any;
verticesNeedUpdate: any;
elementsNeedUpdate: any;
uvsNeedUpdate: any;
normalsNeedUpdateany: boolean;
colorsNeedUpdate: any;
lineDistancesNeedUpdate: any;
groupsNeedUpdate: any;
normalsNeedUpdate: any;
constructor();
applyMatrix(matrix: any): Geometry;
rotateX(angle: number): Geometry;
rotateY(angle: number): Geometry;
rotateZ(angle: number): Geometry;
translate(x: number, y: number, z: number): Geometry;
scale(x: number, y: number, z: number): Geometry;
fromBufferGeometry(geometry: BufferGeometry): Geometry;
center(): any;
normalize(): Geometry;
computeFaceNormals(): void;
computeVertexNormals(areaWeighted?: any): void;
computeMorphNormals(): void;
computeLineDistances(): void;
computeBoundingBox(): Box3;
computeBoundingSphere(): Sphere;
mergeVertices(): number;
sortFacesByMaterialIndex(): void;
clone(): any;
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/core/TextureConstans" {
export class TextureConstans {
static MultiplyOperation: number;
static MixOperation: number;
static AddOperation: number;
}
}
declare module "foundation/runtime/graphics/material/MeshBasicMaterial" {
import { Material } from "foundation/runtime/graphics/material/Material";
export class MeshBasicMaterial extends Material {
wireframeLinecap: any;
wireframeLinejoin: any;
constructor(parameters?: any);
copy(source: MeshBasicMaterial): any;
}
}
declare module "foundation/runtime/graphics/actor/Mesh" {
import { Vector2 } from 'foundation/runtime/math/Vector2';
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { Ray } from 'foundation/runtime/geometry/Ray';
import { Actor } from "foundation/runtime/graphics/core/Actor";
import { Raycaster } from "foundation/runtime/graphics/core/Raycaster";
export class Mesh extends Actor {
geometry: any;
material: any;
morphTargetBase: any;
morphTargetInfluences: any;
morphTargetDictionary: any;
drawMode: any;
isNotComputeIntersectPoint: boolean;
constructor(geometry?: any, material?: any);
setDrawMode(value: any): void;
copy(source: any): any;
updateMorphTargets(): void;
getMorphTargetIndexByName(name: string): number;
protected raycast_ray: Ray;
protected raycast_vA: Vector3;
protected raycast_vB: Vector3;
protected raycast_vC: Vector3;
protected raycast_tempA: Vector3;
protected raycast_tempB: Vector3;
protected raycast_tempC: Vector3;
protected raycast_uvA: Vector2;
protected raycast_uvB: Vector2;
protected raycast_uvC: Vector2;
protected raycast_barycoord: Vector3;
protected raycast_intersectionPoint: Vector3;
protected raycast_intersectionPointWorld: Vector3;
protected uvIntersection(point: any, p1: any, p2: any, p3: any, uv1: any, uv2: any, uv3: any): void;
protected checkIntersection(object: any, raycaster: any, ray: any, pA: any, pB: any, pC: any, point: any): any;
protected checkBufferGeometryIntersection(object: any, raycaster: any, ray: any, positions: any, uvs: any, a: any, b: any, c: any): any;
raycast(raycaster: Raycaster, intersects: Array): void;
clone(): any;
dispose(): void;
}
}
declare module "foundation/runtime/graphics/actor/MeshActor" {
import { Actor } from "foundation/runtime/graphics/core/Actor";
import { VertexGeometry } from "foundation/runtime/graphics/core/VertexGeometry";
import { Material } from "foundation/runtime/graphics/material/Material";
export class MeshActor extends Actor {
geometry: VertexGeometry;
material: Material;
constructor(geometry?: VertexGeometry, material?: Material);
}
}
declare module "foundation/runtime/graphics/material/PointsMaterial" {
import { Material } from "foundation/runtime/graphics/material/Material";
export class PointsMaterial extends Material {
constructor(parameters?: any);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/actor/Points" {
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { Sphere } from 'foundation/runtime/math/Sphere';
import { Ray } from 'foundation/runtime/geometry/Ray';
import { Actor } from "foundation/runtime/graphics/core/Actor";
import { Raycaster } from "foundation/runtime/graphics/core/Raycaster";
export class Points extends Actor {
geometry: any;
material: any;
protected raycast_inverseMatrix: Matrix4;
protected raycast_ray: Ray;
protected raycast_sphere: Sphere;
constructor(geometry?: any, material?: any);
raycast(raycaster: Raycaster, intersects: Array): void;
clone(): any;
}
}
declare module "foundation/runtime/graphics/actor/PointsActor" {
import { Actor } from "foundation/runtime/graphics/core/Actor";
import { Material } from "foundation/runtime/graphics/material/Material";
import { Points } from "foundation/runtime/graphics/actor/Points";
export class PointsActor extends Actor {
line: Points;
material: Material;
}
}
declare module "foundation/runtime/graphics/actor/SpriteActor" {
export class SpriteActor {
}
}
declare module "foundation/runtime/graphics/camera/CubeCamera" {
import { Actor } from "foundation/runtime/graphics/core/Actor";
export class CubeCamera extends Actor {
renderTarget: any;
updateCubeMap: any;
constructor(near: any, far: any, cubeResolution: any);
}
}
declare module "foundation/runtime/graphics/camera/StereoCamera" {
export class StereoCamera {
typeName: any;
aspect: any;
cameraL: any;
cameraR: any;
constructor();
update(camera: any): void;
}
}
declare module "foundation/runtime/graphics/camera/Viewport" {
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
export class Viewport extends InstanceObject {
left: number;
top: number;
width: number;
height: number;
set(left: number, top: number, width: number, height: number): void;
}
}
declare module "foundation/runtime/graphics/collision/clipper/ClipTypeEnum" {
export class ClipTypeEnum {
static Union: string;
static Diff: string;
static Inter: string;
static Xor: string;
}
}
declare module "foundation/runtime/graphics/collision/clipper/EndTypeEnum" {
export class EndTypeEnum {
static OpenSquare: string;
static OpenRound: string;
static OpenButt: string;
static ClosedLine: string;
static ClosedPolygon: string;
}
}
declare module "foundation/runtime/graphics/collision/clipper/JoinTypeEnum" {
export class JoinTypeEnum {
static Miter: string;
static Square: string;
static Round: string;
}
}
declare module "foundation/runtime/graphics/collision/clipper/PolyFillTypeEnum" {
export class PolyFillTypeEnum {
static EvenOdd: string;
static NonZero: string;
static Positive: string;
static Negative: string;
}
}
declare module "foundation/runtime/graphics/collision/clipper/CollisionUtil" {
import { Value2 } from 'foundation/runtime/math/Value2';
import { Vector2 } from 'foundation/runtime/math/Vector2';
import { ClipTypeEnum } from "foundation/runtime/graphics/collision/clipper/ClipTypeEnum";
import { EndTypeEnum } from "foundation/runtime/graphics/collision/clipper/EndTypeEnum";
import { JoinTypeEnum } from "foundation/runtime/graphics/collision/clipper/JoinTypeEnum";
import { PolyFillTypeEnum } from "foundation/runtime/graphics/collision/clipper/PolyFillTypeEnum";
export class CollisionOption {
scale: number;
closed: boolean;
subject_fillType: PolyFillTypeEnum;
clip_fillType: PolyFillTypeEnum;
clipClosed: boolean;
operation: ClipTypeEnum;
overlap: number;
overlapN: Vector2;
overlapV: Vector2;
miterLimit: number;
arcTolerance: number;
joinType: JoinTypeEnum;
endType: EndTypeEnum;
}
export class CollisionUtil {
protected static convertPolyFillType(typeCd: PolyFillTypeEnum): any;
protected static convertClipType(typeCd: ClipTypeEnum): any;
protected static convertJoinType(typeCd: JoinTypeEnum): any;
protected static convertEndType(typeCd: EndTypeEnum): any;
protected static convertInputData(data: Array>, scale?: number): Array>;
protected static convertInputArray(data: Array, scale?: number): Array;
protected static convertOutputArray(data: Array, scale?: number): Array;
protected static convertOutputData(data: Array>, scale?: number): Array>;
protected static aabbIntersectAdd(rect: any, margin: number): any;
static aabbIntersect(rect1: any, rect2: any, margin?: number): boolean;
static outlineIntersect(polygon1: Array, polygon2: Array, options?: CollisionOption): boolean;
static simplifyPolygons(data: Array, scale?: number): Array>;
static cleanPolygon(path: Array, distance: number): Array;
static clipPolygon(data1: Array>, data2: Array>, operationCd: ClipTypeEnum, options?: CollisionOption): Array>;
static clipPolygonTree(data1: Array>, data2: Array>, operationCd: ClipTypeEnum, options?: CollisionOption): Array>;
static clipPolygonTrees(data1: Array>, data2s: Array>>, operationCd: ClipTypeEnum, options?: CollisionOption): Array>;
static offsetPolygon(data: Array>, scale: number, options?: CollisionOption): Array;
static offsetPolygonPrecision(data: Array>, scale: number): any;
static orientation(data: any): any;
}
}
declare module "foundation/runtime/graphics/collision/CollisionUtil" {
import { Box3 } from 'foundation/runtime/math/Box3';
import { Matrix3d } from 'foundation/runtime/math/Matrix3d';
import { VertexGeometry } from "foundation/runtime/graphics/core/VertexGeometry";
export class CollisionUtil {
static vertexHitTest(a: VertexGeometry, b: VertexGeometry): boolean;
static boxHitTest(a: Box3, b: Box3): boolean;
static boxHitIntersect(a: Box3, b: Box3): Box3;
static boxSphereHitTest(a: Box3, b: Box3): boolean;
static boxRotationHitTest(ra: Box3, rb: Box3, am: Matrix3d, bm: Matrix3d): boolean;
}
}
declare module "foundation/runtime/graphics/collision/CollisionUtility" {
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { BoxSolid } from 'foundation/runtime/geometry/solid/BoxSolid';
import { SphereSolid } from 'foundation/runtime/geometry/solid/SphereSolid';
import { Geometric } from 'foundation/runtime/geometry/Geometric';
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
export class CollisionUtility {
static geometricEntityIntersect(entityA: BufferGeometry, entityB: BufferGeometry, matrixA: Matrix4, matrixB: Matrix4): boolean;
static sphereHitTest(a: SphereSolid, b: SphereSolid, tolerance?: number): boolean;
static boxRotationHitTest(ra: BoxSolid, rb: BoxSolid, am?: Matrix4, bm?: Matrix4, tolerance?: number): boolean;
static vertexHitTest(a: BufferGeometry, b: BufferGeometry, am?: Matrix4, bm?: Matrix4, tolerance?: number): boolean;
static geometricHitTest(a: Geometric, b: Geometric, tolerance?: number): boolean;
static contactTest(a: BufferGeometry, b: BufferGeometry, am?: Matrix4, bm?: Matrix4, tolerance?: number): boolean;
private static saveobj;
}
}
declare module "foundation/runtime/graphics/collision/CSGUtility" {
import { CSG } from 'foundation/runtime/math/csg/meshes/csg';
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
export class CSGUtility {
static geometryToCsg(g: BufferGeometry, name: string, am?: Matrix4): CSG;
static geometryFromCsg(csg: CSG): BufferGeometry;
static intersection(a: BufferGeometry, b: BufferGeometry, am?: Matrix4, bm?: Matrix4): BufferGeometry;
static union(a: BufferGeometry, b: BufferGeometry, am?: Matrix4, bm?: Matrix4): BufferGeometry;
static subtraction(a: BufferGeometry, b: BufferGeometry, am?: Matrix4, bm?: Matrix4): BufferGeometry;
}
}
declare module "foundation/runtime/graphics/core/Bone" {
import { Actor } from "foundation/runtime/graphics/core/Actor";
export class Bone extends Actor {
skin: any;
constructor(skin: any);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/core/Clock" {
export class Clock {
autoStart: boolean;
startTime: number;
oldTime: number;
elapsedTime: number;
running: boolean;
constructor(autoStart: boolean);
start(): void;
stop(): void;
getElapsedTime(): number;
getDelta(): number;
}
}
declare module "foundation/runtime/graphics/core/ColorTypeEnum" {
export class ColorTypeEnum {
static NoColors: number;
static FaceColors: number;
static VertexColors: number;
}
}
declare module "foundation/runtime/graphics/core/CompressedFormatEnum" {
export class CompressedFormatEnum {
static RGB_S3TC_DXT1_Format: number;
static RGBA_S3TC_DXT1_Format: number;
static RGBA_S3TC_DXT3_Format: number;
static RGBA_S3TC_DXT5_Format: number;
static RGB_PVRTC_4BPPV1_Format: number;
static RGB_PVRTC_2BPPV1_Format: number;
static RGBA_PVRTC_4BPPV1_Format: number;
static RGBA_PVRTC_2BPPV1_Format: number;
static RGB_ETC1_Format: number;
}
}
declare module "foundation/runtime/graphics/core/Context" {
export class Context {
}
}
declare module "foundation/runtime/graphics/core/CullFaceEnum" {
export class CullFaceEnum {
static CullFaceNone: number;
static CullFaceBack: number;
static CullFaceFront: number;
static CullFaceFrontBack: number;
}
}
declare module "foundation/runtime/graphics/core/DepthPackingEnum" {
export class DepthPackingEnum {
static BasicDepthPacking: number;
static RGBADepthPacking: number;
}
}
declare module "foundation/runtime/graphics/core/DirectGeometry" {
import { Box3 } from 'foundation/runtime/math/Box3';
import { Sphere } from 'foundation/runtime/math/Sphere';
import { Component } from "foundation/runtime/graphics/core/Component";
export class DirectGeometry extends Component {
indices: any;
vertices: any;
normals: any;
colors: any;
uvs: any;
uvs2: any;
groups: any;
morphTargets: any;
skinWeights: any;
skinIndices: any;
boundingBox: any;
boundingSphere: any;
verticesNeedUpdate: any;
normalsNeedUpdate: any;
colorsNeedUpdate: any;
uvsNeedUpdate: any;
groupsNeedUpdate: any;
constructor();
computeBoundingBox(): Box3;
computeBoundingSphere(): Sphere;
computeFaceNormals(): void;
computeVertexNormals(): void;
computeGroups(geometry: any): void;
fromGeometry(geometry: any): void;
dispose(): void;
}
}
declare module "foundation/runtime/graphics/core/Face4" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { Face } from "foundation/runtime/graphics/core/Face";
export class Face4 extends Face {
constructor(index1: number, index2: number, index3: number, index4: number, normal?: Vector3, color?: number, materialIndex?: number);
}
}
declare module "foundation/runtime/graphics/core/FaceUtil" {
import { Face } from "foundation/runtime/graphics/core/Face";
export class FaceUtil extends Face {
static append(faces: Array>, input: Array>, offset?: number): void;
}
}
declare module "foundation/runtime/graphics/core/FaceV3" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { Face } from "foundation/runtime/graphics/core/Face";
export class FaceV3 extends Face {
constructor(index1: number, index2: number, index3: number, normal?: Vector3, color?: number, materialIndex?: number);
}
}
declare module "foundation/runtime/graphics/core/FillModeEnum" {
export enum FillModeEnum {
Unknown = 0,
Points = 1,
Lines = 2,
Face = 3
}
}
declare module "foundation/runtime/graphics/core/Fog" {
export class Fog {
name: any;
color: any;
near: any;
far: any;
constructor(color: any, near: any, far: any);
clone(): any;
}
}
declare module "foundation/runtime/graphics/core/FogExp2" {
import { Color } from 'foundation/runtime/math/Color';
export class FogExp2 {
name: string;
color: Color;
density: number;
constructor(color: any, density: number);
clone(): any;
}
}
declare module "foundation/runtime/graphics/core/FrontFaceEnum" {
export class FrontFaceEnum {
static FrontFaceDirectionCW: number;
static FrontFaceDirectionCCW: number;
}
}
declare module "foundation/runtime/graphics/core/GeometryUtil" {
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
import { Geometry } from "foundation/runtime/graphics/data/Geometry";
export class GeometryUtil {
static updateBufferGeometry(bufferGeometry: BufferGeometry, geometry: Geometry): void;
static updateBufferGeometryPosition(bufferGeometry: BufferGeometry, geometry: Geometry): void;
}
}
declare module "foundation/runtime/graphics/core/Group" {
import { Actor } from "foundation/runtime/graphics/core/Actor";
export class Group extends Actor {
constructor();
}
}
declare module "foundation/runtime/graphics/core/ImmediateRenderObject" {
export class ImmediateRenderObject {
}
}
declare module "foundation/runtime/graphics/core/InstancedBufferAttribute" {
import { BufferAttribute } from "foundation/runtime/graphics/data/BufferAttribute";
export class InstancedBufferAttribute extends BufferAttribute {
meshPerAttribute: any;
constructor(array: any, itemSize: any, meshPerAttribute: any);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/core/InterleavedBufferAttribute" {
export class InterleavedBufferAttribute {
uuid: string;
data: any;
itemSize: number;
offset: number;
array: any;
constructor(interleavedBuffer: any, itemSize: any, offset: any);
get count(): number;
setX(index: any, x: any): InterleavedBufferAttribute;
setY(index: any, y: any): InterleavedBufferAttribute;
setZ(index: any, z: any): InterleavedBufferAttribute;
setW(index: any, w: any): InterleavedBufferAttribute;
getX(index: any): InterleavedBufferAttribute;
getY(index: any): InterleavedBufferAttribute;
getZ(index: any): InterleavedBufferAttribute;
getW(index: any): InterleavedBufferAttribute;
setXY(index: any, x: any, y: any): any;
setXYZ(index: any, x: any, y: any, z: any): any;
setXYZW(index: any, x: any, y: any, z: any, w: any): any;
}
}
declare module "foundation/runtime/graphics/core/InterpolantEndingModes" {
export class InterpolantEndingModes {
static ZeroCurvatureEnding: number;
static ZeroSlopeEnding: number;
static WrapAroundEnding: number;
}
}
declare module "foundation/runtime/graphics/core/InterpolationEnum" {
export class InterpolationEnum {
static InterpolateDiscrete: number;
static InterpolateLinear: number;
static InterpolateSmooth: number;
}
}
declare module "foundation/runtime/graphics/core/LoopStyleEnum" {
export class LoopStyleEnum {
static LoopOnce: number;
static LoopRepeat: number;
static LoopPingPong: number;
}
}
declare module "foundation/runtime/graphics/core/SamplerFilterEnum" {
export enum SamplerFilterEnum {
Unknown = 0,
Nearest = 1,
Linear = 2,
Repeat = 3,
MirroredRepeat = 4,
ClampToEdge = 5,
ClampToBorder = 6
}
}
declare module "foundation/runtime/graphics/core/Scene" {
import { Actor } from "foundation/runtime/graphics/core/Actor";
export class Scene extends Actor {
skin: any;
background: any;
fog: any;
overrideMaterial: any;
autoUpdate: any;
constructor(skin?: any);
copy(source: any, recursive: any): any;
}
}
declare module "foundation/runtime/graphics/core/ShadwingTypeEnum" {
export class ShadwingTypeEnum {
static BasicShadowMap: number;
static PCFShadowMap: number;
static PCFSoftShadowMap: number;
}
}
declare module "foundation/runtime/graphics/core/ToneMappingModeEnum" {
export class ToneMappingModeEnum {
static NoToneMapping: number;
static LinearToneMapping: number;
static ReinhardToneMapping: number;
static Uncharted2ToneMapping: number;
static CineonToneMapping: number;
}
}
declare module "foundation/runtime/graphics/data/Face" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class Face {
geometryId: number;
indexs: Array;
coordIndexs: Array;
normal: Vector3;
normalIndexes: Array;
binormalIndexes: Array;
tangentsIndexes: Array;
color: number;
direction: Vector3;
smooth: number;
materialIndex: number;
constructor();
}
}
declare module "foundation/runtime/graphics/data/Vertex" {
import { Vector2 } from 'foundation/runtime/math/Vector2';
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class Vertex {
index: number;
position: Vector3;
normal: Vector3;
binormal: Vector3;
tangent: Vector3;
color: number;
coord1: Vector2;
coord2: Vector2;
static create(x: number, y: number, z: number): Vertex;
}
}
declare module "foundation/runtime/graphics/data/Points" {
import { Box3 } from 'foundation/runtime/math/Box3';
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { Sphere } from 'foundation/runtime/math/Sphere';
import { Vector2 } from 'foundation/runtime/math/Vector2';
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { Vector4 } from 'foundation/runtime/math/Vector4';
import { BufferComponent } from "foundation/runtime/graphics/data/BufferComponent";
import { Face } from "foundation/runtime/graphics/data/Face";
import { Vertex } from "foundation/runtime/graphics/data/Vertex";
export class Points extends BufferComponent {
matrix: Matrix4;
boundingBox: Box3;
boundingSphere: Sphere;
needUpdate: boolean;
protected _vertices: Array;
protected _positions: Array;
protected _coords: Array>;
protected _colors: Array;
protected _normals: Array;
protected _binormals: Array;
protected _tangents: Array;
protected _skinWeights: Array;
protected _skinIndices: Array;
protected _faces: Array;
protected _faceIndexs: Array;
protected _dirty: boolean;
constructor();
get vertices(): Array;
get positions(): Array;
hasColor(): boolean;
get colors(): Array;
get coordsCount(): number;
get coords(): Array>;
syncCoord(layer?: number): Array;
hasNormal(): boolean;
get normals(): Array;
get binormals(): Array;
get tangents(): Array;
get faces(): Array;
get faceIndexs(): Array;
pushFace(face: Face): void;
testDirty(): boolean;
computeBoundingBox(): Box3;
computeBoundingSphere(): Sphere;
updateData(precision?: number): void;
update(flag?: boolean): void;
merge(geometry: Points, faceOffset?: number, faceCount?: number): void;
dirty(): void;
reset(): void;
computeFaceNormals(): void;
}
}
declare module "foundation/runtime/graphics/shape/geometry/BoxBoundaryGeometry" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
export class BoxBoundaryGeometryOptions {
min: Vector3;
max: Vector3;
constructor();
}
export class BoxBoundaryGeometry extends BufferGeometry {
options: BoxBoundaryGeometryOptions;
constructor(options?: BoxBoundaryGeometryOptions);
build(): void;
}
}
declare module "foundation/runtime/graphics/shape/ShapeUtil" {
import { Value2 } from 'foundation/runtime/math/Value2';
import { Vector2 } from 'foundation/runtime/math/Vector2';
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
export class ShapeUtil {
static setClockwiseShape(outer: Array, holes?: Array>): void;
static makeIndicesPoints(points: Array, indices: Array): Array;
protected static b2p0(t: number, p: number): number;
protected static b2p1(t: number, p: number): number;
protected static b2p2(t: number, p: number): number;
static b2(t: number, p0: number, p1: number, p2: number): number;
protected static b3p0(t: number, p: number): number;
protected static b3p1(t: number, p: number): number;
protected static b3p2(t: number, p: number): number;
protected static b3p3(t: number, p: number): number;
static b3(t: number, p0: number, p1: number, p2: number, p3: number): number;
protected static triangulateSnip(points: Array, u: number, v: number, w: number, n: number, verts: number[]): boolean;
static triangulate(points: Array, indices?: boolean): Array;
protected static point_in_segment_2D_colin(inSegPt1: any, inSegPt2: any, inOtherPt: any): any;
protected static intersect_segments_2D(inSeg1Pt1: any, inSeg1Pt2: any, inSeg2Pt1: any, inSeg2Pt2: any, inExcludeAdjacentSegs: any): any;
protected static isPointInsideAngle(inVertex: any, inLegFromPt: any, inLegToPt: any, inOtherPt: any): boolean;
protected static isCutLineInsideAngles(shape: any, hole: any, inShapeIdx: any, inHoleIdx: any): boolean;
protected static intersectsHoleEdge(holes: any, indepHoles: any, inShapePt: any, inHolePt: any): boolean;
protected static intersectsShapeEdge(shape: any, inShapePt: any, inHolePt: any): boolean;
protected static removeHoles(contour: any, holes: any): any;
static triangulateShape(contour: Array, holes: Array>): Array;
protected static makeRoundPoint(targets: Array, center: Vector2, startAngle: number, endAngle: number, corner: number, level: number): void;
static roundPoints(x: number, y: number, width: number, height: number, corner: number, level: number): Array;
protected static _unitBoxBoundary: BufferGeometry;
protected static _unitCube: BufferGeometry;
static unitBoxBoundary(): BufferGeometry;
static unitCube(): BufferGeometry;
}
}
declare module "foundation/runtime/graphics/shape/brep/Polygon" {
import { IFreeable } from 'cross/runtime/lang/IFreeable';
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { Value2 } from 'foundation/runtime/math/Value2';
import { Vector2 } from 'foundation/runtime/math/Vector2';
export class PolygonOptions {
pointConverter: Function;
}
export class Polygon extends InstanceObject implements IFreeable {
options: PolygonOptions;
positions: Array;
holes: Array>;
constructor(options?: PolygonOptions);
isValid(): boolean;
isPointIn(value: Value2): boolean;
isPointOn(value: Value2): boolean;
hasHole(): boolean;
getAllPoints(targets?: Array): Array;
protected pushPoint(positions: Array, point: Vector2): void;
push(point: Vector2): Polygon;
setFromPoints(points: Array): Polygon;
extendOutLine(n: number): void;
pushHole(hole: Array): void;
addHoleFromPoints(hole: Array): void;
addHolesFromPoints(holes: Array>): void;
expand(length: number, target?: Polygon): Polygon;
update(): void;
reset(): Polygon;
free(): void;
dispose(): void;
}
}
declare module "foundation/runtime/graphics/distancetest/DistanceTestUtil" {
import { Point2 } from 'foundation/runtime/math/Point2';
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { Triangle3 } from 'foundation/runtime/geometry/Triangle3';
export class TestInfo {
collisionA: Vector3;
collisionB: Vector3;
optionCollision: boolean;
}
export class DistanceTestUtil {
static isLineConcide(p1: Point2, p2: Point2, p3: Point2, p4: Point2, pts: any[]): boolean;
static dotVector3(value1: Vector3, value2: Vector3): number;
static segment3Line3(p1: Vector3, p2: Vector3, p3: Vector3, p4: Vector3): Vector3;
static calPlaneLineIntersectPoint(planeVector: Vector3, planePoint: Vector3, lineVector: Vector3, linePoint: Vector3): Vector3;
static triangleDistanceTriangleByDirection(triangleA: Triangle3, triangleB: Triangle3, direction: Vector3): TestInfo;
}
}
declare module "foundation/runtime/graphics/distancetest/TestCase" { }
declare module "foundation/runtime/graphics/enumeration/RemainderTypeEnum" {
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class RemainderTypeEnum extends EnumerationObject {
static Unknown: number;
static ToAverage: number;
static ToFront: number;
static ToBack: number;
static NothingToDO: number;
private static _items;
static get Items(): any;
static tryEncode(name: string, defaultValue?: any): string;
static encode(name: string): string;
static tryDecode(value: string, defaultName?: string): string;
static decode(value: string): string;
static findLabel(value: any, defaultLabel?: string): string;
static parseLabel(label: string, defaultValue?: any): string;
}
}
declare module "foundation/runtime/graphics/enumeration/StepTypeEnum" {
import { EnumerationObject } from 'cross/runtime/framework/base/EnumerationObject';
export class StepTypeEnum extends EnumerationObject {
static Unknown: number;
static isN: number;
static AnyValue: number;
private static _items;
static get Items(): any;
static tryEncode(name: string, defaultValue?: any): string;
static encode(name: string): string;
static tryDecode(value: string, defaultName?: string): string;
static decode(value: string): string;
static findLabel(value: any, defaultLabel?: string): string;
static parseLabel(label: string, defaultValue?: any): string;
}
}
declare module "foundation/runtime/graphics/GraphicsUtility" {
export class GraphicsUtility {
}
}
declare module "foundation/runtime/graphics/IndexSpace" {
export class IndexSpace {
static namespaces(): string[];
}
}
declare module "foundation/runtime/graphics/IProcessContext" {
export interface IProcessContext {
}
}
declare module "foundation/runtime/graphics/layout/layout1d/Arrangement1dUtil" {
export type ArrangementComputeOption = {
isRecordValueIndex?: boolean;
};
export class Arrangement1dUtil {
static arrangement(interval?: number, length?: number, offset?: number): Array;
static arrangement1(interval?: number, length?: number, begin?: number, origin?: number, option?: ArrangementComputeOption): Array;
private static arrangementCompute;
static arrangementByLevel(interval?: number, length?: number, begin?: number, origin?: number, offsetLevel?: number): Array>;
}
}
declare module "foundation/runtime/graphics/layout/layout2d/Arrangement2dUtil" {
import { Vector2 } from 'foundation/runtime/math/Vector2';
export class Arrangement2dUtil {
static arrangement(widthInterval?: number, depthInterval?: number, lengthWidth?: number, lengthDepth?: number, offsetWidth?: number, offsetDepth?: number): Array;
static arrangement3(widthInterval?: number, depthInterval?: number, lengthWidth?: number, lengthDepth?: number, offsetWidth?: number, offsetDepth?: number, layoutBeginX?: number, layoutBeginY?: number): Array;
static arrangementByLevel(widthInterval?: number, depthInterval?: number, lengthWidth?: number, lengthDepth?: number, offsetWidth?: number, offsetDepth?: number, layoutBeginX?: number, layoutBeginY?: number, level?: number): Array;
static arrangement2(interval?: Vector2, length?: Vector2, offset?: Vector2): Array;
}
}
declare module "foundation/runtime/graphics/layout/layout2d/Collision2dUtil" {
import { Vector2 } from 'foundation/runtime/math/Vector2';
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
export class Collision2dUtil {
static profile(tile: Array, boundary: Array): boolean;
static buffer(tile: BufferGeometry, boundary: Array): boolean;
private static relationOfPointAndPolygon;
private static relationOfPointAndConvex;
private static polygonType;
private static relationOfPointAndLine;
}
}
declare module "foundation/runtime/graphics/molding/operation/OperationPlaneSlice" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
export class OperationPlaneSlice {
static geometry(bg_origin: BufferGeometry, planeNormal: Vector3, planePoint: Vector3): BufferGeometry;
static geometry2(bg_origin: BufferGeometry, planeNormal: Vector3, planePoint: Vector3): {
positive: BufferGeometry;
negative: BufferGeometry;
};
private static relatives;
private static interPointofPlaneAndLine;
private static createNormals;
private static createBg;
private static cloneBg;
private static cloneArray;
private static cleanBg;
private static sliceTriangle;
private static sliceTriangleUv;
private static sliceTriangleNor;
}
}
declare module "foundation/runtime/graphics/layout/layout2d/Tailoring2dUtil" {
import { Vector2 } from 'foundation/runtime/math/Vector2';
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
export class Tailoring2dUtil {
static profile(tile: Array, boundary: Array): Array;
static buffer(tile: BufferGeometry, boundary: Array, isClosed?: boolean): BufferGeometry;
private static lineSlicePolygon;
private static intersectionOfTwoLines;
private static relationOfPointAndLine;
private static boundingBox;
private static v2Tov3;
}
}
declare module "foundation/runtime/graphics/light/Light" {
import { Actor } from "foundation/runtime/graphics/core/Actor";
export class Light extends Actor {
code: string;
color: any;
intensity: any;
groundColor: any;
distance: any;
angle: any;
decay: any;
penumbra: any;
constructor(color: any, intensity: any);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/light/AmbientLight" {
import { Light } from "foundation/runtime/graphics/light/Light";
export class AmbientLight extends Light {
constructor(color?: any, intensity?: any);
}
}
declare module "foundation/runtime/graphics/light/DirectionalLight" {
import { Actor } from "foundation/runtime/graphics/core/Actor";
import { Light } from "foundation/runtime/graphics/light/Light";
export class DirectionalLight extends Light {
target: Actor;
shadow: any;
constructor(color?: any, intensity?: number);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/light/LightShadow" {
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { Vector2 } from 'foundation/runtime/math/Vector2';
export class LightShadow {
camera: any;
bias: number;
radius: number;
mapSize: Vector2;
map: any;
matrix: Matrix4;
constructor(camera: any);
copy(source: any): any;
clone(): any;
}
}
declare module "foundation/runtime/graphics/light/DirectionalLightShadow" {
import { LightShadow } from "foundation/runtime/graphics/light/LightShadow";
export class DirectionalLightShadow extends LightShadow {
}
}
declare module "foundation/runtime/graphics/light/HemisphereLight" {
import { Light } from "foundation/runtime/graphics/light/Light";
export class HemisphereLight extends Light {
constructor(skyColor: any, groundColor: any, intensity: any);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/light/PointLight" {
import { Light } from "foundation/runtime/graphics/light/Light";
export class PointLight extends Light {
shadow: any;
constructor(color?: any, intensity?: any, distance?: any, decay?: any);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/light/SpotLightShadow" {
import { LightShadow } from "foundation/runtime/graphics/light/LightShadow";
export class SpotLightShadow extends LightShadow {
constructor();
update(light: any): void;
}
}
declare module "foundation/runtime/graphics/light/SpotLight" {
import { Light } from "foundation/runtime/graphics/light/Light";
export class SpotLight extends Light {
target: any;
shadow: any;
constructor(color: any, intensity: any, distance: any, angle: any, penumbra: any, decay: any);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/material/LineDashedMaterial" {
import { Material } from "foundation/runtime/graphics/material/Material";
export class LineDashedMaterial extends Material {
linewidth: any;
scale: any;
dashSize: any;
gapSize: any;
constructor(parameters?: any);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/material/MeshDepthMaterial" {
import { Material } from "foundation/runtime/graphics/material/Material";
export class MeshDepthMaterial extends Material {
constructor(parameters?: any);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/material/MeshLambertMaterial" {
import { Material } from "foundation/runtime/graphics/material/Material";
export class MeshLambertMaterial extends Material {
lightMapIntensity: any;
wireframeLinecap: any;
wireframeLinejoin: any;
constructor(parameters?: any);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/material/MeshPhongMaterial" {
import { Material } from "foundation/runtime/graphics/material/Material";
export class MeshPhongMaterial extends Material {
lightMapIntensity: any;
wireframeLinecap: any;
wireframeLinejoin: any;
constructor(parameters?: any);
copy(source: any): any;
dirty(): void;
}
}
declare module "foundation/runtime/graphics/material/MeshStandardMaterial" {
import { Material } from "foundation/runtime/graphics/material/Material";
export class MeshStandardMaterial extends Material {
defines: any;
lightMapIntensity: any;
envMapIntensity: any;
wireframeLinecap: any;
wireframeLinejoin: any;
constructor(parameters?: any);
copy(source: any): any;
}
}
declare module "foundation/runtime/graphics/molding/curve/CurveConfigUtil" {
export class CurveConfigUtilMinSegments {
static minSegmentsLine: number;
static minSegmentsCircle: number;
static minSegmentsEllipse: number;
static minSegmentsCircleArc: number;
static minSegmentsEllipseArc: number;
static minSegmentsBezier: number;
static minSegmentsBSpline: number;
static minSegmentsNurbs: number;
static defaultSegmentsLine: number;
static defaultSegmentsCircle: number;
static defaultSegmentsEllipse: number;
static defaultSegmentsCircleArc: number;
static defaultSegmentsEllipseArc: number;
static defaultSegmentsBezier: number;
static defaultSegmentsBSpline: number;
static defaultSegmentsNurbs: number;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve3d/BezierUtil3D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class BezierUtil3D {
static toPointsBySegment(controls: Array, segment?: number): Array;
static toTangentBySegment(controls: Array, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve2d/BezierUtil2D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class BezierUtil2D {
static toPointsBySegment(controls: Array, segment?: number): Array;
static toTangentBySegment(controls: Array, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve3d/BSplineUtil3D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class BSplineUtil3D {
static toPointsBySegment(controls: Array, knots: Array, segment?: number): Array;
static toTangentBySegment(controls: Array, knots: Array, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve2d/BSplineUtil2D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class BSplineUtil2D {
static toPointsBySegment(controls: Array, knots: Array, segment?: number): Array;
static toTangentBySegment(controls: Array, knots: Array, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve3d/CircleArcUtil3D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class CircleArcUtil3D {
static toPointsBySegment(center: Vector3, begin: Vector3, radian: number, isPositive?: boolean, normal?: Vector3, segment?: number): Array;
static toTangentBySegment(center: Vector3, begin: Vector3, radian: number, isPositive?: boolean, normal?: Vector3, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve2d/CircleArcUtil2D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class CircleArcUtil2D {
static toPointsBySegment(center: Vector3, begin: Vector3, radian: number, isPositive?: boolean, segment?: number): Array;
static toTangentBySegment(center: Vector3, begin: Vector3, radian: number, isPositive?: boolean, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve3d/CircleUtil3D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class CircleUtil3D {
static toPointsBySegment(center: Vector3, begin: Vector3, normal?: Vector3, segment?: number): Array;
static toTangentBySegment(center: Vector3, begin: Vector3, normal?: Vector3, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve2d/CircleUtil2D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class CircleUtil2D {
static toPointsBySegment(center: Vector3, begin: Vector3, segment?: number): Array;
static toTangentBySegment(center: Vector3, begin: Vector3, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve3d/EllipseArcUtil3D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class EllipseArcUtil3D {
static toPointsBySegment(center: Vector3, begin: Vector3, axisRatio: number, angleBegin: number, radian: number, isPositive: boolean, normal: Vector3, segment?: number): Array;
static toTangentBySegment(center: Vector3, begin: Vector3, axisRatio: number, angleBegin: number, radian: number, isPositive: boolean, normal: Vector3, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve2d/EllipseArcUtil2D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class EllipseArcUtil2D {
static toPointsBySegment(center: Vector3, begin: Vector3, axisRatio: number, angleBegin: number, radian: number, isPositive: boolean, segment?: number): Array;
static toTangentBySegment(center: Vector3, begin: Vector3, axisRatio: number, angleBegin: number, radian: number, isPositive: boolean, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve3d/EllipseUtil3D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class EllipseUtil3D {
static toPointsBySegment(center: Vector3, begin: Vector3, axisRatio: number, normal: Vector3, segment?: number): Array;
static toTangentBySegment(center: Vector3, begin: Vector3, axisRatio: number, normal: Vector3, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve2d/EllipseUtil2D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class EllipseUtil2D {
static toPointsBySegment(center: Vector3, begin: Vector3, axisRatio: number, segment?: number): Array;
static toTangentBySegment(center: Vector3, begin: Vector3, axisRatio: number, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve3d/LineUtil3D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class LineUtil3D {
static toPointsBySegment(begin: Vector3, end: Vector3, segment?: number): Array;
static toTangentBySegment(begin: Vector3, end: Vector3, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve2d/LineUtil2D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class LineUtil2D {
static toPointsBySegment(begin: Vector3, end: Vector3, segment?: number): Array;
static toTangentBySegment(begin: Vector3, end: Vector3, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve3d/NurbsUtil3D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class NurbsUtil3D {
static toPointsBySegment(controls: Array, knots: Array, weights: Array, segment?: number): Array;
static toTangentBySegment(controls: Array, knots: Array, weights: Array, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve2d/NurbsUtil2D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class NurbsUtil2D {
static toPointsBySegment(controls: Array, knots: Array, weights: Array, segment?: number): Array;
static toTangentBySegment(controls: Array, knots: Array, weights: Array, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/CurveMoldingUtil" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { BezierCurve2d } from 'foundation/runtime/geometry/curve2d/BezierCurve2d';
import { CircleArcCurve2d } from 'foundation/runtime/geometry/curve2d/CircleArcCurve2d';
import { CircleCurve2d } from 'foundation/runtime/geometry/curve2d/CircleCurve2d';
import { EllipseArcCurve2d } from 'foundation/runtime/geometry/curve2d/EllipseArcCurve2d';
import { EllipseCurve2d } from 'foundation/runtime/geometry/curve2d/EllipseCurve2d';
import { LineCurve2d } from 'foundation/runtime/geometry/curve2d/LineCurve2d';
import { NurbsCurve2d } from 'foundation/runtime/geometry/curve2d/NurbsCurve2d';
import { BezierCurve3d } from 'foundation/runtime/geometry/curve3d/BezierCurve3d';
import { CircleArcCurve3d } from 'foundation/runtime/geometry/curve3d/CircleArcCurve3d';
import { CircleCurve3d } from 'foundation/runtime/geometry/curve3d/CircleCurve3d';
import { EllipseArcCurve3d } from 'foundation/runtime/geometry/curve3d/EllipseArcCurve3d';
import { EllipseCurve3d } from 'foundation/runtime/geometry/curve3d/EllipseCurve3d';
import { LineCurve3d } from 'foundation/runtime/geometry/curve3d/LineCurve3d';
import { NurbsCurve3d } from 'foundation/runtime/geometry/curve3d/NurbsCurve3d';
import { Curve } from 'foundation/runtime/geometry/Geometric';
import { BufferGeometry } from "foundation/runtime/graphics/data/BufferGeometry";
export class DimensionOption {
private _level;
defineMin: number;
defineMax: number;
min: number;
max: number;
loop: boolean;
clone(): DimensionOption;
get level(): number;
set level(value: number);
get segment(): number;
get difference(): number;
static getSegment(level: number): number;
static getDifference(level: number): number;
get define(): number;
}
export class CurveOption {
u: DimensionOption;
tolerance: number;
clone(): CurveOption;
}
export class CurveMoldingUtil {
static compute(curve: Curve, op?: CurveOption): BufferGeometry;
static subdivide(curve: Curve, op?: CurveOption): Array;
private static option;
private static bezier;
private static nurbs;
private static line;
private static ellipseArc;
private static ellipse;
private static circleArc;
private static circle;
static bezierOption(curve: BezierCurve3d | BezierCurve2d, op?: CurveOption): CurveOption;
static nurbsOption(curve: NurbsCurve3d | NurbsCurve2d, op?: CurveOption): CurveOption;
static lineOption(curve: LineCurve3d | LineCurve2d, op?: CurveOption): CurveOption;
static circleOption(curve: CircleCurve3d | CircleCurve2d, op?: CurveOption): CurveOption;
static ellipsoidOption(curve: EllipseCurve3d | EllipseCurve2d, op?: CurveOption): CurveOption;
static circleArcOption(curve: CircleArcCurve3d | CircleArcCurve2d, op?: CurveOption): CurveOption;
static ellipsoidArcOption(curve: EllipseArcCurve3d | EllipseArcCurve2d, op?: CurveOption): CurveOption;
private static curve;
private static sub;
private static line3d;
private static lines;
static slice(op: CurveOption): {
us: Array;
cols: number;
colStep: number;
};
private static createBgLines;
private static createBg;
}
}
declare module "foundation/runtime/graphics/molding/curve/PathUtil" {
import { Matrix4 } from 'foundation/runtime/math/Matrix4';
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { Curve } from 'foundation/runtime/geometry/Geometric';
export class PathUtil {
static toPointsByAverageTangent(curve: Curve, tangentDelta: number): Array;
static toPointsBySegment(path: Curve, segments?: Array): Array;
static toTangentBySegment(path: Curve, segments?: Array): Array;
static tolerpMBySegment(path: Curve, segments?: Array): Array;
static toPointsBySegmentStructure(path: Curve, segments?: Array): Array>;
static toTangentBySegmentStructure(path: Curve, segments?: Array): Array>;
static toLerpMBySegmentStructure(path: Curve, segments?: Array): Array>;
static toCurvesBySegmentStructure(path: Curve): Array;
private static curvesToMatrixs;
private static curvesToTangents;
static curvesToPoints(curves: Array, segments?: Array): Array>;
static curveToCurves(curve: Curve, curves?: Array): Array;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve2d/PathUtil2D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
import { PathCurve2d } from 'foundation/runtime/geometry/curve2d/PathCurve2d';
export class PathUtil2D {
static toPointsBySegment(path: PathCurve2d, segments?: Array): Array;
static toTangentBySegment(path: PathCurve2d, segments?: Array): Array;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve3d/PolygonUtil3D" {
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class PolygonUtil3D {
static toPointsBySegment(points: Array, segment?: number): Array;
static toTangentBySegment(points: Array, segment?: number): Array;
private static toPointsByLength;
}
}
declare module "foundation/runtime/graphics/molding/curve/curve2d/PolygonUtil2D" {
import { Vector2 } from 'foundation/runtime/math/Vector2';
import { Vector3 } from 'foundation/runtime/math/Vector3';
export class PolygonUtil2D {
static toPointsBySegment(points: Array, segment?: number): Array;
static toTangentBySegment(points: Array, segment?: number): Array;
static expandPolygon(points: Array