fix: shape2D triangulation order changed
This commit is contained in:
parent
e6b7b9953f
commit
cf7061fd58
@ -122,7 +122,7 @@ public class Shape2D(List<Vector2D> vertices) : IEnumerable<Vector2D>
|
|||||||
triangles.Clear();
|
triangles.Clear();
|
||||||
|
|
||||||
for (int i = 2; i < shape.Vertices.Count; i++)
|
for (int i = 2; i < shape.Vertices.Count; i++)
|
||||||
triangles.Add(new Triangle(shape[0], shape[i - 1], shape[i]));
|
triangles.Add(new Triangle(shape[0], shape[i], shape[i - 1]));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user