Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gkjohnson/triangle-net-debug

Unity set up for debugging triangulation issues within Triangle.Net
https://github.com/gkjohnson/triangle-net-debug

graphics net polygons triangle unity unity3d

Last synced: 27 days ago
JSON representation

Unity set up for debugging triangulation issues within Triangle.Net

Awesome Lists containing this project

README

        

# triangle-net-debug

Unity set up for debugging triangulation issues within Triangle.Net.

Uses slightly modified verion of Triangle.net from [this repo](https://github.com/akopetsch/triangle-unity).

## Use

![example](./docs/example.png)

The `example` scene contains a basic example triangulation setup.

#### Contour : MonoBehaviour

Collects the child objects within itself and generates a loop from them. Has utility functions for creating a `TriangleNet.Geometry.Contour` object for triangulation, as well.

If the `hole` flag is enabled, then the contour will be triangulated as a hole.

#### CreateMesh : MonoBehaviour

Collects all the contour objects within the scene and triangulates them into a single mesh.