<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Victor,<br>
      <br>
      Off the top of my head, I can think of three different ways to do
      this:<br>
      <br>
      (1) Put each cell-type in a separate *.vtp file. You can then load
      each cell-type separately or you can load them with a *.pvd
      meta-file (sample attached) as "one object" and use the Extract
      Block filter to display any number and combination of cell-types.<br>
      <br>
      (2) You can use the EnSight format for your results. This format
      has a Part-construct that allows mixed-cell objects and that can
      be used to organize your cells any way you like, for example, by
      cell-type, by material, by sub-assemblies, ...  Again, the Extract
      Block filter can be used to display any number and combination of
      'Parts.'<br>
      <br>
      (3) When you write the *.vtp file assign each cell its
      vtk-cell-type </tt>number as data, and then use the Threshold
    filter applied to the cell's cell-type value.<br>
    <br>
    There are probably other ways as well.<br>
    <br>
    Hope this helps.<br>
    <br>
    Sam Key<br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 12/15/2015 2:54 PM, Viktor Sip
      wrote:<br>
    </div>
    <blockquote cite="mid:56708C1C.6040408@centrum.cz" type="cite">Dear
      all,
      <br>
      <br>
      is there a way to filter and show only a specific cell type?
      <br>
      <br>
      In my application I am exporting a PolyData VTK file containing
      some Polys and Lines. When imported into Paraview, both Polys and
      Lines are shown, and I did not find a simple way to show only
      Polys.
      <br>
      What I can do is to export additional CellData array with a number
      specifying cell type and then apply Treshold in Paraview. However
      that seems redundant, as the type is already stored in the file
      somewhere.
      <br>
      So my question is, is there a direct way?
      <br>
      <br>
      Simplified example of the exported VTK file is attached.
      <br>
      <br>
      Kind regards,
      <br>
      Viktor
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>

Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>