implemented handle inter edge triangle
fixed bug in triangle mesh calculation