The edge rendering is a separate step from the mesh rendering, so the mesh events like onBeforeRenderObservable / onAfterRenderObservable won’t work for it.
What you can do is hooking the EdgesRenderer.render function to set/unset the scene clipping planes:
@sebavan / @Deltakosh I wonder if we should add some observers like onBeforeRendering / onAfterRendering in the edge renderer… Also, what about adding clipping plane support to the Material class in addition to the scene.clippingPlaneX properties? We would avoid the use of mesh.onBeforeRenderObservable / mesh.onAfterRenderObservable to set clip planes and we could also reuse the data in the edge renderer to apply the same clipping planes if defined at the material level.