cdm/src/main/java/ucar/nc2/ft2/simpgeometry/SimpleGeometryIndexFinder.java
public int getBeginning(int index) {
		
		//Test if the last end is the new beginning
		if(index == (pastIndex + 1 ))
		{
			return previousEnd + 1;
		}
		
		// Otherwise, find it!
		int newBeginning = 0;
		for(int i = 0; i < index; i++) {
			newBeginning += getNodeCount(i);
		}
		
		pastIndex = index;
		previousBegin = newBeginning;
		return newBeginning;
	}
public int getBeginning(int index) {
		
		//Test if the last end is the new beginning
		if(index == (pastIndex + 1 ))
		{
			return previousEnd + 1;
		}
		
		// Otherwise, find it!
		int newBeginning = 0;
		for(int i = 0; i < index; i++) {
			newBeginning += getNodeCount(i);
		}
		
		pastIndex = index;
		previousBegin = newBeginning;
		return newBeginning;
	}
public int getBeginning ( int index ) { //Test if the last end is the new beginning
 if ( index == ( pastIndex + 1 ) ) { return previousEnd + 1 ; } // Otherwise, find it!
 int newBeginning = 0 ; for ( int i = 0 ; i < index ; i ++ ) { newBeginning += getNodeCount ( i ) ; } pastIndex = index ; previousBegin = newBeginning ; return newBeginning ; }
Gets the beginning index of a geometry's points given the index of the geometry within the array.

@param index
@return beginning of the range
Gets the beginning index of a geometry s points given the index of the geometry within the array .