Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path expansion. #55

Closed
fryguybob opened this issue Oct 29, 2012 · 1 comment
Closed

Path expansion. #55

fryguybob opened this issue Oct 29, 2012 · 1 comment
Assignees

Comments

@fryguybob
Copy link
Member

The expandPath function should be called scalePath. In its place should be real path expansion. For a non-closed path this is essentially stroking with a constant brush. For a closed path we can either give a path that has both the outside expansion and a negative inside expansion or just give the outside or inside (probably based on positive or negative radius). There are many options for what to do here and we should support several of them. Bezier curves have no closed form expansion with a single segment and as far as I know multiple segments can only approximate. There are lots of weird corner case, but if the end goal is to just fill it isn't very hard to get it right with a winding fill mode. For a cleaner path most of the corner cases can be handled by just considering adjacent segments.

I've got most of the work done for a few styles of corners for non-closed paths at this point. The rounded corner paths and polygons #36 is related to this issue.

@ghost ghost assigned fryguybob Oct 29, 2012
@fryguybob
Copy link
Member Author

This is closed by 01075fd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant