function copyAttribute(attr, shallow) {
    return {
        name : attr.name,
        type : attr.type,
        size : attr.size,
        semantic : attr.semantic,
        value : copyIfNecessary(attr.value, shallow)
    };
}
Reproduce a geometry from object generated by toObject
@param {Object} object object generated by toObject
@returns {Geometry} geometry