collection of utility functions for processing geometry