David,

Yes, but I am more dense!!


print block.VTKObject.GetClassName()
prints out vtkUnstructuredGrid,  which I already know.

Within my UnstructuredGrid, some blocks are hex elements, some blocks are shell 
elements and some blocks are truss elements – that is what I am trying to 
detect!

Dennis

From: David E DeMarle [mailto:[email protected]]
Sent: Thursday, August 13, 2015 10:43 PM
To: Dennis Conklin
Cc: Paraview ([email protected])
Subject: [EXT] Re: [Paraview] How to detect element type inside Programmable 
Filter


On Thu, Aug 13, 2015 at 10:07 PM, Dennis Conklin 
<[email protected]<mailto:[email protected]>> wrote:
I may be dense but I'm persistent!

I am more persistent (and more dense). :)



def process_block(block):

  #print dir(block)

  #print dir(block.VTKObject)

  print block.VTKObject.GetClassName()

for block in output:

  process_block(block)



David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to