1. A computer-implemented method for compressing a three-dimensional modeled object, wherein the method comprises: providing (S 10 ) a boundary representation of the modeled object, the boundary representation comprising geometrical data, the geometrical data including functions each corresponding to a respective geometrical entity, each function having a domain and a range; determining (S 40 ) first data, that describe a mapping from the range of a reference function to the range of another function, and second data, that describe a mapping from the domain of the other function to the domain of the reference function which, when composed with the reference function and the mapping from the range of the reference function to the range of the other function, leads to the same result as applying the other function; and replacing (S 50 ) in the geometrical data the other function by the first data, the second data and a pointer to the reference function.