private bool IsAllPointsParcelCommonNeighbor(LandPolygon polygonNeighbor) { int common = 0; AcGe.Point2dCollection commonPoints = new AcGe.Point2dCollection(); foreach (AcGe.Point2d point in this.Points) { foreach (AcGe.Point2d pointNeighbor in polygonNeighbor.Points) { if (point.Equals(pointNeighbor)) { if (!commonPoints.Contains(point)) { common++; commonPoints.Add(point); } } } } if (common == this.Points.Count) { return(true); } else { return(false); } }
public static AcGe.Point2dCollection Offset( AcGe.Point2dCollection collection, AcGe.Vector2d offset) { AcGe.Point2dCollection offsetCollection = new AcGe.Point2dCollection(); foreach (AcGe.Point2d point in collection) { offsetCollection.Add(point.Add(offset)); } return(offsetCollection); }
public static AcGe.Point2dCollection GetPoints2dFromIn4Polygon(In4Polygon curSR) { AcGe.Point2dCollection points = new AcGe.Point2dCollection(); foreach (Point point in curSR.Border) { points.Add(new AcGe.Point2d(point.X, point.Y)); } return(points); }