Performing a union on vector shapes