improve WireframeHelper : input can have buffer geometry, output is buffer geometry

This is an improvement over #4195 which outputs buffer geometry instead.