Torque 3D 3.7
ContentsIndexHome
PreviousUpNext
MathUtils::sortQuadWindingOrder Function
Syntax
C++
void sortQuadWindingOrder(const MatrixF & quadMat, bool clockwise, const Point3F * verts, U32 * vertMap, U32 count);

Sort the passed verts ( Point3F ) in a clockwise or counter-clockwise winding order. Verts must be co-planar and non-collinear. 

@param quadMat Transform matrix from vert space to quad space. @param clockwise Sort clockwise or counter-clockwise @param verts Array of Point3F verts. @param vertMap Output - Array of vert element ids sorted by winding order. @param count Element count of the verts and vertMap arrays which must be allocated prior to this call.

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!