Home > Uncategorized > Display point coordinates in Paraview

Display point coordinates in Paraview

Here is how to display point coordinates in Paraview. First create a programmable filter with the following code:

pdi = self.GetInput()
pdo = self.GetOutput()
coords = vtk.vtkDoubleArray()
n = pdi.GetNumberOfPoints()
for i in xrange(n):
   coords.InsertNextTuple3(p[0], p[1], p[2])

Then select points and enable point labels in the Selection inspector:

Tags: ,
  1. LCN
    August 7, 2014 at 14:08

    Very useful, I use this all the time. Thanks.

  2. Alex song
    February 23, 2015 at 06:35

    hi. I am a beginner in openfoam.
    I want to use this code. so, How can I create a programmable filter??
    thank you for any help you can provide.

    • xrunhprof
      February 24, 2015 at 21:07

      Filters, Programmable Filter.

  1. June 21, 2013 at 13:39

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: