FLDget_npoints, FLDset_npoints

Synopsis

get/set the npoints in a Grid_Struct Grid

Common Version:

int FLDset_npoints (
OMobj_id field,
int npoints);

Wide Version:

int FLDget_npoints (
OMobj_id field,
xp_long *npoints);

Narrow Version:

int FLDget_npoints_n (
OMobj_id field,
int *npoints);

Description

These routines get/set the npoints in a Grid_Struct Grid. Grid_Structs include Grid_Unif and Grid_Rect grids.

Parameters

OMobj_id field

The OMobj_id of a field containing a Grid_Struct.

xp_long *npoints
xp_long npoints
int *npoints
int npoints

In FLDget_npoints, *npoints is a pointer to an integer in which the number of points is returned.
In FLDset_npoints, npoints is an integer from which the number of points is copied to the field.

Examples

modules/crop.c
modules/down.c
modules/orthoslc.c

Files

v/fld.v.

See Also

FLDget_points
FLDget_ndim
FLDget_dims