

More convenient methods to analyse and to understand the built heritage in countries with similar spatial features as Morocco are required. The elaboration of a systematic digital based method for designing newly built spaces encompassing all design scales seems to be worthwhile. After carrying out few tests on the feasibility of articulations between different design scales, the building scale seems to be challenging. This building design issue represents an opportunity for additional and enriching explorations with a view to understand and make from the local heritage more responsive to future challenges with regard, for instance, to sustainability and resilience. As hypotheses, we suggested Voronoï diagram and Hankin’s method as mathematical approaches among others to improve the design process in such urban settings with such heritage defies. We decided to carry on with the hypothesis of Voronoi diagram exclusively in this article. The design approach aims to analyse, to understand, to systematise and to digitalise the design process. The approach is based on deep research emphasising the link between building design and algorithms. The method uses CAD tools and computational programming. After investigation, it turned out that the application of such an approach on the design of a cultural facility could be useful to the local community. The site is located in the Bouregreg valley in Rabat, Morocco. It implies nice development opportunities between the city of Rabat and the city of Salé. The research process led us to the establishment of a facility that is well integrated vis-à-vis its surroundings. We were able to pay attention to raised difficulties encountered during the design of buildings. We suggested interesting spatial solutions so as to be converted into algorithms. This carefully influenced our choice for building volumes, indoor layouts and spatial distributions. It turns out that the Voronoï diagram hypothesis works well. The final design seems to be satisfactory from heritage, sustainability and resilience point of view.