07.01.2013 Views

3D graphics eBook - Course Materials Repository

3D graphics eBook - Course Materials Repository

3D graphics eBook - Course Materials Repository

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Stencil codes 198<br />

Stencils<br />

The shape of the neighborhood used during the updates depends on the application itself. The most common stencils<br />

are the 2D or <strong>3D</strong> versions of the Von Neumann neighborhood and Moore neighborhood. The example above uses a<br />

2D von Neumann stencil while LBM codes generally use its <strong>3D</strong> variant. Conway's Game of Life uses the 2D Moore<br />

neighborhood. That said, other stencils such as a 25-point stencil for seismic wave propagation [5] can be found, too.<br />

9-point 2D stencil<br />

5-point 2D stencil<br />

6-point <strong>3D</strong> stencil<br />

25-point <strong>3D</strong> stencil

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!