# PointSet Representation Item

An `A3DRiPointSet`is a set of 3D points.

When the `A3DRiPointSetGet()`function populates an `A3DRiPointSetData`structure, it allocates arrays of coordinates. When you no longer need the `A3DRiPointSetData`structure, invoke the `A3DRiPointSetGet()`function with the first argument set to NULL to free its allocated memory.

## Sample code

    A3DInt32iErr=A3D_SUCCESS;
    A3DRiPointSet*pA3DRiPointSet=A3D_NULL_HANDLE;

    /*ShouldcallsomethinghereinordertogetavalidA3DRiPointSet*/

    A3DRiPointSetDatasData=A3D_MAKE_DATA(A3DRiPointSetData);
    iErr=A3DRiPointSetGet(pA3DRiPointSet,&sData);
    if(iErr==A3D_SUCCESS)
    {
    for(A3DUns32ui=0;ui<sData.m_uiSize;ui++)
    {
    /*InserthereyourowncodetousePointSetdata:sData.m_pdX[ui],sData.m_pdY[ui],sData.m_pdZ[ui]*/
    }
    iErr=A3DRiPointSetGet(A3D_NULL_HANDLE,&sData);
    }

Returns

> `A3D_SUCCESS`on success, or an error code on failure

Structures

- `A3DRiPointSetData`

Functions

- `A3DRiPointSetGet()`
- `A3DRiPointSetCreate()`
- `A3DRiPointSetEdit()`

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
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...