Parameters & Returns
Parameters
Returns
Quick Summary
Number of corners (3 or 4) of a mesh face.
Technical Exegesis...
Returns 3 or 4 - the corner count of the given face (0..b2dMeshFaceCount-1). A triangle (3) is stored as a degenerate quad with its 4th corner repeating the 3rd, so you can always draw a face with b2dDrawImageQuadDepthUV regardless. Face data is constant, so query it once at load.
Example
Local corners:Int = b2dMeshFaceCorners(mesh, f)