Skip to content

Commit

Permalink
POISSON_PROGRESS_INDICATOR can be defined outside of the header file,…
Browse files Browse the repository at this point in the history
… disabled by default
  • Loading branch information
corporateshark committed Oct 19, 2016
1 parent 6d3674e commit cfc4936
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions Poisson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <fstream>
#include <memory.h>

#define POISSON_PROGRESS_INDICATOR 1
#include "PoissonGenerator.h"

///////////////// User selectable parameters ///////////////////////////////
Expand Down
16 changes: 9 additions & 7 deletions PoissonGenerator.h
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
/**
* \file Poisson.cpp
* \file PoissonGenerator.h
* \brief
*
* Poisson Disk Points Generator
*
* \version 1.1.3
* \date 10/03/2016
* \version 1.1.4
* \date 19/10/2016
* \author Sergey Kosarevsky, 2014-2016
* \author [email protected] http://www.linderdaum.com http://blog.linderdaum.com
*/

/*
Usage example:
#define POISSON_PROGRESS_INDICATOR 1
#include "PoissonGenerator.h"
...
PoissonGenerator::DefaultPRNG PRNG;
const auto Points = PoissonGenerator::GeneratePoissonPoints( NumPoints, PRNG );
*/
Expand All @@ -23,7 +26,8 @@
// Implementation based on http://devmag.org.za/2009/05/03/poisson-disk-sampling/

/* Versions history:
1.1.3a Jun 9, 2016 Update constructor for DefaultPRNG
* 1.1.4 Oct 19, 2016 POISSON_PROGRESS_INDICATOR can be defined outside of the header file, disabled by default
* 1.1.3a Jun 9, 2016 Update constructor for DefaultPRNG
* 1.1.3 Mar 10, 2016 Header-only library, no global mutable state
* 1.1.2 Apr 9, 2015 Output a text file with XY coordinates
* 1.1.1 May 23, 2014 Initialize PRNG seed, fixed uninitialized fields
Expand All @@ -36,12 +40,10 @@
#include <stdint.h>
#include <time.h>

#define POISSON_PROGRESS_INDICATOR 1

namespace PoissonGenerator
{

const char* Version = "1.1.3 (10/03/2016)";
const char* Version = "1.1.4 (19/10/2016)";

class DefaultPRNG
{
Expand Down

0 comments on commit cfc4936

Please sign in to comment.