Add material on connected spaces.