FLDget_npolys, FLDset_npolys

Synopsis

get/set the number of Polyline, Polytri, or Polyhedron (polygon) cells (npolys) within one cell_set of a Cell_Data or Cells Grid

Common Version:

int FLDset_npolys (
OMobj_id cell_set,
int npolys);

Wide Version:

int FLDget_npolys (
OMobj_id cell_set,
xp_long *npolys);

Narrow Version:

int FLDget_npolys_n (
OMobj_id cell_set,
int *npolys);

Description

These routines get/set the number of Poly cells (npolys) within one element of a cell_set array within either a Cell_Data and/or a Cells Grid cell_set.

Note that calling FLDget_ncells() on a Poly cell set returns the number of primitive (triangular) cells in the cell set, while FLDget_npolys() returns the number of lines, triangles, or polygons, respectively.

Parameters

OMobj_id cell_set

The OMobj_id of one element of the cell_set[ncell_sets] array within a Cell_Data or Cells Grid, as returned by the FLDget_cell_set routine.

xp_long *npolys
xp_long npolys
int *npolys
int npolys

In FLDget_npolys, npolys is a pointer to an integer in which the number of cells (npolys) will be returned.
In FLDset_ncells, npolys is an integer specifying the number of cells (npolys).

Examples

none.

Files

v/fld.v.

See Also

FLDget_cell_set
FLDget_ncell_sets
FLDget_cell_data_ncomp
FLDget_ncells