#include <PolygonList.h>
Inheritance diagram for CSLPolygonList:

The CSLPolygonList class describes a list of polygons that are made up of N number of vertices. The polygons in this list can have normals, UV and color information as well.
To find out, you may use the GetNormalIndices(), GetUVIndices() and GetColorIndices() and check if the return value is non-NULL.
To get the number of polygons in the list, use GetPolygonCount(). To find out how many vertices a particular polygon uses, first get the list of polygon vertex count use GetPolygonVertexCountList().
| typedef CSLArrayProxy<SI_Int, SI_Int, 1> CSLIntArray |
Proxy class that allows modifying a list of SI_Int like an array.
| CSLPolygonList | ( | CSLScene * | in_pScene, | |
| CSLModel * | in_pModel, | |||
| CdotXSITemplate * | in_pTemplate | |||
| ) |
Constructor
| in_pScene | Pointer to the scene containing the polygon list | |
| in_pModel | Pointer to the model containing the polygon list | |
| in_pTemplate | Pointer to the CdotXSITemplate containing the polygon list |
| virtual ~CSLPolygonList | ( | ) | [virtual] |
Destructor
| SI_Int GetPolygonCount | ( | ) | [inline] |
Returns the number of polygons in this list.
| CSLIntArray* GetPolygonVertexCountList | ( | ) | [inline] |
Return the polygon vertex count array proxy.
| SI_Int* GetPolygonVertexCountListPtr | ( | ) | [inline] |
Returns an array of SI_Int containing the number of vertices for each polygon.
| SI_Int GetVertexCount | ( | ) | [inline] |
Returns the number of vertices referred by all polygons in this list.
| CSLIntArray* GetVertexIndices | ( | ) | [inline] |
Return the vertex indices array proxy.
| SI_Int* GetVertexIndicesPtr | ( | ) | [inline] |
Returns an array of SI_Int containing the vertex index list.
| CSLIntArray* CreateNormalIndices | ( | ) |
Create a normal indices array.
| CSLIntArray* GetNormalIndices | ( | ) | [inline] |
Return the normal indices array proxy.
| SI_Int* GetNormalIndicesPtr | ( | ) |
Returns an array of SI_Int containing the normal index list.
| SI_Error DestroyNormalIndices | ( | ) |
Destroy the normal indices array.
| CSLIntArray* CreateColorIndices | ( | ) |
Create a color indices array.
| CSLIntArray* GetColorIndices | ( | ) | [inline] |
Return the color indices array proxy.
| SI_Int* GetColorIndicesPtr | ( | ) |
Returns an array of SI_Int containing the color index list.
| SI_Error DestroyColorIndices | ( | ) |
Destroy the color indices array.
| CSLIntArray* AddUVArray | ( | ) |
Create a new UV indices array.
| SI_Int GetUVArrayCount | ( | ) |
Return the number of texture coordinate arrays.
| CSLIntArray* GetUVIndices | ( | SI_Int | in_nId | ) |
Return the UV indices array proxy.
| in_nId | Identification of the UV array to retrieve. |
| SI_Int* GetUVIndicesPtr | ( | SI_Int | in_nId | ) |
Returns an array of SI_Int containing the UV index list.
| in_nId | Identification of the UV array to retrieve. |
| SI_Error RemoveUVArray | ( | ) |
Remove the last UV indices array.
| SI_Error ClearUVArrays | ( | ) |
Remove all UV indices array.
| CSLBaseMaterial* GetMaterial | ( | ) | [inline] |
Return the material object of the polygon list.
| SI_Void SetMaterial | ( | CSLBaseMaterial * | in_pNewMaterial | ) | [inline] |
Change the material object of the polygon list.
| in_pNewMaterial | New material object. |
| virtual SI_Error Synchronize | ( | ) | [virtual] |
Updates the template with information from this polygon list
Reimplemented from CSLTemplate.
| virtual ETemplateType Type | ( | ) | [inline, virtual] |
Returns the type of this template
Implements CSLTemplate.
| virtual CSLAnimatableType* ParameterFromName | ( | SI_Char * | in_szName | ) | [virtual] |
Gets a handle on one of this polygon list's parameters by using its name
| in_szName | the name of the parameter to get the handle from |
Reimplemented from CSLTemplate.