Accurate Photoionization Models of Nebula in Three Dimensions