implement poisson sampling

This commit is contained in:
Xevion
2020-05-05 20:38:24 -05:00
parent ff0fb7521a
commit 1051fd3fde
2 changed files with 59 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ public class PointRendering : MonoBehaviour {
_points = PointGeneration.random_sampling(numPoints, regionSize);
break;
case SamplingTypes.Poisson:
_points = new List<Vector2>();
_points = PointGeneration.poisson_sampling(numPoints, regionSize, 1, 30);
break;
default:
throw new ArgumentOutOfRangeException();