<div>Hi, all:</div>
<div> </div>
<div>I have a problem with reading the txt file whose size is around 200M in order to visualize it, the error message I get is as follows:</div>
<div> </div>
<div><font size="1">
<p><font color="#ff0000" size="4">First-chance exception at 0x7d4e237e in 2.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x016dfc54..</font></p>
<p><font color="#ff0000" size="4">Unhandled exception at 0x7d4e237e in 2.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x016dfc54..</font></p></font></div>
<div> </div>
<div>I do can read a 30M txt file successfully, actually the physical memory is not a problem I think (since I run the program on a 64-bit winXP with 4G memory and 8CPUs), as you see above I still get the problem wtih memory allocation, I also checked the physical memory usage right before the error message poped up, it consumed only around 2G physical memory, could anyone help me figure this out?  </div>

<div>Thanks a lot!</div>
<div> </div>
<div>Guang<br><br></div>
<div class="gmail_quote">On Sat, Oct 17, 2009 at 9:00 AM, <span dir="ltr">&lt;<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Send vtkusers mailing list submissions to<br>       <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<br>To subscribe or unsubscribe via the World Wide Web, visit<br>       <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>or, via email, send a message with subject or body &#39;help&#39; to<br>
       <a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br><br>You can reach the person managing the list at<br>       <a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of vtkusers digest...&quot;<br><br><br>Today&#39;s Topics:<br><br>  1. Re: vtk and cmake (Andreas Br?ning)<br>  2. VTK in a MultiTouch Environment (Christopher Denter)<br>  3. reading/writing only selected attributes (Dominik Szczerba)<br>
  4. Simple way to plot deformation fields in VTK (<a href="mailto:itkvtk123@gmx.net">itkvtk123@gmx.net</a>)<br>  5. Re: VTK in a MultiTouch Environment (David Gobbi)<br>  6. Re: vtkStreamTracer does not fill area (Berk Geveci)<br>
  7. Interaction Simultaneous for multiple renderers in one    render<br>     window (Yang, Jinzhong)<br>  8. Re: matrix output VERY hard to read (Yang, Jinzhong)<br>  9. texturing on unstructured grid (Grzegorz Pytel)<br>
 10. Sudden VTK error after recent Windows Update KB958869<br>     (Thomas Zhang)<br> 11. Re: about PyQt4 and vtk (Lic. Jos? M. Rodriguez Bacallao)<br> 12.  vtkvolume to vtkpolydata (InfoSeekerr)<br> 13. Re: vtkContourfilter produces uncomplete surface when cutting<br>
     hex mesh (Hans Gruendel)<br> 14. Re: VTK in a MultiTouch Environment (Berk Geveci)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Fri, 16 Oct 2009 18:09:50 +0200<br>
From: Andreas Br?ning &lt;<a href="mailto:mail-andi@web.de">mail-andi@web.de</a>&gt;<br>Subject: Re: [vtkusers] vtk and cmake<br>To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Message-ID: &lt;<a href="mailto:776136750@web.de">776136750@web.de</a>&gt;<br>
Content-Type: text/plain; charset=iso-8859-15<br><br>thanks for this fast answer!<br><br>I solved the problem already. It was because of this two versions of VS. I run the &quot;vcvarsall.bat&quot; (which is located in the VS 2009 folder) in a separat console and right after that cmake also in that console.<br>
<br>Now it works again ;)<br><br><br><br>Von: &quot;Rocco Gasteiger&quot; &lt;<a href="mailto:post@rocco-gasteiger.de">post@rocco-gasteiger.de</a>&gt;<br>Gesendet: 16.10.09 17:42:47<br>An: &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Betreff: Re: [vtkusers] vtk and cmake<br><br>Hello Andi,<br><br>Do you have deleted you old cache in CMake and all old compiled files of VTK<br>in you folder?<br><br>Best regards,<br>Rocco Gasteiger<br><br><br>--------------------------------------------------<br>
Dipl.-Ing. Rocco Gasteiger<br>Otto-von-Guericke University<br>Faculty of Computer Science<br>Department of Simulation and Graphics<br>Universit?tsplatz 2, 39106 Magdeburg, Germany<br><br>Office:  G29-223<br>Phone:   +49 391 67 127 59<br>
Fax:??   +49 391 67 111 64<br>Website: <a href="http://wwwisg.cs.uni-magdeburg.de/cvcms/" target="_blank">http://wwwisg.cs.uni-magdeburg.de/cvcms/</a><br>--------------------------------------------------<br><br><br><br><br>
-----Original Message-----<br>From: <a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a> [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] On Behalf<br>Of Andreas Br?ning<br>
Sent: Friday, October 16, 2009 4:29 PM<br>To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Subject: [vtkusers] vtk and cmake<br><br>Dear vtk-user,<br><br>i have a problem while building the vtk project with cmake. I downloadet the<br>
vtk sources monthes ago, it was version 5.2.0. That time i uses VisualStudio<br>2005 and everything worked fine. I built the project with cmake2.4.<br><br>Now i got Visual Studio 2008 and i have to built the vtk project again. but<br>
it doesnt work. When i press configure in Cmake i get the following error<br>message:<br><br>CMake Error at C:/Programme/CMake<br>2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):<br> The C compiler &quot;cl&quot; is not able to compile a simple test program.<br>
 It fails with the following output:<br><br>  Change Dir: C:/andi/test_vtk_VS2008/CMakeFiles/CMakeTmp<br><br> Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\<a href="http://devenv.com/" target="_blank">devenv.com</a><br>
 CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec<br><br> Microsoft (R) Visual Studio Version 8.0.50727.762.<br> Copyright (C) Microsoft Corp 1984-2005.  All rights reserved.<br><br> The selected file is a solution file, but was created by a newer version<br>
