Light-curve inversion
They use special math and computer programs to help them guess what the rock's shape might be.
Technical definition
The process of using a model to fit the observed light curve of an object to infer its physical properties, such as shape and rotation period.