Yes! Thank you!! As I understand, you did the following:

- Extend the top branches so it goes through the surface and give it a ‘pipe’ structure
- Turn the pipe structure and the panels into breps
- Cut the pipe into two parts
- Find the centroid of each substructure and pick out the z coordinate for them
- Make a numeric domain with the two z coordinates being the bounds
- Deconstruct the domain and choose only the end of the domain to get the value of the centroid of the upper part which needs to be removed
- Test whether the z value of the top substructure is larger than the z value of both centroids. Obviously, the z value of the top structure is not larger than the number itself
- Remove all the ‘false’ which are equal to all the top parts

I hope I understood that correct. Apparently, it was not as easy as I thought but thank you very much for your help.