<div dir="ltr">

<span style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I want to add custom Geometry Shader to my mapper. From the source code, I concluded that in vtkOpenGLPolyDataMapper we can inject custom Shader Code. Also, the code has WideLineGS as the default Geometry Shader. I tried to mimic the same behaviour by injecting the same code as given<span> </span></span><a href="https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/OpenGL2/glsl/vtkPolyDataWideLineGS.glsl" target="_blank" style="color:rgb(17,85,204);font-size:12.8px">here</a><span style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> (source code of WideLinesGS)  using the function SetGeometryShaderCode. The resulting screen is a blank screen with no errors raised. </span><br style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><br style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Can someone please guide me on how to inject Geometry Shader Code. This is specific to Geometry Shader only as I have successfully tried with Frag Shader and Vertex Shader. </span><br style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">A simple example of this would be great.</span><br style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><br style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Regards,</span><br style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Kumar Ashutosh</span><span style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span></span>

<br></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aa3VtYXIuYXNodXRvc2guZWVAZ21haWwuY29t&type=zerocontent&guid=55547dd3-e5a1-4e85-8d75-2c34faa6008f"><font color="#ffffff" size="1">ᐧ</font></div>