From Theory of Convex Structures by M. L. J. Van De Vel, on a set $X$, a topology and a convexity structure are said to be compatible, if the convexity structure is generated by the closed sets. The condition is equivalent to that all the polytopes (the convex hulls of finite sets are called polytopes) are closed. Then the set $X$ together with the compatible topology and convexity structure is called a topological convex space (TCS).
In the next page, it says that the a topological vector space (TVS) over $\mathbb{R}$, i.e. a real vector space with a Hausdorff topology such that addition and scalar multiplication are both continuous, is a TCS with the standard convexity structure, because every polytope is compact.
My question comes from my understanding of the above two paragraphs. From the definition of a TCS, a closed set is convex. But in $\mathbb{R}^n$, as an example of a TVS over $\mathbb{R}$, there are closed sets that are not convex, such as a half of a sphere. So I wonder what mistakes I have made?
Thanks and regards!