Cap generator
The Cap generator is responsible for closing off either the top or the bottom of an open Branch with geometry that simulates broken or cut ends. Each cap is composed of two sections: an outer region that extends the branch's geometry, and an inner portion that represents the cut or broken middle of the branch. The outer portion always inherits the branch material of the parent generator.