GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-847944e18e
getblock.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <grass/raster.h>
#include "raster3d_intern.h"
Include dependency graph for getblock.c:

Go to the source code of this file.

Functions

void Rast3d_get_block_nocache (RASTER3D_Map *map, int x0, int y0, int z0, int nx, int ny, int nz, void *block, int type)
 
void Rast3d_get_block (RASTER3D_Map *map, int x0, int y0, int z0, int nx, int ny, int nz, void *block, int type)
 Copies the cells contained in the block (cube) with vertices (x0, y0, z0) and (x0 + nx - 1, y0 + ny - 1, z0 + nz - 1) into block. The cell-values in block are of type. The source code can be found in getblock.c. More...
 

Function Documentation

◆ Rast3d_get_block()

void Rast3d_get_block ( RASTER3D_Map map,
int  x0,
int  y0,
int  z0,
int  nx,
int  ny,
int  nz,
void *  block,
int  type 
)

Copies the cells contained in the block (cube) with vertices (x0, y0, z0) and (x0 + nx - 1, y0 + ny - 1, z0 + nz - 1) into block. The cell-values in block are of type. The source code can be found in getblock.c.

Parameters
map
x0
y0
z0
nx
ny
nz
block
type
Returns
void

Definition at line 102 of file getblock.c.

◆ Rast3d_get_block_nocache()

void Rast3d_get_block_nocache ( RASTER3D_Map map,
int  x0,
int  y0,
int  z0,
int  nx,
int  ny,
int  nz,
void *  block,
int  type 
)

Definition at line 11 of file getblock.c.