timcfagan . | 25 Jan 06:20 2015
Picon

temporal threshold

I'm trying to apply a threshold to a temporal data set. I would like to see which nodes reach a certain temperature over the whole simulation. At the moment the threshold will only see one moment in time.

Maybe there a way to apply a temporal threshold? Such that the filter will apply the scalar value for all timesteps?
<div><div dir="ltr">
<div>
<div>I'm trying to apply a threshold to a temporal data set. I 
would like to see which nodes reach a certain temperature over the whole
 simulation. At the moment the threshold will only see one moment in 
time. <br>
</div>
<br>
</div>Maybe there a way to apply a temporal threshold? Such that the filter will apply the scalar value for all timesteps?</div></div>
Scott, W Alan | 24 Jan 01:43 2015
Picon

Replication and rotation of 45 degree wedges?

I have a 3D pie-wedge simulation which spans 45 degrees in angle. Is there a way to make 45 degree copies and rotate them in the angular direction in order to visualize the 360-deg view?
 
Thanks,
 
Alan
 
 
 
<div>
<span>
<div>I have a 3D pie-wedge simulation which spans 45 degrees in angle. Is there a way to make 45 degree copies and rotate them in the angular direction in order to visualize the 360-deg view?</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>&nbsp;</div>
<div>Alan</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</span>
</div>
Scott, W Alan | 23 Jan 21:44 2015
Picon

Average data from multiple nodes

I was wondering if there was a tool that could average values from multiple nodes and plot that over time.  For example, I would like to take a selection of nodes, average their velocities, and plot that vs. time.
 
Thanks for the help.
 
Alan
 
 
 
<div>
<span>
<div>I was wondering if there was a tool that could average values from multiple nodes and plot that over time.&nbsp; For example, I would like to take a selection of nodes, average their velocities, and plot that vs. time.</div>
<div>&nbsp;</div>
<div>Thanks for the help.</div>
<div>&nbsp;</div>
<div>Alan</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</span>
</div>
Dr. Roman Grothausmann | 23 Jan 11:44 2015
Picon

Re: exporting selection labels to an SVG as editable/movable text-objects

Hi Dave,

