CDPNodeGroup

Functions

~CDPNodeGroup

void

setNodes

void

setNodeIds

cdp_size_t

groupIndex

Detailed Description

class CDPNodeGroup

A group of nodes that is used by one or more element groups.

The node group consists of node coordinates (x,y,z) and an optional id per node.

Public Functions

inline virtual ~CDPNodeGroup()
virtual void setNodes(const cdp_double_t *nodeArr, cdp_size_t nodeCount) = 0

Sets the nodes in this group.

The nodes are specified with an array of interleaved 3d coordinates, so the array contains: <x0, y0, z0, x1, y1, z1, …>.

nodeCount is the number of nodes, so the array must be 3*nodeCount long.

virtual void setNodeIds(const cdp_int_t *nodeIdArr, cdp_size_t nodeCount) = 0

Specifies an optional id per node in this group.

Use this method to set the id of the nodes. nodeIdArr must be of size nodeCount and the nodeCount must match the number of nodes in the group.

virtual cdp_size_t groupIndex() const = 0

Returns the zero based index of this node group.

Use this to set the node index when adding element groups with CDPGeometry::addElementGroup