CartesianSurface.z

Method to access height map.

class CartesianSurface
@property
double[][]
z
()

Return Value

Type: double[][]

Slice!(double*, 2) containing surface`s height map with dimensions nx * ny

Examples

foreach (i; 0 .. surface.nx) {
    foreach (j; 0 .. surface.ny) {
        surface.z[i][j] = 0;
    }
}

Meta