Index: trunk/psLib/src/collections/psPixels.c
===================================================================
--- trunk/psLib/src/collections/psPixels.c	(revision 4212)
+++ trunk/psLib/src/collections/psPixels.c	(revision 4214)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-06-10 21:46:46 $
+ *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-06-11 02:19:05 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -89,4 +89,24 @@
         pixels->n = pixels->nalloc;
     }
+
+    return pixels;
+}
+
+psPixels* p_psPixelsAppend(psPixels* pixels, int growth, psS32 x, psS32 y)
+{
+    if (growth < 1) {
+        growth = 10;
+    }
+
+    if ( (pixels == NULL) || (pixels->n >= pixels->nalloc) ) {
+        pixels=psPixelsRealloc(pixels, pixels->nalloc+growth);
+    }
+
+    int n = pixels->n;
+
+    pixels->data[n].x = x;
+    pixels->data[n].y = y;
+
+    pixels->n++;
 
     return pixels;
Index: trunk/psLib/src/collections/psPixels.h
===================================================================
--- trunk/psLib/src/collections/psPixels.h	(revision 4212)
+++ trunk/psLib/src/collections/psPixels.h	(revision 4214)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-06-08 23:40:45 $
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-06-11 02:19:05 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -62,4 +62,15 @@
     psPixels* pixels,                  ///< psPixels to resize, or NULL to create new psPixels
     int size                           ///< the size of the coordinate vectors
+);
+
+/** Add a pixel location to a psPixels
+ *
+ *  @return psPixels*       psPixels with the value appended.
+ */
+psPixels* p_psPixelsAppend(
+    psPixels* pixels,                  ///< psPixels to append new coordinate to.  NULL creates a new one.
+    int growth,                        ///< number of elements to grow the psPixels list, if necessary.  if growth < 1, 10 is used.
+    psS32 x,                           ///< x coordinate to append
+    psS32 y                            ///< y coordinate to append
 );
 
