I am trying to make several hundred unique trees (actual trees, not the data trees) in rhino for a model of Cornell from a tree survey. I have the trunk heights (line), the base point (points), the trunk diameter (curve, circle), and the canopy diameter (curve, circle). I have made a script that creates the spheres for the canopy, and the trunks (pipe component). Because the trees base are not all at the correct height relative to the terrain and I need them to peirce through the terrain a bit, I did meshclosestpoint and moved the bottom point down 2m and then made the pipe from that bottom point and the top point of the trunk height curve.
My issue is that I now need to move all the spheres so that they sit on top of the trunks, and for the life of me I cannot figure out howTrees.gh (9.7 KB)
thx in advance!