GlobeGraphicsToolbar.PolylineGeometry.GetGeometry C# (CSharp) Method

GetGeometry() private method

private GetGeometry ( IGeometry baseGeometry ) : IGeometry
baseGeometry IGeometry
return IGeometry
        private IGeometry GetGeometry(IGeometry baseGeometry)
        {
            IGeometry geometry;

            IPolyline polyline = new PolylineClass();

            polyline.SpatialReference = baseGeometry.SpatialReference;

            geometry = polyline as IGeometry;
            
            IPointCollection targetPointCollection = geometry as IPointCollection;

            IPointCollection basePointCollection = baseGeometry as IPointCollection;

            object missing = Type.Missing;

            for (int i = 0; i < basePointCollection.PointCount; i++)
            {
                targetPointCollection.AddPoint(basePointCollection.get_Point(i), ref missing, ref missing);
            }

            MakeZAware(geometry);

            return geometry;
        }

Same methods

PolylineGeometry::GetGeometry ( ISpatialReference spatialReference ) : IGeometry