Last updated

API / geotoolkit3d / data / surface / AbstractSurfaceData / AbstractSurfaceData

Namespace: AbstractSurfaceData

surface.AbstractSurfaceData.AbstractSurfaceData

Table of contents

Type Aliases

Contents

Type Aliases

Attributes

Ƭ Attributes: Object

The attributes

Type declaration

NameTypeDescription
indexBufferAttributeThe indices buffer, used to index the rendering order of the vertices.
Indexing vertices allow to save memory by only storing each vertex once in the position buffer, then we just need to index which vertex must be drawn for each consecutive triangle.
Internal BufferAttribute.array is of type Uint8Array, Uint16Array or Uint32Array.
normal?BufferAttributeThe vertices computed normals, if available.
It not present, they are usually computed before the first render by THREE.js.
Normals are the unit vectors indicating each triangle's normal direction to their individual planes, and are responsible for the shading/lighting effects on the surface.
Normal buffer is usually freed in CPU RAM to save memory after it has been loaded in GPU VRAM.
Internal BufferAttribute.array is of type Float32Array.
nullvaluenumber | nullThe nullvalue, a specific value number to ignore in rendering/coloring the surface. Null if not defined.
positionBufferAttributeThe vertices buffer, holding the 3D positions of each vertex this surface is made of.
To retrieve a specific triangle point, one must first look for the vertex index of the triangle, using the index bufferAttribute.
Internal BufferAttribute.array is of type Float32Array.
valuemax?numberThe maximum colormap value, if available.
valuemin?numberThe minimum colormap value, if available.
values?BufferAttributeThe colormap values, if available.
Internal BufferAttribute.array is of type Float32Array.
xmaxnumberThe x maximum in local coordinates.
Please see Helper.localToBusiness, or https://threejs.org/docs/#api/en/core/Object3D.localToWorld, to convert local coordinates into world coordinates.
xminnumberThe x minimum in local coordinates.
Please see Helper.localToBusiness, or https://threejs.org/docs/#api/en/core/Object3D.localToWorld, to convert local coordinates into world coordinates.
ymaxnumberThe y maximum in local coordinates.
Please see Helper.localToBusiness, or https://threejs.org/docs/#api/en/core/Object3D.localToWorld, to convert local coordinates into world coordinates.
yminnumberThe y minimum in local coordinates.
Please see Helper.localToBusiness, or https://threejs.org/docs/#api/en/core/Object3D.localToWorld, to convert local coordinates into world coordinates.
zmaxnumberThe z maximum in local coordinates.
Please see Helper.localToBusiness, or https://threejs.org/docs/#api/en/core/Object3D.localToWorld, to convert local coordinates into world coordinates.
zminnumberThe z minimum in local coordinates.
Please see Helper.localToBusiness, or https://threejs.org/docs/#api/en/core/Object3D.localToWorld, to convert local coordinates into world coordinates.

FloatType

Ƭ FloatType: number[] | Float32Array | Float64Array | BufferAttribute

The options to use to create the surface.


UintType

Ƭ UintType: number[] | Uint8Array | Uint16Array | Uint32Array | BufferAttribute