pub struct ContourBuilder { /* fields omitted */ }
Contours generator to
be used on a rectangular Slice
of values to
get a Vec
of Features of MultiPolygon (use contour_rings
internally).
Constructs a new contours generator for a grid with dx
* dy
dimension.
dx
- The number of columns in the grid.
dy
- The number of rows in the grid.
smooth
- Whether or not the generated rings will be smoothed using linear interpolation.
Computes contours according the given input values
and the given thresholds
.
Returns a Vec
of Features of MultiPolygon.
The threshold value of each Feature is stored in its value
property.
values
- The slice of values to be used.
thresholds
- The slice of thresholds values to be used.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static