shape simplification method