Again some issues concerning this old topic:
On 22/05/14 14:11, David Lonie wrote:
> On Thu, May 22, 2014 at 6:22 AM, Dr. Roman Grothausmann
> <grothausmann.roman <at> mh-hannover.de> wrote:
>> Many thanks for fixing the Label exporter issue. It does work with 4.1 to
>> get the text exported into e.g. an SVG. However, the text is always rendered
>> as paths (always consists of triangles). Is it also possible to have the
>> text being exported as actual text-fields (like e.g. gnuplot does) that can
>> be edited with the text-tool in e.g. inkscape?
>
> There is an checkbox in the export options "Render text as paths" (see
> http://www.kitware.com/blog/home/post/508 ). It's enabled by default
> for portability, but disabling this option should do what you need.

Exporting selection labels as text ("Render text as paths" not checked) works 
for me with PV-4.1.0. However, PV-4.1.0 does not allow one to specify the 
formatting, like printf formats as: %.2f\circ.
PV-4.3.1 does allow one to specify the formatting, however whether "Render text 
as paths" is checked or not, the output SVG does not contain any text-tags any 
more, that would allow editing in inkscape or text setting by latex.

Did Your changes get lost/reverted?

I tried to find the commits that made it possible for PV-4.1 but could not find 
them in the git logs:
http://www.paraview.org/gitweb?p=ParaView.git&a=search&h=HEAD&st=commit&s=gl2ps
It seems the bug number 14231 was never mentioned in the commit messages.

What is the general procedure to find the right commits in such a case?

Many thanks for looking into this.
Roman

-- 
Dr. Roman Grothausmann

Tomographie und Digitale Bildverarbeitung
Tomography and Digital Image Analysis

Institut für Funktionelle und Angewandte Anatomie, OE 4120
Medizinische Hochschule Hannover
Carl-Neuberg-Str. 1
D-30625 Hannover

Tel. +49 511 532-9574
_______________________________________________
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
周恒众 | 23 Jan 03:44 2015

How to develop filters

Dear :
    Hello,
    I'm a fresh in paraview. Now I want to develop some my own filters , but I find that the source code of paraview is so complex and I can't find any methods to develop them in wiki and doucumention . I want to konw whether there are some interfaces for us to develop filters and there are some rules that we need to comply with . Can you tell me some methos to do this or tell me where to find it .
    Thank you !
                                                                                                                                                                                                                                                                                zhz


<div>
<div>
<div>Dear :</div>
<div>&nbsp; &nbsp; Hello,</div>
<div>&nbsp; &nbsp; I'm a fresh in paraview. Now I want to develop some my own filters , but I find that the source code of paraview is so complex and I can't find any methods to develop them in wiki and doucumention . I want to konw whether there are some interfaces for us to develop filters and there are some rules that we need to&nbsp;comply with . Can you tell me some methos to do this or tell me where to find it .</div>
<div>&nbsp; &nbsp; Thank you !</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zhz</div>
</div>
<br><br><span title="neteasefooter"><span></span></span>
</div>
David E DeMarle | 22 Jan 18:44 2015

Re: Visualising image data


Click the gear icon in properties tab to get RI script.
Then put this there:
executive = self.GetExecutive()
outInfo = executive.GetOutputInformation(0) outInfo.Set(executive.WHOLE_EXTENT(), 0, 4, 0, 7, 0, 9)

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

On Thu, Jan 22, 2015 at 11:51 AM, Bruce Jones <bruce.david.jones <at> gmail.com> wrote:
Thanks for the response David. Could you elaborate on this? I am not sure how to do what you are suggesting.

Cheers,
Bruce

On Thu Jan 22 2015 at 11:46:02 AM David E DeMarle <dave.demarle <at> kitware.com> wrote:
Announce the whole extent in the RequestInformation script section.
That should do the trick.



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

On Thu, Jan 22, 2015 at 11:17 AM, Bruce Jones <bruce.david.jones <at> gmail.com> wrote:
Hi all,

I'm working on a programmable filter that needs to produce a vtkImageData object. So far it appears to work, inspection of the properties panel shows the object has the correct number of points/cells and the data array contains the correct data. However I cannot get a visualisation with any of the representations (surface, outline, wireframe etc). Curiously, if i set the display to my data array then the color bar appears with the correct values, but still not visualization.

I am using the following code to produce the image data object.

from vtk import *

output = self.GetOutputDataObject(0);

# Create a VTK Grid
grid = vtkImageData()
grid.SetOrigin(0, 0, 0) # default values
dx=10;
grid.SetSpacing(dx, dx, dx)
grid.SetDimensions(5, 8, 10) # number of points in each direction
# print grid.GetNumberOfPoints()
# print grid.GetNumberOfCells()
array = vtkDoubleArray()
array.SetNumberOfComponents(1) # this is 3 for a vector
array.SetNumberOfTuples(grid.GetNumberOfPoints())
for i in range(grid.GetNumberOfPoints()):
    if i < 200:
        array.SetValue(i, 1)
    else:
        array.SetValue(i, 2)

grid.GetPointData().AddArray(array)
# print grid.GetPointData().GetNumberOfArrays()
array.SetName("unit array")
output.ShallowCopy(grid);

Cheers,
Bruce

_______________________________________________
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

_______________________________________________
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

<div>
<div dir="ltr">
<div><br></div>Click the gear icon in properties tab to get RI script.<div>Then put this there:</div>
<div>
<span>executive </span><span>=</span><span> </span><span>self</span><span>.</span><span>GetExecutive()</span><div>
<span>outInfo </span><span>=</span><span> executive</span><span>.</span><span>GetOutputInformation(</span><span>0</span><span>)</span>
<span>outInfo</span><span>.</span><span>Set(executive</span><span>.</span><span>WHOLE_EXTENT(), </span><span>0</span><span>, </span><span>4</span><span>, </span><span>0</span><span>, </span><span>7</span><span>, </span><span>0</span><span>, </span><span>9</span><span>)</span><span><br></span>
</div>
</div>
</div>
<div class="gmail_extra">
<br clear="all"><div><div class="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
<br><div class="gmail_quote">On Thu, Jan 22, 2015 at 11:51 AM, Bruce Jones <span dir="ltr">&lt;<a href="mailto:bruce.david.jones <at> gmail.com" target="_blank">bruce.david.jones <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">Thanks for the response David. Could you elaborate on this? I am not sure how to do what you are suggesting.<br><br>Cheers,<div>Bruce</div>
<div class="HOEnZb"><div class="h5">
<br><div class="gmail_quote">On Thu Jan 22 2015 at 11:46:02 AM David E DeMarle &lt;<a href="mailto:dave.demarle <at> kitware.com" target="_blank">dave.demarle <at> kitware.com</a>&gt; wrote:<br><blockquote class="gmail_quote">
<div dir="ltr">
<span>Announce the whole extent in the RequestInformation script section.<br></span><span>That should do the trick.</span><div><span><br></span></div>
<div><br></div>
</div>
<div class="gmail_extra">
<br clear="all"><div><div>David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a>
</div></div>
<br>
</div>
<div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 22, 2015 at 11:17 AM, Bruce Jones <span dir="ltr">&lt;<a href="mailto:bruce.david.jones <at> gmail.com" target="_blank">bruce.david.jones <at> gmail.com</a>&gt;</span> wrote:<br>
</div></div>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote">Hi all,<div><br></div>
<div>I'm working on a programmable filter that needs to produce a vtkImageData object. So far it appears to work, inspection of the properties panel shows the object has the correct number of points/cells and the data array contains the correct data. However I cannot get a visualisation with any of the representations (surface, outline, wireframe etc). Curiously, if i set the display to my data array then the color bar appears with the correct values, but still not visualization.</div>
<div><br></div>
<div>I am using the following code to produce the image data object.</div>
<div><br></div>
<div>from vtk import *<br>
</div>
<div><br></div>
<div>
<div>output = self.GetOutputDataObject(0);</div>
<div><br></div>
<div># Create a VTK Grid<br>
</div>
<div>grid = vtkImageData()</div>
<div>grid.SetOrigin(0, 0, 0) # default values</div>
<div>dx=10;</div>
<div>grid.SetSpacing(dx, dx, dx)</div>
<div>grid.SetDimensions(5, 8, 10) # number of points in each direction</div>
<div># print grid.GetNumberOfPoints()</div>
<div># print grid.GetNumberOfCells()</div>
<div>array = vtkDoubleArray()</div>
<div>array.SetNumberOfComponents(1) # this is 3 for a vector</div>
<div>array.SetNumberOfTuples(grid.GetNumberOfPoints())</div>
<div>for i in range(grid.GetNumberOfPoints()):</div>
<div>&nbsp; &nbsp; if i &lt; 200:</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; array.SetValue(i, 1)</div>
<div>&nbsp; &nbsp; else:</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; array.SetValue(i, 2)</div>
<div><br></div>
<div>grid.GetPointData().AddArray(array)</div>
<div># print grid.GetPointData().GetNumberOfArrays()</div>
<div>array.SetName("unit array")</div>
<div>output.ShallowCopy(grid);</div>
</div>
<div><br></div>
<div>Cheers,</div>
<div>Bruce</div>
<br>
</blockquote></div></div>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br><br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a><br><br>
Follow this link to subscribe/unsubscribe:<br><a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br><br>
</blockquote></div></div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br><br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a><br><br>
Follow this link to subscribe/unsubscribe:<br><a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote>
</div>
</div></div>
</blockquote>
</div>
<br>
</div>
</div>
Mark Belan | 22 Jan 17:50 2015
Picon
Picon

Plotting data to an existing model's surface

Hello all,

I'm a graduate student in geology trying to do some visual data work, but I'm afraid my inexperience with paraview is making things a bit difficult for me.

Essentially what I'm trying to create is a 3D model of a rock that has its surface coloured to show spatial distribution of a physical property associated with certain areas on the rock.

I was able to reproduce the rock I sample from using a 3D scanner but I have no idea how to go about selecting particular areas of the rock's surface, assigning a value to that "area", and having the program interpolate between multiple "areas". Essentially I'd like this to produce a color gradient showcasing the changing values.

Can anyone offer some guidance/direction? I had someone at my campus suggest creating a .csv file with x,y,z coordinates of the particular areas of the model of interest, but after doing that all I've produced are "points"...not sure how to specify the association to the model and color and interpolation, etc.

Thanks for any help,

- Mark
--
Mark Belan, B. Art Sc.
M. Sc. Candidate - Astrobiology
Lewis and Ruth Sherman Graduate Fellow
McMaster University
School of Geography and Earth Sciences
GSB 323
1280 Main Street West
Hamilton, Ontario
Canada
L8S 4L8

Art: www.markbelan.com
<div><div dir="ltr">Hello all,<br><br>I'm a graduate student in geology trying to do some visual data work, but I'm afraid my inexperience with paraview is making things a bit difficult for me.<br><br>Essentially what I'm trying to create is a 3D model of a rock that has its surface coloured to show spatial distribution of a physical property associated with certain areas on the rock.<br><br>I was able to reproduce the rock I sample from using a 3D scanner but I have no idea how to go about selecting particular areas of the rock's surface, assigning a value to that "area", and having the program interpolate between multiple "areas". Essentially I'd like this to produce a color gradient showcasing the changing values.<br><br>Can anyone offer some guidance/direction? I had someone at my campus suggest creating a .csv file with x,y,z coordinates of the particular areas of the model of interest, but after doing that all I've produced are "points"...not sure how to specify the association to the model and color and interpolation, etc.<br><br>Thanks for any help,<br><br>- Mark<br>-- <br><div class="gmail_signature"><div dir="ltr">
<div>Mark Belan, B. Art Sc.<br>M. Sc. Candidate - Astrobiology</div>
<div>Lewis and Ruth Sherman Graduate Fellow</div>
<div>McMaster University</div>
<div>School of Geography and Earth Sciences</div>
<div>GSB 323<br>1280 Main Street West<br><span>Hamilton, Ontario</span><br><span>Canada</span><br><span>L8S 4L8<br></span><br>Art: <a href="http://www.markbelan.com" target="_blank">www.markbelan.com</a>
</div>
</div></div>
</div></div>
Bruce Jones | 22 Jan 17:17 2015
Picon

Visualising image data

Hi all,


I'm working on a programmable filter that needs to produce a vtkImageData object. So far it appears to work, inspection of the properties panel shows the object has the correct number of points/cells and the data array contains the correct data. However I cannot get a visualisation with any of the representations (surface, outline, wireframe etc). Curiously, if i set the display to my data array then the color bar appears with the correct values, but still not visualization.

I am using the following code to produce the image data object.

from vtk import *

output = self.GetOutputDataObject(0);

# Create a VTK Grid
grid = vtkImageData()
grid.SetOrigin(0, 0, 0) # default values
dx=10;
grid.SetSpacing(dx, dx, dx)
grid.SetDimensions(5, 8, 10) # number of points in each direction
# print grid.GetNumberOfPoints()
# print grid.GetNumberOfCells()
array = vtkDoubleArray()
array.SetNumberOfComponents(1) # this is 3 for a vector
array.SetNumberOfTuples(grid.GetNumberOfPoints())
for i in range(grid.GetNumberOfPoints()):
    if i < 200:
        array.SetValue(i, 1)
    else:
        array.SetValue(i, 2)

grid.GetPointData().AddArray(array)
# print grid.GetPointData().GetNumberOfArrays()
array.SetName("unit array")
output.ShallowCopy(grid);

Cheers,
Bruce
<div>
<p>Hi all,</p>
<div><br></div>
<div>I'm working on a programmable filter that needs to produce a vtkImageData object. So far it appears to work, inspection of the properties panel shows the object has the correct number of points/cells and the data array contains the correct data. However I cannot get a visualisation with any of the representations (surface, outline, wireframe etc). Curiously, if i set the display to my data array then the color bar appears with the correct values, but still not visualization.</div>
<div><br></div>
<div>I am using the following code to produce the image data object.</div>
<div><br></div>
<div>from vtk import *<br>
</div>
<div><br></div>
<div>
<div>output = self.GetOutputDataObject(0);</div>
<div><br></div>
<div># Create a VTK Grid<br>
</div>
<div>grid = vtkImageData()</div>
<div>grid.SetOrigin(0, 0, 0) # default values</div>
<div>dx=10;</div>
<div>grid.SetSpacing(dx, dx, dx)</div>
<div>grid.SetDimensions(5, 8, 10) # number of points in each direction</div>
<div># print grid.GetNumberOfPoints()</div>
<div># print grid.GetNumberOfCells()</div>
<div>array = vtkDoubleArray()</div>
<div>array.SetNumberOfComponents(1) # this is 3 for a vector</div>
<div>array.SetNumberOfTuples(grid.GetNumberOfPoints())</div>
<div>for i in range(grid.GetNumberOfPoints()):</div>
<div>&nbsp; &nbsp; if i &lt; 200:</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; array.SetValue(i, 1)</div>
<div>&nbsp; &nbsp; else:</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; array.SetValue(i, 2)</div>
<div><br></div>
<div>grid.GetPointData().AddArray(array)</div>
<div># print grid.GetPointData().GetNumberOfArrays()</div>
<div>array.SetName("unit array")</div>
<div>output.ShallowCopy(grid);</div>
</div>
<div><br></div>
<div>Cheers,</div>
<div>Bruce</div>
</div>
hanieh mirzaee via ParaView | 22 Jan 16:45 2015

Mask values using the stl mesh file

Dear all,

I would like to know, if there is a way in paraview to mask data arrays with a stl mesh file. For example, let's say we have a tube and  volumetric pressure values. However, the pressure data  extends outside of the tube. Is there a way to mask out those points?

Best,
Ha nieh
<div><div>
<div dir="ltr">Dear all,</div>
<div dir="ltr"><br></div>
<div dir="ltr">I would like to know, if there is a way in paraview to mask data arrays with a stl mesh file. For example, let's say we have a tube and&nbsp; volumetric pressure values. However, the pressure data&nbsp; extends outside of the tube. Is there a way to mask out those points?</div>
<div dir="ltr"><br></div>
<div dir="ltr">Best,</div>
<div dir="ltr">Ha
 nieh<br>
</div>
</div></div>
Dr. Roman Grothausmann | 22 Jan 11:21 2015
Picon

compile itk (VTKGlue ON) with vtk from paraview

Dear mailing list members,

What configuration is needed to compile itk (4.6.1) with VTKGlue enabled with 
vtk from paraview (4.3.1) in order to compile Paraview plugins making use of ITK 
and VTK?

If I configure ITK to with:
BUILD_SHARED_LIBS                ON
Module_ITKVtkGlue                ON
VTK_DIR                          /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3

cmake complains about a missing VTKTargets.cmake even though 
PARAVIEW_INSTALL_DEVELOPMENT_FILES was set to ON. After a

cp VTK/VTKTargets.cmake /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3/

cmake is happy but I get linker errors at the end of the compilation of ITK when 
the VTKGlue is due:

Linking CXX shared library ../../../../lib/libITKVtkGlue-4.6.so
/usr/bin/ld: cannot find -lvtkSciberQuest
/usr/bin/ld: cannot find -lvtkEyeDomeLighting
/usr/bin/ld: cannot find -lvtkQvis
/usr/bin/ld: cannot find -lvtkPointSpriteRendering
/usr/bin/ld: cannot find -lvtkPVPythonCatalyst
/usr/bin/ld: cannot find -lvtkPointSpriteGraphics
/usr/bin/ld: cannot find -lvtkUtilitiesPythonInitializer

Switching off all PV plugin builds only leaves:

Linking CXX shared library ../../../../lib/libITKVtkGlue-4.6.so
/usr/bin/ld: cannot find -lvtkPVPythonCatalyst
/usr/bin/ld: cannot find -lvtkUtilitiesPythonInitializer

However, the files are there:

find /opt/paraview-4.3.1_git/ -name '*vtkPVPythonCatalyst*so*'
/opt/paraview-4.3.1_git/lib/paraview-4.3/site-packages/vtk/vtkPVPythonCatalystPython.so
/opt/paraview-4.3.1_git/lib/paraview-4.3/libvtkPVPythonCatalyst-pv4.3.so.1
/opt/paraview-4.3.1_git/lib/paraview-4.3/libvtkPVPythonCatalystPython27D-pv4.3.so.1
/opt/paraview-4.3.1_git/lib/paraview-4.3/libvtkPVPythonCatalyst-pv4.3.so
/opt/paraview-4.3.1_git/lib/paraview-4.3/libvtkPVPythonCatalystPython27D-pv4.3.so

find /opt/paraview-4.3.1_git/ -name '*vtkUtilitiesPythonInitializer*so*'
/opt/paraview-4.3.1_git/lib/paraview-4.3/libvtkUtilitiesPythonInitializer-pv4.3.so.1
/opt/paraview-4.3.1_git/lib/paraview-4.3/libvtkUtilitiesPythonInitializer-pv4.3.so

Adding the abs. file locations to the build command does not help nor does 
-L/opt/paraview-4.3.1_git/lib/paraview-4.3/

Using the build dir of VTK in PV-tree instead for ITK does not help either:
VTK_DIR                          /opt/compilation/ParaView-v4.3.1/build/VTK

If I configure ITK to with:
BUILD_SHARED_LIBS                OFF

I get linker errors in the last stage when compiling a PV plugin that makes use 
of VTK and ITK:

/usr/bin/ld:

/opt/compilation/InsightToolkit-4.6.1/build/lib/libitkvnl_algo-4.6.a(vnl_real_eigensystem.cxx.o): 
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a 
shared object; recompile with -fPIC
/opt/compilation/InsightToolkit-4.6.1/build/lib/libitkvnl_algo-4.6.a: could not 
read symbols: Bad value

After I've added
CMAKE_CXX_FLAGS                  -fPIC

to Paraview and ITK and recompiled both I get:

/usr/bin/ld: 
/opt/compilation/InsightToolkit-4.6.1/build/lib/libitkv3p_netlib-4.6.a(dlamch.c.o): 
relocation R_X86_64_32 against `.bss' can not be used when making a shared 
object; recompile with -fPIC
/opt/compilation/InsightToolkit-4.6.1/build/lib/libitkv3p_netlib-4.6.a: could 
not read symbols: Bad value

What am I missing in my configuration of PV and ITK?

When and where should I specify:
CMAKE_CXX_FLAGS                  -fPIC
BUILD_SHARED_LIBS                ON/OFF

Is this the right VTK_DIR specification for ITK:
/opt/compilation/ParaView-v4.3.1/build/VTK
or
/opt/paraview-4.3.1_git/lib/cmake/paraview-4.3

Many thanks for any help or hints.
Roman

-- 
Dr. Roman Grothausmann

Tomographie und Digitale Bildverarbeitung
Tomography and Digital Image Analysis

Institut für Funktionelle und Angewandte Anatomie, OE 4120
Medizinische Hochschule Hannover
Carl-Neuberg-Str. 1
D-30625 Hannover

Tel. +49 511 532-9574
_______________________________________________
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
Manuel González | 21 Jan 22:58 2015
Picon

Display user-defined point and cell IDs from Ensight6 file as labels

Hi,

I need to display (as labels) the user-defined point IDs and cell IDs in ASCII Ensight6 geometry files.
These IDs are neither zero-based nor contiguous.

Ensight does it correctly, but Paraview displays zero-based contiguous IDs instead of the user-defined
IDs given in the file.
The user-defined IDs neither show in the spreadsheet view of Paraview.

I send attached a very simple example:

  ensight6_case.case       data file (case).
  ensight6_geometry.geo    data file (geometry). Point IDs=3,5,32,33. Cell IDs=10,20.
  Ensight.PNG              Ensight screenshot, displaying used-defined IDs.
  Paraview.PNG             Paraview screenshot, not displaying used-defined IDs.
  Paraview_state.zip       Paraview state file after the screenshot.
  ens_checker_output.txt   Ensight checker output, showing that the file format is correct.

For your information, I copy here the attached geometry file (ensight6_geometry.geo):

---- START OF FILE: ensight6_geometry.geo ----
This is a test file
ASCII
node id given
element id given
coordinates
       4
       3 0.00000e+00 0.00000e+00 0.00000e+00
       5 6.90183e-01 0.00000e+00 0.00000e+00
      32 0.00000e+00 5.94416e-01 0.00000e+00
      33 3.45092e-01 2.97208e-01 0.00000e+00
part        1
description
tria3
       2
      10       3       5      33
      20      32       3      33
---- END OF FILE: ensight6_geometry.geo ----

To reproduce my problem in Paraview 4.3.1 64 bit on Windows 7:
  Open the .case file and make it visible in the Pipeline Browser.
  Select all cells, activate Cell Labels = ID in the Selection Display Inspector.
  Select all points, activate Point Labels = ID in the Selection Display Inspector.

I know I could workaround it by also storing the used-defined IDs as scalar fields per point and per cell. But
this forces me to generate 2 additional files (point field and cell field) for each .geo file, thus
triplicating the number of files for my transient data.

Would it be possible with a different file format? I mean, is there any other ASCII file format that supports
used-defined point and cell IDs that Paraview can read and display as labels?

I asked I similar question 5 years ago for the Ensight Gold format, but I did not get a solution:
http://markmail.org/message/vlwntmzmbcbdfpzw

Regards,
Manuel
Associate Professor
University of A Coruña, Spain
Attachment (ensight6_geometry.geo): application/octet-stream, 514 bytes
Attachment (ensight6_case.case): application/octet-stream, 89 bytes
Attachment (Paraview_state.zip): application/zip, 9 KiB
*****************************************************************
*  EnSight Data Format Checker                                  *
*  ===========================                                  *
*   Currently,                                                  *
*   1. Must be run from directory in which casefile is located. *
*   2. Handles EnSight6 and EnSight Gold formats only.          *
*   3. Does not process SOS casefiles.                          *
*****************************************************************
<Version: 2.019>
<Built: 11/13/2008>
 
Casefile to Process:
--------------------
ensight6_case.case   (Opened successfully)

---------------------
Major Sections Found:
---------------------
Required FORMAT   section    (at line 1)
Required GEOMETRY section    (at line 4)

---------------
FORMAT Section:
---------------
EnSight 6 Format   (set at line 2)

-----------------
GEOMETRY Section:
-----------------

--------
Model filename is:   ensight6_geometry.geo      (at line 5)

   Static geometry

   --------
   Opened ensight6_geometry.geo successfully

   File type is:    ASCII
   This is Step:    0
   Description 1:   This is a test file
   Description 2:   ASCII
   node ids:        given
   element ids:     given

   Global section:
      Number of nodes: 4
         Ids and coordinates for (4) nodes found

   Part 1:
      Description is: description
      Unstructured Part
      Number of tria3 elements in section is: 2
         Ids and connectivities for (2) tria3 elements found

  >-----------------------<
  > GEOMETRY section OKAY <
  >-----------------------<


                      >-------------- Hooray! --------------<
                      >                                     <
                      > Data format verification SUCCESSFUL <
                      >                                     <
                      >          with No Warnings           <
                      >                                     <
                      >-------------------------------------<


            >-----------------------------------------------------------<
            > Be aware that this means the number of bytes is correct   <
            > in the appropriate places and that the format appears     <
            > to be correct. This does NOT mean that the data contained <
            > in those bytes is necessarily correct or valid!           <
            >-----------------------------------------------------------<
*****************************************************************
*  EnSight Data Format Checker                                  *
*  ===========================                                  *
*   Currently,                                                  *
*   1. Must be run from directory in which casefile is located. *
*   2. Handles EnSight6 and EnSight Gold formats only.          *
*   3. Does not process SOS casefiles.                          *
*****************************************************************
<Version: 2.019>
<Built: 11/13/2008>
 
Casefile to Process:
--------------------
ensight6_case.case   (Opened successfully)

---------------------
Major Sections Found:
---------------------
Required FORMAT   section    (at line 1)
Required GEOMETRY section    (at line 4)

---------------
FORMAT Section:
---------------
EnSight 6 Format   (set at line 2)

-----------------
GEOMETRY Section:
-----------------

--------
Model filename is:   ensight6_geometry.geo      (at line 5)

   Static geometry

   --------
   Opened ensight6_geometry.geo successfully

   File type is:    ASCII
   This is Step:    0
   Description 1:   This is a test file
   Description 2:   ASCII
   node ids:        given
   element ids:     given

   Global section:
      Number of nodes: 4
         Ids and coordinates for (4) nodes found

   Part 1:
      Description is: description
      Unstructured Part
      Number of tria3 elements in section is: 2
         Ids and connectivities for (2) tria3 elements found

  >-----------------------<
  > GEOMETRY section OKAY <
  >-----------------------<


                      >-------------- Hooray! --------------<
                      >                                     <
                      > Data format verification SUCCESSFUL <
                      >                                     <
                      >          with No Warnings           <
                      >                                     <
                      >-------------------------------------<


            >-----------------------------------------------------------<
            > Be aware that this means the number of bytes is correct   <
            > in the appropriate places and that the format appears     <
            > to be correct. This does NOT mean that the data contained <
            > in those bytes is necessarily correct or valid!           <
            >-----------------------------------------------------------<

Gmane