# CSLSurfaceMesh Class Reference

`#include <SurfaceMesh.h>`

Inheritance diagram for CSLSurfaceMesh:

List of all members.

## Public Member Functions
CSLNurbsSurface * | AddSurface ()
SI_Int | GetSurfaceCount ()
CSLNurbsSurface ** | Surfaces ()
SI_Error | RemoveSurface (SI_Int in_nIndex)
SI_Error | RemoveSurface (CSLNurbsSurface *in_pSurface)
SI_Error | ClearSurfaces ()
virtual SI_Error | Synchronize ()
virtual ETemplateType | Type ()

## Detailed Description

Describes a list of NURBS surfaces (see the XSI_SurfaceMesh template reference).

See also:
  CSLPrimitive

## Member Function Documentation

CSLNurbsSurface* AddSurface | ( |  | ) |

Add a new surface to the list.

Returns:
  CSLNurbsSurface* Pointer to the newly created surface.

SI_Int GetSurfaceCount | ( |  | ) |

Return the number of surfaces in the list.

Returns:
  SI_Int Number of surfaces.

CSLNurbsSurface** Surfaces | ( |  | ) |

Return an array of all surfaces in the list.

Returns:
  CSLNurbsSurface** Array of pointers to surface objects.

SI_Error RemoveSurface | ( | SI_Int | in_nIndex | ) |

Remove a single surface from the list.

Parameters:

  | SI_Int | Index of the surface to remove.

Returns:
  SI_Error Error code.

SI_Error RemoveSurface | ( | CSLNurbsSurface * | in_pSurface | ) |

Remove a single surface from the list.

Parameters:

  | CSLNurbsSurface* | Pointer to the surface to remove.

Returns:
  SI_Error Error code.

SI_Error ClearSurfaces | ( |  | ) |

Remove all surfaces from the list.

Returns:
  SI_Error Error code.

virtual SI_Error Synchronize | ( |  | ) | `[virtual]`

Synchronize will ensure that the animated parameter is up to date.

Returns:
  SI_Error Error code

Reimplemented from CSLTemplate.

virtual ETemplateType Type | ( |  | ) | `[virtual]`

Indicate which dotXSI template this object describes.

Returns:
  ETemplateType Type of template

Implements CSLTemplate.

The documentation for this class was generated from the following file:

- SurfaceMesh.h