QuickOffset with various amounts
Dariusz Wąsacz
A variation of GLinearPath.QuickOffset method, that would accept an array of amount values instead of a single value. Array would represent offset distances for each edge (one value for one edge). It would be sufficient if all amounts were either positive or negative.
Sample picture:

1. Black shape is the entry GLinearPath, its Vertices are numbered.
2. "amounts" array's length is equal to number of vertices (for closed linear paths).
3. Green shape is the expected result.
2
Comments
Might be "interesting" for more complex shapes. For those as simple as in your example you shouldn't have a hard time implementing that yourself using simple shifted line intersetions?
Please sign in to leave a comment.