Generating points in space according to a 3D probability grid

88 views Asked by At

If I have a bunch of point called point_set_A (enclosed by a cube for example), each with a normalized probability value (the values are based on something, e.g. flow velocity).

How do I populate that same space (cube) with (say 100) point_set_B (so come up with x,y,z values), but instead of randomly, I want more points to appear near point_set_A with higher probability values.

Any ideas? Pseudo code or any language will do.

Thanks!

Tim

0

There are 0 answers