An analytical model for calculating the propagation time of shock wave in a wave shaper is presented in this study. The calculated results show that the contours of three typical detonation waves, such as conical detonation wave, spherical detonation wave, and planar detonation wave, can be formed in the main charge by changing the thickness of wave shaper.