The aim of this diploma thesis is to describe creating of mathematical graphics with the program Asymptote with emphasis on 3D interactive graphics in PDF documents. The task of this text is to make learning of the program easier with various examples used, while at the same time providing a solid description of the background of techniques used. In the first part, the basic syntax rules are explained, then in following chapters the routines for 2D and 3D are described. In the last chapter, algorithms converting planar regions into 3D surfaces are explained. Then an examples to support the teaching of Integral Calculus of Multivariable Functions are provided in appendix.