SPHERE_LEBEDEV_RULE_DISPLAY is a MATLAB program which reads the name of a data file defining a Lebedev quadrature rule for the sphere, reads the file, creates an "XYZ" file containing the coordinates of the quadrature poins, and then and displays a unit sphere and the points in the MATLAB graphics window.
The Lebedev quadrature rule file contains a table of values of theta, phi, and weights. The angles are measured in degrees. So it is helpful to have this program read the data, convert angles to radians, compute the XYZ coordinates (and save the values in a file) and then display the point set.
sphere_lebedev_rule_display ( 'prefix' )where
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
BALL_AND_STICK_DISPLAY, a MATLAB program which demonstrates the creation of a 3D "ball and stick" image;
MPAS_GRID_DISPLAY, MATLAB programs which can read an MPAS NETCDF grid file and display the primary polygonal mesh or the dual triangular mesh.
QUAD_SURFACE_DISPLAY, a MATLAB program which reads files defining a 3D quadrilateral mesh surface and displays it within MATLAB.
SPHERE_CVT, a MATLAB library which creates a mesh of well-separated points on a unit sphere by applying the Centroidal Voronoi Tessellation (CVT) iteration.
SPHERE_DELAUNAY, a MATLAB program which computes the Delaunay triangulation of points on a sphere.
SPHERE_DESIGN_RULE, a FORTRAN90 library which returns point sets on the surface of the unit sphere, known as "designs", which can be useful for estimating integrals on the surface, among other uses.
SPHERE_GRID, a dataset directory which contains grids of points, lines, triangles or quadrilaterals on a sphere;
SPHERE_GRID, a MATLAB library which provides a number of ways of generating grids of points, or of points and lines, or of points and lines and faces, over the unit sphere.
SPHERE_LEBEDEV_RULE, a MATLAB library which computes Lebedev quadrature rules for the unit sphere;
SPHERE_VORONOI, a MATLAB program which computes the Voronoi diagram of points on a sphere.
SPHERE_VORONOI_DISPLAY_OPENGL, a C++ program which displays a sphere and randomly selected generator points, and then gradually colors in points in the sphere that are closest to each generator.
SPHERE_XYZ_DISPLAY, a MATLAB program which reads XYZ information defining points in 3D, and displays a unit sphere and the points in the MATLAB 3D graphics window.
SPHERE_XYZ_DISPLAY_OPENGL, a C++ program which reads XYZ information defining points in 3D, and displays a unit sphere and the points, using OpenGL.
SPHERE_XYZF_DISPLAY, a MATLAB program which reads XYZF information defining points and faces, and displays a unit sphere, the points, and the faces, in the MATLAB graphics window. This can be used, for instance, to display Voronoi diagrams or Delaunay triangulations on the unit sphere.
TRI_SURFACE_DISPLAY, a MATLAB program which reads data defining a triangular mesh of a 3D surface and displays it.
XYZ_DISPLAY, a MATLAB program which reads XYZ information defining points in 3D, and displays an image in the MATLAB graphics window.
XYZ_DISPLAY_OPENGL, a C++ program which reads a set of 3D points from a file and plots them in an OpenGL graphics window.
You can go up one level to the MATLAB source codes.