Another option is the GRASS's [`v.to.lines`](https://grass.osgeo.org/grass78/manuals/v.to.lines.html)

Input:<br>
[![input][1]][1]

Working window:<br>
[![window][2]][2]

Output:<br>
[![output][3]][3]


  [1]: https://i.sstatic.net/IgGDN.png
  [2]: https://i.sstatic.net/kFkNB.png
  [3]: https://i.sstatic.net/y4ePR.png