API / geotoolkit3d / data / surface / PillarSurfaceData / 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
↳
PillarSurfaceData
Constructors
Methods
▸ dispose(): void
Dispose this surface data to allow for garbage collection.
void
▸ getAttributes(): Attributes
Returns the vertex/index attributes, and any other defined attributes of this surface as BufferAttribute.
AbstractSurfaceData.getAttributes
▸ getClassName(): string
string
AbstractSurfaceData.getClassName
▸ Static getClassName(): string
string
AbstractSurfaceData.getClassName
▸ Static triangulate(options): TriangulatedPoints
Triangulate the given pillars into a surface mesh (made of a vertex and index arrays).
| Name | Type | Description |
|---|---|---|
options | TriangulateOptions | options object |