Dear community,
happy new year! Wish all the best for an incredible 2024!
I’m searching for a rule for the correct placement of 3D text alongside the edges of a polyline.
In the cases that I am interested in, I would like my texts to be positioned in such a way that the X axis of the 3D text is parallel to the edge of the polyline but this sometimes generates notable situations that I am forced to discriminate, such as those in the images below:
I always have to deal with open polylines (therefore no face will be created) sometimes built clockwise, sometimes built anti-clockwise. As you can see, the 3D texts on sides 6 and 7 cannot be read correctly because they are oriented in a way that does not facilitate reading.
Same thing happens with the 3D texts on sides 4, 5, 6 and 7 of the second image.
This is why I ask you: is it possible to evaluate the components of a vector with respect to an absolute reference system that is not that of the 3D model?
For example, is it possible to generate vectors evaluated with respect to the screen coordinate systems?
If I were able to evaluate the components of the vectors parallel to each edge of the polylines that you see in the images above, with respect to an absolute reference system (even 2D, like the screen reference system), I would be able to discriminate the cases in which the texts are oriented in an unwanted way.
In particular: all cases in which the components of the vectors (referred to the absolute 2D reference system with the x axis in red and the y axis in green, in the image below) have negative x and positive y or both negative components, in this cases I need to reoriented them correctly:
I cannot use the reference system of the model nor the one of a group/component because it always varies based on conditions that I cannot control.
I think that it will be possible also to evaluate the difference between the vertices position with respect to the screen coordinates system: if the difference between the x coordinate of the next point and the previous point of the polyline is negative and the difference between the y coordinate of the next point and the previous point of the polyline is also negative or positive, then I will be able to act and correct the position of the 3D text. Does anyone have experience with this way of working? Problems that can arise?
Thank you