Hi all,
I have a 3D scanned mesh of a tree trunk in Rhino, and I’m trying to simulate how it would be processed in a sawmill. Specifically, I want to identify the longest, straightest section of the trunk from top to bottom—essentially the part that would yield the largest usable cut. Once that axis is found, I want to generate a square profile around it, representing the portion of the trunk that would be milled into standard lumber, like a 2x4. Around that, I also want to define the offcut sections—the leftover parts of the trunk that surround the milled core, similar to how rough cuts and slabs are made in the milling process.
What’s the best way to approach this in Grasshopper? I’m working from a mesh and looking for a method to align the cut geometry properly along the trunk, extract the primary section, and optionally define the offcuts. Any suggestions on how to set this up would be greatly appreciated.
Thanks!