Tree Generator For RND Forest Generation
This project defines a tree using a few parameters:
- Spread: The angle of split between branches
- Split: The rate at which the trunk and branches split
(S split is defined as one branch turning into two)
- Branch: The rate at which branches split off
(A branch is defined as a node coming from between
two nodes)
- Variability: Multiplied within the standard deviation
to change the variability of the tree from
base parameters
- Branch height: **NOT IMPL**, will define height at which
branching starts.
![Screenshot 2024-01-16 at 20 31 23](https://private-user-images.githubusercontent.com/80355246/297260752-a0da88f8-b8f6-4ae4-b7bf-b913879cfc0b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIzOTU1OTQsIm5iZiI6MTcyMjM5NTI5NCwicGF0aCI6Ii84MDM1NTI0Ni8yOTcyNjA3NTItYTBkYTg4ZjgtYjhmNi00YWU0LWI3YmYtYjkxMzg3OWNmYzBiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzMxVDAzMDgxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEyNTRlN2QxYTQ4NDQ5YmM3YmFhMTM3MjY5MDg3ZTcwNWM4ZDg5NjIwYzliOGU2YTA4MTg3YTliZTIxZDJlMTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.D5AfNAtMWK7poiiuHcj_iOkFLd2QAhZqB2-CTvXXT-I)
The generator works in layers, implemented by the GeneratorLayer class. These layers pass the TreeSkeleton along as it gets a trunk, then branches, then leaves generated. The trunk is generated first, then locations are selected for branches. Branches are the same as the trunk, but are rotated and offset onto the trunk.