Initialize 3d restucture