Maximal cuts in arbitrary dimension