Parametric muqarnas

Muqarnas is a form of architectural ornamented vaulting, derived from a complex set of simple divisions run over an arc, producing a sort of cellular structure, sometimes also called a stalactite or honeycomb vault. It was used for domes and especially half-domes in entrances, and iwans mostly in traditional Persian architecture.