46 static const int plus1mod3[3] = {1, 2, 0};
56 static const int minus1mod3[3] = {2, 0, 1};
int trDecrementIndex(int i)
Faster than a % operation and we do this a lot.
void trBuildGridPolys(int rows, int cols, VecPt3d &pts, VecInt2d &polys)
Build something like this:
std::vector< VecInt > VecInt2d
double trArea(const Pt3d &a_pt1, const Pt3d &a_pt2, const Pt3d &a_pt3)
Return the signed planar area of the triangle (CCW Positive).
void trBuildGridTrianglePolys(int rows, int cols, VecPt3d &a_points, VecInt2d &a_polys)
Create something like this:
int trIncrementIndex(int i)
Faster than a % operation and we do this a lot.
std::vector< Pt3d > VecPt3d