<div dir="ltr">I do not think that tesselation shaders are exposed anywhere yet in VTK. See vtkShader, vtkShaderProgram and vtkOpenGLPolyData's support for Vertex, Geometry and Fragment shaders in comparison.<div><br></div><div>Note, you should re-ask on <a href="http://discourse.vtk.org">discourse.vtk.org</a>. The vtk mailing lists are about to be shut down, and you might have more luck there.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>David E DeMarle<br>Kitware, Inc.<br>Principal Engineer</div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 19, 2019 at 6:32 AM Tharun <<a href="mailto:tharun160190@gmail.com">tharun160190@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a triangular mesh(polygons as cells in vtkPolyData). Each point has<br>
different color field data. On using Point Color data as scalars, triangles<br>
have graded color. But, what I want is like in the image below<br>
<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/t341373/test.png" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/file/t341373/test.png</a>> . <br>
<br>
I know that subdividing the triangular mesh into triangles having  same<br>
color data vertices can give result like this by using Cell data as scalars.<br>
<br>
Now, our workflow is similar to  example<br>
<<a href="https://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/VisualizationAlgorithms/Cxx/FilledContours.cxx" rel="noreferrer" target="_blank">https://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/VisualizationAlgorithms/Cxx/FilledContours.cxx</a>>  <br>
and I have the desired output. Meshes we deal with have 10s of millions of<br>
triangles and the process is quite slow.<br>
<br>
I recenlty read about Tessellation Shaders at  here<br>
<<a href="http://ogldev.atspace.co.uk/www/tutorial30/tutorial30.html" rel="noreferrer" target="_blank">http://ogldev.atspace.co.uk/www/tutorial30/tutorial30.html</a>>  , and they<br>
mentioned about "Primitive Generator" part of Tessellation where we can just<br>
mention the tessellation levels of each triangle by gl_TessLevelOuter and<br>
gl_TessLevelInner. I believe, specifying gl_TessLevelOuter for every<br>
triangle of original mesh based on Vertices Color Data for each edge of<br>
triangles solves my problem with performance.<br>
<br>
Can anybody please let me know how to do this in VTK?<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div>