of<br> this application and cannot be opened.<br><br> The operation could not be completed.  Unbekannter Fehler<br><br> CMake will not be able to correctly generate this project.<br>Call Stack (most recent call first):<br>
 CMakeLists.txt:9 (PROJECT)<br><br><br>Configuring incomplete, errors occurred!<br><br>I tried the same with the latest version of Cmake (2.6.4) but the same error<br>occured. I also checked out the latest version of VTk via CVS and it is the<br>
same.<br><br>Does anybody know what is wrong? Is it because i have Visual Studio 2008 and<br>also VisualStudio 2005 installed?<br><br>Thanks in advance<br>Andi<br><br>_______________________________________________________________<br>
Neu: <a href="http://web.de/" target="_blank">WEB.DE</a> DSL bis 50.000 kBit/s und 200,- Euro Startguthaben!<br><a href="http://produkte.web.de/go/02/" target="_blank">http://produkte.web.de/go/02/</a><br><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><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 VTK FAQ at:<br><a 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 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>_______________________________________________<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 VTK FAQ at: <a 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 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br><br><br>_______________________________________________________________<br>Neu: <a href="http://web.de/" target="_blank">WEB.DE</a> DSL bis 50.000 kBit/s und 200,- Euro Startguthaben!<br><a href="http://produkte.web.de/go/02/" target="_blank">http://produkte.web.de/go/02/</a><br>
<br><br><br>------------------------------<br><br>Message: 2<br>Date: Fri, 16 Oct 2009 18:06:55 +0200<br>From: Christopher Denter &lt;<a href="mailto:dennda@the-space-station.com">dennda@the-space-station.com</a>&gt;<br>Subject: [vtkusers] VTK in a MultiTouch Environment<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Message-ID:<br>       &lt;<a href="mailto:2D21383E-E55B-4789-B660-9C86380B347A@the-space-station.com">2D21383E-E55B-4789-B660-9C86380B347A@the-space-station.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes<br><br>Hello,<br><br>my name is Christopher and I&#39;m a CS student currently searching for a<br>topic for my bachelor&#39;s thesis. One topic that I&#39;d find particularly<br>
interesting is an application that visualizes rendered volumes and<br>allows the user(s) to explore the set of data by using multitouch<br>gestures.<br>For an example of how this may look in practice, please see this<br>remarkable video: <a href="http://www.vimeo.com/6866296" target="_blank">http://www.vimeo.com/6866296</a><br>
<br>For the rendering part, I would like to use VTK so I don&#39;t need to<br>write the volume rendering myself.<br>The actual GUI and interaction would be made with PyMT [0], a python<br>library that allows you to write multitouch applications with ease.<br>
<br>There are two main problems here that I already see:<br>       a) Is it possible to take the rendered volume and use it in my PyMT<br>application (which has an OpenGL context itself)? Of course, this<br>needs to be fast enough to allow for actual interaction with the user.<br>
If yes, how would I do that?<br>       b) What do I need to do in order to translate finger gestures into<br>VTK commands like &#39;rotate the volume&#39; or &#39;show everything up to that<br>particular slice&#39;? Is that even possible properly?<br>
<br>I understand that (as chapter 13 of the user&#39;s guide explains) you can<br>subclass vtkRenderWindowInteractor and friends, but those seem a bit<br>mouse and keyboard centric (because you need to override methods such<br>
as onMiddleButtonDown()). However, both mouse and keyboard is<br>something you do not usually have in a multitouch environment (as you<br>can clearly see in the above video).<br><br>I would be really happy if it would be possible to realize the<br>
application sketched above. Thoughts on achievability are also very<br>happily accepted. Keep in mind that this will be a bachelor&#39;s thesis<br>with 3-6 months (of non-exclusive working time spent) and not a<br>doctoral thesis.<br>
<br>In the hope that my questions can be answered and with best regards,<br>Christopher<br><br>[0] <a href="http://pymt.txzone.net/" target="_blank">http://pymt.txzone.net</a><br><br><br>------------------------------<br>
<br>Message: 3<br>Date: Fri, 16 Oct 2009 18:16:11 +0200<br>From: Dominik Szczerba &lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt;<br>Subject: [vtkusers] reading/writing only selected attributes<br>To: VTK users group &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:4AD89C4B.9040809@itis.ethz.ch">4AD89C4B.9040809@itis.ethz.ch</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Is there a way to read or write only explicitly selected attributes via<br>
the XML readers/writers?<br><br><br>------------------------------<br><br>Message: 4<br>Date: Fri, 16 Oct 2009 20:14:37 +0200<br>From: <a href="mailto:itkvtk123@gmx.net">itkvtk123@gmx.net</a><br>Subject: [vtkusers] Simple way to plot deformation fields in VTK<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Message-ID: &lt;<a href="mailto:20091016181437.223580@gmx.net">20091016181437.223580@gmx.net</a>&gt;<br>Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>What is the simplest way to plot the output of the itk::DemonsRegistrationFilter in VTK?<br><br>I simply want to show the registered image with the deformation field as overlay (as you can do in paraview).<br><br>Since I want to write a standalone application I do *not* want to use paraview and I do *not* want to save the deformation field on disk and then read it with the vtk readers.<br>
<br>I simply want to directly apply the deformation field information to e.g. a vtk::Glyph3D.<br><br>Greets<br><br><br><br><br>--<br>Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -<br>sicherer, schneller und einfacher! <a href="http://portal.gmx.net/de/go/chbrowser" target="_blank">http://portal.gmx.net/de/go/chbrowser</a><br>
<br><br>------------------------------<br><br>Message: 5<br>Date: Fri, 16 Oct 2009 12:25:41 -0600<br>From: David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;<br>Subject: Re: [vtkusers] VTK in a MultiTouch Environment<br>
To: Christopher Denter &lt;<a href="mailto:dennda@the-space-station.com">dennda@the-space-station.com</a>&gt;<br>Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Message-ID:<br>       &lt;<a href="mailto:48a17b780910161125i67c7267ch2a03e8898dab443a@mail.gmail.com">48a17b780910161125i67c7267ch2a03e8898dab443a@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br><br>Hi Christopher,<br><br>VTK should be able to draw into the OpenGL context that is provided by<br>your python library.  You just have to call vtkRenderWindow::WindowInfo()<br>
and vtkRenderWindow::SetSize() so that VTK will use your context instead<br>of creating its own.<br><br>For example, I do the following to get VTK to draw into a PyQt window:<br><br>   def polish(self):<br>         self._RenderWindow.SetSize(size.width(),size.height())<br>
         self._RenderWindow.SetWindowInfo(str(int(self.winId()))<br><br>This works because Qt calls the &quot;polish()&quot; method on my qtRenderWidget<br>before the Qt window is mapped to the screen.  When that happens,<br>
I get the size and window ID from the Qt window, and use those to<br>set up the RenderWindow.<br><br>So if PyMT can give you the window Id of the window that it uses for<br>OpenGL, then getting VTK to use that window should be easy.<br>
<br>With respect to the interactors, it might be easiest not to use them at<br>all.  You can write your own code that takes the multi-touch information<br>from PyMT, and then use the vtkPicker yourself and directly modify<br>
the Prop3D and clipping plane as necessary.  By all means take a look<br>at the vtkInteractors, just realize that you don&#39;t necessarily have to use<br>them.<br><br>   David<br><br><br>On Fri, Oct 16, 2009 at 10:06 AM, Christopher Denter<br>
&lt;<a href="mailto:dennda@the-space-station.com">dennda@the-space-station.com</a>&gt; wrote:<br>&gt; Hello,<br>&gt;<br>&gt; my name is Christopher and I&#39;m a CS student currently searching for a topic<br>&gt; for my bachelor&#39;s thesis. One topic that I&#39;d find particularly interesting<br>
&gt; is an application that visualizes rendered volumes and allows the user(s) to<br>&gt; explore the set of data by using multitouch gestures.<br>&gt; For an example of how this may look in practice, please see this remarkable<br>
&gt; video: <a href="http://www.vimeo.com/6866296" target="_blank">http://www.vimeo.com/6866296</a><br>&gt;<br>&gt; For the rendering part, I would like to use VTK so I don&#39;t need to write the<br>&gt; volume rendering myself.<br>
&gt; The actual GUI and interaction would be made with PyMT [0], a python library<br>&gt; that allows you to write multitouch applications with ease.<br>&gt;<br>&gt; There are two main problems here that I already see:<br>
&gt; ? ? ? ?a) Is it possible to take the rendered volume and use it in my PyMT<br>&gt; application (which has an OpenGL context itself)? Of course, this needs to<br>&gt; be fast enough to allow for actual interaction with the user. If yes, how<br>
&gt; would I do that?<br>&gt; ? ? ? ?b) What do I need to do in order to translate finger gestures into<br>&gt; VTK commands like &#39;rotate the volume&#39; or &#39;show everything up to that<br>&gt; particular slice&#39;? Is that even possible properly?<br>
&gt;<br>&gt; I understand that (as chapter 13 of the user&#39;s guide explains) you can<br>&gt; subclass vtkRenderWindowInteractor and friends, but those seem a bit mouse<br>&gt; and keyboard centric (because you need to override methods such as<br>
&gt; onMiddleButtonDown()). However, both mouse and keyboard is something you do<br>&gt; not usually have in a multitouch environment (as you can clearly see in the<br>&gt; above video).<br>&gt;<br>&gt; I would be really happy if it would be possible to realize the application<br>
&gt; sketched above. Thoughts on achievability are also very happily accepted.<br>&gt; Keep in mind that this will be a bachelor&#39;s thesis with 3-6 months (of<br>&gt; non-exclusive working time spent) and not a doctoral thesis.<br>
&gt;<br>&gt; In the hope that my questions can be answered and with best regards,<br>&gt; Christopher<br>&gt;<br>&gt; [0] <a href="http://pymt.txzone.net/" target="_blank">http://pymt.txzone.net</a><br>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br><br><br>------------------------------<br><br>Message: 6<br>Date: Fri, 16 Oct 2009 14:56:32 -0400<br>
From: Berk Geveci &lt;<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>&gt;<br>Subject: Re: [vtkusers] vtkStreamTracer does not fill area<br>To: Jim Shain &lt;<a href="mailto:jimshain@hotmail.com">jimshain@hotmail.com</a>&gt;<br>
Cc: vtk mailing list &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>Message-ID:<br>       &lt;<a href="mailto:45d654b0910161156k2121a62at5c1662a8b9d91958@mail.gmail.com">45d654b0910161156k2121a62at5c1662a8b9d91958@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br><br>I meant the input dataset. Whatever pdata_[i] is producing.<br><br>On Fri, Oct 16, 2009 at 10:19 AM, Jim Shain &lt;<a href="mailto:jimshain@hotmail.com">jimshain@hotmail.com</a>&gt; wrote:<br>
&gt;<br>&gt; I&#39;ve enclosed?an image.<br>&gt;<br>&gt; The SampleRate is?? igrid-&gt;SetSampleRate(4, 1, 4);<br>&gt;<br>&gt; A smaller SampleRate?has more Streamlines but the skip over the pieces is<br>&gt; still there (it&#39;s just a bit harder to see).? Larger SampleRates obviously<br>
&gt; have fewer lines but the skip is still there.<br>&gt;<br>&gt; I do not see how to get the dataset out of?vtkStreamTracer (which is<br>&gt; streamer down below).?? PrintSelf?? Print?? I have tried several different<br>
&gt; ways and could not get that to work.? How can I do that?<br>&gt;<br>&gt; Thanks!<br>&gt;<br>&gt; Jim<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;&gt; Date: Fri, 16 Oct 2009 08:52:41 -0400<br>&gt;&gt; Subject: Re: [vtkusers] vtkStreamTracer does not fill area<br>
&gt;&gt; From: <a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a><br>&gt;&gt; To: <a href="mailto:jimshain@hotmail.com">jimshain@hotmail.com</a><br>&gt;&gt; CC: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt;&gt;<br>&gt;&gt; Can you post an example dataset and an image? (or e-mail them to me<br>&gt;&gt; directly)<br>&gt;&gt;<br>&gt;&gt; 2009/10/15 Jim Shain &lt;<a href="mailto:jimshain@hotmail.com">jimshain@hotmail.com</a>&gt;:<br>
&gt;&gt; &gt;<br>&gt;&gt; &gt; Hi,<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; When I try to use? vtkStreamTracer the Streamlines do not go all the way<br>&gt;&gt; &gt; to<br>&gt;&gt; &gt; the edge of the object.? It stops a bit short, giving the impression<br>
&gt;&gt; &gt; that<br>&gt;&gt; &gt; there?are no Streamlines there.?? I get the streamer from an<br>&gt;&gt; &gt; vtkExtractGrid<br>&gt;&gt; &gt; (igrid below).? After the Streamline I use a vtkPolyDataMapper (mapper,<br>
&gt;&gt; &gt; below) and a vtkActor (called actor down below).? The pp_ below has a<br>&gt;&gt; &gt; list<br>&gt;&gt; &gt; of processor data.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; ?I have looked around quite a bit and cannot find a solution.<br>
&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; vtkSmartPointer&lt;vtkExtractGrid&gt; igrid;<br>&gt;&gt; &gt; igrid.TakeReference(vtkExtractGrid::New());<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; igrid-&gt;SetInputConnection(pdata_[i]-&gt;GetOutputPort());<br>
&gt;&gt; &gt; igrid-&gt;SetSampleRate(skip+1, 1, skip+1);<br>&gt;&gt; &gt; igrid-&gt;IncludeBoundaryOn();<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; // streamer<br>&gt;&gt; &gt; vtkSmartPointer&lt;vtkStreamTracer&gt; streamer;<br>
&gt;&gt; &gt; streamer.TakeReference(vtkStreamTracer::New());<br>&gt;&gt; &gt; streamer-&gt;SetInputConnection(pdata_[i]-&gt;GetOutputPort());<br>&gt;&gt; &gt; streamer-&gt;SetSource(igrid-&gt;GetOutput());<br>&gt;&gt; &gt; streamer-&gt;SetMaximumPropagation(2,pp_-&gt;nj(i));<br>
&gt;&gt; &gt;<br>&gt;&gt; &gt; streamer-&gt;SetMinimumIntegrationStep(2,0.1);<br>&gt;&gt; &gt; streamer-&gt;SetMaximumIntegrationStep(2,1.0);<br>&gt;&gt; &gt; streamer-&gt;SetInitialIntegrationStep(2, 0.5);<br>&gt;&gt; &gt;<br>
&gt;&gt; &gt; streamer-&gt;SetIntegratorTypeToRungeKutta45();<br>&gt;&gt; &gt; streamer-&gt;SetMaximumError(1.0e-8);<br>&gt;&gt; &gt; streamer-&gt;SetIntegrationDirectionToBoth();<br>&gt;&gt; &gt; streamer-&gt;ComputeVorticityOff();<br>
&gt;&gt; &gt;<br>&gt;&gt; &gt; // mapper<br>&gt;&gt; &gt; vtkSmartPointer&lt;vtkPolyDataMapper&gt; mapper;<br>&gt;&gt; &gt; mapper.TakeReference(vtkPolyDataMapper::New());<br>&gt;&gt; &gt; mapper-&gt;SetInputConnection(streamer-&gt;GetOutputPort());<br>
&gt;&gt; &gt; mapper-&gt;ScalarVisibilityOn();<br>&gt;&gt; &gt; mapper-&gt;ImmediateModeRenderingOn();<br>&gt;&gt; &gt; mappers_.push_back(mapper);<br>&gt;&gt; &gt; streamline_mappers_.push_back(mapper);<br>&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>&gt;&gt; &gt; // add actor<br>&gt;&gt; &gt; for(int rot=rot_beg;rot&lt;rot_end;++rot)<br>&gt;&gt; &gt; {<br>&gt;&gt; &gt; ?? double rotate = rot*360.0/nblades;<br>&gt;&gt; &gt;??? vtkSmartPointer&lt;vtkActor&gt; actor;<br>
&gt;&gt; &gt; ?? if(!rot)<br>&gt;&gt; &gt; ?? {<br>&gt;&gt; &gt;?????? actor.TakeReference(vtkActor::New());<br>&gt;&gt; &gt; ????? actor-&gt;SetMapper(mapper);<br>&gt;&gt; &gt; ????? actor-&gt;RotateZ(rotate);<br>&gt;&gt; &gt; ????? actor-&gt;SetVisibility(0);<br>
&gt;&gt; &gt;?????? ren_-&gt;AddActor(actor);<br>&gt;&gt; &gt; ???}<br>&gt;&gt; &gt;??? streamlines_.push_back(actor);<br>&gt;&gt; &gt; }<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Thanks!<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Jim Shain<br>
&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; ________________________________<br>&gt;&gt; &gt; Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up<br>&gt;&gt; &gt; now.<br>&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Visit other Kitware open-source projects at<br>&gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;<br>&gt;&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt;&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;<br>&gt; ________________________________<br>&gt; Hotmail: Free, trusted and rich email service. Get it now.<br>
<br><br>------------------------------<br><br>Message: 7<br>Date: Fri, 16 Oct 2009 15:58:54 -0500<br>From: &quot;Yang, Jinzhong&quot; &lt;<a href="mailto:jinzhong76@gmail.com">jinzhong76@gmail.com</a>&gt;<br>Subject: [vtkusers] Interaction Simultaneous for multiple renderers in<br>
       one     render window<br>To: &quot;&#39;VTK users group&#39;&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>Message-ID: &lt;003f01ca4ea3$796c7ff0$6c457fd0$@com&gt;<br>Content-Type: text/plain;       charset=&quot;us-ascii&quot;<br>
<br>Hi All,<br><br>I have a question on the interaction on the rendered window. Here is a<br>snippet of my code:<br><br> vtkRenderer* renderer1 = vtkRenderer::New();<br> vtkRenderer* renderer2 = vtkRenderer::New();<br><br>
 vtkRenderWindow* renWin = vtkRenderWindow::New();<br><br> renWin-&gt;AddRenderer(renderer1);<br> renWin-&gt;AddRenderer(renderer2);<br><br> renderer1-&gt;SetViewport(0.0, 0.0, 0.5, 1.0);<br> renderer2-&gt;SetViewport(0.5, 0.0, 1.0, 1.0);<br>
<br> vtkRenderWindowInteractor* inter = vtkRenderWindowInteractor::New();<br> inter-&gt;SetRenderWindow(renWin);<br><br> ... (Add mapping data to renderer1 and renderer2)<br><br> // add axes<br> vtkAxesActor* axes = vtkAxesActor::New();<br>
 vtkPropAssembly* assembly = vtkPropAssembly::New();<br> assembly-&gt;AddPart(axes);<br><br> vtkOrientationMarkerWidget* widget1 = vtkOrientationMarkerWidget::New();<br> widget1-&gt;SetOrientationMarker( assembly );<br> widget1-&gt;SetInteractor(inter);<br>
 widget1-&gt;SetViewport( 0.0, 0.0, 0.2, 0.2 );<br> widget1-&gt;SetEnabled(1);<br> widget1-&gt;InteractiveOff();<br><br> renWin-&gt;Render();<br> inter-&gt;Start();<br><br>With this code, the object interactions in renderer1 and renderer2 are not<br>
correlated. Here, I would like the interactor (inter) acts simultaneously<br>for objects in renderer1 and renderer2. For example, when I rotate or zoom<br>in/out the object in renderer1, the object in renderer2 should change the<br>
same way as object in renderer1 does. Further, with this code, the axis<br>orientation will change along the object orientation in renderer1, but not<br>the one in renderer2. However, if I switch the Viewports of renderer1 and<br>
renderer2, the axis orientation will change along the object orientation in<br>renderer2, but not the one in renderer1. Can anyone give me some hints to<br>resolve this problem?<br><br>Thank you!<br>-Jinzhong<br><br><br><br>
<br>------------------------------<br><br>Message: 8<br>Date: Fri, 16 Oct 2009 16:24:10 -0500<br>From: &quot;Yang, Jinzhong&quot; &lt;<a href="mailto:jinzhong76@gmail.com">jinzhong76@gmail.com</a>&gt;<br>Subject: Re: [vtkusers] matrix output VERY hard to read<br>
To: &quot;&#39;David Doria&#39;&quot; &lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;, &quot;&#39;Jeff Baumes&#39;&quot;<br>       &lt;<a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a>&gt;<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Message-ID: &lt;005501ca4ea7$01603e30$0420ba90$@com&gt;<br>Content-Type: text/plain; charset=&quot;us-ascii&quot;<br><br>The same problem is with the ascii *.vtk data file. It looks in a mess for<br>
those point coordinate outputs. When output data to streams, fix the width<br>for each output element and specify the output precision should solve the<br>problem easily.<br><br><br><br>-Jinzhong<br><br><br><br>From: <a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a> [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] On Behalf<br>
Of David Doria<br>Sent: Thursday, October 15, 2009 6:55 AM<br>To: Jeff Baumes<br>Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Subject: Re: [vtkusers] matrix output VERY hard to read<br><br><br><br>On Tue, Oct 13, 2009 at 9:34 AM, Jeff Baumes &lt;<a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a>&gt;<br>
wrote:<br><br>I agree that this would likely be a good change. Could you add a<br>little more clarity to this? What class(es)/method(s) are you<br>proposing to change?<br><br>Jeff<br><br><br>Jeff,<br><br>I think just vtkMatrix4x4::PrintSelf would need to be changed? Maybe<br>
something more like this:<br><a href="http://www.rpi.edu/~doriad/VTK_List/MatrixOutput/" target="_blank">http://www.rpi.edu/~doriad/VTK_List/MatrixOutput/</a><br><br>It&#39;s tough to get the formatting VERY nice because of variable width<br>
character fonts, but there is still quite an improvement (in my opinion).<br>Here are two examples:<br><br>Existing method, hard matrix:<br>   1 -4.12726e-10 3.91703e-10 5.2556e-12<br>   4.12726e-10 1 7.75407e-10 -7.62694e-10<br>
   -3.91703e-10 -7.75407e-10 1 7.57439e-10<br>   0 0 0 1<br><br>Proposed method, hard matrix:<br>  1.000  -0.000   0.000   0.000<br>  0.000   1.000   0.000  -0.000<br> -0.000  -0.000   1.000   0.000<br>  0.000   0.000   0.000   1.000<br>
<br><br>Existing method, easy matrix:<br>   1 2 3 4<br>   5 6 7 8<br>   9 10 11 12<br>   13 14 15 16<br><br>Proposed method, easy matrix:<br>  1.000   2.000   3.000   4.000<br>  5.000   6.000   7.000   8.000<br>  9.000  10.000  11.000  12.000<br>
 13.000  14.000  15.000  16.000<br><br>As you can see there is a HUGE difference in the hard case, while the easy<br>case remains ok. The precision of the decimal outputs is clearly a user<br>preference sort of thing - maybe we could even make some options for the<br>
formatting? That may be hard to do in the PrintSelf sort of framework<br>though..<br><br>Thoughts?<br><br>Thanks,<br><br>David<br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20091016/548eb0ba/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20091016/548eb0ba/attachment-0001.htm</a>&gt;<br>
<br>------------------------------<br><br>Message: 9<br>Date: Fri, 16 Oct 2009 23:51:14 +0200<br>From: Grzegorz Pytel &lt;<a href="mailto:bioinfguy@gmail.com">bioinfguy@gmail.com</a>&gt;<br>Subject: [vtkusers] texturing on unstructured grid<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Message-ID:<br>       &lt;<a href="mailto:867c8430910161451v1e0d8759jcb5d577c77ba6566@mail.gmail.com">867c8430910161451v1e0d8759jcb5d577c77ba6566@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br><br>How can I perform texturing on vtkUnstructuredGrid??<br>Regards,<br>Gregory<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20091016/b3f5e501/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20091016/b3f5e501/attachment-0001.htm</a>&gt;<br>
<br>------------------------------<br><br>Message: 10<br>Date: Sat, 17 Oct 2009 00:16:41 -0700<br>From: Thomas Zhang &lt;<a href="mailto:tzhang@xradia.com">tzhang@xradia.com</a>&gt;<br>Subject: [vtkusers] Sudden VTK error after recent Windows Update<br>
       KB958869<br>To: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>Message-ID:<br>       &lt;<a href="mailto:7E67C38B63AA454BBF9001BE32C40EF31F0B745143@xchange1.xradia.com">7E67C38B63AA454BBF9001BE32C40EF31F0B745143@xchange1.xradia.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br><br>Hello: I posted a similar question some time ago and got no response.  Since then I have found a workaround to solve my problem.<br><br>But on Oct 13, 2009, Microsoft pushed a Windows update for KB958869.  All the sudden my workaround failed to work.  The MS update changed the Windows GdiPlus.dll file to prevent centain buffer overrun issues.<br>
<br>Can anyone please help?<br><br>Here is the code that gives the problem.  It is 2D image rotating with vtkImageReslice and vtkTransform.<br><br>If you try the code, it works just fine!  The problem is, we are using the code in the same application that uses a 3rd party library utilizing DirectX hardware acceleration.  After we initialize the DirectX based library, the code below would fail with nDim[0]==1.  Once we comment the 3rd party library, the code would work perfect as expected.<br>
<br>vtkImageData *pvtkImageData1;<br>pvtkImageData1= vtkImageData::New();<br>pvtkImageData1-&gt;SetDimensions(nOriginalWidth,nOriginalHeight,1);<br>pvtkImageData1-&gt;SetScalarTypeToFloat();<br>pvtkImageData1-&gt;SetNumberOfScalarComponents(1);<br>
//here, need to put image data in pvtkImageData1.  Size is<br>//nOriginalWidthXnOriginalHeight<br><br>vtkTransform *pTransForm = vtkTransform::New();<br>pTransForm-&gt;Identity();<br>pTransForm-&gt;RotateZ(fAngle);<br><br>
vtkImageReslice  *pImageReslice = vtkImageReslice::New();<br>pImageReslice-&gt;SetOutputDimensionality(2);<br>pImageReslice-&gt;SetResliceAxesDirectionCosines(1,0,0,0,1,0,0,0,1);<br>pImageReslice-&gt;SetResliceTransform(pTransForm);<br>
pImageReslice-&gt;SetInput(pvtkImageData1);<br><br>vtkImageChangeInformation* centering =vtkImageChangeInformation::New();<br>centering-&gt;SetInput(pvtkImageData1);<br>centering-&gt;CenterImageOn();<br>pImageReslice-&gt;SetInput(centering-&gt;GetOutput());<br>
<br>pImageReslice-&gt;SetResliceAxesOrigin(0,0,0);<br>pImageReslice-&gt;SetOutputExtentToDefault();<br>pImageReslice-&gt;GetOutput()-&gt;SetUpdateExtentToWholeExtent();<br>pImageReslice-&gt;Update();<br>pImageReslice-&gt;GetOutput()-&gt;Update();<br>
<br>vtkImageData *pvtkOutImageData = pImageReslice-&gt;GetOutput();<br>int nDim[3];<br>pvtkOutImageData-&gt;GetDimensions(nDim);<br><br>//===================Error===========================<br>//at this point the nDim[0] return 1, which is wrong.<br>
//nDim[0] should be at least nOriginalWidth.<br><br>Thanks!<br>Thomas<br><br> The information in this email, including any attachments, is confidential and intended only for the recipient(s) listed.  Any use of this email for any other purpose is prohibited.  If you have received this email in error, please notify me immediately by reply email, delete this email, and do not disclose its contents to anyone.<br>
<br><br>------------------------------<br><br>Message: 11<br>Date: Sat, 17 Oct 2009 08:43:56 -0400<br>From: Lic. Jos? M. Rodriguez Bacallao &lt;<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>&gt;<br>Subject: Re: [vtkusers] about PyQt4 and vtk<br>
To: Clinton Stimpson &lt;<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>&gt;<br>Cc: VTK Users &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>Message-ID:<br>       &lt;<a href="mailto:4b2db6160910170543h75640d0fl78c4535a3ceb884d@mail.gmail.com">4b2db6160910170543h75640d0fl78c4535a3ceb884d@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=UTF-8<br><br>I realize that after a night of sleeplessness, thanks very much for<br>your help. Here is another question: I have made my<br>QVTKRenderWindowInteractor parent of QWidget and put the QWidget as a<br>
the Widget of my MDI windows, but, when I change the active MDI<br>windows, I get some flicker and a little ghost image of my previous<br>window.<br><br>PS: I am visualizing DICOM images in each MDI window<br><br>On 10/15/09, Clinton Stimpson &lt;<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>&gt; wrote:<br>
&gt;<br>&gt; That&#39;s probably because reparenting is not implemented for<br>&gt; QVTKRenderWindowInteractor.<br>&gt; You could probably get around it by making an intermediate QWidget that<br>&gt; is the parent and put that in the mdi area.<br>
&gt;<br>&gt; Clint<br>&gt;<br>&gt; On 10/15/2009 03:08 PM, Lic. Jos? M. Rodriguez Bacallao wrote:<br>&gt;&gt; hi folks, I&#39;m trying to embed an QVTKRenderWindowInteractor in a mdi<br>&gt;&gt; subwindow of a PyQt4 application but it raise a lot of BadWindows<br>
&gt;&gt; errors and Seg Faults like this:<br>&gt;&gt;<br>&gt;&gt; X Error: BadWindow (invalid Window parameter) 3<br>&gt;&gt;    Major opcode: 2 (X_ChangeWindowAttributes)<br>&gt;&gt;    Resource id:  0x340004b<br>&gt;&gt; X Error: BadWindow (invalid Window parameter) 3<br>
&gt;&gt;    Major opcode: 3 (X_GetWindowAttributes)<br>&gt;&gt;    Resource id:  0x340004b<br>&gt;&gt;<br>&gt;&gt; this is an example code:<br>&gt;&gt;<br>&gt;&gt; import sys<br>&gt;&gt;<br>&gt;&gt; from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor<br>
&gt;&gt; from PyQt4 import QtGui<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; class Window(QtGui.QMainWindow):<br>&gt;&gt;<br>&gt;&gt;      def __init__(self, title):<br>&gt;&gt;          super(Window, self).__init__()<br>&gt;&gt;<br>
&gt;&gt;          self.setWindowTitle(title)<br>&gt;&gt;<br>&gt;&gt;          file_menu = self.menuBar().addMenu(&#39;&amp;File&#39;)<br>&gt;&gt;          file_menu.addAction(&#39;&amp;New Scene&#39;, self.new_scene)<br>&gt;&gt;<br>
&gt;&gt;<br>&gt;&gt;          self.mdi = QtGui.QMdiArea(self)<br>&gt;&gt;          self.setCentralWidget(self.mdi)<br>&gt;&gt;          self.interactors = []<br>&gt;&gt;<br>&gt;&gt;      def new_scene(self):<br>&gt;&gt;          rwi = QVTKRenderWindowInteractor(self)<br>
&gt;&gt;          self.interactors.append(rwi)<br>&gt;&gt;          scene = self.mdi.addSubWindow(rwi)<br>&gt;&gt;          scene.show()<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; app = QtGui.QApplication(sys.argv)<br>&gt;&gt; window = Window(&#39;Test&#39;)<br>
&gt;&gt; window.showMaximized()<br>&gt;&gt; app.exec_()<br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt;<br><br><br>--<br>Lic. Jos? M. Rodriguez Bacallao<br>Centro de Biofisica Medica<br>-----------------------------------------------------------------<br>
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.<br><br>Recuerda: El arca de Noe fue construida por aficionados, el titanic<br>por profesionales<br>-----------------------------------------------------------------<br>
<br><br>------------------------------<br><br>Message: 12<br>Date: Sat, 17 Oct 2009 05:59:22 -0700 (PDT)<br>From: InfoSeekerr &lt;<a href="mailto:ali.mahmoud.habib@gmail.com">ali.mahmoud.habib@gmail.com</a>&gt;<br>Subject: [vtkusers]  vtkvolume to vtkpolydata<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Message-ID: &lt;<a href="mailto:25938078.post@talk.nabble.com">25938078.post@talk.nabble.com</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br><br>Hi All,<br>
<br>How to convert vtkvolume to vtkpolydata to be used in vtk stripper filter<br><br>Looking forward to your answer<br>Best regards<br>--<br>View this message in context: <a href="http://www.nabble.com/vtkvolume-to-vtkpolydata-tp25938078p25938078.html" target="_blank">http://www.nabble.com/vtkvolume-to-vtkpolydata-tp25938078p25938078.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br><br><br><br>------------------------------<br><br>Message: 13<br>Date: Sat, 17 Oct 2009 17:38:21 +0200<br>From: Hans Gruendel &lt;<a href="mailto:hans.gruendel@web.de">hans.gruendel@web.de</a>&gt;<br>
Subject: Re: [vtkusers] vtkContourfilter produces uncomplete surface<br>       when cutting hex mesh<br>To: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: &lt;<a href="mailto:4AD9E4ED.2020403@web.de">4AD9E4ED.2020403@web.de</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Hi Bill,<br><br>thanks for your answer. You gave me an important hint: Result of the<br>
contour filter is always a set of triangles. Very good to know.<br><br>I will check the rectangle with regards to planarity (right word?).<br>Greetings Hans<br><br>Bill Lorensen schrieb:<br>&gt; A rectangle might not be planar which may give some renderers trouble.<br>
&gt; The contour filter always produces triangles.<br>&gt;<br>&gt;<br>&gt; On Wed, Oct 14, 2009 at 3:09 PM, Hans Gruendel &lt;<a href="mailto:hans.gruendel@web.de">hans.gruendel@web.de</a>&gt; wrote:<br>&gt;<br>&gt;&gt; Hi All,<br>
&gt;&gt;<br>&gt;&gt; this is my first email here.<br>&gt;&gt;<br>&gt;&gt; I use the vtkContourFilter on an unstructured 3D Grid.<br>&gt;&gt; Case 1: Cells are Tetraeder (Type 10) --&gt; everything is fine.<br>&gt;&gt; Case 2. Cells are Hexaeder (Type 12) --&gt; the resulting surface is not<br>
&gt;&gt; complete. Each cutted face is divided into 4 triangles. An rectangle would<br>&gt;&gt; fill the whole.<br>&gt;&gt;<br>&gt;&gt; My question: Is there any method to produce a complete surface from a<br>&gt;&gt; Hexaeder mesh using the contour filter without any wholes?<br>
&gt;&gt;<br>&gt;&gt; Looking forward to your help<br>&gt;&gt;<br>&gt;&gt; Best regards<br>&gt;&gt;<br>&gt;&gt; Hans<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;&gt;<br>&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt;<br><br><br><br>------------------------------<br><br>
Message: 14<br>Date: Sat, 17 Oct 2009 11:56:53 -0400<br>From: Berk Geveci &lt;<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>&gt;<br>Subject: Re: [vtkusers] VTK in a MultiTouch Environment<br>To: Christopher Denter &lt;<a href="mailto:dennda@the-space-station.com">dennda@the-space-station.com</a>&gt;<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Message-ID:<br>       &lt;<a href="mailto:45d654b0910170856s4529f30drbe13a72d2dcc25d8@mail.gmail.com">45d654b0910170856s4529f30drbe13a72d2dcc25d8@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br><br>Hi Christopher,<br><br>Please keep us in the loop as you make progress in this work. It would<br>be great to publish it somewhere.<br><br>-berk<br><br>On Fri, Oct 16, 2009 at 12:06 PM, Christopher Denter<br>
&lt;<a href="mailto:dennda@the-space-station.com">dennda@the-space-station.com</a>&gt; wrote:<br>&gt; Hello,<br>&gt;<br>&gt; my name is Christopher and I&#39;m a CS student currently searching for a topic<br>&gt; for my bachelor&#39;s thesis. One topic that I&#39;d find particularly interesting<br>
&gt; is an application that visualizes rendered volumes and allows the user(s) to<br>&gt; explore the set of data by using multitouch gestures.<br>&gt; For an example of how this may look in practice, please see this remarkable<br>
&gt; video: <a href="http://www.vimeo.com/6866296" target="_blank">http://www.vimeo.com/6866296</a><br>&gt;<br>&gt; For the rendering part, I would like to use VTK so I don&#39;t need to write the<br>&gt; volume rendering myself.<br>
&gt; The actual GUI and interaction would be made with PyMT [0], a python library<br>&gt; that allows you to write multitouch applications with ease.<br>&gt;<br>&gt; There are two main problems here that I already see:<br>
&gt; ? ? ? ?a) Is it possible to take the rendered volume and use it in my PyMT<br>&gt; application (which has an OpenGL context itself)? Of course, this needs to<br>&gt; be fast enough to allow for actual interaction with the user. If yes, how<br>
&gt; would I do that?<br>&gt; ? ? ? ?b) What do I need to do in order to translate finger gestures into<br>&gt; VTK commands like &#39;rotate the volume&#39; or &#39;show everything up to that<br>&gt; particular slice&#39;? Is that even possible properly?<br>
&gt;<br>&gt; I understand that (as chapter 13 of the user&#39;s guide explains) you can<br>&gt; subclass vtkRenderWindowInteractor and friends, but those seem a bit mouse<br>&gt; and keyboard centric (because you need to override methods such as<br>
&gt; onMiddleButtonDown()). However, both mouse and keyboard is something you do<br>&gt; not usually have in a multitouch environment (as you can clearly see in the<br>&gt; above video).<br>&gt;<br>&gt; I would be really happy if it would be possible to realize the application<br>
&gt; sketched above. Thoughts on achievability are also very happily accepted.<br>&gt; Keep in mind that this will be a bachelor&#39;s thesis with 3-6 months (of<br>&gt; non-exclusive working time spent) and not a doctoral thesis.<br>
&gt;<br>&gt; In the hope that my questions can be answered and with best regards,<br>&gt; Christopher<br>&gt;<br>&gt; [0] <a href="http://pymt.txzone.net/" target="_blank">http://pymt.txzone.net</a><br>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br><br><br>------------------------------<br><br>_______________________________________________<br>
vtkusers mailing list<br><a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br><br>End of vtkusers Digest, Vol 66, Issue 21<br>
****************************************<br></blockquote></div><br><br clear="all">
<div></div><br>-- <br>Guang Zheng  <br><br><br>