void Mesh::ScaleX(float s) { Vector c = ComputeCentroid(); Triangle *tri = tris; for(int i = 0; i < numTris; i++, tri++) { tri->ScaleXAboutPoint(s, c); } }
void Mesh::ScaleXAboutPoint(float s, Vector point) { Triangle *tri = tris; for(int i = 0; i < numTris; i++, tri++) { tri->ScaleXAboutPoint(s, point); } centroidChanged = true; }