Skip to main content

input_outputI would like to get the predominant line for each polygon. I have tried using the 'CenterlineReplacer' but that doesn't work well since a lot of these shapes aren't long and narrow areas.

 

I only need one line per polygon, but it needs to be straight. The length of the line doesn't matter. I'm interested in the direction.

 

Does anyone have an idea about how I can approach this task?

 

@nibon​ BoundingBoxReplacer has a 2D Oriented Bounding Box that might give you the result you need, depending on the nature of your areas. You can then pickout the centerline of the bounding box.


@nibon​ BoundingBoxReplacer has a 2D Oriented Bounding Box that might give you the result you need, depending on the nature of your areas. You can then pickout the centerline of the bounding box.

great solution!


Reply