/// <summary> /// Initializes a new instance of the <see cref="SegmentRangeEnumerator"/> class. /// </summary> /// <param name="parent">The segment range.</param> public SegmentRangeEnumerator(SegmentRange parent) { _range = parent; _start = _range.Part.StartIndex; _numVertices = _range.Part.NumVertices; _index = -1; _verts = parent.Part.Vertices; }
/// <summary> /// Initializes a new instance of the <see cref="PartRange"/> class. /// </summary> /// <param name="allVertices">An array of all the vertex locations.</param> /// <param name="shapeOffset">The point index of the shape. </param> /// <param name="partOffset">The ponit index of the part.</param> /// <param name="featureType">The type of features.</param> public PartRange(double[] allVertices, int shapeOffset, int partOffset, FeatureType featureType) : base(allVertices, shapeOffset, partOffset) { Segments = new SegmentRange(this, featureType); }
/// <summary> /// Initializes a new instance of the <see cref="PartRange"/> class. /// StartRange, count and vertices will be declared later. /// </summary> /// <param name="featureType">The feature type of this range.</param> public PartRange(FeatureType featureType) { Segments = new SegmentRange(this, featureType); }