itowns
Version:
A JS/WebGL framework for 3D geospatial data visualization
56 lines (55 loc) • 2.04 kB
TypeScript
export default TileMesh;
/**
* A TileMesh is a THREE.Mesh with a geometricError and an OBB
* The objectId property of the material is the with the id of the TileMesh
* @param {TileGeometry} geometry - the tile geometry
* @param {THREE.Material} material - a THREE.Material compatible with THREE.Mesh
* @param {Layer} layer - the layer the tile is added to
* @param {Extent} extent - the tile extent
* @param {?number} level - the tile level (default = 0)
*/
declare class TileMesh extends THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap> {
constructor(geometry: any, material: any, layer: any, extent: any, level?: number);
layer: any;
extent: any;
level: number;
obb: any;
boundingSphere: THREE.Sphere;
rotationAutoUpdate: boolean;
layerUpdateState: {};
isTileMesh: boolean;
geoidHeight: number;
link: {};
/**
* If specified, update the min and max elevation of the OBB
* and updates accordingly the bounding sphere and the geometric error
*
* @param {Object} elevation
* @param {number} [elevation.min]
* @param {number} [elevation.max]
* @param {number} [elevation.scale]
*/
setBBoxZ(elevation: {
min?: number | undefined;
max?: number | undefined;
scale?: number | undefined;
}): void;
getExtentsByProjection(crs: any): any;
/**
* Search for a common ancestor between this tile and another one. It goes
* through parents on each side until one is found.
*
* @param {TileMesh} tile
*
* @return {TileMesh} the resulting common ancestor
*/
findCommonAncestor(tile: TileMesh): TileMesh;
/**
* An optional callback that is executed immediately before a 3D object is rendered.
*
* @param {THREE.WebGLRenderer} renderer - The renderer used to render textures.
*/
onBeforeRender(renderer: THREE.WebGLRenderer): void;
#private;
}
import * as THREE from 'three';