|国家预印本平台
首页|用面向对象的L系统模拟树的生长

用面向对象的L系统模拟树的生长

n Object-Oriented L-System for Simulation of Tree Growth

中文摘要英文摘要

L系统已经成功的运用于许多生物体如植物、细胞、特别是树的生长可视化模拟。在实际的游戏和动画的开发应用中,当我们运用L系统模拟不同的树的动画时,应用程序员往往要重写代码,尽管L系统有适合于用面向对象的方法来描述的特点。在本文中,提出了一个简单的面向对象的L系统的模型,适用于各种树的动画模拟。这个模型的主要功能包括:树的生长过程的模拟,树在生长过程中与周围环境的相互作用等。应用程序员可通过输入不同的参数和字符串来改变树的形态,还可以通过参数控制树的生长速度.如果只是渲染一副静态的图像.可以关掉动画功能。基于这个基本的面向对象的L系统,程序员可大大减少代码的重写,缩短编程时间。

L-systems have been used successfully in representing visualization and simulation of the development and growth of living organisms like plants, cells and especially trees. In practice, when we develop a game or an animation movie, one problem we encountered is that application programmers usually derive a new code from scratch for each application even though L- systems have a basic object-oriented flavor. In this paper, I demonstrate a simple object-oriented L-system for simulation and visualization of a variety of trees, The functions of it includes: simulation of the growth of a tree,simple interaction between tree and environment and so on. Programmers can change shape by inputing defferent parameters or letter string. Programmers also can control the growth rate of a tree.If you want only to render a static tree,you can turn off animation. In this case, the code was developed from the basic L system in a very short time.

李大锦

计算技术、计算机技术生物工程学植物学

L系统,面向对象,树,动画,模拟

L- systems object-oriented tree simulation animation

李大锦.用面向对象的L系统模拟树的生长[EB/OL].(2005-12-16)[2025-08-05].http://www.paper.edu.cn/releasepaper/content/200512-405.点此复制

评论