To calculate numerically the radiation of a enclosure within a heteromorphosis cavity, attention was focused on: how to decide the visibility between two surfaces, how to improve the old method of configuration factor computation, how to approximately and efficiently decide the radiation resource of directional, spectral radiation in cavity.