I've been working on this modeling problem, but I can't seem to get it right. In an attempt to not lead you in the wrong direction, I haven't shown my work below. If you have some time, please help me figure it out?
Thanks in advance!
We are trying to model a type of tree structure in two dimensions. This structure starts with a root node and branches to b("Branch factor") other nodes along "edges" of length l. Each of those nodes branch to b new nodes and so on.
The angle between the two extremes of one node's edges is congruent to the angle between two adjacent edges of the node's parent. The "center" between a node's extreme edges is along the line formed by that node and the origin.
Each node has properties that can be referenced, including x and y coordinates, as well as depth or anything else useful (aka properties can be created as needed). The nodes are indexed, starting with zero and proceeding as the tree is filled left to right. The root node is positioned at the origin.
Useful information:
The index of a node's parent is:
Thanks in advance!
We are trying to model a type of tree structure in two dimensions. This structure starts with a root node and branches to b("Branch factor") other nodes along "edges" of length l. Each of those nodes branch to b new nodes and so on.
The angle between the two extremes of one node's edges is congruent to the angle between two adjacent edges of the node's parent. The "center" between a node's extreme edges is along the line formed by that node and the origin.
Each node has properties that can be referenced, including x and y coordinates, as well as depth or anything else useful (aka properties can be created as needed). The nodes are indexed, starting with zero and proceeding as the tree is filled left to right. The root node is positioned at the origin.
- Derive the positions of n nodes or the position of the nth node with b=3.
- Derive the positions of n nodes or the position of the nth node with b=b.
Useful information:
The index of a node's parent is:
