Now we are finally ready to see how we can work with the data we obtained in the previous section.
An important property of a tree is that each branch is processed separately. For example, let's build a polyline using our points - PolyLine
.
We get separate lines for each branch, so we can work with large models but manipulate individual branches as if they are not connected to each other.
Let's make these lines closed - the 2nd input of the PolyLine
node "C" is responsible for this, it takes a boolean value 0 or 1 or False or True.
False - do not close the line, True - close it.
By default, False is set.
To change this, we add a Boolean Toggle
node and double-click the left mouse button to switch to True.
<aside> 📌 Many nodes have a quick switch between False and True. Right-click on the input of a node where a logical data type is expected and select Invert.
This mode flips the value to the opposite - if the default value was False → True and vice versa.
⚠️ This method will work even if we connect the Boolean Toggle
to the input "C" and set the value to True, then the Invert function will return the value to False and in this case, the line will not be closed!
</aside>
Now let's extrude these lines to create volumetric objects. We add the Extrude
node, which performs extrusion in a certain direction. To choose the direction, we will use the UnitZ
node, which specifies the direction along the Z-axis, and connect a Number slider
to indicate the distance, for example, 46.
<aside> ⚠️ Now we are focused on trees, so we will do more complex things in practical exercises.
</aside>
For working with trees, there are many nodes, but for now, let's look at a node that allows us to select a specific branch.
Or multiple branches