Adaptive Grid Generation for Discretizing Implicit Complexes