Skip to content

Commit cfc4936

Browse files
POISSON_PROGRESS_INDICATOR can be defined outside of the header file, disabled by default
1 parent 6d3674e commit cfc4936

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

Poisson.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <fstream>
2121
#include <memory.h>
2222

23+
#define POISSON_PROGRESS_INDICATOR 1
2324
#include "PoissonGenerator.h"
2425

2526
///////////////// User selectable parameters ///////////////////////////////

PoissonGenerator.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
/**
2-
* \file Poisson.cpp
2+
* \file PoissonGenerator.h
33
* \brief
44
*
55
* Poisson Disk Points Generator
66
*
7-
* \version 1.1.3
8-
* \date 10/03/2016
7+
* \version 1.1.4
8+
* \date 19/10/2016
99
* \author Sergey Kosarevsky, 2014-2016
1010
* \author [email protected] http://www.linderdaum.com http://blog.linderdaum.com
1111
*/
1212

1313
/*
1414
Usage example:
1515
16+
#define POISSON_PROGRESS_INDICATOR 1
17+
#include "PoissonGenerator.h"
18+
...
1619
PoissonGenerator::DefaultPRNG PRNG;
1720
const auto Points = PoissonGenerator::GeneratePoissonPoints( NumPoints, PRNG );
1821
*/
@@ -23,7 +26,8 @@
2326
// Implementation based on http://devmag.org.za/2009/05/03/poisson-disk-sampling/
2427

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

39-
#define POISSON_PROGRESS_INDICATOR 1
40-
4143
namespace PoissonGenerator
4244
{
4345

44-
const char* Version = "1.1.3 (10/03/2016)";
46+
const char* Version = "1.1.4 (19/10/2016)";
4547

4648
class DefaultPRNG
4749
{

0 commit comments

Comments
 (0)