update code3DFactory

remove code3DFactory ,add encode&decode 3dFactory