You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -11,7 +12,7 @@ This repository contains a [single file](include/thinks/tph_poisson.h), header-o
11
12
12
13
## Usage
13
14
14
-
Poisson disk sampling aims to generate a set of samples within a bounded region such that no two samples are closer than some user-specified radius to each other. Let's consider a simple [example](examples(simple_c.c)) written in C.
15
+
Poisson disk sampling aims to generate a set of points within a bounded region such that no two points are closer than some user-specified radius to each other. Let's consider a simple [example](examples/simple.c) written in C.
15
16
16
17
```C
17
18
/* C11 */
@@ -26,51 +27,62 @@ Poisson disk sampling aims to generate a set of samples within a bounded region
@@ -81,7 +93,7 @@ int main(int argc, char *argv[])
81
93
}
82
94
```
83
95
84
-
When using C++ it is possible to safely manage the memory allocated by the tph_poisson functions, as illustrated below:
96
+
When using C++ it is possible to safely manage the memory allocated by the tph_poisson functions ([example](examples/simple.cpp)), as illustrated below:
85
97
86
98
```C++
87
99
// C++17
@@ -96,14 +108,14 @@ When using C++ it is possible to safely manage the memory allocated by the tph_p
@@ -163,9 +184,9 @@ Besides radius and bounds, there are two additional arguments: `seed` and `max_s
163
184
164
185
Poisson disk sampling generates samples from a blue noise distribution. We can verify this by plotting the corresponding periodogram, noticing that there are minimal low frequency components (close to the center) and no concentrated spikes in energy.
165
186
166
-
The image below was generated using the code in one of the provided [examples](https://github.com/thinks/poisson-disk-sampling/blob/master/thinks/poisson_disk_sampling/examples/periodogram_example.cc) and is an average over 100 sampling patterns (original pixel resolution was 2048x2048).
187
+
The image below was generated using the provided [periodogram example](examples/periodogram_example.cc) and is an average over 100 sampling patterns (original pixel resolution was 2048x2048).
0 commit comments