计算机应用 ›› 2011, Vol. 31 ›› Issue (06): 1703-1705.DOI: 10.3724/SP.J.1087.2011.01703

• 典型应用 • 上一篇    下一篇

弯曲树枝和分形树根的三维模拟

张杰1,林彬2,蔡文奇1,谢壮荣2   

  1. 1. 汕头大学 计算机科学系,广东 汕头 515063
    2. 汕头市质量计量监督检测所,广东 汕头 515041
  • 收稿日期:2010-11-17 修回日期:2011-01-17 发布日期:2011-06-20 出版日期:2011-06-01
  • 通讯作者: 张杰
  • 作者简介:张杰(1963-),男,安徽芜湖人,副教授,主要研究方向:计算机辅助设计、图形仿真;林彬(1955-),男,广东汕头人,工程师,主要研究方向:产品质量管理;蔡文奇(1984-),女,湖北黄石人,硕士研究生,主要研究方向:计算机仿真、嵌入式系统;谢壮荣(1966-),男,广东汕头人,工程师,主要研究方向:工业自动化。
  • 基金资助:
    广东省科技厅产学研项目

3D simulation of bending tree branch and fractal tree root

ZHANG Jie1,LIN Bin2,CAI Wenqi1,XIE Zhuangrong2   

  1. 1. Department of Computer Science, Shantou University, Shantou Guangdong 515063, China
    2. Shantou Institute of Quality and Metrology Supervision Testing, Shantou Guangdong 515041, China
  • Received:2010-11-17 Revised:2011-01-17 Online:2011-06-20 Published:2011-06-01
  • Contact: ZHANG Jie

摘要: 枝条的逼真度在很大程度上影响着整棵树的形态效果,为了模拟出更符合自然规律的三维树,结合了分形算法和材料力学原理,提出了基于重力场的三维弯曲枝条和分形树根的模拟方法。枝条的弯曲程度体现了它的受力情况,同时也可以用杨氏弹性模量来控制其弯曲度;另一方面,采用X3D及Java,运用分形算法结合X3D的Extrusion节点模拟了分形弯曲树根的向地性。用户只需要输入相关参数就可以得到形态较为逼真的三维树。同时将树的地下部分与地上部分有机地结合在一起,模拟了基于重力场的三维树形态。实验结果表明,该方法可以比较方便地生成形态逼真的三维分形树。

关键词: 重力场, 材料力学, 三维, 弯曲树枝, 分形树根

Abstract: The shape of a tree is mostly determined by the reality to the nature layout of branches. In order to simulate a 3D tree branch to mimic the natural tree shape, using the theory of fractal algorithm and mechanics of material, a simulating method for the 3D's bending branch and fractal root based on the gravity field was proposed. The stress state of the branch was reflected by its bending degree. Bending degree could be controlled by changing the value of Young's modulus. Also, with X3D and Java, fractal algorithm combined with Extrusion node of X3D was used to simulate the geotropism of the bending root. A realistic 3D tree can be easily created with some input data using our simulation. By using the close relationship of the tree's underground part and upper part, a simulation method of gravity's effect on the tree shape was established. The experimental results show that the method can easily generate realistic three-dimensional form of fractal trees.

Key words: gravity field, mechanics of materials, 3D, bending branch, fractal root