Last updated

API / geotoolkit3d / data / surface / PillarSurfaceData / PillarSurfaceData

Class: PillarSurfaceData

surface.PillarSurfaceData.PillarSurfaceData

Surface data made of pillars that can be triangulated.

The triangulation algorithm will sort the given pillars by default, using a linear regression sorting.
This sorting algorithm assumes that there is no overlapping/crossing between pillars.
If only one pillar is provided, no surface will be visible/build. In this case, please consider using LineSegments instead to represent single pillars.
For more specialized pillars, the sorting can be disabled in the constructor options, to use the provided pillar order instead.
Each pillar can have a different point count.

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 PillarSurfaceData(options)

new PillarSurfaceData(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 vertex/index attributes, and any other defined attributes of this surface as BufferAttribute.

Returns

Attributes

Inherited from

AbstractSurfaceData.getAttributes


getClassName

getClassName(): string

Returns

string

Inherited from

AbstractSurfaceData.getClassName


getClassName

Static getClassName(): string

Returns

string

Inherited from

AbstractSurfaceData.getClassName


triangulate

Static triangulate(options): TriangulatedPoints

Triangulate the given pillars into a surface mesh (made of a vertex and index arrays).

Parameters

Name Type Description
optionsTriangulateOptionsoptions object

Returns

TriangulatedPoints