API / geotoolkit3d / data / surface / PillarSurfaceData / PillarSurfaceData
surface.PillarSurfaceData.PillarSurfaceData
Surface data made of pillars that can be triangulated.<br>
The triangulation algorithm will sort the given pillars by default, using a linear regression sorting.<br> This sorting algorithm assumes that there is no overlapping/crossing between pillars.<br> If only one pillar is provided, no surface will be visible/build. In this case, please consider using LineSegments instead to represent single pillars.<br> For more specialized pillars, the sorting can be disabled in the constructor options, to use the provided pillar order instead.<br> 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
- [new PillarSurfaceData(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.data-8.surface-1.pillarsurfacedata.pillarsurfacedata.md#new pillarsurfacedata(options))
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 |