Skip to content

API / geotoolkit3d / data / surface / AbstractSurfaceData / AbstractSurfaceData

Class: AbstractSurfaceData

surface.AbstractSurfaceData.AbstractSurfaceData

Parent class for surfaces data.<br> <br> Surface data is responsible of converting the user's raw data into triangles.<br> Those triangles will be stored in THREE.BufferAttribute as vertices and indices.<br> <br> Inheriting classes should provide data for surface objects through the usage of protected setAttributes().<br>

Throws

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

Hierarchy

Table of contents

Constructors
  • [new AbstractSurfaceData()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.data-8.surface-1.abstractsurfacedata.abstractsurfacedata.md#new abstractsurfacedata())
Methods

Contents

Constructors

new AbstractSurfaceData()

• Protected new AbstractSurfaceData()

Methods

dispose

▸ dispose(): void

Dispose this surface data to allow for garbage collection.

Returns

void


getAttributes

▸ getAttributes(): Attributes

Returns the vertex/index attributes, and any other defined attributes of this surface as BufferAttribute.

Returns

Attributes


getClassName

▸ getClassName(): string

Returns

string


getClassName

▸ Static getClassName(): string

Returns

string