Local and global coherence in two and three dimensional textures