get_hull_CM_and_volume - Finds the hull average and volume.
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
const Hull *hp,
This routine finds the average (center of mass) of the input hull and its
The first argument "hp" is the address of the convex hull to compute
the average of. Only 2-D or 3-D hulls are currently supported.
The second argument "average_vpp" contains the address of a vector
for the computed hull average. If the hull average is not required, then it
can be NULL.
The third argument "volume_ptr" is a pointer to the volume to be computed. If
the volume is not needed, this argument can be NULL.
NO_ERROR on success: ERROR on failure.
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
Lindsay Martin and Kobus Barnard