It appears that it is not possible to fill 2D polygons in NVIZ in the current version of GRASS 7.
My workaround is summarised below, but I was wondering if someone could suggest a simpler approach.
Overlaying a rasterised vector derived simply from v.to.rast does not give a good display in NVIZ given the topography of the base DEM layer, hence the method below which extracts DN values from the DEM.
convert 2D polygon to raster (v.to.rast)
create mask from latter raster
add mask (r.mask) and create new layer using r.mapcalc extracting cell values from DEM: if( dem,dem,0 )
set colour of new raster using r.colors
in NVIZ set Z position of new layer above DEM (e.g., 100)
On Sun, Sep 8, 2013 at 10:08 AM, RichardC <[hidden email]> wrote:
> I was wondering if there are any plans to enable filling of 2D polygons in
> I'm using GRASS 7 but it appears that this feature currently isn't
AFAIK it only works with 3D polygons.
Untested: convert your 2D polygons to 3D with z=0?
Attached images show the results. I've also tried using v.split to see if that helps, but there is no difference.
However, on closer inspection, the areas have not become faces:
Number of points: 0 Number of centroids: 86 |
| Number of lines: 0 Number of boundaries: 53274 |
| Number of areas: 86 Number of islands: 81 |
| Number of faces: 0 Number of kernels: 0 |
| Number of volumes: 0 Number of holes: 0 |
| Map is 3D: Yes |
| Number of dblinks: 1