Yet now, the first example that I saw in this article hurts my eyes. Compare:
for ( i = 0; i numVerts ; i++ ) {
dot = plane.Distance( in->verts[i] );
dists[i] = dot;
if ( dot LIGHT_CLIP_EPSILON ) {
sides[i] = SIDE_FRONT;
} else {
sides[i] = SIDE_ON;
}
counts[sides[i]]++;
}
Versus: for(i = 0; i numVerts; i++)
{
dot = plane.Distance(in->verts[i]);
dists[i] = dot;
sides[i] = dot LIGHT_CLIP_EPSILON ? SIDE_FRONT :
SIDE_ON;
counts[sides[i]]++;
}