DtLink.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
  3. recast4j copyright (c) 2015-2019 Piotr Piastucki piotr@jtilia.org
  4. DotRecast Copyright (c) 2023 Choi Ikpil ikpil@naver.com
  5. This software is provided 'as-is', without any express or implied
  6. warranty. In no event will the authors be held liable for any damages
  7. arising from the use of this software.
  8. Permission is granted to anyone to use this software for any purpose,
  9. including commercial applications, and to alter it and redistribute it
  10. freely, subject to the following restrictions:
  11. 1. The origin of this software must not be misrepresented; you must not
  12. claim that you wrote the original software. If you use this software
  13. in a product, an acknowledgment in the product documentation would be
  14. appreciated but is not required.
  15. 2. Altered source versions must be plainly marked as such, and must not be
  16. misrepresented as being the original software.
  17. 3. This notice may not be removed or altered from any source distribution.
  18. */
  19. namespace DotRecast.Detour
  20. {
  21. /**
  22. * Defines a link between polygons.
  23. *
  24. * @note This structure is rarely if ever used by the end user.
  25. * @see MeshTile
  26. */
  27. public class DtLink
  28. {
  29. /** Neighbour reference. (The neighbor that is linked to.) */
  30. public long refs;
  31. /** Index of the next link. */
  32. public int next;
  33. /** Index of the polygon edge that owns this link. */
  34. public int edge;
  35. /** If a boundary link, defines on which side the link is. */
  36. public int side;
  37. /** If a boundary link, defines the minimum sub-edge area. */
  38. public int bmin;
  39. /** If a boundary link, defines the maximum sub-edge area. */
  40. public int bmax;
  41. }
  42. }