FLDget_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


int FLDget_npolys (
OMobj_id cell_set,
int *npolys);

int FLDset_npolys (
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.

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).

Example

None available.

Related routines