technologies/RenderStack.Geometry/Operations/GeometryOperation.cs
/// <summary>
/// Creates a new point to Destination from centroid of old Polygon.
/// The new Point is linked to the old Polygon in Source.
/// Each corner of the old Polygon is added as source for the new Point with weight 1.0.
/// </summary>
/// <param name="oldPolygon"></param>
/// <returns></returns>
Creates a new point to Destination from centroid of old Polygon.
The new Point is linked to the old Polygon in Source.
Each corner of the old Polygon is added as source for the new Point with weight 1.0.
Creates a new point to Destination from centroid of old Polygon . The new Point is linked to the old Polygon in Source . Each corner of the old Polygon is added as source for the new Point with weight 1 . 0 .
public Point    MakeNewPointFromPolygonCentroid(Polygon oldPolygon)
        {
            Debug.Assert(oldPolygon != null);
            Point newPoint = Destination.MakePoint();
            oldPolygonCentroidToNewPoints[oldPolygon] = newPoint;
            AddPolygonCentroid(newPoint, 1.0f, oldPolygon);
            return newPoint;
        }
public Point MakeNewPointFromPolygonCentroid ( Polygon oldPolygon ) { Debug . Assert ( oldPolygon != null ) ; Point newPoint = Destination . MakePoint ( ) ; oldPolygonCentroidToNewPoints [ oldPolygon ] = newPoint ; AddPolygonCentroid ( newPoint , 1.0f , oldPolygon ) ; return newPoint ; }
Creates a new point to Destination from centroid of old Polygon.
Creates a new point to Destination from centroid of old Polygon .
None
oldPolygon
Polygon
None