Implementation of ErosinShape