Skip to main content
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?

  • May 2, 2022
  • 2 replies
  • 23 views

petergoedbloed
Contributor
Forum|alt.badge.img+6
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

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • May 2, 2022

Hi @petergoedbloed​ 

 

Did you try to use the transformer CenterLineReplacer?

 

 

Thanks in Advance,

 

Danilo


geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • May 3, 2022

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()))