# Simple Pine Tree Generator

> Learn about the simple pine tree generator extension.

Source: https://doc.babylonjs.com/communityExtensions/treeGenerators/simplePineGenerator

![Generated Tree ](https://doc.babylonjs.com/img/extensions/trees/pine1.webp)

The function simplePineGenerator uses a tube to generate a tree. 

A demo can be found at: [Playground: Simple Pine Tree Generator Example](https://playground.babylonjs.com/#LG3GS#106) - Simple example of the simple pine tree generator.

## How to use it.

Clone or copy the file https://github.com/BabylonJS/Extensions/tree/master/TreeGenerators/SimplePineGenerator

Call the function.


```javascript
const tree = simplePineGenerator(canopies, height, trunkMaterial, leafMaterial, scene);
```

## Parameters

canopies - Number of leaf sections.

height - Height of the tree.

trunkMaterial - Material used for the trunk.

leafMaterial - Material for the canopies.
 
scene - The BABYLON scene.
