Question

Is it possible to draw a 'centerline' for a polygon but on e.g. one third from the outer edge instead of half ways?


Is it possible to draw a 'centerline' for a polygon but on e.g. one third from the outer edge instead of half ways?

2 replies

Userlevel 4
Badge +30

Hi @petergoedbloed​ 

 

Did you try to use the transformer CenterLineReplacer?

 

 

Thanks in Advance,

 

Danilo

Userlevel 4
Badge +35

Calculate the approximate width of the polygon from its area and perimeter, create the centerline, and offset the centerline by 1/6 of the approximate width.

Shifted_Centerline

Approx_Width = @Evaluate(@Length()/4 - @sqrt(@pow(@Length()/4,2)-@Area()))

 

Reply