The CALICE Semi-Digital Hadron Calorimeter (SDHCAL) technological prototype is a sampling calorimeter using Glass Resistive Plate Chamber detectors with a three-threshold readout as the active medium. This technology is one of the two options proposed for the hadron calorimeter of the International Large Detector for the International Linear Collider. The prototype was exposed to beams of muons, electrons and pions of different energies at the CERN Super Proton Synchrotron. To be able to study the performance of such a calorimeter in future experiments it is important to ensure reliable simulation of its response. In this paper we present our prototype simulation performed with GEANT4 and the digitization procedure achieved with an algorith...