Triangulator |
A static class exposing methods for triangulating 2D polygons. This is the sole public class in the entire library; all other classes/structures are intended as internal-only objects used only to assist in triangulation. This class makes use of the DEBUG conditional and produces quite verbose output when built in Debug mode. This is quite useful for debugging purposes, but can slow the process down quite a bit. For optimal performance, build the library in Release mode. The triangulation is also not optimized for garbage sensitive processing. The point of the library is a robust, yet simple, system for triangulating 2D shapes. It is intended to be used as part of your content pipeline or at load-time. It is not something you want to be using each and every frame unless you really don't care about garbage. |