Resizable Christmas tree

  • Email
  • Sharebar
  • Email
Andy's picture

This is a simple Christmas tree consists of a cone and a cyliner. In order to create multiple trees with different sizes, I have included an input into the tree procedure.

The original tree procedure create a tree, which is 3.25 meters tall. Can you figure out 3.25 meter from the codes below?

In order to create different sizes of tree, I modified the procedure to include an input call :size. As can be seen, the :size is multiplied to the scales and the movement of changing position.

At the end of this program, I created 3 trees with 3 different sizes. The 3D world is as below:

Let me know what you think in the comment below. smiley

Files: christmas_tree.x3d  christmas_tree.logo

 

Facebook Comments Box