Hierarchical Data Structures and Geometric Modeling: a Unified Approach