Skip to main content
Solved

Line direction setter


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

View original
Did this help you find an answer to your question?

2 replies

ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • 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
  • June 24, 2020
ebygomm wrote:

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!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings