<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi,<br>
<br>
that you very much for the excellent tip with paraview. I exportet
my data to a .vtk file with your hint of vtkDataSetWriter and
opened this file with paraview.<br>
<br>
I played around and I am now more sure than before, that i would
like to produce a visualization as occurs when I choose "Clip" in
ParaView. <br>
<br>
However, I already got my vtk stuff working with vtkContour just
like<br>
// Assume m_vtkStructuredPoints is filled already and set
correctly<br>
// Futhermore, m_vtkMapper is an vtkPolyDataMapper already
connected to the rendering pipeline<br>
m_vtkContourFilter = vtkContourFilter::New();<br>
m_vtkContourFilter->SetInput(m_vtkStructuredPoints);<br>
m_vtkMapper->SetInput(m_vtkContourFilter->GetOutput());<br>
m_vtkContourFilter->GenerateValues(1,0,0);<br>
m_vtkMapper->SetScalarRange(Min,Max);<br>
<br>
// during update<br>
m_vtkContourFilter->SetValue(0,Value);<br>
<br>
<br>
So, basically I need a similar code to bring same input data
(m_vtkStructuredPoints) to a visualization like "Clip" in
ParaView, lets say by a plane with surface normal (1,0,0) in the
origin (0,0,0).<br>
<br>
I tried somethink like that, but that does simply nothing:<br>
vtkClipDataSet *m_vtkClipDataSet = vtkClipDataSet::New();<br>
m_vtkClipDataSet->SetInput(m_vtkStructuredPoints);<br>
<br>
vtkPlane *m_vtkPlane = vtkPlane::New();<br>
m_vtkPlane->SetNormal(1,0,0);<br>
vtkGeometryFilter *m_vtkGeometryFilter =
vtkGeometryFilter::New();<br>
<br>
m_vtkClipDataSet->SetClipFunction(m_vtkPlane);<br>
m_vtkGeometryFilter->SetInputConnection(m_vtkClipDataSet->GetOutputPort());<br>
<br>
m_vtkMapper->SetInput(m_vtkGeometryFilter->GetOutput());<br>
<br>
What did I do wrong?<br>
<br>
Thank you,<br>
curator<br>
<br>
Am 27.03.2013 14:58, schrieb David E DeMarle:<br>
</div>
<blockquote
cite="mid:CANjZAi-PQwF8ddafmVLJ0h+2xVhbgMZ-4Mj2QV75vitGQ7YVRQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">vtkContourFilter can produce multiple isocontours
via the setnumberofContours and setValues methods.</div>
<div style=""><br>
</div>
<div style="">vtkClipDataSet will produce slices.</div>
<div style=""><br>
</div>
<div style="">google search them to find the doxygen, read that
and then look for the examples and tests lists to see them in
use.</div>
<div style=""><br>
</div>
Let me suggest some approaches first though.
<div style=""><br>
</div>
<div style="">
Once you've made the structured points from your data, use
vtkDataSetWriter to write that data to a file. Then open it up
with ParaView and use the GUI to create visualizations. This
will get you going very quickly.</div>
<div style=""><br>
</div>
<div style="">The next easiest thing to do is get a hold of
python wrapped vtk and set up your paths such that it is
useable within Idle. A python IDE with tab completion is the
next easiest way I know of to learn VTK since introspection
brings all of the doxygen help for every object to your
fingertips and experimentation takes place as quickly as you
can type.</div>
<div style=""><br>
</div>
<div style="">good luck and welcome to VTK!</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-881-4909</div>
<br>
<br>
<div class="gmail_quote">On Tue, Mar 26, 2013 at 12:05 PM,
Curator <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:curator@gmx.de" target="_blank">curator@gmx.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I'm kind of new to the data visualization of complex 3D
data. Up to now, I only used simple shapes as cubes and
spheres etc., which worked perfectly. However, now I am
running into visualizing my simulation results, which is
simply a three dimensional, equally distanced grid with
single numeric values at each grid point.<br>
<br>
So far, I managed to a plot multiple iso surfaces by storing
the data in a vtkFloatArray und aligning them by
vtkStructuredPoints. Furthermore, I used the
vtkContourFilter.<br>
<br>
Now, from the same data, I would like to add variable data
slices in the xy, yz, and xz plane. Also, I think my
implementation of a (single) iso surface is not efficient,
because I generate the values for the contour filter by
setting identical maximum and minimum values.<br>
<br>
In general, I am interested in a visualization like in <a
moz-do-not-send="true"
href="http://vis.lbl.gov/Research/ChomboVis99/vtk-initial.html"
target="_blank">http://vis.lbl.gov/Research/ChomboVis99/vtk-initial.html</a>,
but there I do not find further information.<br>
<br>
So,<br>
<br>
1) Is it clever to store my data in a vtkFloatArray and
align them by vtkStructuredPoints?<br>
2) Is a vtkContourFilter the right tool show _one_
isosurface for a specified value?<br>
3) Which Filter should be used for the data slices?<br>
4) Which Filter do I have to use for something like <a
moz-do-not-send="true"
href="http://vis.lbl.gov/Research/ChomboVis99/misc-art/vtk-volume.gif"
target="_blank">http://vis.lbl.gov/Research/ChomboVis99/misc-art/vtk-volume.gif</a>
?<br>
<br>
Thank you for any help,<br>
<br>
regards,<br>
curator<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
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 VTK FAQ at: <a
moz-do-not-send="true"
href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>