Mesh Tools is a Unity library to help easily create 2D meshes from a set of points. This library came out of Rugged Rovers as I needed a way to build various 2D mesh types easily, and has since gone on to be used in SNOMAN, bubble trubble and other projects.
It facilitates the creation of:
- 2D Polygons
- Circles - with percentage fill
- Donuts - with percentage fill
Some basic syntax for creating a 2D Polygon with Mesh Tools:
For lines, its very similar, but it doesnt have a callback.
And for circles, its just the same.
All shapes return the Shape class, which help you track, and rebuild your geometry if you need to.