Last updated

API / geotoolkit3d / util / surface / GridTriangulator / GridTriangulator

Namespace: GridTriangulator

surface.GridTriangulator.GridTriangulator

Table of contents

Type Aliases

Contents

Type Aliases

Data

Ƭ Data: Object

data object

Type declaration

NameTypeDescription
elevation?number[]The elevation values of each point on the grid data. Should be an array of size (width * height).
If not defined, the resulting surface will be flat.
heightnumberThe height of the grid data (how many rows).
normals?booleantrue for creating normals, default is false. Normals can be generated by the THREE.js geometry themselves, and is usually not necessary to compute here.
nullvalue?numberDefine the null value, for which grid points with a value equal to nullvalue will be ignored (no triangle will be generated for this point).
widthnumberThe width of the grid data (how many columns).
xmin?numberThe minimum x coordinate of the grid data (will be used as an offset).
xstep?numberThe spacing between columns (along the X axis).
Is only necessary if the true X and Y coordinates are not provided. Default is 1.
xvalues?number[]The X coordinates of each point on the grid data.
Should be an array of size (width * height).
If not defined along with yvalues, the grid will procedurally generate X and Y coordinates based on height, width, Xstep/Ystep size and Xmin/Ymin coordinates.
ymin?numberThe minimum y coordinate of the grid data (will be used as an offset).
ystep?numberThe spacing between rows (along the Y axis).
Is only necessary if the true X and Y coordinates are not provided. Default is 1.
yvalues?number[]The X coordinates of each point on the grid data.
Should be an array of size (width * height).
If not defined along with yvalues, the grid will procedurally generate X and Y coordinates based on height, width, Xstep/Ystep size and Xmin/Ymin coordinates.

Options

Ƭ Options: Object

options object

Type declaration

NameTypeDescription
dataDatadata object
surfacesmooth?booleanIf true, surface data will be interpolated and smoothed

ResultObject

Ƭ ResultObject: Object

result object

Type declaration

NameTypeDescription
bufferusednumbernumber of components for data
triangles{ index: BufferAttribute ; normal?: BufferAttribute ; position: BufferAttribute ; vertexcount: number }triangles object
triangles.indexBufferAttributeindices
triangles.normal?BufferAttributenormals
triangles.positionBufferAttributepositions
triangles.vertexcountnumbervertex count
xmaxnumbermaximum x
xminnumberminimum x
ymaxnumbermaximum y
yminnumberminimum y
zmaxnumbermaximum z
zminnumberminimum z