adding more detailed function
test script to get tet centroid