clean up get elements in segment
changed getTabAngles to normal method instead of static
fixed tab error: if tabFaceCentroid too close make triangle with that centroid