Skip to main content
Solved

Line direction setter

  • June 24, 2020
  • 2 replies
  • 90 views

Forum|alt.badge.img

Hello!

I have a line where the first and last vertex contains the real z height (see on photo).

I want to set the direction of the line in the that it shows to the lower point, so the 0 vertext is higher, than the last coordinate. Is there a way that can change the original random orientation to fit this rule?

Thanks

 

Best answer by ebygomm

If you extract the first and the last z value, you can then test if the last z value is higher than the first and send anything that passes into an orientor to flip the line

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • Best Answer
  • June 24, 2020

If you extract the first and the last z value, you can then test if the last z value is higher than the first and send anything that passes into an orientor to flip the line


Forum|alt.badge.img
  • Author
  • 14 replies
  • June 24, 2020

If you extract the first and the last z value, you can then test if the last z value is higher than the first and send anything that passes into an orientor to flip the line

Thanks! It solved correctly my problem!