API / geotoolkit3d / data / surface / PillarSurfaceData / PillarSurfaceData
surface.PillarSurfaceData.PillarSurfaceData
Type Aliases
Ƭ Options: TriangulateOptions & { data: { pillars: PillarData[] ; xyoffset?: Vector3 } }
The Fault Surface constructor options
Ƭ PillarData: Object
The x/y/z coordinates which represent a pillar column
| Name | Type |
|---|---|
x | number[] |
y | number[] |
z | number[] |
Ƭ TriangulateOptions: Object
The options related to pillar triangulation.
| Name | Type | Description |
|---|---|---|
autosortpillarpoints? | boolean | If true, automatically sort each pillar point. Enabled by default. |
autosortpillars? | boolean | If 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.pillars | PillarData[] | 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? | number | Resample 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: Object
| Name | Type | Description |
|---|---|---|
triangles | { index: Uint32Array | Uint16Array | Uint8Array ; position: Float32Array } | The triangulated points |
triangles.index | Uint32Array | Uint16Array | Uint8Array | The triangle indices used to assemble the vertices into triangles, each trio of indices define the points of a triangle. |
triangles.position | Float32Array | The vertices positions in a contiguous arrray ( ie: [x0, y0, z0, x1, y1, z1, ...] ) |