I’m working on a project where I’m using LSystem to generate trees in 3d. I’m not interested(for now) in flowers and leaves, just the structure, trunk and branches.
I’ve started the project using the ofCylinderPrimitive to draw each branch, but this has some complications:
1)The junctions between the branch looks ugly
2)The position of the cylinder is defined by an ofNode that is in the middle of the mesh. What would be helpful for me is having 2 nodes, one where the branch starts and another one where the branch ends.
Before starting to work on my own primitive, i would like to know if there is already a primitive that fits my use case.
I had a look to this https://github.com/julapy/ofxTubePrimitive/ by @julapy, and I’ve simply tried to draw a “Y”.
I’ve added 2 of3Vec for each of the 3 branches composing the “Y”. One vector define the start of the branch, and the other one the end (code availabe here https://github.com/edap/TubeTest). But this is the result:
The first branch is not displayed.
Maybe @julapy you have some suggestion about how could I implement/change your primitive in order to fit my needs?