Question

lines orientation from start object

  • 19 September 2018
  • 2 replies
  • 4 views

Badge +1

Hello!

As you see on the picture, I have lines connected to object (topological). They have differents orientations.

I would like to extract the orientation of the line that intersect the blue object and force it to have the first vertex (start) intersecting this object.

Then I would like to force the orientation of all the lines connected and all the ramifications to be like this firt line, like a waterway network.

I tried differents transformer like NetworkFlowOrientor, PathBuilder/PointOnLineOverlayer but without success.

Do you have any idea? Maybe I need a loop or something like that?

Thank you in advance!


2 replies

Userlevel 2
Badge +17

Hi @us, the NetworkFlowOrientor transformer might help you.

Send all the lines to the 'Line' port, send the start point (blue square in your screenshot) to the 'Destination' port of the transformer.

All the lines output via the 'Network' port will orient to the destination point. You can then reverse their orientation with the Orientor (Orientation Type: Reverse), so that all the lines orient to the blue square.

Done!

Badge +1

Thanks for your solution and sorry for this late answer.

It work very well!

Reply