cemyuksel / cyCodeBase

An open source programming resource intended for graphics programmers.
MIT License
271 stars 60 forks source link

Sample from a regular grid to get a less dense regular grid #23

Closed xarthurx closed 1 year ago

xarthurx commented 1 year ago

I'm working on a problem to sample from a relatively regular grid and get a less dense point cluster. While I was expecting the weighted Poisson disc sampling could do the work, here is what I get:

image

Is this a case where the algorithm does not cover, or if there are some parameters that I didn't set correctly?

Thanks.

xarthurx commented 1 year ago

Another test on regular grid, sampling 1/3 of the original points:

image

xarthurx commented 1 year ago

My mistake of not setting the bounds to [0, 1], closing this issue.