摘要
分形树是分形的一个重要分支,是一个典型的具有自相似特点的分形问题.为了更好地描述自然界中树木的形状,实现更加接近于自然树木的模拟,文章给出了在分形的递归过程中,调用随机函数来模拟自然界中树木的方法和用Turbo C编写的源程序.在使用递归方法画分形树的过程中,每当需要画出新生技之前,对新生枝的倾斜角度和长度分别乘以一个在某范围内随机生成的因子,使树枝的倾斜角度和长度在某确定的范围内随机生成,由此得到更加接近于自然界中树木形状的图形.
Fractal tree. an important branch of fractal, is characteristic of self-similarity. In order to effectively describe and animate trees appearance in nature, random functions in the course of recursion and source programs written by Turbo C were used. New tree trunks can be figured out with twig's angle of inclination and length multiply by random factors so that twigs' angles of inclination and Iengths can be randomly formed. Accordingly animation of tree's appearance can be accomplished.
出处
《计算机工程》
EI
CAS
CSCD
北大核心
2000年第9期112-114,共3页
Computer Engineering