Which mappings preserve convex bodies? Let $$f:\mathbb{R}^n\to\mathbb{R}^n,$$ $n\geq 2$, be a mapping which maps every convex body (compact convex set with nonempty interior) to a convex body. 
If we assume $f$ to be a homeomorphism, it needs to be affine. Is there something we can say without this assumption?

Let $h: {\mathbb R}^2\to [0,1]\subset {\mathbb R}$ be a continuous surjective map which is nonconstant on all nondegenerate intervals, for instance, we can take $h(x,y)=|\sin(x^2+y^2)|$. Let $g: [0,1]\to Q=[0,1]\times [0,1]\subset {\mathbb R}^2$ be a discontinuous function which is maps each nondegenerate interval onto the square $Q$, see the answer here. The composition $f=g\circ h$ then sends every nondegenerate interval onto the square $Q$. In particular, the image of each convex body under $f$ is again a convex body. The map $f$ will be discontinuous. It is unclear to me if there are continuous non-affine maps ${\mathbb R}^n\to {\mathbb R}^n$ which send convex bodies to convex bodies.  
P.S. The accepted answer does not produce valid examples since non-affine  linear-fractional (aka projective) transformations are not everywhere defined on the affine space. (They are well-defined on the projective space, of course.) 
