I am having trouble to sort withing a vector the biggest part of the vector to extract that direction. In the file what I want to do is to decompose the vector and whichever be the biggest part of the vector (for other surfaces besides this one from the example) show me which is this biggest direction of the surface that will always be 2 dimensional.
What I want is to decompose the vector and use the biggest part of the vector - in this case the Y direction; to select this part of the vector. In this case the solution would retrieve me the Y direction. What I want is to achieve this direction retrieve.
There are many ways to decompose a vector. Are you just looking to get the longest length in the world coordinate system? This is what you have set up so far.
Are you looking for the longest X or Y component vector out of all the segments, or are you trying to retrieve the longer of the two component vectors for each segment?
You just take the exploded curve segments, run them into a line container, and then run them into a vector container. Obviously, this doesn’t work for curves.
“you trying to retrieve the longer of the two component vectors for each segment?”
This. I am decomposing a singular curve (the edge with the biggest lenght) vector and want to get the biggest part of the vector and extract its direction.
We’re just being silly now. Next person is going to come around and hide all the work in a coding component. Actually, I might just try to do that to try to learn to apply my very beginning coding knowlege into practice… It’s very bad beginning knowledge.
@Fabio_Franchetti Your code just finds the whether X or Y is larger for all the segments if I read that right? Curved segments won’t cast to vectors.