Hello,
I’m trying to remove the leaves from this tree point cloud but I’m out of ideas and I was trying maybe to do a bounding box and remove the points nearest to the bounding box but I’m not able or by density? I thought by colour but it doesn’t seem the case. Any ideas or some help of how to do so please?
This should probably be done through point color intensity, but I only know how to do that through python. If you could share the file I am sure someone (or me in a few days) can help you out.
Hi!!! Thank you for your response I tried a little bit by myself this is the file with the point cloud file internalised. albero GHprova 1.gh (14.1 KB)
I have a feeling that you are heading North instead of South with this puzzle of yours. I mean: IF you want to create “trees” (and a zillion other things) the only proper way is via code (and Recursion). Like:
Hello and thank you for your responce. The fact is that I don’t want to create trees. I need to take the point cloud of a survey use the point cloud and clean it from the leaves and get only the branches. Then from that I will have to create the mesh.
Thank you for letting me know that it was not internalized. I did try now to upoload but the point cloud is too big to upload there is a limit of 20mb of files. how can I do it so I can get some help?
You could reduce and upload part of your pointcloud to make it work with the 20 MB limit. Alternatively, you could just temporarily share via a drive link or WeTransfer.
In the meantime, maybe look at this: cloud.gh (10.8 KB)
Then I split the color and compare ‘luminance’ values using a similarity component (with a tolerance) so I get rid of points with a certain value similar to the specified color:
I suppose you can replace the information with your cloud and with the equivalent volvox components.
Note:
I don’t have volvox installed so I grabbed the python component from one example in the link I had shared. Though the ‘leaves’ are getting removed, this is simply treating the pointcloud as points. I believe Volvox has an option to cull the actual pointcloud, which sounds to me like what you actually want (remove points without losing the original colors).
Lastly: Do you have to use grasshopper for this? Open source CloudCompare, which volvox communicates with anyway, can help you split colors much faster and export an .e57, before bringing into Rhino - just wondering.
If you manage to reduce/share the original cloud and it’s not ridiculously big, then I might install volvox to look at it more specifically (to cull clouds in volvox I think you need a more specific approach using ‘keys’ defined from the cloud itself). Alternatively, if you try it with Rhino 8, then the process can be more straightforward and you won’t need the python script nor a plugin.
Thank you so so much for your reply, I’m trying my best and yes it has to be done in grasshopper. The only think for volvox the name of the file has to have no empty spaces if not it doesn’t work at least for me. I’m trying to do also the cull cloud but I’m not able. If you can help me that would be great!
I see you are familiar with python me not much I found a python python script online from a phd research, is there any possibility to turn this into a Grasshopper script?
I did try also this approach to create boxes from the cloud with octree with a minimum of 100 or 10 then tried to eliminate the points less than 500 but it doesn’t seem to work either