QuickOffset with various amounts

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

1 comment
Date Votes
  • 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?

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post