ConstraintOptions.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. namespace UnityEngine.U2D.Animation.TriangleNet
  2. .Meshing
  3. {
  4. /// <summary>
  5. /// Mesh constraint options for polygon triangulation.
  6. /// </summary>
  7. internal class ConstraintOptions
  8. {
  9. // TODO: remove ConstraintOptions.UseRegions
  10. /// <summary>
  11. /// Gets or sets a value indicating whether to use regions.
  12. /// </summary>
  13. [System.Obsolete("Not used anywhere, will be removed in beta 4.")]
  14. public bool UseRegions { get; set; }
  15. /// <summary>
  16. /// Gets or sets a value indicating whether to create a Conforming
  17. /// Delaunay triangulation.
  18. /// </summary>
  19. public bool ConformingDelaunay { get; set; }
  20. /// <summary>
  21. /// Gets or sets a value indicating whether to enclose the convex
  22. /// hull with segments.
  23. /// </summary>
  24. public bool Convex { get; set; }
  25. /// <summary>
  26. /// Gets or sets a flag indicating whether to suppress boundary
  27. /// segment splitting.
  28. /// </summary>
  29. /// <remarks>
  30. /// 0 = split segments (default)
  31. /// 1 = no new vertices on the boundary
  32. /// 2 = prevent all segment splitting, including internal boundaries
  33. /// </remarks>
  34. public int SegmentSplitting { get; set; }
  35. }
  36. }