Last updated

API / geotoolkit3d / data / surface / PillarSurfaceData / PillarSurfaceData

Namespace: PillarSurfaceData

surface.PillarSurfaceData.PillarSurfaceData

Table of contents

Type Aliases

Contents

Type Aliases

Options

Ƭ Options: TriangulateOptions & { data: { pillars: PillarData[] ; xyoffset?: Vector3 } }

The Fault Surface constructor options


PillarData

Ƭ PillarData: Object

The x/y/z coordinates which represent a pillar column

Type declaration

NameType
xnumber[]
ynumber[]
znumber[]

TriangulateOptions

Ƭ TriangulateOptions: Object

The options related to pillar triangulation.

Type declaration

NameTypeDescription
autosortpillarpoints?booleanIf true, automatically sort each pillar point. Enabled by default.
autosortpillars?booleanIf true, sort the pillars using the following algorithm (enabled by default):
Sort the pillars based on each pillar's head X/Y coordinate using Linear regression sorting.
First, each pillar head is gathered into a list, only considering the X and Y values.
Then a linear equation is computed from these 2D points using linear regression.
Finally, the pillars are sorted following the position of each point along the linear equation.
This sorting technique is specific and might not be the adequate solution in each case.
data{ pillars: PillarData[] }data object
data.pillarsPillarData[]An array of fault 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.
resamplingpointcount?numberResample the given pillars to a fixed number of points each (Disabled by default).
If null or 0 is provided, no resampling will occur.
Otherwise, the provided number will define the number of points in each resampled pillar.

TriangulatedPoints

Ƭ TriangulatedPoints: Object

Type declaration

NameTypeDescription
triangles{ index: Uint32Array | Uint16Array | Uint8Array ; position: Float32Array }The triangulated points
triangles.indexUint32Array | Uint16Array | Uint8ArrayThe triangle indices used to assemble the vertices into triangles, each trio of indices define the points of a triangle.
triangles.positionFloat32ArrayThe vertices positions in a contiguous arrray ( ie: [x0, y0, z0, x1, y1, z1, ...] )