Skip to main content
Question

point in the middle of a line

  • November 14, 2023
  • 2 replies
  • 245 views

Forum|alt.badge.img+1

Hello

I want to create a point in the middle of each line in my file. Each of these lines is made up of only 2 vertices. Can you guide me to achieve this. Thanks in advance

2 replies

geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • November 14, 2023

The CenterPointReplacer can do this for you.


geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • November 14, 2023

Or maybe you want to add a vertex in the middle of the line.

That you can do with a CoordinateExtractor, a VertexCreator, and some math.

image