Firelight Technologies FMOD Studio API
Geometry::getNumPolygons
Retrieves the number of polygons stored within this geometry object.
C++ Syntax
FMOD_RESULT Geometry::getNumPolygons(
int *numpolygons
);
C Syntax
FMOD_RESULT FMOD_Geometry_GetNumPolygons(
FMOD_GEOMETRY *geometry,
int *numpolygons
);
C# Syntax
RESULT Geometry.getNumPolygons(
out int numpolygons
);
JavaScript Syntax
Geometry.getNumPolygons(
numpolygons // writes value to numpolygons.val
);
Parameters
- numpolygons
- Address of a variable to receive the number of polygons within this object.
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.
Remarks
Polygons are added to a geometry object via Geometry::addPolygon.
See Also
- Geometry::AddPolygon
Version 1.10.03 Built on Feb 1, 2018