Exemplo n.º 1
0
        private void RemoveStitchPoints(IEnumerable <IGeometry> geometriesToReshape)
        {
            // TODO: maintain the stitch points by geometry to reshape
            if (_stitchPoints == null)
            {
                return;
            }

            foreach (IGeometry geometry in geometriesToReshape)
            {
                foreach (KeyValuePair <IPoint, ISegment> keyValuePair in _stitchPoints)
                {
                    IPoint   stitchPoint        = keyValuePair.Key;
                    ISegment replacementSegment = keyValuePair.Value;

                    SegmentReplacementUtils.TryReplaceSegments((IPolycurve)geometry, stitchPoint,
                                                               replacementSegment);
                }
            }
        }