PolylineVolume curves before an expected point

I don’t know if that is a bug or meant to be like that.

For your use case, maybe you can use the corner type MITERED.