[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Tip# 2162 By Q.J. Chen On 01-Nov-2006
Rated By 1 users Downloaded : 358
Categories : Edit Blocks, Standard Blocks
Software type : AutoCAD
Rename File To : Tip2162a: TreeSet3.lsp, Tip2162b: treeSet12.lsp
Manipulates trees for use in architectural drawings.

And now for something completely different -- LISP as a tool for creating art. QJ Chen sent Foliage (Tip #2162), which is made up of two function sets. There are three functions named TREE1, TREE2 and TREE3 that draw leaves and trees based on fractal algorithms. Load the LISP code and type TREE1, pick a starting point and then supply a number to seed the fractal. Each number option represents a different variation in the tree growth rules and you'll need to experiment with them to see if anything useful is created. Some result in trees that stand up straight while others look windblown. The result is interesting, and a study of the code is worthwhile for those learning how to program in LISP.



Average Rating:

User comments

Log In