An Indiana madman accused of killing his ex-girlfriend and eating parts of her body — including her heart and brain — savagely mutilated the woman after she ended their relationship days earlier, a prosecutor told jurors.

Joseph Oberhansley, 38, left the dismembered body of Tammy Jo Blanton, 46, in a bathtub in her Jeffersonville home in September 2014 with 25 stab wounds or blunt-force injuries just days after she broke off their relationship and changed her locks, Clark County Prosecutor Jeremy Mull told jurors Wednesday during opening statements in Oberhansley’s murder trial, the Louisville Courier-Journal reports.

“Joseph Oberhansley butchered Tammy Blanton like you wouldn’t kill a livestock animal,” Mull said. “But this lady died with dignity.”

Mull said Blanton locked herself in a bathroom before Oberhansley kicked a door down and attacked her — just one week after holding her captive and raping her.

Oberhansley went to Blanton’s home “to talk some sense into her,” Mull told jurors, according to the News and Tribune.

Oberhansley later told police during a videotaped interview that Blanton “really wasn’t all that scared, surprisingly,” as if she knew she was about to die, Mull recalled.

“In her last moments, she wasn’t going to give him the pleasure of seeing her scared,” the prosecutor said.

Attorneys for Oberhansley told a judge Wednesday that he’s incompetent to stand trial and continues to distrust them. He was deemed competent last July after spending roughly six months in a psychiatric facility in Indiana, the News and Tribune reports.

“Our client, Mr. Oberhansley, has been exhibiting what we believe is part of his mental illness,” defense attorney Brent Westerfeld later said outside court. “He’s delusional and he remains delusional.”

Oberhansley is facing life in prison without parole if convicted of murder, rape and burglary after stabbing Blanton and eating parts of her. Prosecutors have agreed not to seek the death penalty in the case after Oberhansley’s attorneys agreed to not use an insanity defense, the Courier-Journal reports.

But jurors need to question whether a person who ate parts of his ex-girlfriend is “thinking right,” defense attorney Bart Betteau said Wednesday.

“All I want you to do is to keep an open mind,” Betteau told jurors, adding that more gruesome details in the case will follow. “[The prosecutor] told you about a few statements, select evidence. But there’s going to be a whole lot more.”

Oberhansley’s trial is scheduled to resume early Thursday.