How to find centreline of point cloud tree scan

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)