Octree modeling in automated assembly planning