FLDFget_node_connect, FLDFset_node_connect
Synopsis
get/set the node connectivity list of a specified cell set
INTEGER FLDFget_node_connect (cell_set, node_conn_array, size, mode)
INTEGER cell_set(OIDSIZ)
INTEGER node_conn_array
INTEGER size
INTEGER mode
INTEGER FLDFset_node_connect (cell_set, node_conn_array, size, mode)
INTEGER cell_set(OIDSIZ)
INTEGER node_conn_array
INTEGER size
INTEGER mode
Description
These routines get/set the node connectivity array (node_connect_list) within a specified cell set
The FLDFget_node_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 an integer representing a pointer to an integer representing a pointer to a pre-allocated array, and the developer just needs to fill in the values.
If the cell set is a Poly cell set (specifically a Polyhedron cell set), this routine returns the connectivity array of the elementary primitive line or triangle cells, not the polygons themselves. You almost never want to call FLDFset_node_connect() on a polyhedron cell set, since this would set the connectivity of the "primitive" triangular cells making up the polygons, not the connectivity of the polygons themselves. To set the connectivity of the polygons, use FLDFset_poly_connect().
To access data array you will need to use ARRFoffset function described in Appendix D of Developers Reference.
Parameters
cell_set
The integer id of a cell set, as returned by the FLDFget_cell_set routine.
node_conn_array
In FLDFget_node_connect, node_conn_array is the address of an integer representing a pointer to an array in which the node connectivity list is returned. Call ARRfree() on this an integer representing a pointer when you are done using it.
In FLDFset_node_connect, node_conn_array is an integer representing a pointer to an array from which the node connectivity list will be copied.
To access data array you will need to use ARRFoffset function described in Appendix D of Developers Reference.
size
In FLDFget_node_connect, size is an integer in which the size of the node connectivity array is returned. (It is usually defined as ncells*cell_nnodes.)
In FLDFset_node_connect, size is an integer that sets the size of the node connectivity array.
"size" is the number of elements in the array irrespective of type. (It is usually defined as ncells * cell_nnodes.)
mode
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 FLDFset_node_connect:
For FLDFget_node_connect:
Mode
|
Value
|
Meaning
|
OM_GET_ARRAY_RD |
0 |
The program reads the array, but does not write to it. |
OM_GET_ARRAY_WR |
1 |
The program writes to the array, completely replacing it. |
OM_GET_ARRAY_RW |
2 |
The program reads from and writes to the array. |
OM_GET_ARRAY_RD_COPY |
3 |
The program requires a copy of the array for its own, private use (reading or writing). |