surfaceRelativeThresholdFilter

fun surfaceRelativeThresholdFilter(heightmap: Heightmap.Types, min: Int, max: Int)

Adds a SurfaceRelativeThresholdFilter with the given heightmap, min and max values to this PlacedFeature, which returns the given position if the surface height at the given position is inside the specified range. Otherwise, returns empty.

Check out the heightmap gist page for image examples.