Class: Contour3DLayer
Defined in: plot3d/contour3d.ts:60
3D contour: iso-height lines of a grid, each drawn at its own level height (y = level) so they stack into a floating topographic map. Marching squares on the CPU, per-vertex colored by level.
Implements
Constructors
Constructor
ts
new Contour3DLayer(gl, opts): Contour3DLayer;Defined in: plot3d/contour3d.ts:80
Parameters
| Parameter | Type |
|---|---|
gl | WebGL2RenderingContext |
opts | Contour3DOptions |
Returns
Contour3DLayer
Properties
id
ts
readonly id: string;Defined in: plot3d/contour3d.ts:61
Implementation of
name?
ts
readonly optional name?: string;Defined in: plot3d/contour3d.ts:62
Series name for the legend (optional).
Implementation of
Methods
bounds3()
ts
bounds3(): Bounds3 | null;Defined in: plot3d/contour3d.ts:173
Returns
Bounds3 | null
Implementation of
colorInfo()
ts
colorInfo(): ColorInfo | null;Defined in: plot3d/contour3d.ts:175
Colormap + value range for a colorbar, if this layer is colormapped.
Returns
ColorInfo | null
Implementation of
dispose()
ts
dispose(): void;Defined in: plot3d/contour3d.ts:186
Returns
void
Implementation of
draw()
ts
draw(gl, mvp): void;Defined in: plot3d/contour3d.ts:177
Parameters
| Parameter | Type |
|---|---|
gl | WebGL2RenderingContext |
mvp | Mat4 |
Returns
void
Implementation of
setData()
ts
setData(values, opts?): void;Defined in: plot3d/contour3d.ts:163
Stream a new scalar field (contours recomputed). Call plot.refresh() after.
Parameters
| Parameter | Type |
|---|---|
values | ArrayLike<number> |
opts? | { cols?: number; extentX?: Range; extentZ?: Range; rows?: number; } |
opts.cols? | number |
opts.extentX? | Range |
opts.extentZ? | Range |
opts.rows? | number |
Returns
void