A cell can be of different shapes and sizes based on the environment on which it is present.
It shrinks in hypertonic solution while swells in hypotonic.
A cell can be cuboidal, round, cubical, spherical and of different shapes.
These shapes are maintained with the help of cytoskeletons and the protoplasmic fluids inside the cell. These provide mechanical shape.
The shape of cells are also based on the functions performed by them. For example, RBCs are biconcave to increase the oxygen carrying capacity.
Final Answer:
The two factors that affect shape of cells are cytoskeletons and function of cell.