FLDget_poly_connect, FLDset_poly_connect
Synopsis
get/set the poly connectivity list of one cell_set within a Cells Grid
int FLDget_poly_connect (
OMobj_id cell_set,
int **poly_conn_array,
xp_long *size,
int mode);
int FLDset_poly_connect (
OMobj_id cell_set,
int *node_conn_array,
xp_long *size,
int mode);int FLDget_poly_connect_w (
OMobj_id cell_set,
int **poly_conn_array,
xp_long *size,
int mode);
int FLDset_poly_connect_w (
OMobj_id cell_set,
int *node_conn_array,
xp_long *size,
int mode);int FLDget_poly_connect_n (
OMobj_id cell_set,
int **poly_conn_array,
int *size,
int mode);
int FLDset_poly_connect_n (
OMobj_id cell_set,
int *node_conn_array,
int *size,
int mode);Description
These routines get/set the poly connectivity array (poly_connect_list) within one cell_set array element in a Cells Grid.
The FLDget_poly_connect routine can be used for both getting and setting the node_connect_list array. When setting with a "get" routine (mode = OM_GET_ARRAY_WR or OM_GET_ARRAY_RW), it returns a pointer to a pointer to a pre-allocated array, and the developer just needs to fill in the values.
Parameters
The OMobj_id of one cell_set array element within a Cells Grid, as returned by the FLDget_cell_set routine.
int **poly_conn_array
int *poly_conn_arrayIn FLDget_poly_connect, poly_conn_array is the address of a pointer to integers; upon return, *poly_conn_array will be filled in with the poly connectivity list. Call ARRfree() on this pointer when you are done using it.
In FLDset_poly_connect, poly_conn_array is the address of an array from which the poly connectivity list will be copied.
In FLDget_poly_connect, *size is a pointer to an integer in which the size of the poly connectivity array is returned.
An integer constant that establishes the access mode for the array subobject. Constants for the possible values are defined in avs/om.h as follows.
For FLDset_poly_connect:
The program intends to write to the array, completely replacing it, but not read it.
The program requires a copy of the array for its own, private use (reading or writing).
Examples
Files
See Also