Permalink
Browse files

fixed reversion of vertices

  • Loading branch information...
1 parent 7e254e9 commit fee84aa81eb1d55f2006d535cf183e657dbfd947 @IsNull committed Aug 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 Archimedes.Geometry/Primitives/Polygon2.cs
@@ -117,15 +117,15 @@ public class Polygon2 : IGeometryBase, IClosedGeometry
/// </summary>
public void OrientClockwise() {
if (!IsOrientedClockwise())
- _vertices.Reverse();
+ _vertices = new Vertices(_vertices.Reverse());
}
/// <summary>
/// If the polygon is oriented clockwise, reverse the order of its points.
/// </summary>
public void OrientCounterClockwise() {
if (IsOrientedClockwise())
- _vertices.Reverse();
+ _vertices = new Vertices(_vertices.Reverse());
}
#endregion // Orientation Routines

0 comments on commit fee84aa

Please sign in to comment.