A seemingly impossible idea for a 3D floor

I had an idea to make an upright coffin, basically this shape but inverted (filled in instead of empty):

I tried and tried and tried to do something with 3D floors and slopes, but I couldn't get the result I wanted, the slopes and the 3D floor didn't interact the way I expected. I looked at some tutorials to make 3D slopes, but they cover basic slopes and what I want is very complex, so in the end, I just gave up on it. I'm wondering if what I'm trying to do is even possible...

I tried and tried and tried to do something with 3D floors and slopes, but I couldn't get the result I wanted, the slopes and the 3D floor didn't interact the way I expected. I looked at some tutorials to make 3D slopes, but they cover basic slopes and what I want is very complex, so in the end, I just gave up on it. I'm wondering if what I'm trying to do is even possible...