fix the bar model generate

Change-Id: I8df87b27dd93f0e11198998869b97754ded3bca1
add delete shape function

Change-Id: Ided3902a45c6bb7bf79827849aeca3caaaa40f83