Geometry::getPolygonNumVertices

FMOD Studio API

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
);

C# Syntax

RESULT Geometry.getPolygonNumVertices(
  int index,
  out int numvertices
);

JavaScript Syntax

Geometry.getPolygonNumVertices(
  index,                           
  numvertices                      // writes value to numvertices.val
);

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.10.03 Built on Feb 1, 2018