Last updated

API / geotoolkit3d / data / surface / GridSurfaceData / GridSurfaceData

Class: GridSurfaceData

surface.GridSurfaceData.GridSurfaceData

Surface data made of a vertices grid that can be triangulated.

The grid is expected to have column first:


[(0,0), (1,0), (2,0), (3,0), (0,1), (1,1), (2,1), (3,1), [...], (0,3), (1,3), (2,3), (3,3)]

X and Y values are optionals:
If only elevations are provided, X and Y values will be determined from the xmin, xstep, ymin, and ystep values.
If both xvalues and yvalues arrays are provided, they should be in the same layout as the elevation array.

Throws

if the Surface Data is not compliant and compromise the creation of the surface.

Throws

SurfaceData is empty after triangulation

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new GridSurfaceData(options)

new GridSurfaceData(options)

Parameters

Name Type
optionsOptions

Overrides

AbstractSurfaceData.constructor

Methods

dispose

dispose(): void

Dispose this surface data to allow for garbage collection.

Returns

void

Inherited from

AbstractSurfaceData.dispose


getAttributes

getAttributes(): Attributes

Returns the GridSurfaceData attributes.

Returns

Attributes

Overrides

AbstractSurfaceData.getAttributes


getClassName

getClassName(): string

Returns

string

Inherited from

AbstractSurfaceData.getClassName


getClassName

Static getClassName(): string

Returns

string

Inherited from

AbstractSurfaceData.getClassName