Please use categoryFromBoundaries2D instead.