Firelight Technologies FMOD Studio API

Geometry::getPolygonNumVertices

Gets the number of vertices in a polygon which is part of the geometry object.

C++ Syntax

FMOD_RESULT Geometry::getPolygonNumVertices(
  int index,
  int *numvertices
);

C Syntax

FMOD_RESULT FMOD_Geometry_GetPolygonNumVertices(
  FMOD_GEOMETRY *geometry,
  int index,
  int *numvertices
);

Parameters

index
Polygon index. This must be in the range of 0 to Geometry::getNumPolygons minus 1.
numvertices
Address of a variable to receive the number of vertices for the selected polygon.

Return Values

If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.

See Also




Version 1.03.06 Built on Apr 17, 2014