cf paper: Fast Poisson Disk Sampling in Arbitrary Dimensions. Robert Bridson. ACM SIGGRAPH 2007
How to use:
- set parameters. ( minDist / k / sampleRange )
- call Generate(). It will return the list contains sample points.
cf paper: Fast Poisson Disk Sampling in Arbitrary Dimensions. Robert Bridson. ACM SIGGRAPH 2007
How to use:
00 Remarks
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| IsInputsValid | 1 | Determines if inputs are appropriate. |
| Generate | 1 | Generate samples. Based on minDist / k / sampleRange. |
| _PositionToGridIndex | 1 | Given a float, return the grid index in any dimenssion |
| _WrapRepeatFloat | 1 | wrap float into generate range |
| _WrapIndex | 1 | wrap grid index into grid length |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| sampleCount | 1 |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| minDist | 2 | the minimumx distance between any of the two samples. |
| k | 2 | the time of throw darts. |
| sampleRange | 2 | the range of generated samples. |
| m_resultSet | 1 | result of samples |
| grid | 1 | grid for save sample locations. |
05 Members
Single, Single, Int32)Determines if inputs are appropriate.
true if is inputs valid; otherwise, false.
Single, Single, Int32, Bitmap)Generate samples. Based on minDist / k / sampleRange.
Single)Given a float, return the grid index in any dimenssion
| Name | Type | Description |
|---|---|---|
f | Single | - |
Single)wrap float into generate range
| Name | Type | Description |
|---|---|---|
f | Single | - |
Int32)wrap grid index into grid length
| Name | Type | Description |
|---|---|---|
index | Int32 | - |
the minimumx distance between any of the two samples.
the time of throw darts. Higher k generate better result but slower.
the range of generated samples. From 0[inclusive] to sampleRange[inclusive]
result of samples
grid for save sample locations.