How to find centreline of point cloud tree scan

Hi all, I’ve been given point cloud scans of trees and I need to draw their centrelines.

Usually I just do this by hand in Rhino, but was wondering if it would be possible to automate this in Rhino/Grasshopper instead.

I’ve attached the Rhino file with the point cloud below. This is what it looks like:

Thanks in advance!

point cloud - tree.3dm (12.2 MB)

Hello
you could look at that.

this could be a way.
I started from a surface, but you should reconstruct the surface from the point cloud
Area_contorno.gh (89.8 KB)

Here is a related thread

Just basic components do the job fine:

Hi, NOT saying at all this is “the” automated answer, but I thought it could be fun.

  1. Divide the “Z” values of your points into domain sections:

  2. Get the ‘average’ point of each one of these point groups (you could also use the bounding box centers) and connect them:

  3. You could also fit a line through the original points to create a new plane whose Z vector is the line itself and use that as your “more local” coordinate system for the “Z’s” of your points:



polyline-through-pts.gh (349.5 KB)