Fixes #31391. Some cases still fail but these changes are good because they fix a bogus calculation of the 'basef' of some cut segments.
Fixes #31391. Some cases still fail but these changes are good because they fix a bogus calculation of the 'basef' of some cut segments.