ICE: Selecting every N points in a grid


Here’s a question from the Softimage mailing list, and what I would have answered (I didn’t answer, and I didn’t peek at the other answers either).

Given a 100×100 Grid point cloud, how would you do something to the following subsets of points?
[0,5,10, … 595] and [1000,5,10, … 1595]

For something like that, modulo is an obvious way to do it:
grid_every_n
Contrast the above with this nicer tree

Here’s [a cruder?] approach using linearly interpolated arrays:
grid_every_n_1

See also this for some compounds.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s