I have been trying to figure out how to solve this myself, but I just can’t figure anything even remotely smart. I’m trying to create building representations from laserdata points and outlines. Since the points don’t follow the corners of the buildings, I don’t know how to make it nice and boxy. Does anyone have an idea on how to do it?
I’ve included a crude drawing of how it should look, sorry about the ugly lines
I’ve also included a grasshopper file with the points and outlines. I’m going to replicate this on quite a lot of buildings when making site models, that might be good to know.
Does this mean you need to use the outlines you’ve drawn?
If yes, then why try to rely on the points?
If you’ll use outlines defining the boundaries, then why not separate the pointclouds into sections, which you can enclose with extrusions of each outline?
Sounds like a nightmare of impossibility. Will you draw outlines for every pointcloud?
Is the outline you’ve provided drawn by you or automatically generated with a pointcloud software/plug-in?
I ask because there are discrepancies that will affect extrusions if you went that route:
NOTE:
You’ll quickly realize that even this quickie isn’t reliable as some points will ‘share walls’ and will affect the separate heights.
Nonetheless feel free to check it for possible insight: Building from points01.gh (62.3 KB)
Alternatively you could look into CloudCompare’s shape detection, or poisson reconstruction - betting you’ve probably heard of it. Test it for your pointcloud(s) and see if you can generate meshes automatically, which you could trim to your outlines aftwerwards:
Another approach could be to segment the points into groups that are mostly coplanar using Lunch Box’s GaussianMix and AssignPaths from Tree Frog, find their 2d minimum bounding boxes with Minimum Bounding Box in a fitted plane, intersect these bounding boxes with the building footprint, then create volumes from each region. Splitting the footprint as @corellaman recommends would help clean up the small steps in the tower profile.