Quadratic Forms for Measuring Geometric Trees in 3-dimensional Space