Fix some bugs in heightfield.
Fix a regression in BBox::intersectTriangle.