Create sectoin cut with cap.

hi, I have implemented section cut in my application. I know how to fill the gaps in OpenGL using Stencil buffer by rendering back-faces first and then rendering front-faces on top of it and fill the gaps using the stencil value. But in unreal I can’t render both back and front faces with different stencil value. Is there any other method to cap the gaps nicely