Skip to content

grgomrton/tpamesh

Repository files navigation

tpamesh

Triangulated Polygon A-star for 2D Triangle Meshes is an extension of my pathfinder tpastar so that it is able to find shortest paths on triangle meshes containing internal triangles.

The result of an exploration between one start and multiple goals

The image shows the result of a pathfinding between one starting point and three target points. The shade of the triangles indicate the number of times the given triangle was expanded.

The algorithm works in various arrangements:

Result on a lowpoly mesh Result on a Delaunay triangulated mesh Result on a fine polygon mesh
The result of a pathfinding on a lowpoly triangulated polygon The result of a pathfinding on a Delaunay triangulated polygon where added points lie only on boundaries The result of a pathfinding on a polygon mesh where added points lie inside the polygon boundaries

Licensing

This repository contains the implementation of the algorithm in C#.

The project is licensed under License

Acknowledgements

  • Jonathan Shewchuk, whose library, Triangle was used to triangulate polygons and generate meshes for the demo application

Languages