BALL_GRID
Grid Points Within a 3D Ball


BALL_GRID is a MATLAB library which generates the grid points that lie inside a 3D ball.

The library allows the user to define an arbitrary ball by choosing its radius and center. The user also choose N, the number of subintervals into which a horizontal radius line will be subdivided. It then returns the gridpoints defined by that choice.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

BALL_GRID is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

CIRCLE_ARC_GRID, a MATLAB program which computes points equally spaced along a circular arc;

CIRCLE_GRID, a MATLAB library which computes grid points that lie inside a circle.

ELLIPSE_GRID, a MATLAB library which computes grid points that lie inside an ellipse.

ELLIPSOID_GRID, a MATLAB library which computes grid points that lie inside a 3D ellipsoid.

TETRAHEDRON_GRID, a MATLAB library which computes a tetrahedral grid of points.

TRIANGLE_GRID, a MATLAB library which computes a triangular grid of points.

Source Code:

Examples and Tests:

You can go up one level to the MATLAB source codes.


Last revised on 02 September 2010.