摘要
分形几何是以非规则物体为研究对象的几何学,分形与计算机图形学结合起来,可以展示其无穷递归的复杂结构,从而实现对自然景物的逼真模拟。L系统文法是分形几何学的一个重要研究方法,它着重研究植物形态与生长的描述,将L系统文法与计算机图形学结合起来,为计算机模拟植物生长提供了一个有力的工具。为此,首先对分形几何及L系统文法进行了简要介绍,详细阐述了利用L系统文法对常见的小草以及灌木丛建模的生成规则,在VC++6.0环境下用字符串替换算法对小草及灌木丛进行了模拟,并通过连续改变分形草的内部参数,模拟小草在风中摇摆的效果形成摇曳的小草,从而产生动画效果,有较强的逼真感。
Fractal geometry is geometry for the study of non-rule object,fractals and computer graphics combine to show the complex structure of its infinite recursion,in order to achieve realistic simulation of natural scenery,L system grammar is an important research methods of fractal geometry,which focused on the description of plant morphology and growth,the L-system grammar combined with computer graphics to provide a powerful tool for computer simulation of plant growth.In this paper,fractal geometry and the L-system grammar are briefly introduced,elaborated on generation rules using L-system grammars for the model of common grass and shrubs,and then simulated grass and bushes using string replacement algorithm in VC++6.0 environment,and through continuous change the internal parameters of fractal grass,simulated the effect of grass swaying in the wind to form swaying grass,so generates animation effect,there is a strong sense of realism.
出处
《农机化研究》
北大核心
2012年第1期195-198,共4页
Journal of Agricultural Mechanization Research
基金
国家自然科学基金项目(61073074)
浙江省自然科学基金项目(Y1090137)
关键词
分形几何
L系统
植物模拟
fractal geometry
L-system
plant simulation