Skip to content

A small polygon offsetting library for performing basic polygon shrink or expand operations.

License

Notifications You must be signed in to change notification settings

kjmarshall/polygon-offset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

Caveat Emptor! A simple library that implements basic polygon offsetting (shrink and expand). The general idea is to calculate normal vectors to the polygon line segments and offset the segments in the +/- direction of the normal vector.

Examples

Offset examples:

  • A circle that we shrink by 0.01

- A circle that we expand by 0.01

- A flower that we expand by 0.05

About

A small polygon offsetting library for performing basic polygon shrink or expand operations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published