A method of generating a computer readable model of a geometrical object
constructed from a plurality of interconnectable construction elements,
wherein each construction element has a number of connection elements for
connecting the construction element with another construction element.
The method comprises encoding a first and a second one of the
construction elements as corresponding data structures, each representing
the connection elements of the corresponding construction element, and
each of the connection elements having associated with it a predetermined
connection type. The method further comprises determining a first
connection element of the first construction element and a second
connection element of the second construction element located in a
predetermined proximity of each other; and retrieving connectivity
information of the corresponding connection types of the first and second
connection elements indicative of whether the first and second connection
elements provide a connection between the first and the second
construction element.