def translate(obj, t):
try:<EOL><INDENT>return obj.transform(Translation(t))<EOL><DEDENT>except AttributeError:<EOL><INDENT>raise NotImplementedError<EOL><DEDENT>
Translate object of supported type.

Parameters :
    obj : object to be translated. Must implement a transform method.
    t: translation 3-vector

Returns:
    copy of the object with the applied translation