This repo is for a new method to simulate the manual measurements of hailstones using 3D models. This includes the measurement of Dmax, Dint and Dmin following the standard procedure. The implementation is heavily optimised to use the trimesh library and convexhulls.
- Shift model centre of mass to 0,0,0
- calculate convex hull of model
- calculate which pair of vertices have the greatest separation
- Calculate normal vector of plane normal to the Dmax (Dint-Dmin plane), and the mid point
- Slice the convex hull at this mid point using the Dint-Dmin plane
- Fit a minimum bounded box to the slice to find Dint and Dmin.
TODO: Proper output for analysis of errors