1
$\begingroup$

I'd like to use Ctrl+Numpad + in edit mode to select branches and leaves on a tree generated using the sapling add-on. I have a workflow to connect all of the branches to the trunk. However, I'm not able to find a way to connect the leaves to the mesh so they can be selected along with the branches.

Is there a way to generate the model or modify the models so that leaves can be selected as vertices along a branch are selected using Ctrl+Numpad +?


Example:

  1. Add a sapling tree to a model. Enable 'bevel' and enable 'show leaves'.

enter image description here

  1. Convert the tree curve into a mesh in object mode.
  2. Go into edit mode. The mesh for branches and the trunk are part of the same object and intersect, but are not connected.

enter image description here

  1. In edit mode, select all vertices, the Ctrl+F and select 'intersect (knife)' and on the toolbar select 'Self Intersect' and deselect 'Separate'. This will create merge the meshes and they will be connected at the intersections. Since it is connected, it is now possible to select trunk and branches using Ctrl+Numpad +. (See [stack exchange question] discussing the process3)

enter image description here

  1. If connected vertices are continued to be selected, the leaves are not selected. Is there a way to modify the leaves so as the branch is selected, the leaves are also selected?

enter image description here


Sample blender file:

$\endgroup$
  • $\begingroup$ I see no obvious way to do that unless said leaves are physically connected to the corresponding branch. You could go and create vertex groups for each branch and assign them to the leaves as well but that requires lots of manual labor. $\endgroup$ – Duarte Farrajota Ramos Jul 10 '17 at 0:03
  • $\begingroup$ This could probably be scripted, but I'm not aware of a non-programmatic way to solve this. $\endgroup$ – TLousky Jul 10 '17 at 8:15
1
$\begingroup$

The leaves can be connected to the sapling mesh through the following steps.

1) In object mode, select the tree and the leaves.

enter image description here

2) Press ctrl+J to join the meshes.

enter image description here

3) Enter edit mode and select all using A.

enter image description here

4) Press ctrl+F and select 'Intersect (knife)' and make sure the Separate option is unselected and the Source is 'Self intersect'.

enter image description here

5) Now the mesh is fully connected, including leaves. Selecting a vertex and using ctrl+numpad + will select all of the connected elements.

enter image description here

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.