Last updated

API / geotoolkit3d / data / surface / ContourLineData / ContourLineData

Namespace: ContourLineData

surface.ContourLineData.ContourLineData

Table of contents

Type Aliases

Contents

Type Aliases

Options

Ƭ Options: TriangulateOptions

The options


TriangulateOptions

Ƭ TriangulateOptions: Object

options object

Type declaration

NameTypeDescription
applydepth?booleanApply 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.