leaves_start and branches_start parameters#80
Open
ykarray wants to merge 1 commit intofriggog:masterfrom
Open
Conversation
…nches from where your leaves will start. set value between [0..1] , and branches_start param : Choose the position on the trunk from where your branches will start set value between [0..1]
Owner
Author
|
Thank you for your message!
Here are the visual examples to help clarify the differences:
-
*Image 1* shows our tree without any parameter changes. This is the
default structure.
-
*Image 2* shows the effect of modifying the *base size* parameter. When
we set the base size to 0.5, it causes a curvature throughout the entire
tree. However, in natural trees, curvature typically starts after the main
trunk splits, not from the base.
-
*Image 3* demonstrates the result when we modify the *branch start*
parameter instead of the base size. As you can see, the trunk remains
straight, and the split occurs naturally, followed by the appearance of the
branches.
So while the overall shapes might seem similar at first glance, the
underlying behavior and structure of the tree vary significantly depending
on which parameter is changed.
Best regards,
Le mer. 9 juil. 2025 à 09:04, Charlie Hewitt ***@***.***> a
écrit :
… *friggog* left a comment (friggog/tree-gen#80)
<#80 (comment)>
Thanks for the contribution - from the description this sounds like it
achieves the same result as
image.png (view on web)
<https://github.com/user-attachments/assets/629eaf3a-1cc5-4744-a083-1828c4547446>
Could you clarify the difference - would be great to see some visual
examples!
—
Reply to this email directly, view it on GitHub
<#80 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVA5FFUX5KL34A3GTSBNAQT3HTEHNAVCNFSM6AAAAAB4FGOL7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTANJRGU4TONBTGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Yasmine Karray *
Women techmakers ambassador
Data and decisional systems engineering student at ENET'com
*Linkedin : *shorturl.at/bdGRV
*Cell **:* +216 29 025 003
*Cell **:* +33 7734 71625
*Mail : ***@***.***
|
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




I have added two parameters: leaves_start and branches_start.
leaves_start parameter: Choose the position on the highest-level branches where your leaves will start. Set a value between 0 and 1.
branches_start parameter: Choose the position on the trunk where your branches will start. Set a value between 0 and 1
I added these parameters because when creating olive trees:
It's important that all branches start after the main trunk splits
Without this, branches appear under the trunk division point
Using existing parameters to raise branch starts made the whole tree too curvedial
The new branches_start parameter makes it possible to:
Position branches higher up the trunk
Keep proper trunk division points
Avoid making the whole tree curved
Create more natural-looking olive trees
Works alongside existing parameters
Maintains all original tree-generation behaviors