working on view_triangle, fixed uninit midpoint.z