   how to get intersector with box and terrain
  Folks,How could I get the intersection of a cubic box and terrain?  I want to paint the intersected terrain surface with a different color. Thanks in advance!   
  I assume your terrain is a regular grid (a heightmap). If so, you need to find the triangles near your box first. clicky.Then you need a box-triangle intersection test. clicky.