2009-09-16  Stephen Eglen  <stephen@gnu.org>

	* R/vorcr.r (plot.sjevor): Add ... to case when points are not
	plotted.


2004-10-15  Stephen Eglen  <S.J.Eglen@damtp.cam.ac.uk>

	* R/vorcr.r (vorcr2): New function.

2003-12-29  Stephen Eglen  <stephen@bushmills.inf.ed.ac.uk>

	* R/vorcr.r (vorcr): check equality between sum(numneighs) and
	iangles only if we are rejecting border cells.  Reformat.

2003-02-27  Stephen Eglen  <eglen@pcg.wustl.edu>

	* src/*.c, src/defs.h: Voronoi C code did not compile on Mac OS X,
	since it complained about multiple definitions of global
	variables.  These global variables were defines in defs.h and
	included by all C files, hence multiple definitions.  The solution
	was to move each global variable into one C file (the one with
	most uses of that variable).  Where other C files also use that
	variable, the variable was defined as an extern.  Jan de
	Leeuw helped me work this out.

2002-03-12  Stephen Eglen  <eglen@thalamus.wustl.edu>

	* R/vorcr.r (vorcr): Tidy up the allocation of memory, so that it
	is clearer how big each structuer is.  max.num.neighs is now
	defined here rather than in the C routines.

	* src/defs.h: Include R.h rather than defining Sfloat.  error()
	was failing before because the R header files were not included.
	max_num_neighs is now a variable, not a #define.
	No need to keep track of the fortune pointers now.
	
	* src/sjevor.c (sjevor): poly_npts is no longer passed as its own
	variable, instead we use a vector of integers, LIMITS.  This
	stores the limits of several pieces of allocated memory.  This is
	then better than #defines for e.g. MAX_NUM_NEIGHS (now gone).
	sje_debug can now be set as argument to sjevor(). 
	fortune_pointers, num_fortune_pointers, deleted.
	MAX_NUM_NEIGHS now replaced by the variable max_num_neighs, which
	is set in the limit() array.  Ditto for MAX_DEL_TRIS.
	Use R_alloc rather than calloc.  Use error() rather than exit(-1).
	my_free() has been deleted since we no longer free any memory.
	(find_internal_angles): Extra argument IAS_MAX which is the
	maximum length of the internal angles vector.  This was not
	checked before.

	* src/main.c (sje_readsites): Use S_realloc() rather than
	realloc(), since R will take care of freeing the memory after .C
	exits.
	dists array is dynamically allocated, rather than relying on
	#define to define the size of this array.
	
	* src/memory.c (myalloc): No need to keep track of memory
	allocated by Fortune's code -- we can use R_alloc rather than
	malloc() -- R_alloc automatically frees memory at the end of .C
	call.  Use error() rather than exit(-1).
	

	* src/output.c: Use R's error() rather than exit(-1) so that R 
	returns gracefully rather than closing R.

2002-02-28  Stephen Eglen  <eglen@thalamus.wustl.edu>

	* R/vorcr.r (vor.showpts): New function to allow us to click on
	the Voronoi diagram and find neighbours.
	(vorcrb): New function to compute toroidal version of tesselation.

2002-02-21  Stephen Eglen  <eglen@thalamus.wustl.edu>

	* R/vorcr.r (plot.sjevor): Simplify drawing by using segments()
	rather than lines().

2002-02-20  Stephen Eglen  <eglen@thalamus.wustl.edu>

	* R/vorcr.r (vorcr): result is of class sjevor.  Now include
	the input data points as part of the returned structuer.
	(plot.sjevor): Renamed from vor.plot to plot resulting voronoi
	diagram from vorcr().

2002-02-15  Stephen Eglen  <eglen@thalamus.wustl.edu>

	* R/vorcr.r (vor.plot): Allow plotting of rejects, and writing the
	area of each polygon.

	* src/sjevor.c, src/memory.c: Use Rprintf rather than printf.

2002-02-14  Stephen Eglen  <eglen@thalamus.wustl.edu>

	* src/output.c (clip_line): change error() to Rprintf since mingw
	complains about it, and it didn't seem to work under unix anyway!
	* src/main.c (main): Do not compile main function.  mingw
	compiler complains about getopt.
	* src/sjevor.c (sjevor): Use strchr rather than rindex.  strchr
	not present on cross-compiler.

