this version remove dependence of tet_vol.h