作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2000, Vol. 26 ›› Issue (09): 112-114.

• 论文 • 上一篇    下一篇

自然树木形状的分形模拟

张有会,李秀丽,王志巍,王艳君   

  1. 河北师范大学计算机系 石家庄 050016,石家庄市科技干部进修学院 石家庄 050031,河北师范大学计算机系 石家庄 050016,河北师范大学计算机系 石家庄 050016
  • 发布日期:2000-09-25

Fractal Simulation of Natural Tree's Appearance

ZHANG Youhui, LI Xiuli, WANG Zhiwei, WANG Yanjun   

  1. (Department of Computer Science, Hebei Teachers University, Shijiazhuang 050016; Shijiazhuang College of Advanced Studies for Science & Technology Cadre, Shijiazhuang 050031)
  • Published:2000-09-25

摘要: 分形树是分形的一个重要分支,是一个典型的具有自相似特点的分形问题.为了更好地描述自然界中树木的形状,实现更加接近于自然树木的模拟,文章给出了在分形的递归过程中,调用随机函数来模拟自然界中树木的方法和用Turbo C编写的源程序.在使用递归方法画分形树的过程中,每当需要画出新生技之前,对新生枝的倾斜角度和长度分别乘以一个在某范围内随机生成的因子,使树枝的倾斜角度和长度在某确定的范围内随机生成,由此得到更加接近于自然界中树木形状的图形.

关键词: 分形, 树, 随机, Turbo C

Abstract: 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.

中图分类号: