BUILDING 3D SHAPE PRIMITIVE BASED OBJECT MODELS FROM RANGE IMAGES