So I’m faced again with the monotonous task of reconstructing a pre-exisiting building based on just plans/sections (This time for use in bim). In order to build the model correctly, I’ll need centerlines and center points of all elements. I’ve looked through the forum and found conversations about medial axes, and roof centerlines, but nothing really that directly addresses the problem at hand. The problem I have is that the wall polylines (taken from dwg) represent walls of different thicknesses and orientations, never perfectly perpendicular. Is there a method I’m missing? I realize I can just go through and draw centerlines manually, but with a multiple levels and multiple buildings, I’m hoping for a more automated solution.
What I’m doing: Extracting all the edges from a wall, ordering by size (the longest edge representes the
the wall axis) and then theres two options. First one: Extract the smallest edges and then connect with a polyline by the curve middle vertices of each one. Or, extract the axis edges and then tween each other. They return the same results.
To be honest, I don’t know if this is exactly what you want due to the lack of images and examples of what you want or even if will work. BUT, this is the first step.
@kotto_97
Thank you for the reply! The walls I am hoping to address are a bit more complex, given that all of them are joined and keep varying in thickness. I have looked a bit further but it seems there is not a real viable solution. I think I am looking down the wrong route. Will rethink the entire process
I just had a very quick look at this with a random form. Its not great, but maybe something like this could work; as long as the walls are rectilinear.
could you please help me with this problem? I’m trying to create a centerline for this closed curve shape. I tried your method for small curves it’s working, for big curves, I’m facing issues. could you please check Leonardo da Vinci
thank you so much, Joseph oster. Its working, but when i tried selecting multiple closed curves I’m facing issue , i treid sorting out its not working for me . could you please help me
X1 & x2 indicates main whole pieces and it have sub pieces as shown in the image . im trying to label the sub pieces with a sequence of (AA), (BB), (CC) to again (AA), like a loop. to acheieve points for labeling i used tween curve and i trimed the tween curve at start and end of the curve , then i took the points of the both ends of tween curve , then i generated labeling , but im facing few difficulties , could you please take a look LABELING DOUBT.3dm (842.0 KB) labeling doubt.gh (38.9 KB)
The center line got scaled automatically i don’t know what the issue is, could you please take a look center line doubt.3dm (273.7 KB) centerline doubt.gh (15.1 KB)
@Sri_Hari
Don’t know what you were trying to solve with your script, but this one gives you a clean and closed centerCrv with the surfaces you provided.