Extract polygonal regions between contour levels using marching squares
Given: 2D grid data and contour levels When: Processing grid to find regions between levels Then: Returns array of regions with boundary polygons
This is the main function for contour polygon decomposition that enables filled contour rendering across all backends.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | contiguous | :: | x_grid(:) | ||
| real(kind=wp), | intent(in), | contiguous | :: | y_grid(:) | ||
| real(kind=wp), | intent(in), | contiguous | :: | z_grid(:,:) | ||
| real(kind=wp), | intent(in), | contiguous | :: | levels(:) |