Well if the estimated costs of repairs is close to 80% of the total value of the vehicle, then it will most likely be totalled.
Also, estimated damage is is calculated from a visual inspection. If you had collision coverage and the car were actually tore down, I would bet more hidden damage...