# Get hull.m

Generates a convex hull of a two-angle grid for 2D surface plotting.

## Syntax

    hull=get_hull(theta_angles,phi_angles)


## Description

Two-angle spherical grids may be used for plotting direction dependence of some property, for example singlet yield in spin chemistry. This requires surface triangle information, which this function would generate.

## Arguments

  theta_angles - a column vector of theta angles,
polar coordinates, ISO convention,

phi_angles   - a column vector of phi angles,
polar coordinates, ISO convention,


## Returns

  hull         - a matrix of point indices of
dimension Nx3, where N is the
number of triangular facets


## Examples

Singlet yield anisotropy calculations in the spin chemistry example set make use of the hull information for Lebedev grids.

Singlet yield anisotropy plot for one of the radical pairs described in https://doi.org/10.1016/S0301-0104(03)00320-3

## Notes

Hulls can only be generated for two-angle spherical grids.