I created a greased line and gave it a width. However, the width of the corner position on the online version has significantly decreased. How should this be resolved?
THIS IS PG
I think it’s possible to adap the width by computing the angle and compensating. I don’t know if there is something automatic for that. cc @roland
Here is a workaround using the segmentize tool I found when working on pathfinding visualization:
This is one way to solve the problem.Thank you for your reply.
This method will increase the number of vertices of the line. Are there any better ways to handle it without increasing the number of vertices of the line?
You can apply a list of widths to the greasedLine, without changing the vertex count :
But to choose the right one, you’ll need to put in place a compute based on angle (here I’ve set an obvious 1.4142 (square root of 2) on a 45° angle of the in between segment (90° angle of the GreasedLine at this point), otherwise sin and cos will be needed
Thank you for your reply.
I would like to ask, is there no method for automatically calculating the “widths”, and do I need to calculate them myself?