Enums.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // -----------------------------------------------------------------------
  2. // <copyright file="Enums.cs">
  3. // Original Triangle code by Jonathan Richard Shewchuk, http://www.cs.cmu.edu/~quake/triangle.html
  4. // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/
  5. // </copyright>
  6. // -----------------------------------------------------------------------
  7. namespace UnityEngine.U2D.Animation.TriangleNet
  8. {
  9. /// <summary>
  10. /// The type of the mesh vertex.
  11. /// </summary>
  12. internal enum VertexType { InputVertex, SegmentVertex, FreeVertex, DeadVertex, UndeadVertex };
  13. /// <summary>
  14. /// Node renumbering algorithms.
  15. /// </summary>
  16. internal enum NodeNumbering { None, Linear, CuthillMcKee };
  17. /// <summary>
  18. /// Labels that signify the result of point location.
  19. /// </summary>
  20. /// <remarks>The result of a search indicates that the point falls in the
  21. /// interior of a triangle, on an edge, on a vertex, or outside the mesh.
  22. /// </remarks>
  23. internal enum LocateResult { InTriangle, OnEdge, OnVertex, Outside };
  24. /// <summary>
  25. /// Labels that signify the result of vertex insertion.
  26. /// </summary>
  27. /// <remarks>The result indicates that the vertex was inserted with complete
  28. /// success, was inserted but encroaches upon a subsegment, was not inserted
  29. /// because it lies on a segment, or was not inserted because another vertex
  30. /// occupies the same location.
  31. /// </remarks>
  32. enum InsertVertexResult { Successful, Encroaching, Violating, Duplicate };
  33. /// <summary>
  34. /// Labels that signify the result of direction finding.
  35. /// </summary>
  36. /// <remarks>The result indicates that a segment connecting the two query
  37. /// points falls within the direction triangle, along the left edge of the
  38. /// direction triangle, or along the right edge of the direction triangle.
  39. /// </remarks>
  40. enum FindDirectionResult { Within, Leftcollinear, Rightcollinear };
  41. }