# 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

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Desktop or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...