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
Copy file name to clipboardexpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ This repository contains a [single file](include/thinks/tph_poisson.h), header-o
12
12
13
13
## Usage
14
14
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
+
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/src/simple.c) written in C.
16
16
17
17
```C
18
18
/* C11 */
@@ -93,7 +93,7 @@ int main(int argc, char *argv[])
93
93
}
94
94
```
95
95
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:
96
+
When using C++ it is possible to safely manage the memory allocated by the tph_poisson functions ([example](examples/src/simple.cpp)), as illustrated below:
97
97
98
98
```C++
99
99
// C++17
@@ -184,7 +184,7 @@ Besides radius and bounds, there are two additional arguments: `seed` and `max_s
184
184
185
185
Poisson disk sampling generates samples from a blue noise distribution. We can verify this by plotting the corresponding [periodogram](https://en.wikipedia.org/wiki/Periodogram), noticing that there are minimal low frequency components (close to the center) and no concentrated spikes in energy.
186
186
187
-
The image below was generated using the provided [periodogram example](examples/periodogram_example.c) 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/src/periodogram_example.c) and is an average over 100 sampling patterns (original pixel resolution was 2048x2048).
0 commit comments