Hierarchical topological structure for the design of a discrete modeling tool