In this paper, using the principle of three-dimensional knitting, we introduce a computeraided design system and the basic knitting technology of three-dimensional knitwear in the flat knitting machine. We also provide the corresponding mathematic models