fixed the bugs of updating and draw mouse.
@simba, add some functions for TetMesh.