API / geotoolkit3d / data / surface / ContourLineData / ContourLineData
surface.ContourLineData.ContourLineData
Type Aliases
Type Aliases
Ƭ Options: TriangulateOptions
The options
Ƭ TriangulateOptions: Object
options object
| Name | Type | Description |
|---|---|---|
applydepth? | boolean | Apply the given line depth (z) to the triangulated results. If set to false, depth is set to 0 instead. Default is true. |
data | { lines: { x: number[] ; y: number[] ; z: number }[] } | The data object used to triangulate and build the Contour surface. |
data.lines | { x: number[] ; y: number[] ; z: number }[] | An array of isolines. Each isoline represent a Z level. |
triangulator? | (verticesXYZ: number[]) => number[] | Defines a custom triangulator function. (optional, a default triangulator is used if not defined). The given vertices coordinates are in a [x1, y1, z1, x2, y2, z2...] fashion. The function returns an index array, where each trio of indices makes a triangle based on the given vertices. |