<div dir="ltr">If your data is truly a polydata, you just need to read your file with the vtkDataSetReader and write it with vtkXMLPolyDataWriter using the regular pipeline mechanism.<div>Otherwise, you may need to insert in-between a surface extraction filter like the vtkGeometryFilter or vtkDataSetSurfaceFilter.<br>
<div><br></div><div>Seb<br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 2, 2013 at 4:45 AM, rahul indoria <span dir="ltr">&lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><b><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">    I am new on vtk and need to ask :</span><br style="font-family:arial,sans-serif;font-size:13px">
<br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">1.) can we convert our .vtk into .vtp?</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px">

<span style="font-family:arial,sans-serif;font-size:13px">2.) if yes, then how?  and how can we use this .vtp file in the given example:</span><br style="font-family:arial,sans-serif;font-size:13px"><a href="http://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation" style="font-family:arial,sans-serif;font-size:13px" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation</a><br style="font-family:arial,sans-serif;font-size:13px">

<br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">I need this as soon as possible. please help.</span><br style="font-family:arial,sans-serif;font-size:13px">

<br style="font-family:arial,sans-serif;font-size:13px"></b><b><span style="font-family:arial,sans-serif;font-size:13px">Please reply soon.</span></b><b><br><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">Looking forward your reply soon.</span><br style="font-family:arial,sans-serif;font-size:13px">

<br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">rahul indoria</span></b><br style="font-family:arial,sans-serif;font-size:13px"><div class="gmail_extra"><br>

</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 2, 2013 at 10:39 AM,  <span dir="ltr">&lt;<a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send vtkusers mailing list submissions to<br>
        <a href="mailto:vtkusers@vtk.org" target="_blank">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" target="_blank">vtkusers-request@vtk.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:vtkusers-owner@vtk.org" target="_blank">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. ExtrudeTest.Java (Graham Seed)<br>
   2. Re: ExtrudeTest.Java (Sebastien Jourdain)<br>
   3. Displaying Segmented Data (cjayjones)<br>
   4. Re: Displaying Segmented Data (Bill Lorensen)<br>
   5. Re: Processing large raw(binary) files (Alex Malyushytskyy)<br>
   6. VTK-QT example build related.. (Kalpathi Subramanian)<br>
   7. c++ to java mapping in KMeansClustering.cxx (Graham Seed)<br>
   8. C++ to Java mapping guide? (Graham Seed)<br>
   9. Need Help !!! (rahul indoria)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 1 Jul 2013 20:08:09 +0100<br>
From: Graham Seed &lt;<a href="mailto:gmseed@gmail.com" target="_blank">gmseed@gmail.com</a>&gt;<br>
Subject: [vtkusers] ExtrudeTest.Java<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CALAQSHk-SBKU-Syz2E91%2B3cDAFrLn-MV0YQ53RJNqrcfENWVeQ@mail.gmail.com" target="_blank">CALAQSHk-SBKU-Syz2E91+3cDAFrLn-MV0YQ53RJNqrcfENWVeQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi<br>
<br>
I just tried building/running  ExtrudeTest.java and get some compile errors<br>
on a few lines calling SetInput(). I changed these to SetInputDataObject()<br>
but suspect this may be wrong.<br>
<br>
I also found that at runtiime I get library load exception on vtkCommonJava<br>
even though it is loaded. If I paste the block:<br>
<br>
<br>
    static {<br>
        if(!vtkNativeLibrary.LoadAllNativeLibraries()) {<br>
            for(vtkNativeLibrary lib : vtkNativeLibrary.values()) {<br>
                if(!lib.IsLoaded()) {<br>
                    System.out.println(lib.GetLibraryName() + &quot; not<br>
loaded&quot;);<br>
                }<br>
            }<br>
        }<br>
        vtkNativeLibrary.DisableOutputWindow(null);<br>
    }<br>
<br>
then the exception goes away.<br>
<br>
Finally, when running I don&#39;t see anything!<br>
<br>
Graham<br>
<a href="mailto:gmseed@gmail.com" target="_blank">gmseed@gmail.com</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130701/5976aa00/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130701/5976aa00/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 1 Jul 2013 15:55:24 -0400<br>
From: Sebastien Jourdain &lt;<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>&gt;<br>
Subject: Re: [vtkusers] ExtrudeTest.Java<br>
To: Graham Seed &lt;<a href="mailto:gmseed@gmail.com" target="_blank">gmseed@gmail.com</a>&gt;<br>
Cc: vtkusers &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CABObKxfgMOYfTYU9QcJvHRJbV8iRSGCYAv42vNVHKiLT2yjFFQ@mail.gmail.com" target="_blank">CABObKxfgMOYfTYU9QcJvHRJbV8iRSGCYAv42vNVHKiLT2yjFFQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
What you&#39;ve done is the correct fix with the current version of VTK.<br>
Although, I don&#39;t know what that example is supposed to do.<br>
<br>
Please check directly the ones that are part of the vtk.jar<br>
<br>
Seb<br>
<br>
<br>
On Mon, Jul 1, 2013 at 3:08 PM, Graham Seed &lt;<a href="mailto:gmseed@gmail.com" target="_blank">gmseed@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi<br>
&gt;<br>
&gt; I just tried building/running  ExtrudeTest.java and get some compile<br>
&gt; errors on a few lines calling SetInput(). I changed these<br>
&gt; to SetInputDataObject() but suspect this may be wrong.<br>
&gt;<br>
&gt; I also found that at runtiime I get library load exception<br>
&gt; on vtkCommonJava even though it is loaded. If I paste the block:<br>
&gt;<br>
&gt;<br>
&gt;     static {<br>
&gt;         if(!vtkNativeLibrary.LoadAllNativeLibraries()) {<br>
&gt;             for(vtkNativeLibrary lib : vtkNativeLibrary.values()) {<br>
&gt;                 if(!lib.IsLoaded()) {<br>
&gt;                     System.out.println(lib.GetLibraryName() + &quot; not<br>
&gt; loaded&quot;);<br>
&gt;                 }<br>
&gt;             }<br>
&gt;         }<br>
&gt;         vtkNativeLibrary.DisableOutputWindow(null);<br>
&gt;     }<br>
&gt;<br>
&gt; then the exception goes away.<br>
&gt;<br>
&gt; Finally, when running I don&#39;t see anything!<br>
&gt;<br>
&gt; Graham<br>
&gt; <a href="mailto:gmseed@gmail.com" target="_blank">gmseed@gmail.com</a><br>
&gt;<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>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130701/c78dd6b2/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130701/c78dd6b2/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 1 Jul 2013 12:53:22 -0700 (PDT)<br>
From: cjayjones &lt;<a href="mailto:cjayjones@gmail.com" target="_blank">cjayjones@gmail.com</a>&gt;<br>
Subject: [vtkusers] Displaying Segmented Data<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID: &lt;<a href="mailto:1372708402326-5721706.post@n5.nabble.com" target="_blank">1372708402326-5721706.post@n5.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
I have a 3d volume that as been segmented into several hundred regions with a<br>
scalar value using the label.  I am trying to display a non-consecutive<br>
number of these.  I have been able to display consecutive regions following<br>
the &quot; GenerateCubesFromLabels.cxx<br>
&lt;<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateCubesFromLabels" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateCubesFromLabels</a>&gt;<br>
&quot; example, however I am struggling to display non-consecutive regions.  Is<br>
there a way to apply &quot;ThresholdBetween&quot; cascaded so that it is effectively<br>
an ideal multi-band pass filter?   My other approach was to use<br>
&quot;vtkImageMathematics&quot; to do &quot;SetOperationToReplaceCByK&quot; and replace all of<br>
the region labels of interest to be consecutive and then use<br>
&quot;ThresholdBetween&quot; on the result, however, I&#39;m also not able to cascade<br>
these operations it seems.  My attempt at using &quot;vtkImageMathematics&quot; is as<br>
follows:<br>
<br>
<br>
<br>
Thank you for your help.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Displaying-Segmented-Data-tp5721706.html" target="_blank">http://vtk.1045678.n5.nabble.com/Displaying-Segmented-Data-tp5721706.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Mon, 1 Jul 2013 16:23:59 -0400<br>
From: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] Displaying Segmented Data<br>
To: cjayjones &lt;<a href="mailto:cjayjones@gmail.com" target="_blank">cjayjones@gmail.com</a>&gt;<br>
Cc: VTK Users &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;CADZJ4hMJDPevLg2RraYRg6LJm=<a href="mailto:Dhs_Trp1MfigA9tmsBhR9WzA@mail.gmail.com" target="_blank">Dhs_Trp1MfigA9tmsBhR9WzA@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
This example:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateModelsFromLabels" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateModelsFromLabels</a><br>
<br>
has logic to process non-consecutive labels. You should be able to include<br>
this logic in your example.<br>
<br>
<br>
<br>
On Mon, Jul 1, 2013 at 3:53 PM, cjayjones &lt;<a href="mailto:cjayjones@gmail.com" target="_blank">cjayjones@gmail.com</a>&gt; wrote:<br>
<br>
&gt; I have a 3d volume that as been segmented into several hundred regions<br>
&gt; with a<br>
&gt; scalar value using the label.  I am trying to display a non-consecutive<br>
&gt; number of these.  I have been able to display consecutive regions following<br>
&gt; the &quot; GenerateCubesFromLabels.cxx<br>
&gt; &lt;<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateCubesFromLabels" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateCubesFromLabels</a>&gt;<br>
&gt; &quot; example, however I am struggling to display non-consecutive regions.  Is<br>
&gt; there a way to apply &quot;ThresholdBetween&quot; cascaded so that it is effectively<br>
&gt; an ideal multi-band pass filter?   My other approach was to use<br>
&gt; &quot;vtkImageMathematics&quot; to do &quot;SetOperationToReplaceCByK&quot; and replace all of<br>
&gt; the region labels of interest to be consecutive and then use<br>
&gt; &quot;ThresholdBetween&quot; on the result, however, I&#39;m also not able to cascade<br>
&gt; these operations it seems.  My attempt at using &quot;vtkImageMathematics&quot; is as<br>
&gt; follows:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thank you for your help.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/Displaying-Segmented-Data-tp5721706.html" target="_blank">http://vtk.1045678.n5.nabble.com/Displaying-Segmented-Data-tp5721706.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<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>
Unpaid intern in BillsBasement at noware dot com<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130701/546aca1f/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130701/546aca1f/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Mon, 1 Jul 2013 14:38:44 -0700<br>
From: Alex Malyushytskyy &lt;<a href="mailto:alexmalvtk@gmail.com" target="_blank">alexmalvtk@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] Processing large raw(binary) files<br>
To: Glen &lt;<a href="mailto:mrholmes@yandex.ru" target="_blank">mrholmes@yandex.ru</a>&gt;<br>
Cc: VTK &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;CAHR9pJ2HKuXcPbSFCt5Qp2UHqa8RhVtaJekhz5UMRm5gpP9=<a href="mailto:5w@mail.gmail.com" target="_blank">5w@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
&gt;&gt; But when I am loading file I am getting a runtime wornings and errors and<br>
the object loads partially (sometimes just several slices). I couldn&#39;t solve<br>
the problem by increasing shrink factor or memory limit. I also checked<br>
extent, dimensionality and spacing, but result was the same.<br>
&gt;&gt; Could you please help me.<br>
<br>
You do not provide enough information (what warninhgs, what errors, system<br>
you are on, RAN available etc )<br>
<br>
So just a few comments:<br>
If you are on win32 you are limited to 2GB for data per process by default.<br>
It is not enough to read 6GB of data, not even counting memory required to<br>
keep shrinked data.<br>
<br>
Even if you are on 64 bit system the amount of memory you need may be to<br>
large for the system you are running on.<br>
You need approximately 12 GB of memory to be able to run your code and<br>
better it should not count virtual memory,<br>
otherwise process may take weeks to finish.<br>
<br>
Regards,<br>
    Alex<br>
<br>
<br>
<br>
<br>
On Mon, Jul 1, 2013 at 5:09 AM, Glen &lt;<a href="mailto:mrholmes@yandex.ru" target="_blank">mrholmes@yandex.ru</a>&gt; wrote:<br>
<br>
&gt; Hello everyone.<br>
&gt;<br>
&gt; I have a quite large binary file (&gt; 6 GB) which contains the data I want to<br>
&gt; visualize. I am trying to read and shrink it using vtkImageReader,<br>
&gt; vtkImageShrink3D and vtkMemoryLimitImageDataStreamer.<br>
&gt; The code is listed below.<br>
&gt;<br>
&gt; vtkImageReader reader = vtkImageReader.New();<br>
&gt; reader.SetDataScalarTypeToSignedChar();<br>
&gt; reader.SetDataExtent(0, extent[0], 0, extent[1], 0, extent[2]);<br>
&gt; reader.SetDataSpacing(spacing[0], spacing[1], spacing[2]);<br>
&gt; reader.SetFileDimensionality(3);<br>
&gt; reader.SetFileName(filePath);<br>
&gt;<br>
&gt; vtkImageShrink3D shrink = vtkImageShrink3D.New();<br>
&gt; shrink.SetShrinkFactors(shrinkFactor, shrinkFactor, shrinkFactor);<br>
&gt; shrink.AveragingOn();<br>
&gt; shrink.MedianOn();<br>
&gt; shrink.SetInputConnection(reader.GetOutputPort());<br>
&gt;<br>
&gt; vtkMemoryLimitImageDataStreamer limitStreamer =<br>
&gt; vtkMemoryLimitImageDataStreamer.New();<br>
&gt; limitStreamer.SetInputConnection(shrink.GetOutputPort());<br>
&gt; limitStreamer.SetMemoryLimit(memoryLimit);<br>
&gt; limitStreamer.UpdateWholeExtent();<br>
&gt;<br>
&gt; But when I am loading file I am getting a runtime wornings and errors and<br>
&gt; the object loads partially (sometimes just several slices). I couldn&#39;t<br>
&gt; solve<br>
&gt; the problem by increasing shrink factor or memory limit. I also checked<br>
&gt; extent, dimensionality and spacing, but result was the same.<br>
&gt;<br>
&gt; Could you please help me.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/Processing-large-raw-binary-files-tp5721699.html" target="_blank">http://vtk.1045678.n5.nabble.com/Processing-large-raw-binary-files-tp5721699.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<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>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130701/bce3b514/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130701/bce3b514/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Mon, 01 Jul 2013 17:28:26 -0400<br>
From: Kalpathi Subramanian &lt;<a href="mailto:krs@uncc.edu" target="_blank">krs@uncc.edu</a>&gt;<br>
Subject: [vtkusers] VTK-QT example build related..<br>
To: VTK HELP &lt;<a href="mailto:vtkusers@www.vtk.org" target="_blank">vtkusers@www.vtk.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:51D1F47A.9070106@uncc.edu" target="_blank">51D1F47A.9070106@uncc.edu</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
<br>
I have VTK and QT installed and was trying to build the SimpleView<br>
example and<br>
ran into a compile problem -- not able to find one of the include files<br>
(QVTKWidget.h).<br>
<br>
Something in the environment is wrong, it seems. I was trying to dig<br>
deep into<br>
how cmake finds stuff. I found that it uses the FindPackage() calls to<br>
get the<br>
environment..<br>
<br>
So I built VTK  under  my account but installed it under  /usr/local<br>
(that was set using<br>
the INSTALL_PREFIX variable. So when I install it, shouldnt the<br>
VTK_USE_FILE variable<br>
use the includes and libraries under /usr/local/vtk.../include/vtk-5.10/..?<br>
<br>
Instead looking at the Cmake files<br>
under  the SimpleView example, it is still looking for these in the<br>
original build<br>
directory under my account.<br>
<br>
What am I doing wrong in the installation? Also what Cmake variables<br>
should I turn on to<br>
be able to build VTK-QT examples (using C++)? I think I did it right..<br>
<br>
     == krs<br>
<br>
<br>
--<br>
Dr. Kalpathi Subramanian                 Ph. <a href="tel:704%20687%208579" value="+17046878579" target="_blank">704 687 8579</a><br>
Associate Professor                      Fax.<a href="tel:704%20687%203516" value="+17046873516" target="_blank">704 687 3516</a><br>
Dept. of Computer Science                Email: <a href="mailto:krs@uncc.edu" target="_blank">krs@uncc.edu</a><br>
The Univ. of N. Carolina at Charlotte    Web:<a href="http://www.cs.uncc.edu/~krs" target="_blank">www.cs.uncc.edu/~krs</a><br>
Charlotte, NC 28223-0001<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Tue, 2 Jul 2013 08:52:46 +0100<br>
From: Graham Seed &lt;<a href="mailto:gmseed@gmail.com" target="_blank">gmseed@gmail.com</a>&gt;<br>
Subject: [vtkusers] c++ to java mapping in KMeansClustering.cxx<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CALAQSHmpZmSu6LPP1p76gF1E22AiA9Jx-uqYL1G4upcT-9cVsQ@mail.gmail.com" target="_blank">CALAQSHmpZmSu6LPP1p76gF1E22AiA9Jx-uqYL1G4upcT-9cVsQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi<br>
<br>
I&#39;m trying to replicate the C++ example at:<br>
<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/KMeansClustering" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/KMeansClustering</a><br>
<br>
in Java.<br>
<br>
I&#39;m getting stuck at the line:<br>
<br>
  kMeansStatistics-&gt;SetInputData( vtkStatisticsAlgorithm::INPUT_DATA,<br>
inputData );<br>
<br>
<br>
which I assumed in Java would be:<br>
<br>
kMeansStatistics.SetInputData(vtkStatisticsAlgorithm.INPUT_DATA, inputData<br>
);<br>
<br>
However, INPUT_DATA is not a static member of vtkStatisticsAlgorithm.<br>
<br>
How do we map such use of statics in VTK Java?<br>
<br>
Thanks.<br>
<br>
--<br>
Graham<br>
<a href="mailto:gmseed@gmail.com" target="_blank">gmseed@gmail.com</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130702/bfb05359/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130702/bfb05359/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Tue, 2 Jul 2013 09:26:36 +0100<br>
From: Graham Seed &lt;<a href="mailto:gmseed@gmail.com" target="_blank">gmseed@gmail.com</a>&gt;<br>
Subject: [vtkusers] C++ to Java mapping guide?<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CALAQSHnbJ_qhmY%2BrxLOPFJ_Lf5H1VS2K_prD0wKmfyzO8%2BaGyg@mail.gmail.com" target="_blank">CALAQSHnbJ_qhmY+rxLOPFJ_Lf5H1VS2K_prD0wKmfyzO8+aGyg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi<br>
<br>
Working through the KMeansClustering C++ example, it is difficult to<br>
convert the code from C++ to Java.<br>
<br>
Another problem I found is the line:<br>
<br>
vtkVariant v = kMeansStatistics-&gt;GetOutput()-&gt;GetValue(r,kMeansStatistics-&gt;GetOutput()-&gt;GetNumberOfColumns()<br>
- 1);<br>
<br>
<br>
<br>
In Java the GetOutput() method returns an object of type vtkTable,<br>
which does not support the GetValue() method?<br>
<br>
<br>
It does support the GetRow() method which returns an object of type<br>
vtkVariantArray but can&#39;t see an easy way to get values out of the<br>
variant array.<br>
<br>
<br>
I must say that trying to get these simple examples is proving very<br>
difficult, and can only imagine how difficult it must be for real life<br>
examples.<br>
<br>
<br>
Thanks.<br>
<br>
<br>
--<br>
Graham<br>
<a href="mailto:gmseed@gmail.com" target="_blank">gmseed@gmail.com</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130702/dbdee92a/attachment.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130702/dbdee92a/attachment.htm</a>&gt;<br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Tue, 2 Jul 2013 10:37:14 +0200<br>
From: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>&gt;<br>
Subject: [vtkusers] Need Help !!!<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CAGQ%2B16%2BoRz_jr%2B35h73K%2BjrKJz%2Bm7m8M2eqTrpaFbiNFLfGcmQ@mail.gmail.com" target="_blank">CAGQ+16+oRz_jr+35h73K+jrKJz+m7m8M2eqTrpaFbiNFLfGcmQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi,<br>
    I am new on vtk and need to ask :<br>
<br>
1.) can we convert our .vtk into .vtp?<br>
<br>
2.) if yes, then how will we use this .vtp file in the given example:<br>
<a href="http://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation</a><br>
<br>
I need this as soon as possible.<br>
<br>
<br>
Please reply soon.<br>
<br>
Looking forward your reply soon.<br>
<br>
rahul indoria<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Mon, Jun 24, 2013 at 5:41 PM, &lt;<a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a>&gt; wrote:<br>
<br>
&gt; Send vtkusers mailing list submissions to<br>
&gt;         <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;<br>
&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;         <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt;         <a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a><br>
&gt;<br>
&gt; You can reach the person managing the list at<br>
&gt;         <a href="mailto:vtkusers-owner@vtk.org" target="_blank">vtkusers-owner@vtk.org</a><br>
&gt;<br>
&gt; When replying, please edit your Subject line so it is more specific<br>
&gt; than &quot;Re: Contents of vtkusers digest...&quot;<br>
&gt;<br>
&gt;<br>
&gt; Today&#39;s Topics:<br>
&gt;<br>
&gt;    1. Re: vtkusers Digest, Vol 110, Issue 31 (rahul indoria)<br>
&gt;    2. Re: Plane polydata intersection (Laurent Chauvin)<br>
&gt;    3. Re: synchronous update between vtkImagePlaneWidget and<br>
&gt;       vtkResliceCursorWidget (Dean Inglis)<br>
&gt;    4. Re: Plane polydata intersection (Cory Quammen)<br>
&gt;    5. Re: Plane polydata intersection (Laurent Chauvin)<br>
&gt;    6. Re: vtkborderwidget in vtk6.0rc3 (David Cole)<br>
&gt;    7. Re: building vtk6, simple example (Marcus D. Hanwell)<br>
&gt;    8. Re: Render Control (David Cole)<br>
&gt;<br>
&gt;<br>
&gt; ----------------------------------------------------------------------<br>
&gt;<br>
&gt; Message: 1<br>
&gt; Date: Mon, 24 Jun 2013 16:16:46 +0200<br>
&gt; From: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] vtkusers Digest, Vol 110, Issue 31<br>
&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; Message-ID:<br>
&gt;         &lt;<br>
&gt; <a href="mailto:CAGQ%2B16J9HaSHfsxzKBM7Bv08fqqEYv07Tpq7SQRU2QLN%2BPeajg@mail.gmail.com" target="_blank">CAGQ+16J9HaSHfsxzKBM7Bv08fqqEYv07Tpq7SQRU2QLN+Peajg@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; Hi,<br>
&gt;     I am new on vtk, my question is :<br>
&gt;<br>
&gt; are the mappers and filters same thing in VTK?<br>
&gt;<br>
&gt; Looking forward your reply soon.<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jun 24, 2013 at 4:04 PM, &lt;<a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Send vtkusers mailing list submissions to<br>
&gt; &gt;         <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; &gt;<br>
&gt; &gt; To subscribe or unsubscribe via the World Wide Web, visit<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; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt; &gt;         <a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a><br>
&gt; &gt;<br>
&gt; &gt; You can reach the person managing the list at<br>
&gt; &gt;         <a href="mailto:vtkusers-owner@vtk.org" target="_blank">vtkusers-owner@vtk.org</a><br>
&gt; &gt;<br>
&gt; &gt; When replying, please edit your Subject line so it is more specific<br>
&gt; &gt; than &quot;Re: Contents of vtkusers digest...&quot;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Today&#39;s Topics:<br>
&gt; &gt;<br>
&gt; &gt;    1. Re: Plane polydata intersection (Cory Quammen)<br>
&gt; &gt;    2. Re: Plane polydata intersection (Laurent Chauvin)<br>
&gt; &gt;    3. vtkLineWidget with fix length (manzohar)<br>
&gt; &gt;    4. Problems building the Piston Library (UJJWAL aryan)<br>
&gt; &gt;    5. Re: Draw points with gaussian fade out (Michka Popoff)<br>
&gt; &gt;    6. Re: Render Control (David Cole)<br>
&gt; &gt;    7. Re: Render Control (Max)<br>
&gt; &gt;    8. VTK build with postfix d : error (Ashish Singh)<br>
&gt; &gt;    9. Re: VTK build with postfix d : error (Ashish Singh)<br>
&gt; &gt;   10. Generating a polyhedron cell from polydata in Python<br>
&gt; &gt;       (Gu?ni Karl Rosenkj?r)<br>
&gt; &gt;   11. building vtk6, simple example (Randy Heiland)<br>
&gt; &gt;   12. vtkborderwidget in vtk6.0rc3 (chasank)<br>
&gt; &gt;   13. Re: Plane polydata intersection (Cory Quammen)<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ----------------------------------------------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 1<br>
&gt; &gt; Date: Sun, 23 Jun 2013 12:31:56 -0400<br>
&gt; &gt; From: Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] Plane polydata intersection<br>
&gt; &gt; To: Laurent Chauvin &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt;<br>
&gt; &gt; Cc: &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt; Message-ID:<br>
&gt; &gt;         &lt;<br>
&gt; &gt; <a href="mailto:CANmPiKCPp3VM6moALR0XB2Rx2OkHQk_9R339ntO%2BAVgqhJHoFw@mail.gmail.com" target="_blank">CANmPiKCPp3VM6moALR0XB2Rx2OkHQk_9R339ntO+AVgqhJHoFw@mail.gmail.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=ISO-8859-1<br>
&gt; &gt;<br>
&gt; &gt; Laurent,<br>
&gt; &gt;<br>
&gt; &gt; For this special case of computing the intersection between a polydata<br>
&gt; &gt; and a plane, you can use a little trick. First, you can compute a new<br>
&gt; &gt; point data set for your polydata with,say, the z coordinates of each<br>
&gt; &gt; point in the polydata. Then, to get the intersection with an xy plane,<br>
&gt; &gt; you then use the vtkContourFilter operating on this coordinate point<br>
&gt; &gt; data and specify the z value that corresponds to your plane. The<br>
&gt; &gt; result should be equivalent to the intersection of the polydata with<br>
&gt; &gt; that plane.<br>
&gt; &gt;<br>
&gt; &gt; It should be relatively fast to compute the contour, so you can<br>
&gt; &gt; probably do this interactively.<br>
&gt; &gt;<br>
&gt; &gt; Hope that helps,<br>
&gt; &gt; Cory<br>
&gt; &gt;<br>
&gt; &gt; On Sat, Jun 22, 2013 at 2:46 PM, Laurent Chauvin<br>
&gt; &gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; &gt; &gt; Hello,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I&#39;m working on Slicer, and I was trying to find a nice way to display<br>
&gt; &gt; &gt; intersection between polydata and a plane.<br>
&gt; &gt; &gt; I read we could use a vtkCutter, but the thing is, I would like to do<br>
&gt; &gt; this<br>
&gt; &gt; &gt; interactively. I want to be able to move the plane, and update the<br>
&gt; &gt; &gt; intersection while moving the plane.<br>
&gt; &gt; &gt; I&#39;m not sure using vtkCutter for this purpose would work. I think<br>
&gt; &gt; vtkCutter<br>
&gt; &gt; &gt; will take some times to execute, then moving the plane will be slow.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I know this question has been asked before, but I would like if there<br>
&gt; &gt; were<br>
&gt; &gt; &gt; some update since then. New widgets or object that I could use for<br>
&gt; that ?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I was thinking using vtkImageReslice, get polydata of the plane and<br>
&gt; &gt; compute<br>
&gt; &gt; &gt; the intersection between the 2 polydata, but I think it would also be<br>
&gt; to<br>
&gt; &gt; &gt; computing intensive to be able to do it smoothly with an interactive<br>
&gt; &gt; plane.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thank you.<br>
&gt; &gt; &gt; -Laurent<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<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;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Cory Quammen<br>
&gt; &gt; Research Associate<br>
&gt; &gt; Department of Computer Science<br>
&gt; &gt; The University of North Carolina at Chapel Hill<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 2<br>
&gt; &gt; Date: Sun, 23 Jun 2013 12:41:39 -0400<br>
&gt; &gt; From: Laurent Chauvin &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] Plane polydata intersection<br>
&gt; &gt; To: Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt;<br>
&gt; &gt; Cc: &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt; Message-ID:<br>
&gt; &gt;         &lt;<br>
&gt; &gt; <a href="mailto:CAPGPbaJZGVNO-vzOjuYr6532VHOZhc2nd8ncEV%2Bc14_2qWNxng@mail.gmail.com" target="_blank">CAPGPbaJZGVNO-vzOjuYr6532VHOZhc2nd8ncEV+c14_2qWNxng@mail.gmail.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>
&gt; &gt; Hi Cory,<br>
&gt; &gt;<br>
&gt; &gt; Thank you very much for your reply.<br>
&gt; &gt; However, I&#39;m not sure to understand what you mean.<br>
&gt; &gt; Should I create a new polydata with all points at the same z coordinates<br>
&gt; ?<br>
&gt; &gt;<br>
&gt; &gt; Does this work with some oblique planes ( not parallel to x,y, or z axis<br>
&gt; )<br>
&gt; &gt; ?<br>
&gt; &gt;<br>
&gt; &gt; Thank you.<br>
&gt; &gt; -Laurent<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Sun, Jun 23, 2013 at 12:31 PM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Laurent,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; For this special case of computing the intersection between a polydata<br>
&gt; &gt; &gt; and a plane, you can use a little trick. First, you can compute a new<br>
&gt; &gt; &gt; point data set for your polydata with,say, the z coordinates of each<br>
&gt; &gt; &gt; point in the polydata. Then, to get the intersection with an xy plane,<br>
&gt; &gt; &gt; you then use the vtkContourFilter operating on this coordinate point<br>
&gt; &gt; &gt; data and specify the z value that corresponds to your plane. The<br>
&gt; &gt; &gt; result should be equivalent to the intersection of the polydata with<br>
&gt; &gt; &gt; that plane.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; It should be relatively fast to compute the contour, so you can<br>
&gt; &gt; &gt; probably do this interactively.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hope that helps,<br>
&gt; &gt; &gt; Cory<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Sat, Jun 22, 2013 at 2:46 PM, Laurent Chauvin<br>
&gt; &gt; &gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; &gt; &gt; &gt; Hello,<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; I&#39;m working on Slicer, and I was trying to find a nice way to display<br>
&gt; &gt; &gt; &gt; intersection between polydata and a plane.<br>
&gt; &gt; &gt; &gt; I read we could use a vtkCutter, but the thing is, I would like to do<br>
&gt; &gt; &gt; this<br>
&gt; &gt; &gt; &gt; interactively. I want to be able to move the plane, and update the<br>
&gt; &gt; &gt; &gt; intersection while moving the plane.<br>
&gt; &gt; &gt; &gt; I&#39;m not sure using vtkCutter for this purpose would work. I think<br>
&gt; &gt; &gt; vtkCutter<br>
&gt; &gt; &gt; &gt; will take some times to execute, then moving the plane will be slow.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; I know this question has been asked before, but I would like if there<br>
&gt; &gt; &gt; were<br>
&gt; &gt; &gt; &gt; some update since then. New widgets or object that I could use for<br>
&gt; &gt; that ?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; I was thinking using vtkImageReslice, get polydata of the plane and<br>
&gt; &gt; &gt; compute<br>
&gt; &gt; &gt; &gt; the intersection between the 2 polydata, but I think it would also be<br>
&gt; &gt; to<br>
&gt; &gt; &gt; &gt; computing intensive to be able to do it smoothly with an interactive<br>
&gt; &gt; &gt; plane.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Thank you.<br>
&gt; &gt; &gt; &gt; -Laurent<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Visit other Kitware open-source projects at<br>
&gt; &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; &gt;<br>
&gt; &gt; &gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; &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; &gt;<br>
&gt; &gt; &gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt; &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; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; Cory Quammen<br>
&gt; &gt; &gt; Research Associate<br>
&gt; &gt; &gt; Department of Computer Science<br>
&gt; &gt; &gt; The University of North Carolina at Chapel Hill<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Laurent Chauvin, MS<br>
&gt; &gt; Surgical Navigation and Robotics Laboratory, Radiology<br>
&gt; &gt; Brigham And Women&#39;s Hospital, Harvard Medical School<br>
&gt; &gt; <a href="http://wiki.ncigt.org/index.php/User:Lchauvin" target="_blank">http://wiki.ncigt.org/index.php/User:Lchauvin</a><br>
&gt; &gt; -------------- next part --------------<br>
&gt; &gt; An HTML attachment was scrubbed...<br>
&gt; &gt; URL: &lt;<br>
&gt; &gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130623/42b4458e/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130623/42b4458e/attachment-0001.htm</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 3<br>
&gt; &gt; Date: Sun, 23 Jun 2013 10:42:03 -0700 (PDT)<br>
&gt; &gt; From: manzohar &lt;<a href="mailto:lancia58@gmail.com" target="_blank">lancia58@gmail.com</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] vtkLineWidget with fix length<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID: &lt;<a href="mailto:1372009323193-5721537.post@n5.nabble.com" target="_blank">1372009323193-5721537.post@n5.nabble.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;<br>
&gt; &gt; Is there a way to fix the length of the line of vtkLineWidget ?<br>
&gt; &gt;<br>
&gt; &gt; Thanks<br>
&gt; &gt; Zohar<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; View this message in context:<br>
&gt; &gt;<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/vtkLineWidget-with-fix-length-tp5721537.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkLineWidget-with-fix-length-tp5721537.html</a><br>
&gt; &gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 4<br>
&gt; &gt; Date: Mon, 24 Jun 2013 00:21:27 +0530<br>
&gt; &gt; From: UJJWAL aryan &lt;<a href="mailto:meetukme@gmail.com" target="_blank">meetukme@gmail.com</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] Problems building the Piston Library<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID:<br>
&gt; &gt;         &lt;CAJdiYKDwMO94-r6dcmnehJhgV76R1=n9bXE4d=<br>
&gt; &gt; <a href="mailto:SX0iR-iA0Dgw@mail.gmail.com" target="_blank">SX0iR-iA0Dgw@mail.gmail.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>
&gt; &gt; Hi All,<br>
&gt; &gt;<br>
&gt; &gt; I was trying to install *vtk 6.0.0.rc3* on my system and it was showing<br>
&gt; the<br>
&gt; &gt; error PISTON_INCLUDE_DIR NOT FOUND. So, I decided to download and install<br>
&gt; &gt; LANL&#39;s piston library (<a href="http://viz.lanl.gov/projects/PISTON.html" target="_blank">http://viz.lanl.gov/projects/PISTON.html</a>) . While<br>
&gt; &gt; building the Piston Library , it gave the following error :-<br>
&gt; &gt;<br>
&gt; &gt; *nvcc fatal   : A single input file is required for a non-link phase when<br>
&gt; &gt; an outputfile is specified. CMake Error at<br>
&gt; &gt; tutorial1GPU_generated_tutorial1.cu.o.cmake:206 (message):*<br>
&gt; &gt; * Error generating<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; /usr/local/piston/build/tutorial/CMakeFiles/tutorial1GPU.dir//./tutorial1GPU_generated_tutorial1.cu.o<br>
&gt; &gt; *<br>
&gt; &gt;<br>
&gt; &gt; So, I opened *tutorial1GPU_generated_tutorial1.cu.o.cmake *in Vim and on<br>
&gt; &gt; line 80 i noticed something unusual. I noticed that in<br>
&gt; &gt; set(CUDA_NVCC_INCLUDE_ARGS ... only a part of the string was displayed in<br>
&gt; &gt; red while remaining part was simple white. The line was very long and i<br>
&gt; &gt; think, that after a certain number of characters like 5000 or so, the<br>
&gt; &gt; system was not recognizing any other character as a string.<br>
&gt; &gt;<br>
&gt; &gt; I am not sure but maybe that is the source of the problem. Kindly take a<br>
&gt; &gt; look into it and enlighten. I am attaching the *<br>
&gt; &gt; tutorial1GPU_generated_tutorial1.cu.o.cmake *with this mail.<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Ujjwal<br>
&gt; &gt; IIIT Hyderabad<br>
&gt; &gt; -------------- next part --------------<br>
&gt; &gt; An HTML attachment was scrubbed...<br>
&gt; &gt; URL: &lt;<br>
&gt; &gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/1adeb7f2/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/1adeb7f2/attachment-0001.htm</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; -------------- next part --------------<br>
&gt; &gt; A non-text attachment was scrubbed...<br>
&gt; &gt; Name: tutorial1GPU_generated_tutorial1.cu.o.cmake<br>
&gt; &gt; Type: application/octet-stream<br>
&gt; &gt; Size: 27350 bytes<br>
&gt; &gt; Desc: not available<br>
&gt; &gt; URL: &lt;<br>
&gt; &gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/1adeb7f2/attachment-0001.obj" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/1adeb7f2/attachment-0001.obj</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 5<br>
&gt; &gt; Date: Sun, 23 Jun 2013 23:47:08 +0200<br>
&gt; &gt; From: Michka Popoff &lt;<a href="mailto:michkapopoff@gmail.com" target="_blank">michkapopoff@gmail.com</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] Draw points with gaussian fade out<br>
&gt; &gt; To: &quot;Biddiscombe, John A.&quot; &lt;<a href="mailto:biddisco@cscs.ch" target="_blank">biddisco@cscs.ch</a>&gt;<br>
&gt; &gt; Cc: vtkusers &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt; Message-ID: &lt;<a href="mailto:00C39685-9939-41E3-9EC7-75C462824A91@gmail.com" target="_blank">00C39685-9939-41E3-9EC7-75C462824A91@gmail.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;windows-1252&quot;<br>
&gt; &gt;<br>
&gt; &gt; Thank you for the code. I looked at the pictures, it seems to do what I<br>
&gt; &gt; want.<br>
&gt; &gt;<br>
&gt; &gt; I am trying to install it but my knowledge is quite limited. As I<br>
&gt; &gt; understand I can build it without recompiling the whole VTK ? Hope I can<br>
&gt; &gt; get python bindings for it.<br>
&gt; &gt;<br>
&gt; &gt; I launched cmake on the folder, I got the two following errors :<br>
&gt; &gt;<br>
&gt; &gt; 1)<br>
&gt; &gt;<br>
&gt; &gt;  CMake Error at CMakeLists.txt:8 (INCLUDE):<br>
&gt; &gt;    include could not find load file:<br>
&gt; &gt;      CMakeMacros_CSCS.cmake<br>
&gt; &gt;<br>
&gt; &gt; I was not able to find this file. I looked on the internet, and<br>
&gt; downloaded<br>
&gt; &gt; some old Paraview and VTK&#39;s from 2006/2007, but was not able to find the<br>
&gt; &gt; file.<br>
&gt; &gt; So I removed the call to this file.<br>
&gt; &gt;<br>
&gt; &gt; 2)<br>
&gt; &gt;<br>
&gt; &gt;  CMake Error at CMakeLists.txt:93 (VTK_MAKE_INSTANTIATOR3):<br>
&gt; &gt;    Unknown CMake command &quot;VTK_MAKE_INSTANTIATOR3&quot;.<br>
&gt; &gt;<br>
&gt; &gt; Apparently this is due because VTK_MAKE_INSTANTIATOR3 is no more needed,<br>
&gt; &gt; so I also removed the line calling it.<br>
&gt; &gt;<br>
&gt; &gt; Now the cmake is able to finish it&#39;s configuration.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Then I did a &quot;make&quot; and got the following error :<br>
&gt; &gt;<br>
&gt; &gt; In file included from<br>
&gt; &gt;<br>
&gt; /Users/michkapopoff/Desktop/vtkCSCSPointSprites/vtkPointSpriteMapper.h:51:<br>
&gt; &gt; /Users/michkapopoff/Desktop/build/vtkCSCSPointSpritesConfigure.h:7:5:<br>
&gt; &gt; error: expected value in expression<br>
&gt; &gt; #if<br>
&gt; &gt;     ^<br>
&gt; &gt; In file included from<br>
&gt; &gt;<br>
&gt; /Users/michkapopoff/Desktop/vtkCSCSPointSprites/vtkPointSpriteMapper.cpp:33:<br>
&gt; &gt;<br>
&gt; /Users/michkapopoff/Desktop/vtkCSCSPointSprites/vtkPointSpriteMapper.h:52:10:<br>
&gt; &gt; fatal error: &#39;vtkPainterPolyDataMapper.h&#39; file not found<br>
&gt; &gt; #include &quot;vtkPainterPolyDataMapper.h&quot;<br>
&gt; &gt;          ^<br>
&gt; &gt; 2 errors generated.<br>
&gt; &gt; make[2]: *** [CMakeFiles/vtkCSCSPointSprites.dir/vtkPointSpriteMapper.o]<br>
&gt; &gt; Error 1<br>
&gt; &gt; make[1]: *** [CMakeFiles/vtkCSCSPointSprites.dir/all] Error 2<br>
&gt; &gt; make: *** [all] Error 2<br>
&gt; &gt;<br>
&gt; &gt; So it doesn&#39;t&#39; find my include did, so I need to add the path to the<br>
&gt; &gt; INCLUDE_DIRECTORIES.<br>
&gt; &gt; I added the path directly with SET(). Perhaps not the cleanest solution<br>
&gt; &gt; but it worked :<br>
&gt; &gt;<br>
&gt; &gt; SET( CSCS_POINTSPRITES_INCLUDE_DIRS<br>
&gt; &gt;   ${PROJECT_SOURCE_DIR}<br>
&gt; &gt;   ${PROJECT_BINARY_DIR}<br>
&gt; &gt;   /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10<br>
&gt; &gt; )<br>
&gt; &gt;<br>
&gt; &gt; So, next I got this error :<br>
&gt; &gt;<br>
&gt; &gt; /Users/michkapopoff/Desktop/build/vtkCSCSPointSpritesConfigure.h:7:5:<br>
&gt; &gt; error: expected value in expression<br>
&gt; &gt; #if<br>
&gt; &gt;     ^<br>
&gt; &gt; In file included from<br>
&gt; &gt;<br>
&gt; /Users/michkapopoff/Desktop/vtkCSCSPointSprites/vtkPointSpriteMapper.cpp:33:<br>
&gt; &gt; In file included from<br>
&gt; &gt;<br>
&gt; /Users/michkapopoff/Desktop/vtkCSCSPointSprites/vtkPointSpriteMapper.h:52:<br>
&gt; &gt; In file included from<br>
&gt; &gt;<br>
&gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkPainterPolyDataMapper.h:25:<br>
&gt; &gt; In file included from<br>
&gt; &gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkPolyDataMapper.h:25:<br>
&gt; &gt; In file included from<br>
&gt; &gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkMapper.h:55:<br>
&gt; &gt; In file included from<br>
&gt; &gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkAbstractMapper3D.h:32:<br>
&gt; &gt; In file included from<br>
&gt; &gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkAbstractMapper.h:28:<br>
&gt; &gt; In file included from<br>
&gt; &gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkAlgorithm.h:32:<br>
&gt; &gt; In file included from<br>
&gt; &gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkObject.h:41:<br>
&gt; &gt; In file included from<br>
&gt; &gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkObjectBase.h:43:<br>
&gt; &gt; In file included from<br>
&gt; &gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkIndent.h:24:<br>
&gt; &gt; In file included from<br>
&gt; &gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkSystemIncludes.h:40:<br>
&gt; &gt; In file included from<br>
&gt; &gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkIOStream.h:108:<br>
&gt; &gt; In file included from /usr/include/c++/4.2.1/backward/strstream:51:<br>
&gt; &gt; /usr/include/c++/4.2.1/backward/backward_warning.h:32:2: warning: This<br>
&gt; &gt; file includes at least one deprecated or antiquated header. Please<br>
&gt; consider<br>
&gt; &gt;       using one of the 32 headers found in section 17.4.1.2 of the C++<br>
&gt; &gt; standard. Examples include substituting the &lt;X&gt; header for the &lt;X.h&gt;<br>
&gt; header<br>
&gt; &gt; for<br>
&gt; &gt;       C++ includes, or &lt;iostream&gt; instead of the deprecated header<br>
&gt; &gt; &lt;iostream.h&gt;. To disable this warning use -Wno-deprecated. [-W#warnings]<br>
&gt; &gt; #warning This file includes at least one deprecated or antiquated<br>
&gt; header. \<br>
&gt; &gt;  ^<br>
&gt; &gt; 1 warning and 1 error generated.<br>
&gt; &gt; make[2]: *** [CMakeFiles/vtkCSCSPointSprites.dir/vtkPointSpriteMapper.o]<br>
&gt; &gt; Error 1<br>
&gt; &gt; make[1]: *** [CMakeFiles/vtkCSCSPointSprites.dir/all] Error 2<br>
&gt; &gt; make: *** [all] Error 2<br>
&gt; &gt;<br>
&gt; &gt; Perhaps you have an idea for this one ?<br>
&gt; &gt;<br>
&gt; &gt; Thanks in advance<br>
&gt; &gt;<br>
&gt; &gt; Michka Popoff<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On 21 juin 2013, at 14:39, &quot;Biddiscombe, John A.&quot; &lt;<a href="mailto:biddisco@cscs.ch" target="_blank">biddisco@cscs.ch</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; I?m attaching a very set of code from the original cvs repo that had<br>
&gt; the<br>
&gt; &gt; point sprite mapper. You should be able to compiled this against vtk, but<br>
&gt; &gt; not that the dates on the files go back to 2006, so you may need to<br>
&gt; update<br>
&gt; &gt; stuff<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; JB<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; From: Michka Popoff [mailto:<a href="mailto:michkapopoff@gmail.com" target="_blank">michkapopoff@gmail.com</a>]<br>
&gt; &gt; &gt; Sent: 20 June 2013 15:36<br>
&gt; &gt; &gt; To: vtkusers<br>
&gt; &gt; &gt; Cc: Biddiscombe, John A.; Markus Neuner<br>
&gt; &gt; &gt; Subject: Re: [vtkusers] Draw points with gaussian fade out<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks for your answers,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I try to fight my way through vtkFastSplatter, but there is only one<br>
&gt; &gt; example and I do not understand everything. (The documentation is a<br>
&gt; little<br>
&gt; &gt; sparse)<br>
&gt; &gt; &gt; The example in the docs use a vtkImageViewer2,and I want to have a<br>
&gt; &gt; vtkactor to put it in my 3d scenery.<br>
&gt; &gt; &gt; So I mapped the splatter on a vtkplane through a vtktexture (to be able<br>
&gt; &gt; to have a vtkactor). Hope this will not lead to performance problems<br>
&gt; once I<br>
&gt; &gt; try to display millions of vtkactors ...<br>
&gt; &gt; &gt; It&#39;s also not really working, the colors are messed up, and I don&#39;t<br>
&gt; &gt; understand the vtkpoints usage for the vtkFastSplatter.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; 5 points are used in the example, which display 5 splats, but I was not<br>
&gt; &gt; able to have only one splat centered in the middle (even using only 1<br>
&gt; &gt; point, at 0,0,0).<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; For vtkPointSpriteMapper, is not in vtk, so I have to find the way to<br>
&gt; &gt; take it from paraview, add it to vtk, and make the python bindings for<br>
&gt; it.<br>
&gt; &gt; Any idea how to achieve this ?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regards<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Michka<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Le 19 juin 2013 ? 23:29, Biddiscombe, John A. a ?crit :<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Try googling vtkPointSpriteMapper<br>
&gt; &gt; &gt; A modified version using painters is in paraview, but the original was<br>
&gt; &gt; designed for straight vtk use.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; JB<br>
&gt; &gt; &gt; (apologies if you get multiple copies of this, email misfired)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Le 19 juin 2013 ? 19:57, Markus Neuner a ?crit :<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; oh vtkGaussianSplatter is the wrong class. It generates a volume, but<br>
&gt; &gt; you could visualize it with volume rendering.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; The first version is basically what FastSplatter does (<br>
&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/FastSplatter" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/FastSplatter</a>).<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; For the second version i can&#39;t find a class in vtk that can actually<br>
&gt; &gt; does this (compute the Gaussian directly in the fragment shader).<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; You can derive from vtkGLSLShaderProgram and implement the procedures<br>
&gt; &gt; described in this examplehttp://<a href="http://prideout.net/blog/p60/Splat.zip" target="_blank">prideout.net/blog/p60/Splat.zip</a> written<br>
&gt; &gt; by Philip Rideout.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regards,<br>
&gt; &gt; &gt; Markus<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On 06/16/2013 06:31 PM, Michka Popoff wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hi<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; thank you for your help.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; 1) For the first solution, what would be the class to use to create the<br>
&gt; &gt; texture from the gaussian equation ? Once I have the textures, I could<br>
&gt; map<br>
&gt; &gt; them to planes. I did wrote some OpenGL code a while ago where I did this<br>
&gt; &gt; with a shader, billboarding the textures so that the gaussians would<br>
&gt; always<br>
&gt; &gt; face the camera. This was very fast.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; 2) I saw vtkGaussianSplatter, but I don&#39;t know if I can set a different<br>
&gt; &gt; radius and exponent factor for each point ? In the class these values can<br>
&gt; &gt; only be set globally. I wrote some code (in python), inspired from the<br>
&gt; &gt; FinancialField example from vtkGaussianSplatter, but the splats are<br>
&gt; passed<br>
&gt; &gt; through vtkContourFilter to make a surface. I think this is messing with<br>
&gt; my<br>
&gt; &gt; gaussians, and I don&#39;t know how to do this without vtkContourFilter. I<br>
&gt; &gt; found no other example for vtkGaussianSplatter. Here is the code I wrote,<br>
&gt; &gt; displaying 10x10 points :<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; #!/usr/bin/env python<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; import vtk<br>
&gt; &gt; &gt; from numpy import random<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; # Create points<br>
&gt; &gt; &gt; points = vtk.vtkPoints()<br>
&gt; &gt; &gt; for i in range(10):<br>
&gt; &gt; &gt;     for j in range(10):<br>
&gt; &gt; &gt;         points.InsertNextPoint(i, j, 0.0)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; polydata = vtk.vtkPolyData()<br>
&gt; &gt; &gt; polydata.SetPoints(points)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; popSplatter = vtk.vtkGaussianSplatter()<br>
&gt; &gt; &gt; popSplatter.SetInput(polydata)<br>
&gt; &gt; &gt; popSplatter.SetSampleDimensions(50, 50, 50)<br>
&gt; &gt; &gt; popSplatter.SetRadius(0.05)<br>
&gt; &gt; &gt; popSplatter.ScalarWarpingOff()<br>
&gt; &gt; &gt; popSplatter.Update()<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; popSurface = vtk.vtkContourFilter()<br>
&gt; &gt; &gt; popSurface.SetInputConnection(popSplatter.GetOutputPort())<br>
&gt; &gt; &gt; popSurface.SetValue(0, 0.01)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; popMapper = vtk.vtkPolyDataMapper()<br>
&gt; &gt; &gt; popMapper.SetInputConnection(popSurface.GetOutputPort())<br>
&gt; &gt; &gt; popMapper.ImmediateModeRenderingOn()<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; popActor = vtk.vtkActor()<br>
&gt; &gt; &gt; popActor.SetMapper(popMapper)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; # Renderer<br>
&gt; &gt; &gt; renderer = vtk.vtkRenderer()<br>
&gt; &gt; &gt; renderer.AddActor(popActor)<br>
&gt; &gt; &gt; renderer.ResetCamera()<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; # Render Window<br>
&gt; &gt; &gt; renderWindow = vtk.vtkRenderWindow()<br>
&gt; &gt; &gt; renderWindow.AddRenderer(renderer)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; # Interactor<br>
&gt; &gt; &gt; renderWindowInteractor = vtk.vtkRenderWindowInteractor()<br>
&gt; &gt; &gt; renderWindowInteractor.SetRenderWindow(renderWindow)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; # Begin Interaction<br>
&gt; &gt; &gt; renderWindow.Render()<br>
&gt; &gt; &gt; renderWindowInteractor.Start()<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On 16 juin 2013, at 11:14, Markus Neuner &lt;<a href="mailto:neuner.markus@gmx.net" target="_blank">neuner.markus@gmx.net</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hi Michka,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; You could try to generate volumetric data using Gaussian splats.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; There are two solutions to this problem:<br>
&gt; &gt; &gt; - Create the 3D Gaussian function on the CPU during application<br>
&gt; &gt; initialization, and create a 3D texture from that.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; - But better and much faster is to compute the Gaussian directly in the<br>
&gt; &gt; fragment shader.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Have a look at vtkGaussianSplatter it may do what you want.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regards,<br>
&gt; &gt; &gt; Markus<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On 06/15/2013 05:18 PM, Michka Popoff wrote:<br>
&gt; &gt; &gt; Hi<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I want to draw a lot of points in VTK (~1.000.000), with each point&#39;s<br>
&gt; &gt; color fading out to a transparent value, following a gaussian function.<br>
&gt; &gt; &gt; So the center will be bright (maximum intensity), and the border will<br>
&gt; &gt; have no color.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I am able to draw a lot of points using vtkPoints, I can also change<br>
&gt; &gt; their color, but I am looking for a way to apply the fade out to every<br>
&gt; &gt; point. Of course the parameters of the gaussian function will be<br>
&gt; different<br>
&gt; &gt; for each point (intensity value in the middle, diameter).<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; The result for 1 point would look like this :<br>
&gt; &gt; <a href="http://www.princeton.edu/~rvdb/images/deconv/Gauss2Psf.jpg" target="_blank">http://www.princeton.edu/~rvdb/images/deconv/Gauss2Psf.jpg</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Are there some filters/mappers I could use directly ? Or can I perhaps<br>
&gt; &gt; try to &quot;hijack&quot; vtkgaussiansplatter to achieve this ?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks in advance<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Michka Popoff<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 athttp://<br>
&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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; <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; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &lt;vtkCSCSPointSprites.zip&gt;<br>
&gt; &gt;<br>
&gt; &gt; -------------- next part --------------<br>
&gt; &gt; An HTML attachment was scrubbed...<br>
&gt; &gt; URL: &lt;<br>
&gt; &gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130623/56895d53/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130623/56895d53/attachment-0001.htm</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 6<br>
&gt; &gt; Date: Mon, 24 Jun 2013 01:09:58 +0000<br>
&gt; &gt; From: David Cole &lt;<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] Render Control<br>
&gt; &gt; To: &quot; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a> &quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;, Max<br>
&gt; &gt;         &lt;<a href="mailto:smapersmaper@gmail.com" target="_blank">smapersmaper@gmail.com</a>&gt;<br>
&gt; &gt; Message-ID: &lt;<a href="mailto:20130624011336.5098F643EA@public.kitware.com" target="_blank">20130624011336.5098F643EA@public.kitware.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt; &gt;<br>
&gt; &gt; The ?problem? is that Visual Studio is 32-bit only, so it can only show<br>
&gt; &gt; the x86 build in Design Mode.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; This happens because the ActiViz dll has underlying architecture-specific<br>
&gt; &gt; native dlls for VTK that it loads. Since they are arch-specific and VS is<br>
&gt; &gt; 32-bit only.... it can only handle the x86 dlls.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Cheers (hope this helps),<br>
&gt; &gt;<br>
&gt; &gt; David C.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; From: Max<br>
&gt; &gt; Sent: ?Sunday?, ?June? ?23?, ?2013 ?9?:?55? ?AM<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; &gt;<br>
&gt; &gt; Hi VTKers,<br>
&gt; &gt; When I&#39;m downloading the 86 bit version of activiz I see the render<br>
&gt; control<br>
&gt; &gt; and can add it to my winforms,<br>
&gt; &gt; but when i download the 64 bit activiz version, it is not shown and i<br>
&gt; &gt; cannot<br>
&gt; &gt; add it through the kitware dll.<br>
&gt; &gt; And when i&#39;m building 86 project the form is shown correctly, but with 64<br>
&gt; &gt; bit version, it cannot show it in design mode, only the run mode.<br>
&gt; &gt; Does anyone know what can be the problem?<br>
&gt; &gt;<br>
&gt; &gt; Thank you,<br>
&gt; &gt; Max<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; View this message in context:<br>
&gt; &gt; <a href="http://vtk.1045678.n5.nabble.com/Render-Control-tp5721532.html" target="_blank">http://vtk.1045678.n5.nabble.com/Render-Control-tp5721532.html</a><br>
&gt; &gt; Sent from the VTK - Users mailing list archive at Nabble.com.<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; -------------- next part --------------<br>
&gt; &gt; An HTML attachment was scrubbed...<br>
&gt; &gt; URL: &lt;<br>
&gt; &gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/95604706/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/95604706/attachment-0001.htm</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 7<br>
&gt; &gt; Date: Sun, 23 Jun 2013 21:08:10 -0700 (PDT)<br>
&gt; &gt; From: Max &lt;<a href="mailto:smapersmaper@gmail.com" target="_blank">smapersmaper@gmail.com</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] Render Control<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID: &lt;<a href="mailto:1372046890508-5721541.post@n5.nabble.com" target="_blank">1372046890508-5721541.post@n5.nabble.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;<br>
&gt; &gt; Hi David and thank you for the reply,<br>
&gt; &gt; so what is the way to add the render control to the winform in 64 bit?<br>
&gt; &gt; Currently what I did:<br>
&gt; &gt; Installed 86 bit version of activiz,<br>
&gt; &gt; installed 64 bit version of activiz,<br>
&gt; &gt; then i saw the 86 bit render control in toolbox,<br>
&gt; &gt; added it to the winform,<br>
&gt; &gt; then i saw that it adds automatically the kitware dll 86 bit ,<br>
&gt; &gt; but i need to make the vtk project 64 bit since all my application<br>
&gt; solution<br>
&gt; &gt; works on 64 bit,<br>
&gt; &gt; so i removed the 86 kitware dll and added 2 64 bit dlls, kitware dll and<br>
&gt; &gt; mummy dll<br>
&gt; &gt; well, it works in runtime, but it says it cannot find the kitware clr in<br>
&gt; &gt; design time.<br>
&gt; &gt; Also i don&#39;t think that for it to work i need to install also 86 bit<br>
&gt; &gt; version<br>
&gt; &gt; of activiz<br>
&gt; &gt; i tried to add the control through kitware dll but it cannot find it...<br>
&gt; &gt; Something is not right here i think...<br>
&gt; &gt; Can you please tell me what i did wrong?<br>
&gt; &gt;<br>
&gt; &gt; Thank you,<br>
&gt; &gt; Max<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; View this message in context:<br>
&gt; &gt; <a href="http://vtk.1045678.n5.nabble.com/Render-Control-tp5721532p5721541.html" target="_blank">http://vtk.1045678.n5.nabble.com/Render-Control-tp5721532p5721541.html</a><br>
&gt; &gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 8<br>
&gt; &gt; Date: Mon, 24 Jun 2013 12:26:25 +0530<br>
&gt; &gt; From: Ashish Singh &lt;<a href="mailto:asinghmlists@gmail.com" target="_blank">asinghmlists@gmail.com</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] VTK build with postfix d : error<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID:<br>
&gt; &gt;         &lt;<br>
&gt; &gt; <a href="mailto:CAOqamVFZjnwAPrKXSAmaecXwp-tavUGyj1WowzrZ86V_v3xA7w@mail.gmail.com" target="_blank">CAOqamVFZjnwAPrKXSAmaecXwp-tavUGyj1WowzrZ86V_v3xA7w@mail.gmail.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; 1) I am trying to build VTK5.10.1 with Qt 4.8.4 on Windows 7, x64<br>
&gt; platform<br>
&gt; &gt; with Visual Studio 2010 with postfix &#39;d&#39; option. The build goes fine<br>
&gt; &gt; without any errors. I am able to run the cone example( plain VTK example)<br>
&gt; &gt; using my build.  But when I run the RenderWindowNoUiFile ( VTK + Qt<br>
&gt; &gt; example), I get a runtime error saying -<br>
&gt; &gt; &quot;The application was unable to start correct (0xc000000d). Click OK to<br>
&gt; &gt; close the application&quot;<br>
&gt; &gt;<br>
&gt; &gt; 2) When I try to build &quot;Install&quot; for this VTK build, I  get the following<br>
&gt; &gt; error:<br>
&gt; &gt;<br>
&gt; &gt; 1&gt;  -- Up-to-date: E:/VTKDebugBin/bin/QVTKd.dll<br>
&gt; &gt; 1&gt;  CMake Error at GUISupport/Qt/PluginInstall.cmake:13 (FILE):<br>
&gt; &gt; 1&gt;    file INSTALL cannot find<br>
&gt; &gt; &quot;E:/VTKDebugBuild/bin/Debug/QVTKWidgetPlugin.dll&quot;.<br>
&gt; &gt; 1&gt;  Call Stack (most recent call first):<br>
&gt; &gt; 1&gt;    GUISupport/Qt/cmake_install.cmake:89 (INCLUDE)<br>
&gt; &gt; 1&gt;    GUISupport/cmake_install.cmake:32 (INCLUDE)<br>
&gt; &gt; 1&gt;    cmake_install.cmake:181 (INCLUDE)<br>
&gt; &gt; 1&gt;<br>
&gt; &gt; 1&gt;<br>
&gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; error<br>
&gt; &gt; MSB3073: The command &quot;setlocal<br>
&gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; error<br>
&gt; &gt; MSB3073: &quot;C:\Program Files (x86)\CMake 2.8\bin\cmake.exe&quot;<br>
&gt; &gt; -DBUILD_TYPE=Debug -P cmake_install.cmake<br>
&gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; error<br>
&gt; &gt; MSB3073: if %errorlevel% neq 0 goto :cmEnd<br>
&gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; error<br>
&gt; &gt; MSB3073: :cmEnd<br>
&gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; error<br>
&gt; &gt; MSB3073: endlocal &amp; call :cmErrorLevel %errorlevel% &amp; goto :cmDone<br>
&gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; error<br>
&gt; &gt; MSB3073: :cmErrorLevel<br>
&gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; error<br>
&gt; &gt; MSB3073: exit /b %1<br>
&gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; error<br>
&gt; &gt; MSB3073: :cmDone<br>
&gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; error<br>
&gt; &gt; MSB3073: if %errorlevel% neq 0 goto :VCEnd<br>
&gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; error<br>
&gt; &gt; MSB3073: :VCEnd&quot; exited with code 1.<br>
&gt; &gt; 1&gt;<br>
&gt; &gt; 1&gt;Build FAILED.<br>
&gt; &gt; 1&gt;<br>
&gt; &gt; 1&gt;Time Elapsed 00:00:10.95<br>
&gt; &gt; ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped<br>
&gt; ==========<br>
&gt; &gt;<br>
&gt; &gt; Can anyone please help me figure out what is going wrong here and how to<br>
&gt; &gt; fix these 2 issues?<br>
&gt; &gt;<br>
&gt; &gt; The details of my environment are:<br>
&gt; &gt; VTK version: 5.10.1<br>
&gt; &gt; Qt: 4.8.4<br>
&gt; &gt; OS: windows 7 64 bit<br>
&gt; &gt; Visual Studio 2010<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Ashish<br>
&gt; &gt; -------------- next part --------------<br>
&gt; &gt; An HTML attachment was scrubbed...<br>
&gt; &gt; URL: &lt;<br>
&gt; &gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/e052c949/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/e052c949/attachment-0001.htm</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 9<br>
&gt; &gt; Date: Mon, 24 Jun 2013 13:45:40 +0530<br>
&gt; &gt; From: Ashish Singh &lt;<a href="mailto:asinghmlists@gmail.com" target="_blank">asinghmlists@gmail.com</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] VTK build with postfix d : error<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID:<br>
&gt; &gt;         &lt;CAOqamVG9VOK+iG=CnpFDbxq8TWjVmjMbR+=<br>
&gt; &gt; <a href="mailto:W7aimJ5JHPZkH4w@mail.gmail.com" target="_blank">W7aimJ5JHPZkH4w@mail.gmail.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>
&gt; &gt; I am replying to my own post. For issue # 2, I checked file<br>
&gt; &gt; GUISupport/Qt/PluginInstall.cmake<br>
&gt; &gt;<br>
&gt; &gt; The contents of this file are as follows:<br>
&gt; &gt; ----<br>
&gt; &gt; # Configured file and directory locations.<br>
&gt; &gt; SET(VTK_LIB_DIR &quot;E:/VTKDebugBuild/bin&quot;)<br>
&gt; &gt; SET(VTK_INSTALL_QT_DIR &quot;/plugins/designer&quot;)<br>
&gt; &gt; SET(VTK_INSTALL_QT_PLUGIN_DIR<br>
&gt; &gt; &quot;${CMAKE_INSTALL_PREFIX}${VTK_INSTALL_QT_DIR}&quot;)<br>
&gt; &gt; SET(VTK_INSTALL_QT_PLUGIN_FILE &quot;QVTKWidgetPlugin.dll&quot;)<br>
&gt; &gt; SET(VTK_CONFIGURATIONS &quot;Debug;Release;MinSizeRel;RelWithDebInfo&quot;)<br>
&gt; &gt;<br>
&gt; &gt; IF(VTK_CONFIGURATIONS)<br>
&gt; &gt;   SET(VTK_LIBSUBDIR &quot;/${BUILD_TYPE}&quot;)<br>
&gt; &gt; ENDIF(VTK_CONFIGURATIONS)<br>
&gt; &gt;<br>
&gt; &gt; # Install the file to the specified location.<br>
&gt; &gt; FILE(INSTALL DESTINATION &quot;${VTK_INSTALL_QT_PLUGIN_DIR}&quot; TYPE<br>
&gt; SHARED_LIBRARY<br>
&gt; &gt;   FILES &quot;${VTK_LIB_DIR}${VTK_LIBSUBDIR}/${VTK_INSTALL_QT_PLUGIN_FILE}&quot;)<br>
&gt; &gt; ----<br>
&gt; &gt; If we look at line :<br>
&gt; &gt; SET(VTK_INSTALL_QT_PLUGIN_FILE &quot;QVTKWidgetPlugin.dll&quot;)<br>
&gt; &gt;<br>
&gt; &gt; we see that it is looking for file &quot;QVTKWidgetPlugin.dll&quot;. But since, I<br>
&gt; &gt; already added a postfix d, it cannot find this file and therefore is<br>
&gt; giving<br>
&gt; &gt; errors. If I change the file name to QVTKWidgetPlugind.dll, the build<br>
&gt; &gt; &quot;Install&quot; step succeeds.<br>
&gt; &gt;<br>
&gt; &gt; Is this a bug?<br>
&gt; &gt;<br>
&gt; &gt; Issue # 1, still remains. I am still not able to run the<br>
&gt; &gt; RenderWindowNoUiFile example after adding postfix d.<br>
&gt; &gt;<br>
&gt; &gt; Can anyone please help?<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Ashish<br>
&gt; &gt;<br>
&gt; &gt; On Mon, Jun 24, 2013 at 12:26 PM, Ashish Singh &lt;<a href="mailto:asinghmlists@gmail.com" target="_blank">asinghmlists@gmail.com</a><br>
&gt; &gt; &gt;wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; 1) I am trying to build VTK5.10.1 with Qt 4.8.4 on Windows 7, x64<br>
&gt; &gt; platform<br>
&gt; &gt; &gt; with Visual Studio 2010 with postfix &#39;d&#39; option. The build goes fine<br>
&gt; &gt; &gt; without any errors. I am able to run the cone example( plain VTK<br>
&gt; example)<br>
&gt; &gt; &gt; using my build.  But when I run the RenderWindowNoUiFile ( VTK + Qt<br>
&gt; &gt; &gt; example), I get a runtime error saying -<br>
&gt; &gt; &gt; &quot;The application was unable to start correct (0xc000000d). Click OK to<br>
&gt; &gt; &gt; close the application&quot;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; 2) When I try to build &quot;Install&quot; for this VTK build, I  get the<br>
&gt; following<br>
&gt; &gt; &gt; error:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; 1&gt;  -- Up-to-date: E:/VTKDebugBin/bin/QVTKd.dll<br>
&gt; &gt; &gt; 1&gt;  CMake Error at GUISupport/Qt/PluginInstall.cmake:13 (FILE):<br>
&gt; &gt; &gt; 1&gt;    file INSTALL cannot find<br>
&gt; &gt; &gt; &quot;E:/VTKDebugBuild/bin/Debug/QVTKWidgetPlugin.dll&quot;.<br>
&gt; &gt; &gt; 1&gt;  Call Stack (most recent call first):<br>
&gt; &gt; &gt; 1&gt;    GUISupport/Qt/cmake_install.cmake:89 (INCLUDE)<br>
&gt; &gt; &gt; 1&gt;    GUISupport/cmake_install.cmake:32 (INCLUDE)<br>
&gt; &gt; &gt; 1&gt;    cmake_install.cmake:181 (INCLUDE)<br>
&gt; &gt; &gt; 1&gt;<br>
&gt; &gt; &gt; 1&gt;<br>
&gt; &gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; &gt; error<br>
&gt; &gt; &gt; MSB3073: The command &quot;setlocal<br>
&gt; &gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; &gt; error<br>
&gt; &gt; &gt; MSB3073: &quot;C:\Program Files (x86)\CMake 2.8\bin\cmake.exe&quot;<br>
&gt; &gt; &gt; -DBUILD_TYPE=Debug -P cmake_install.cmake<br>
&gt; &gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; &gt; error<br>
&gt; &gt; &gt; MSB3073: if %errorlevel% neq 0 goto :cmEnd<br>
&gt; &gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; &gt; error<br>
&gt; &gt; &gt; MSB3073: :cmEnd<br>
&gt; &gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; &gt; error<br>
&gt; &gt; &gt; MSB3073: endlocal &amp; call :cmErrorLevel %errorlevel% &amp; goto :cmDone<br>
&gt; &gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; &gt; error<br>
&gt; &gt; &gt; MSB3073: :cmErrorLevel<br>
&gt; &gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; &gt; error<br>
&gt; &gt; &gt; MSB3073: exit /b %1<br>
&gt; &gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; &gt; error<br>
&gt; &gt; &gt; MSB3073: :cmDone<br>
&gt; &gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; &gt; error<br>
&gt; &gt; &gt; MSB3073: if %errorlevel% neq 0 goto :VCEnd<br>
&gt; &gt; &gt; 1&gt;C:\Program Files<br>
&gt; &gt; &gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):<br>
&gt; &gt; error<br>
&gt; &gt; &gt; MSB3073: :VCEnd&quot; exited with code 1.<br>
&gt; &gt; &gt; 1&gt;<br>
&gt; &gt; &gt; 1&gt;Build FAILED.<br>
&gt; &gt; &gt; 1&gt;<br>
&gt; &gt; &gt; 1&gt;Time Elapsed 00:00:10.95<br>
&gt; &gt; &gt; ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped<br>
&gt; &gt; ==========<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Can anyone please help me figure out what is going wrong here and how<br>
&gt; to<br>
&gt; &gt; &gt; fix these 2 issues?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; The details of my environment are:<br>
&gt; &gt; &gt; VTK version: 5.10.1<br>
&gt; &gt; &gt; Qt: 4.8.4<br>
&gt; &gt; &gt; OS: windows 7 64 bit<br>
&gt; &gt; &gt; Visual Studio 2010<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; Ashish<br>
&gt; &gt; &gt;<br>
&gt; &gt; -------------- next part --------------<br>
&gt; &gt; An HTML attachment was scrubbed...<br>
&gt; &gt; URL: &lt;<br>
&gt; &gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/f3ff4e48/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/f3ff4e48/attachment-0001.htm</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 10<br>
&gt; &gt; Date: Mon, 24 Jun 2013 09:13:26 +0000<br>
&gt; &gt; From: Gu?ni Karl Rosenkj?r &lt;<a href="mailto:grosenkj@eos.ubc.ca" target="_blank">grosenkj@eos.ubc.ca</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] Generating a polyhedron cell from polydata in<br>
&gt; &gt;         Python<br>
&gt; &gt; To: VTKusers &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt; Message-ID:<br>
&gt; &gt;         &lt;CAOqTh=<br>
&gt; &gt; <a href="mailto:m3A110FVXoHTb77wU3CvdFNcOHqaF0kCVP1TJvy-WE5w@mail.gmail.com" target="_blank">m3A110FVXoHTb77wU3CvdFNcOHqaF0kCVP1TJvy-WE5w@mail.gmail.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>
&gt; &gt; Hello all vtk users,<br>
&gt; &gt;<br>
&gt; &gt; I am trying to make a polyhedron cell (vtkUnstructuredGrid) from a<br>
&gt; &gt; polydata. Googling for information on how to do this I have found these<br>
&gt; C++<br>
&gt; &gt; test and used the as a guide.<br>
&gt; &gt;<br>
&gt; &gt; However when I run my code on Fedora 17 64bit, using python 2.7.3 and vtk<br>
&gt; &gt; 5.10.1 (self compiled), I get an error when using InsertNextCell call of<br>
&gt; &gt; the vtkUnstructuredGrid object.<br>
&gt; &gt;<br>
&gt; &gt; Here is a example code I am using:<br>
&gt; &gt; import vtk<br>
&gt; &gt;<br>
&gt; &gt; # Read the polyData<br>
&gt; &gt; cube = vtk.vtkCubeSource()<br>
&gt; &gt; Poly = cube.GetOutput()<br>
&gt; &gt;<br>
&gt; &gt; # Extract the information needed from the poly data<br>
&gt; &gt; numPts = vtk.vtkIdTypeArray()<br>
&gt; &gt; numPts.InsertNextValue(Poly.GetNumberOfPoints())<br>
&gt; &gt; ptsIds = vtk.vtkIdTypeArray()<br>
&gt; &gt; for cP in range(numPts.GetValue(0)): ptsIds.InsertNextValue(cP)<br>
&gt; &gt; numCellFaces = vtk.vtkIdTypeArray()<br>
&gt; &gt; numCellFaces.InsertNextValue(Poly.GetNumberOfPolys())<br>
&gt; &gt; faces = vtk.vtkIdTypeArray()<br>
&gt; &gt; for cF in range(numCellFaces.GetValue(0)):<br>
&gt; &gt;     numPtsInFace = vtk.vtkIdTypeArray()<br>
&gt; &gt;     numPtsInFace.InsertNextValue( Poly.GetCell(cF).GetNumberOfPoints())<br>
&gt; &gt;     faces.InsertNextValue(numPtsInFace)<br>
&gt; &gt;     for cPF in range(numPtsInFace.GetValue(0)):<br>
&gt; &gt;         faces.InsertNextValue(Poly.GetCell(cF).GetPointId(cPF))<br>
&gt; &gt;<br>
&gt; &gt; # Make the grid<br>
&gt; &gt; UnstructPolyHed = vtk.vtkUnstructuredGrid()<br>
&gt; &gt; UnstructPolyHed.SetPoints(Poly.GetPoints())<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; UnstructPolyHed.InsertNextCell(vtk.VTK_POLYHEDRON,numPts,ptsIds,numCellFaces,faces)<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; But I always end with this error: InsertNextCell() takes exactly 2<br>
&gt; &gt; arguments (5 given)<br>
&gt; &gt;<br>
&gt; &gt; The example used 5 inputs as follows<br>
&gt; &gt; InsertNextCell(int type, vtkIdType npts, vtkIdType *ptIds, vtkIdType<br>
&gt; &gt; nfaces, vtkIdType *faces)<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; What am I doing incorrectly?<br>
&gt; &gt;<br>
&gt; &gt; Thanks in advance.<br>
&gt; &gt;<br>
&gt; &gt; Cheers,<br>
&gt; &gt; Gudni Karl<br>
&gt; &gt; -------------- next part --------------<br>
&gt; &gt; An HTML attachment was scrubbed...<br>
&gt; &gt; URL: &lt;<br>
&gt; &gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/c805ba42/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/c805ba42/attachment-0001.htm</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 11<br>
&gt; &gt; Date: Mon, 24 Jun 2013 09:25:01 -0400<br>
&gt; &gt; From: Randy Heiland &lt;<a href="mailto:heiland@indiana.edu" target="_blank">heiland@indiana.edu</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] building vtk6, simple example<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID: &lt;<a href="mailto:86953D8F-E239-49CE-AEF8-044F0B7C5BAD@indiana.edu" target="_blank">86953D8F-E239-49CE-AEF8-044F0B7C5BAD@indiana.edu</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;<br>
&gt; &gt; Hello,<br>
&gt; &gt;<br>
&gt; &gt; Thought I&#39;d take a stab at VTK6 and will ask the about the build process,<br>
&gt; &gt; in general, as well as a specific link error, while I also dig a little<br>
&gt; &gt; deeper.  I did a simple cmake/build via:<br>
&gt; &gt; cmake  -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++<br>
&gt; &gt;  -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc  ../VTK6.0.0.rc3<br>
&gt; &gt;<br>
&gt; &gt; and make install.  Then I downloaded the tarball from here:<br>
&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/SimplePointsReader" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/SimplePointsReader</a> , did a<br>
&gt; &gt; successful cmake on it, but then got:<br>
&gt; &gt;<br>
&gt; &gt; ~/dev/vtk6-play/SimplePointsReader/build$ make<br>
&gt; &gt; Scanning dependencies of target SimplePointsReader<br>
&gt; &gt; [100%] Building CXX object<br>
&gt; &gt; CMakeFiles/SimplePointsReader.dir/SimplePointsReader.cxx.o<br>
&gt; &gt; Linking CXX executable<br>
&gt; &gt; SimplePointsReader.app/Contents/MacOS/SimplePointsReader<br>
&gt; &gt; ld: library not found for -lvtkFiltersParallelFlowPaths<br>
&gt; &gt; collect2: ld returned 1 exit status<br>
&gt; &gt;<br>
&gt; &gt; This seemed curious, since I hadn&#39;t turned on any parallel flags in the<br>
&gt; &gt; VTK cmake.  But sure enough, I saw that some parallel libs had been<br>
&gt; built,<br>
&gt; &gt; e.g.:<br>
&gt; &gt; ~/dev/vtk6-build$ ls /usr/local/lib/libvtk*Paral*.dylib<br>
&gt; &gt; /usr/local/lib/libvtkFiltersParallel-6.0.1.dylib*<br>
&gt; &gt; /usr/local/lib/libvtkFiltersParallel-6.0.dylib@<br>
&gt; &gt; /usr/local/lib/libvtkFiltersParallelImaging-6.0.1.dylib*<br>
&gt; &gt; /usr/local/lib/libvtkFiltersParallelImaging-6.0.dylib@<br>
&gt; &gt; /usr/local/lib/libvtkIOParallel-6.0.1.dylib*<br>
&gt; &gt; /usr/local/lib/libvtkIOParallel-6.0.dylib@<br>
&gt; &gt; /usr/local/lib/libvtkParallelCore-6.0.1.dylib*<br>
&gt; &gt; /usr/local/lib/libvtkParallelCore-6.0.dylib@<br>
&gt; &gt;<br>
&gt; &gt; Fwiw, I also have:<br>
&gt; &gt; ~/dev/vtk6-build$ grep parallel CMakeCache.txt |grep bool<br>
&gt; &gt; Module_vtkFiltersParallelFlowPaths:BOOL=OFF<br>
&gt; &gt; Module_vtkFiltersParallelGeometry:BOOL=OFF<br>
&gt; &gt; Module_vtkFiltersParallelMPI:BOOL=OFF<br>
&gt; &gt; Module_vtkFiltersParallelStatistics:BOOL=OFF<br>
&gt; &gt; Module_vtkIOMPIParallel:BOOL=OFF<br>
&gt; &gt; Module_vtkIOParallelExodus:BOOL=OFF<br>
&gt; &gt; Module_vtkIOParallelLSDyna:BOOL=OFF<br>
&gt; &gt; Module_vtkIOParallelNetCDF:BOOL=OFF<br>
&gt; &gt; Module_vtkInfovisParallel:BOOL=OFF<br>
&gt; &gt; Module_vtkParallelMPI:BOOL=OFF<br>
&gt; &gt; Module_vtkRenderingParallel:BOOL=OFF<br>
&gt; &gt;<br>
&gt; &gt; So, a couple questions - why are parallel libs being built and why does<br>
&gt; &gt; this example seem to require them?  Apologies if I missed info on the<br>
&gt; wiki,<br>
&gt; &gt; etc.<br>
&gt; &gt;<br>
&gt; &gt; thanks, Randy<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 12<br>
&gt; &gt; Date: Mon, 24 Jun 2013 07:01:15 -0700 (PDT)<br>
&gt; &gt; From: chasank &lt;<a href="mailto:chasank@gmail.com" target="_blank">chasank@gmail.com</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] vtkborderwidget in vtk6.0rc3<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID: &lt;<a href="mailto:1372082475230-5721550.post@n5.nabble.com" target="_blank">1372082475230-5721550.post@n5.nabble.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; Although vtk5.10.1 has vtkBorderWidget class, vtk6.0rc3 has not<br>
&gt; &gt; vtkBorderWidget class. Also, this class is not marked as deprecated in<br>
&gt; &gt; deprecated list (<a href="http://www.vtk.org/doc/nightly/html/deprecated.html" target="_blank">http://www.vtk.org/doc/nightly/html/deprecated.html</a>). I<br>
&gt; &gt; wonder whether vtk6.0 stable version will have this class. If not, which<br>
&gt; &gt; class will be used instead of vtkBorderWidget in vtk6.0 stable version.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; View this message in context:<br>
&gt; &gt;<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/vtkborderwidget-in-vtk6-0rc3-tp5721550.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkborderwidget-in-vtk6-0rc3-tp5721550.html</a><br>
&gt; &gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 13<br>
&gt; &gt; Date: Mon, 24 Jun 2013 10:04:14 -0400<br>
&gt; &gt; From: Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] Plane polydata intersection<br>
&gt; &gt; To: Laurent Chauvin &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt;<br>
&gt; &gt; Cc: &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt; Message-ID:<br>
&gt; &gt;         &lt;CANmPiKAiLM3NwHvKY4aUejELTQ=+ihOifUJ-xZYkKo7EAWR=<br>
&gt; &gt; <a href="mailto:qA@mail.gmail.com" target="_blank">qA@mail.gmail.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>
&gt; &gt; On Sun, Jun 23, 2013 at 12:41 PM, Laurent Chauvin<br>
&gt; &gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; &gt; &gt; Hi Cory,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thank you very much for your reply.<br>
&gt; &gt; &gt; However, I&#39;m not sure to understand what you mean.<br>
&gt; &gt; &gt; Should I create a new polydata with all points at the same z<br>
&gt; coordinates<br>
&gt; &gt; ?<br>
&gt; &gt;<br>
&gt; &gt; Laurent,<br>
&gt; &gt;<br>
&gt; &gt; You don&#39;t need to create a new polydata. Instead, you can add a new<br>
&gt; &gt; vtkDataArray (likely a vtkFloatArray or vtkDataArray in this case) to<br>
&gt; &gt; the point data of whatever polydata you already have by using<br>
&gt; &gt; vtkPolyData::GetPointData()-&gt;AddArray(...).<br>
&gt; &gt;<br>
&gt; &gt; For axis-aligned planes, this new array could simply contain the x, y,<br>
&gt; &gt; or z coordinate of each of the points in your vtkPolyData. If you want<br>
&gt; &gt; an intersection of your poly data with a plane spanning x and y, you<br>
&gt; &gt; would add a point data array storing all the z values. You can then<br>
&gt; &gt; use the vtkContourFilter to get the polydata consisting of line<br>
&gt; &gt; segments that represents the intersection of your polydata with the<br>
&gt; &gt; plane at a given z value by specifying that z value as the isolevel<br>
&gt; &gt; for the contour filter. You have to make sure you tell the<br>
&gt; &gt; vtkContourFilter to use your new coordinate array.<br>
&gt; &gt;<br>
&gt; &gt; For an quick example of this concept, I&#39;ve attached a simple ParaView<br>
&gt; &gt; statefile showing how you can do this for a cylinder polydata. In this<br>
&gt; &gt; example, I&#39;ve specified my plane as spanning the x and y coordinates<br>
&gt; &gt; with z value 0.2. In ParaView, I&#39;ve used the Calculator to compute the<br>
&gt; &gt; array consisting of the z coordinates of each point in the cylinder.<br>
&gt; &gt; Forgive me if you don&#39;t have ParaView installed, we use it all the<br>
&gt; &gt; time when prototyping visualizations.<br>
&gt; &gt;<br>
&gt; &gt; &gt; Does this work with some oblique planes ( not parallel to x,y, or z<br>
&gt; axis<br>
&gt; &gt; ) ?<br>
&gt; &gt;<br>
&gt; &gt; For the general case of an arbitrary plane, you would want to compute<br>
&gt; &gt; the distance from each point your desired plan instead of creating a<br>
&gt; &gt; new array containing the x, y, or z coordinates of each point. Then<br>
&gt; &gt; you would set the vtkContourFilter isolevel to 0. The point plane<br>
&gt; &gt; calculation is pretty simple:<br>
&gt; &gt; <a href="http://mathworld.wolfram.com/Point-PlaneDistance.html" target="_blank">http://mathworld.wolfram.com/Point-PlaneDistance.html</a><br>
&gt; &gt;<br>
&gt; &gt; Does that make sense?<br>
&gt; &gt;<br>
&gt; &gt; &gt; Thank you.<br>
&gt; &gt; &gt; -Laurent<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Sun, Jun 23, 2013 at 12:31 PM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Laurent,<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; For this special case of computing the intersection between a polydata<br>
&gt; &gt; &gt;&gt; and a plane, you can use a little trick. First, you can compute a new<br>
&gt; &gt; &gt;&gt; point data set for your polydata with,say, the z coordinates of each<br>
&gt; &gt; &gt;&gt; point in the polydata. Then, to get the intersection with an xy plane,<br>
&gt; &gt; &gt;&gt; you then use the vtkContourFilter operating on this coordinate point<br>
&gt; &gt; &gt;&gt; data and specify the z value that corresponds to your plane. The<br>
&gt; &gt; &gt;&gt; result should be equivalent to the intersection of the polydata with<br>
&gt; &gt; &gt;&gt; that plane.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; It should be relatively fast to compute the contour, so you can<br>
&gt; &gt; &gt;&gt; probably do this interactively.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Hope that helps,<br>
&gt; &gt; &gt;&gt; Cory<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; On Sat, Jun 22, 2013 at 2:46 PM, Laurent Chauvin<br>
&gt; &gt; &gt;&gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; &gt; &gt;&gt; &gt; Hello,<br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt; I&#39;m working on Slicer, and I was trying to find a nice way to<br>
&gt; display<br>
&gt; &gt; &gt;&gt; &gt; intersection between polydata and a plane.<br>
&gt; &gt; &gt;&gt; &gt; I read we could use a vtkCutter, but the thing is, I would like to<br>
&gt; do<br>
&gt; &gt; &gt;&gt; &gt; this<br>
&gt; &gt; &gt;&gt; &gt; interactively. I want to be able to move the plane, and update the<br>
&gt; &gt; &gt;&gt; &gt; intersection while moving the plane.<br>
&gt; &gt; &gt;&gt; &gt; I&#39;m not sure using vtkCutter for this purpose would work. I think<br>
&gt; &gt; &gt;&gt; &gt; vtkCutter<br>
&gt; &gt; &gt;&gt; &gt; will take some times to execute, then moving the plane will be slow.<br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt; I know this question has been asked before, but I would like if<br>
&gt; there<br>
&gt; &gt; &gt;&gt; &gt; were<br>
&gt; &gt; &gt;&gt; &gt; some update since then. New widgets or object that I could use for<br>
&gt; &gt; that<br>
&gt; &gt; &gt;&gt; &gt; ?<br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt; I was thinking using vtkImageReslice, get polydata of the plane and<br>
&gt; &gt; &gt;&gt; &gt; compute<br>
&gt; &gt; &gt;&gt; &gt; the intersection between the 2 polydata, but I think it would also<br>
&gt; be<br>
&gt; &gt; to<br>
&gt; &gt; &gt;&gt; &gt; computing intensive to be able to do it smoothly with an interactive<br>
&gt; &gt; &gt;&gt; &gt; plane.<br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt; Thank you.<br>
&gt; &gt; &gt;&gt; &gt; -Laurent<br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt; _______________________________________________<br>
&gt; &gt; &gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt; &gt; &gt;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt; &gt; &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;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; &gt; &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;&gt; &gt;<br>
&gt; &gt; &gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt; &gt; &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;&gt; &gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; --<br>
&gt; &gt; &gt;&gt; Cory Quammen<br>
&gt; &gt; &gt;&gt; Research Associate<br>
&gt; &gt; &gt;&gt; Department of Computer Science<br>
&gt; &gt; &gt;&gt; The University of North Carolina at Chapel Hill<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; Laurent Chauvin, MS<br>
&gt; &gt; &gt; Surgical Navigation and Robotics Laboratory, Radiology<br>
&gt; &gt; &gt; Brigham And Women&#39;s Hospital, Harvard Medical School<br>
&gt; &gt; &gt; <a href="http://wiki.ncigt.org/index.php/User:Lchauvin" target="_blank">http://wiki.ncigt.org/index.php/User:Lchauvin</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Cory Quammen<br>
&gt; &gt; Research Associate<br>
&gt; &gt; Department of Computer Science<br>
&gt; &gt; The University of North Carolina at Chapel Hill<br>
&gt; &gt; -------------- next part --------------<br>
&gt; &gt; A non-text attachment was scrubbed...<br>
&gt; &gt; Name: PlaneIntersectionExample.pvsm<br>
&gt; &gt; Type: application/octet-stream<br>
&gt; &gt; Size: 119252 bytes<br>
&gt; &gt; Desc: not available<br>
&gt; &gt; URL: &lt;<br>
&gt; &gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/a4f8c898/attachment.obj" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/a4f8c898/attachment.obj</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; vtkusers mailing list<br>
&gt; &gt; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><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; &gt; End of vtkusers Digest, Vol 110, Issue 31<br>
&gt; &gt; *****************************************<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; *Best  Regards<br>
&gt; Rahul Indoria<br>
&gt; Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212" target="_blank">+49-157-35652212</a>*<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/9490191a/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/9490191a/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 2<br>
&gt; Date: Mon, 24 Jun 2013 10:20:15 -0400<br>
&gt; From: Laurent Chauvin &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt;<br>
&gt; Subject: Re: [vtkusers] Plane polydata intersection<br>
&gt; To: Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt;<br>
&gt; Cc: &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID: &lt;<a href="mailto:74BDA439-1EE1-430A-B61E-A0CCD569634B@bwh.harvard.edu" target="_blank">74BDA439-1EE1-430A-B61E-A0CCD569634B@bwh.harvard.edu</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; Hi Cory,<br>
&gt;<br>
&gt; Thank you for your reply.<br>
&gt;<br>
&gt; However, you said I have to compute distance from each point to my plane,<br>
&gt; then use vtkContourFilter.<br>
&gt; But I think it would be really heavy computation to compute distance from<br>
&gt; each point to the plane every time I move the plane, isn&#39;t it ?<br>
&gt;<br>
&gt; I would like to be able to display the intersection while the plane is<br>
&gt; moving. If I have a polydata like a bone or a skull or something like that,<br>
&gt; it would be really long to compute this distance, isn&#39;t it ?<br>
&gt;<br>
&gt; Thank you.<br>
&gt; -Laurent<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Jun 24, 2013, at 10:04 AM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Sun, Jun 23, 2013 at 12:41 PM, Laurent Chauvin<br>
&gt; &gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; &gt;&gt; Hi Cory,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thank you very much for your reply.<br>
&gt; &gt;&gt; However, I&#39;m not sure to understand what you mean.<br>
&gt; &gt;&gt; Should I create a new polydata with all points at the same z<br>
&gt; coordinates ?<br>
&gt; &gt;<br>
&gt; &gt; Laurent,<br>
&gt; &gt;<br>
&gt; &gt; You don&#39;t need to create a new polydata. Instead, you can add a new<br>
&gt; &gt; vtkDataArray (likely a vtkFloatArray or vtkDataArray in this case) to<br>
&gt; &gt; the point data of whatever polydata you already have by using<br>
&gt; &gt; vtkPolyData::GetPointData()-&gt;AddArray(...).<br>
&gt; &gt;<br>
&gt; &gt; For axis-aligned planes, this new array could simply contain the x, y,<br>
&gt; &gt; or z coordinate of each of the points in your vtkPolyData. If you want<br>
&gt; &gt; an intersection of your poly data with a plane spanning x and y, you<br>
&gt; &gt; would add a point data array storing all the z values. You can then<br>
&gt; &gt; use the vtkContourFilter to get the polydata consisting of line<br>
&gt; &gt; segments that represents the intersection of your polydata with the<br>
&gt; &gt; plane at a given z value by specifying that z value as the isolevel<br>
&gt; &gt; for the contour filter. You have to make sure you tell the<br>
&gt; &gt; vtkContourFilter to use your new coordinate array.<br>
&gt; &gt;<br>
&gt; &gt; For an quick example of this concept, I&#39;ve attached a simple ParaView<br>
&gt; &gt; statefile showing how you can do this for a cylinder polydata. In this<br>
&gt; &gt; example, I&#39;ve specified my plane as spanning the x and y coordinates<br>
&gt; &gt; with z value 0.2. In ParaView, I&#39;ve used the Calculator to compute the<br>
&gt; &gt; array consisting of the z coordinates of each point in the cylinder.<br>
&gt; &gt; Forgive me if you don&#39;t have ParaView installed, we use it all the<br>
&gt; &gt; time when prototyping visualizations.<br>
&gt; &gt;<br>
&gt; &gt;&gt; Does this work with some oblique planes ( not parallel to x,y, or z<br>
&gt; axis ) ?<br>
&gt; &gt;<br>
&gt; &gt; For the general case of an arbitrary plane, you would want to compute<br>
&gt; &gt; the distance from each point your desired plan instead of creating a<br>
&gt; &gt; new array containing the x, y, or z coordinates of each point. Then<br>
&gt; &gt; you would set the vtkContourFilter isolevel to 0. The point plane<br>
&gt; &gt; calculation is pretty simple:<br>
&gt; &gt; <a href="http://mathworld.wolfram.com/Point-PlaneDistance.html" target="_blank">http://mathworld.wolfram.com/Point-PlaneDistance.html</a><br>
&gt; &gt;<br>
&gt; &gt; Does that make sense?<br>
&gt; &gt;<br>
&gt; &gt;&gt; Thank you.<br>
&gt; &gt;&gt; -Laurent<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Sun, Jun 23, 2013 at 12:31 PM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Laurent,<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; For this special case of computing the intersection between a polydata<br>
&gt; &gt;&gt;&gt; and a plane, you can use a little trick. First, you can compute a new<br>
&gt; &gt;&gt;&gt; point data set for your polydata with,say, the z coordinates of each<br>
&gt; &gt;&gt;&gt; point in the polydata. Then, to get the intersection with an xy plane,<br>
&gt; &gt;&gt;&gt; you then use the vtkContourFilter operating on this coordinate point<br>
&gt; &gt;&gt;&gt; data and specify the z value that corresponds to your plane. The<br>
&gt; &gt;&gt;&gt; result should be equivalent to the intersection of the polydata with<br>
&gt; &gt;&gt;&gt; that plane.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; It should be relatively fast to compute the contour, so you can<br>
&gt; &gt;&gt;&gt; probably do this interactively.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Hope that helps,<br>
&gt; &gt;&gt;&gt; Cory<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; On Sat, Jun 22, 2013 at 2:46 PM, Laurent Chauvin<br>
&gt; &gt;&gt;&gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; &gt;&gt;&gt;&gt; Hello,<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; I&#39;m working on Slicer, and I was trying to find a nice way to display<br>
&gt; &gt;&gt;&gt;&gt; intersection between polydata and a plane.<br>
&gt; &gt;&gt;&gt;&gt; I read we could use a vtkCutter, but the thing is, I would like to do<br>
&gt; &gt;&gt;&gt;&gt; this<br>
&gt; &gt;&gt;&gt;&gt; interactively. I want to be able to move the plane, and update the<br>
&gt; &gt;&gt;&gt;&gt; intersection while moving the plane.<br>
&gt; &gt;&gt;&gt;&gt; I&#39;m not sure using vtkCutter for this purpose would work. I think<br>
&gt; &gt;&gt;&gt;&gt; vtkCutter<br>
&gt; &gt;&gt;&gt;&gt; will take some times to execute, then moving the plane will be slow.<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; I know this question has been asked before, but I would like if there<br>
&gt; &gt;&gt;&gt;&gt; were<br>
&gt; &gt;&gt;&gt;&gt; some update since then. New widgets or object that I could use for<br>
&gt; that<br>
&gt; &gt;&gt;&gt;&gt; ?<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; I was thinking using vtkImageReslice, get polydata of the plane and<br>
&gt; &gt;&gt;&gt;&gt; compute<br>
&gt; &gt;&gt;&gt;&gt; the intersection between the 2 polydata, but I think it would also be<br>
&gt; to<br>
&gt; &gt;&gt;&gt;&gt; computing intensive to be able to do it smoothly with an interactive<br>
&gt; &gt;&gt;&gt;&gt; plane.<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Thank you.<br>
&gt; &gt;&gt;&gt;&gt; -Laurent<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; _______________________________________________<br>
&gt; &gt;&gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Visit other Kitware open-source projects at<br>
&gt; &gt;&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;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; &gt;&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;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; &gt;&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;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; --<br>
&gt; &gt;&gt;&gt; Cory Quammen<br>
&gt; &gt;&gt;&gt; Research Associate<br>
&gt; &gt;&gt;&gt; Department of Computer Science<br>
&gt; &gt;&gt;&gt; The University of North Carolina at Chapel Hill<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; Laurent Chauvin, MS<br>
&gt; &gt;&gt; Surgical Navigation and Robotics Laboratory, Radiology<br>
&gt; &gt;&gt; Brigham And Women&#39;s Hospital, Harvard Medical School<br>
&gt; &gt;&gt; <a href="http://wiki.ncigt.org/index.php/User:Lchauvin" target="_blank">http://wiki.ncigt.org/index.php/User:Lchauvin</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Cory Quammen<br>
&gt; &gt; Research Associate<br>
&gt; &gt; Department of Computer Science<br>
&gt; &gt; The University of North Carolina at Chapel Hill<br>
&gt; &gt; &lt;PlaneIntersectionExample.pvsm&gt;<br>
&gt;<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/84634e38/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/84634e38/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 3<br>
&gt; Date: Mon, 24 Jun 2013 10:44:29 -0400<br>
&gt; From: Dean Inglis &lt;<a href="mailto:inglis.dl@gmail.com" target="_blank">inglis.dl@gmail.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] synchronous update between vtkImagePlaneWidget<br>
&gt;         and     vtkResliceCursorWidget<br>
&gt; To: ljp19890525 &lt;<a href="mailto:ljp19890525@163.com" target="_blank">ljp19890525@163.com</a>&gt;<br>
&gt; Cc: &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;         &lt;CABX+von=ToFhe54mk_p=JczfgXE66aOcjYnf+DN1M_hz5O=<br>
&gt; <a href="mailto:1qg@mail.gmail.com" target="_blank">1qg@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; try the following code snippet.  Basically, create a callback class wherein<br>
&gt; you decide how to update the reslice cursor widget from the image plane<br>
&gt; widget.<br>
&gt; Add the callback to listen for the image plane widget&#39;s InteractionEvent.<br>
&gt;<br>
&gt; regards,<br>
&gt; Dean<br>
&gt;<br>
&gt;<br>
&gt; class myCallback : public vtkCommand<br>
&gt; {<br>
&gt;   public:<br>
&gt;     static myCallback *New() {<br>
&gt;       return new myCallback; }<br>
&gt;<br>
&gt;     void Execute( vtkObject* vtkNotUsed(caller), unsigned long<br>
&gt; vtkNotUsed(event),<br>
&gt;                   void * vtkNotUsed(callData) )<br>
&gt;     {<br>
&gt;       /** do something with ipwidget and rcwidget when the ipwidget fires a<br>
&gt;            an interaction event signal */<br>
&gt;     }<br>
&gt;<br>
&gt;  myCallback():ipwidget( 0 ), rcwidget( 0 ){}<br>
&gt;   ~myCallback(){ this-&gt;ipwidget= 0; this-&gt;rcwidget = 0; }<br>
&gt;   vtkImagePlaneWidget* ipwidget;<br>
&gt;   vtkResliceCursorWidget* rcwidget;<br>
&gt; };<br>
&gt;<br>
&gt;<br>
&gt; void myclass::some_setup_method()<br>
&gt; {<br>
&gt;   vtkSmartPointer&lt;myCallback&gt; cbk = vtkSmartPointer&lt;myCallback&gt;::New();<br>
&gt;   cbk-&gt;ipwidget = this-&gt;ipwidget;<br>
&gt;   cbk-&gt;rcwidget = this-&gt;rcwidget;<br>
&gt;   this-&gt;ipwidget-&gt;AddObserver( vtkCommand::InteractionEvent, cbk );<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Jun 20, 2013 at 10:15 PM, nil_debug &lt;<a href="mailto:ljp19890525@163.com" target="_blank">ljp19890525@163.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; **<br>
&gt; &gt; Hello,<br>
&gt; &gt; Is anyone can help me? Now I have defined a vtkImagePlaneWidget and a<br>
&gt; &gt; vtkResliceCursorWidget,  I would like to when dragging the<br>
&gt; &gt;  vtkImagePlaneWidget the   vtkResliceCursorWidget can move.In a word  I<br>
&gt; &gt; don&#39;t know how to a &quot;AddObserver&quot; for the vtkImagePlaneWidget from<br>
&gt; &gt; the vtkResliceCursorWidget! I do know  I should define a &quot;myCallBack&quot;,but<br>
&gt; &gt; How?<br>
&gt; &gt; Will be deeply grateful !<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt; nil_debug<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; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/2a076878/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/2a076878/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 4<br>
&gt; Date: Mon, 24 Jun 2013 10:46:10 -0400<br>
&gt; From: Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt;<br>
&gt; Subject: Re: [vtkusers] Plane polydata intersection<br>
&gt; To: Laurent Chauvin &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt;<br>
&gt; Cc: &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;         &lt;CANmPiKDicXmSpCLMJyZM5Q7-VA=<br>
&gt; <a href="mailto:0JuAPQn6Ke7X2bZZvDKf3kQ@mail.gmail.com" target="_blank">0JuAPQn6Ke7X2bZZvDKf3kQ@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=ISO-8859-1<br>
&gt;<br>
&gt; Laurent,<br>
&gt;<br>
&gt; If your plane doesn&#39;t change orientation, then you should be able to<br>
&gt; change your isolevel value as you move the plane along its normal,<br>
&gt; thereby avoiding the distance computation, e.g., compute the distance<br>
&gt; one time relative to the current plane, then add 5 to the isolevel if<br>
&gt; your plane moves 5 units along the plane normal, etc.<br>
&gt;<br>
&gt; For a non-geometry based approach, you might use custom shaders to<br>
&gt; compute the distance of each vertex to your plane and discard<br>
&gt; fragments that aren&#39;t within some distance to the plane. This would be<br>
&gt; fast but may suffer from giving you a more-than-one-pixel-thick<br>
&gt; representation of the intersection in parts of the scene closest to<br>
&gt; the camera and perhaps missing some pixels in parts of the scene<br>
&gt; furthest from the camera.<br>
&gt;<br>
&gt; Hope that helps,<br>
&gt; Cory<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jun 24, 2013 at 10:20 AM, Laurent Chauvin<br>
&gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; &gt; Hi Cory,<br>
&gt; &gt;<br>
&gt; &gt; Thank you for your reply.<br>
&gt; &gt;<br>
&gt; &gt; However, you said I have to compute distance from each point to my plane,<br>
&gt; &gt; then use vtkContourFilter.<br>
&gt; &gt; But I think it would be really heavy computation to compute distance from<br>
&gt; &gt; each point to the plane every time I move the plane, isn&#39;t it ?<br>
&gt; &gt;<br>
&gt; &gt; I would like to be able to display the intersection while the plane is<br>
&gt; &gt; moving. If I have a polydata like a bone or a skull or something like<br>
&gt; that,<br>
&gt; &gt; it would be really long to compute this distance, isn&#39;t it ?<br>
&gt; &gt;<br>
&gt; &gt; Thank you.<br>
&gt; &gt; -Laurent<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Jun 24, 2013, at 10:04 AM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; On Sun, Jun 23, 2013 at 12:41 PM, Laurent Chauvin<br>
&gt; &gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Hi Cory,<br>
&gt; &gt;<br>
&gt; &gt; Thank you very much for your reply.<br>
&gt; &gt; However, I&#39;m not sure to understand what you mean.<br>
&gt; &gt; Should I create a new polydata with all points at the same z coordinates<br>
&gt; ?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Laurent,<br>
&gt; &gt;<br>
&gt; &gt; You don&#39;t need to create a new polydata. Instead, you can add a new<br>
&gt; &gt; vtkDataArray (likely a vtkFloatArray or vtkDataArray in this case) to<br>
&gt; &gt; the point data of whatever polydata you already have by using<br>
&gt; &gt; vtkPolyData::GetPointData()-&gt;AddArray(...).<br>
&gt; &gt;<br>
&gt; &gt; For axis-aligned planes, this new array could simply contain the x, y,<br>
&gt; &gt; or z coordinate of each of the points in your vtkPolyData. If you want<br>
&gt; &gt; an intersection of your poly data with a plane spanning x and y, you<br>
&gt; &gt; would add a point data array storing all the z values. You can then<br>
&gt; &gt; use the vtkContourFilter to get the polydata consisting of line<br>
&gt; &gt; segments that represents the intersection of your polydata with the<br>
&gt; &gt; plane at a given z value by specifying that z value as the isolevel<br>
&gt; &gt; for the contour filter. You have to make sure you tell the<br>
&gt; &gt; vtkContourFilter to use your new coordinate array.<br>
&gt; &gt;<br>
&gt; &gt; For an quick example of this concept, I&#39;ve attached a simple ParaView<br>
&gt; &gt; statefile showing how you can do this for a cylinder polydata. In this<br>
&gt; &gt; example, I&#39;ve specified my plane as spanning the x and y coordinates<br>
&gt; &gt; with z value 0.2. In ParaView, I&#39;ve used the Calculator to compute the<br>
&gt; &gt; array consisting of the z coordinates of each point in the cylinder.<br>
&gt; &gt; Forgive me if you don&#39;t have ParaView installed, we use it all the<br>
&gt; &gt; time when prototyping visualizations.<br>
&gt; &gt;<br>
&gt; &gt; Does this work with some oblique planes ( not parallel to x,y, or z axis<br>
&gt; ) ?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; For the general case of an arbitrary plane, you would want to compute<br>
&gt; &gt; the distance from each point your desired plan instead of creating a<br>
&gt; &gt; new array containing the x, y, or z coordinates of each point. Then<br>
&gt; &gt; you would set the vtkContourFilter isolevel to 0. The point plane<br>
&gt; &gt; calculation is pretty simple:<br>
&gt; &gt; <a href="http://mathworld.wolfram.com/Point-PlaneDistance.html" target="_blank">http://mathworld.wolfram.com/Point-PlaneDistance.html</a><br>
&gt; &gt;<br>
&gt; &gt; Does that make sense?<br>
&gt; &gt;<br>
&gt; &gt; Thank you.<br>
&gt; &gt; -Laurent<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Sun, Jun 23, 2013 at 12:31 PM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Laurent,<br>
&gt; &gt;<br>
&gt; &gt; For this special case of computing the intersection between a polydata<br>
&gt; &gt; and a plane, you can use a little trick. First, you can compute a new<br>
&gt; &gt; point data set for your polydata with,say, the z coordinates of each<br>
&gt; &gt; point in the polydata. Then, to get the intersection with an xy plane,<br>
&gt; &gt; you then use the vtkContourFilter operating on this coordinate point<br>
&gt; &gt; data and specify the z value that corresponds to your plane. The<br>
&gt; &gt; result should be equivalent to the intersection of the polydata with<br>
&gt; &gt; that plane.<br>
&gt; &gt;<br>
&gt; &gt; It should be relatively fast to compute the contour, so you can<br>
&gt; &gt; probably do this interactively.<br>
&gt; &gt;<br>
&gt; &gt; Hope that helps,<br>
&gt; &gt; Cory<br>
&gt; &gt;<br>
&gt; &gt; On Sat, Jun 22, 2013 at 2:46 PM, Laurent Chauvin<br>
&gt; &gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Hello,<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m working on Slicer, and I was trying to find a nice way to display<br>
&gt; &gt; intersection between polydata and a plane.<br>
&gt; &gt; I read we could use a vtkCutter, but the thing is, I would like to do<br>
&gt; &gt; this<br>
&gt; &gt; interactively. I want to be able to move the plane, and update the<br>
&gt; &gt; intersection while moving the plane.<br>
&gt; &gt; I&#39;m not sure using vtkCutter for this purpose would work. I think<br>
&gt; &gt; vtkCutter<br>
&gt; &gt; will take some times to execute, then moving the plane will be slow.<br>
&gt; &gt;<br>
&gt; &gt; I know this question has been asked before, but I would like if there<br>
&gt; &gt; were<br>
&gt; &gt; some update since then. New widgets or object that I could use for that<br>
&gt; &gt; ?<br>
&gt; &gt;<br>
&gt; &gt; I was thinking using vtkImageReslice, get polydata of the plane and<br>
&gt; &gt; compute<br>
&gt; &gt; the intersection between the 2 polydata, but I think it would also be to<br>
&gt; &gt; computing intensive to be able to do it smoothly with an interactive<br>
&gt; &gt; plane.<br>
&gt; &gt;<br>
&gt; &gt; Thank you.<br>
&gt; &gt; -Laurent<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<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; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Cory Quammen<br>
&gt; &gt; Research Associate<br>
&gt; &gt; Department of Computer Science<br>
&gt; &gt; The University of North Carolina at Chapel Hill<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Laurent Chauvin, MS<br>
&gt; &gt; Surgical Navigation and Robotics Laboratory, Radiology<br>
&gt; &gt; Brigham And Women&#39;s Hospital, Harvard Medical School<br>
&gt; &gt; <a href="http://wiki.ncigt.org/index.php/User:Lchauvin" target="_blank">http://wiki.ncigt.org/index.php/User:Lchauvin</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Cory Quammen<br>
&gt; &gt; Research Associate<br>
&gt; &gt; Department of Computer Science<br>
&gt; &gt; The University of North Carolina at Chapel Hill<br>
&gt; &gt; &lt;PlaneIntersectionExample.pvsm&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Cory Quammen<br>
&gt; Research Associate<br>
&gt; Department of Computer Science<br>
&gt; The University of North Carolina at Chapel Hill<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 5<br>
&gt; Date: Mon, 24 Jun 2013 11:05:39 -0400<br>
&gt; From: Laurent Chauvin &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt;<br>
&gt; Subject: Re: [vtkusers] Plane polydata intersection<br>
&gt; To: Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt;<br>
&gt; Cc: &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID: &lt;<a href="mailto:339D1015-DE2E-4A6E-9E74-F78C876AE7DF@bwh.harvard.edu" target="_blank">339D1015-DE2E-4A6E-9E74-F78C876AE7DF@bwh.harvard.edu</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; Hi Cory.<br>
&gt;<br>
&gt; Indeed the plane I will use can change position and direction.<br>
&gt;<br>
&gt; Please, could you explain what is custom shaders and how to use them to<br>
&gt; compute distance ?<br>
&gt;<br>
&gt; Thank you.<br>
&gt; -Laurent<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Jun 24, 2013, at 10:46 AM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Laurent,<br>
&gt; &gt;<br>
&gt; &gt; If your plane doesn&#39;t change orientation, then you should be able to<br>
&gt; &gt; change your isolevel value as you move the plane along its normal,<br>
&gt; &gt; thereby avoiding the distance computation, e.g., compute the distance<br>
&gt; &gt; one time relative to the current plane, then add 5 to the isolevel if<br>
&gt; &gt; your plane moves 5 units along the plane normal, etc.<br>
&gt; &gt;<br>
&gt; &gt; For a non-geometry based approach, you might use custom shaders to<br>
&gt; &gt; compute the distance of each vertex to your plane and discard<br>
&gt; &gt; fragments that aren&#39;t within some distance to the plane. This would be<br>
&gt; &gt; fast but may suffer from giving you a more-than-one-pixel-thick<br>
&gt; &gt; representation of the intersection in parts of the scene closest to<br>
&gt; &gt; the camera and perhaps missing some pixels in parts of the scene<br>
&gt; &gt; furthest from the camera.<br>
&gt; &gt;<br>
&gt; &gt; Hope that helps,<br>
&gt; &gt; Cory<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Mon, Jun 24, 2013 at 10:20 AM, Laurent Chauvin<br>
&gt; &gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; &gt;&gt; Hi Cory,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thank you for your reply.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; However, you said I have to compute distance from each point to my<br>
&gt; plane,<br>
&gt; &gt;&gt; then use vtkContourFilter.<br>
&gt; &gt;&gt; But I think it would be really heavy computation to compute distance<br>
&gt; from<br>
&gt; &gt;&gt; each point to the plane every time I move the plane, isn&#39;t it ?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I would like to be able to display the intersection while the plane is<br>
&gt; &gt;&gt; moving. If I have a polydata like a bone or a skull or something like<br>
&gt; that,<br>
&gt; &gt;&gt; it would be really long to compute this distance, isn&#39;t it ?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thank you.<br>
&gt; &gt;&gt; -Laurent<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Jun 24, 2013, at 10:04 AM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Sun, Jun 23, 2013 at 12:41 PM, Laurent Chauvin<br>
&gt; &gt;&gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hi Cory,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thank you very much for your reply.<br>
&gt; &gt;&gt; However, I&#39;m not sure to understand what you mean.<br>
&gt; &gt;&gt; Should I create a new polydata with all points at the same z<br>
&gt; coordinates ?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Laurent,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; You don&#39;t need to create a new polydata. Instead, you can add a new<br>
&gt; &gt;&gt; vtkDataArray (likely a vtkFloatArray or vtkDataArray in this case) to<br>
&gt; &gt;&gt; the point data of whatever polydata you already have by using<br>
&gt; &gt;&gt; vtkPolyData::GetPointData()-&gt;AddArray(...).<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; For axis-aligned planes, this new array could simply contain the x, y,<br>
&gt; &gt;&gt; or z coordinate of each of the points in your vtkPolyData. If you want<br>
&gt; &gt;&gt; an intersection of your poly data with a plane spanning x and y, you<br>
&gt; &gt;&gt; would add a point data array storing all the z values. You can then<br>
&gt; &gt;&gt; use the vtkContourFilter to get the polydata consisting of line<br>
&gt; &gt;&gt; segments that represents the intersection of your polydata with the<br>
&gt; &gt;&gt; plane at a given z value by specifying that z value as the isolevel<br>
&gt; &gt;&gt; for the contour filter. You have to make sure you tell the<br>
&gt; &gt;&gt; vtkContourFilter to use your new coordinate array.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; For an quick example of this concept, I&#39;ve attached a simple ParaView<br>
&gt; &gt;&gt; statefile showing how you can do this for a cylinder polydata. In this<br>
&gt; &gt;&gt; example, I&#39;ve specified my plane as spanning the x and y coordinates<br>
&gt; &gt;&gt; with z value 0.2. In ParaView, I&#39;ve used the Calculator to compute the<br>
&gt; &gt;&gt; array consisting of the z coordinates of each point in the cylinder.<br>
&gt; &gt;&gt; Forgive me if you don&#39;t have ParaView installed, we use it all the<br>
&gt; &gt;&gt; time when prototyping visualizations.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Does this work with some oblique planes ( not parallel to x,y, or z<br>
&gt; axis ) ?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; For the general case of an arbitrary plane, you would want to compute<br>
&gt; &gt;&gt; the distance from each point your desired plan instead of creating a<br>
&gt; &gt;&gt; new array containing the x, y, or z coordinates of each point. Then<br>
&gt; &gt;&gt; you would set the vtkContourFilter isolevel to 0. The point plane<br>
&gt; &gt;&gt; calculation is pretty simple:<br>
&gt; &gt;&gt; <a href="http://mathworld.wolfram.com/Point-PlaneDistance.html" target="_blank">http://mathworld.wolfram.com/Point-PlaneDistance.html</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Does that make sense?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thank you.<br>
&gt; &gt;&gt; -Laurent<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Sun, Jun 23, 2013 at 12:31 PM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Laurent,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; For this special case of computing the intersection between a polydata<br>
&gt; &gt;&gt; and a plane, you can use a little trick. First, you can compute a new<br>
&gt; &gt;&gt; point data set for your polydata with,say, the z coordinates of each<br>
&gt; &gt;&gt; point in the polydata. Then, to get the intersection with an xy plane,<br>
&gt; &gt;&gt; you then use the vtkContourFilter operating on this coordinate point<br>
&gt; &gt;&gt; data and specify the z value that corresponds to your plane. The<br>
&gt; &gt;&gt; result should be equivalent to the intersection of the polydata with<br>
&gt; &gt;&gt; that plane.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; It should be relatively fast to compute the contour, so you can<br>
&gt; &gt;&gt; probably do this interactively.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hope that helps,<br>
&gt; &gt;&gt; Cory<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Sat, Jun 22, 2013 at 2:46 PM, Laurent Chauvin<br>
&gt; &gt;&gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hello,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I&#39;m working on Slicer, and I was trying to find a nice way to display<br>
&gt; &gt;&gt; intersection between polydata and a plane.<br>
&gt; &gt;&gt; I read we could use a vtkCutter, but the thing is, I would like to do<br>
&gt; &gt;&gt; this<br>
&gt; &gt;&gt; interactively. I want to be able to move the plane, and update the<br>
&gt; &gt;&gt; intersection while moving the plane.<br>
&gt; &gt;&gt; I&#39;m not sure using vtkCutter for this purpose would work. I think<br>
&gt; &gt;&gt; vtkCutter<br>
&gt; &gt;&gt; will take some times to execute, then moving the plane will be slow.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I know this question has been asked before, but I would like if there<br>
&gt; &gt;&gt; were<br>
&gt; &gt;&gt; some update since then. New widgets or object that I could use for that<br>
&gt; &gt;&gt; ?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I was thinking using vtkImageReslice, get polydata of the plane and<br>
&gt; &gt;&gt; compute<br>
&gt; &gt;&gt; the intersection between the 2 polydata, but I think it would also be to<br>
&gt; &gt;&gt; computing intensive to be able to do it smoothly with an interactive<br>
&gt; &gt;&gt; plane.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thank you.<br>
&gt; &gt;&gt; -Laurent<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<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; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; Cory Quammen<br>
&gt; &gt;&gt; Research Associate<br>
&gt; &gt;&gt; Department of Computer Science<br>
&gt; &gt;&gt; The University of North Carolina at Chapel Hill<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; Laurent Chauvin, MS<br>
&gt; &gt;&gt; Surgical Navigation and Robotics Laboratory, Radiology<br>
&gt; &gt;&gt; Brigham And Women&#39;s Hospital, Harvard Medical School<br>
&gt; &gt;&gt; <a href="http://wiki.ncigt.org/index.php/User:Lchauvin" target="_blank">http://wiki.ncigt.org/index.php/User:Lchauvin</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; Cory Quammen<br>
&gt; &gt;&gt; Research Associate<br>
&gt; &gt;&gt; Department of Computer Science<br>
&gt; &gt;&gt; The University of North Carolina at Chapel Hill<br>
&gt; &gt;&gt; &lt;PlaneIntersectionExample.pvsm&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Cory Quammen<br>
&gt; &gt; Research Associate<br>
&gt; &gt; Department of Computer Science<br>
&gt; &gt; The University of North Carolina at Chapel Hill<br>
&gt;<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/f599a5c7/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/f599a5c7/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 6<br>
&gt; Date: Mon, 24 Jun 2013 15:32:32 +0000<br>
&gt; From: David Cole &lt;<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] vtkborderwidget in vtk6.0rc3<br>
&gt; To: &quot; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a> &quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;, chasank<br>
&gt;         &lt;<a href="mailto:chasank@gmail.com" target="_blank">chasank@gmail.com</a>&gt;<br>
&gt; Message-ID: &lt;<a href="mailto:20130624153446.3248465791@public.kitware.com" target="_blank">20130624153446.3248465791@public.kitware.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt;<br>
&gt; &gt; Although vtk5.10.1 has vtkBorderWidget class, vtk6.0rc3 has not<br>
&gt; &gt; vtkBorderWidget class. Also, this class is not marked as deprecated in<br>
&gt; &gt; deprecated list (<a href="http://www.vtk.org/doc/nightly/html/deprecated.html" target="_blank">http://www.vtk.org/doc/nightly/html/deprecated.html</a>). I<br>
&gt; &gt; wonder whether vtk6.0 stable version will have this class. If not, which<br>
&gt; &gt; class will be used instead of vtkBorderWidget in vtk6.0 stable version.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; If I do a checkout of VTK 6.0.0.rc3:<br>
&gt;<br>
&gt; $ git checkout v6.0.0.rc3<br>
&gt;<br>
&gt;<br>
&gt; And then look for files with ?border? in the name:<br>
&gt;<br>
&gt; $ find . | grep -i border<br>
&gt; ./Interaction/Widgets/Testing/Cxx/TestBorderWidget.cxx<br>
&gt; ./Interaction/Widgets/Testing/Cxx/vtkBorderWidgetTest1.cxx<br>
&gt; ./Interaction/Widgets/vtkBorderRepresentation.cxx<br>
&gt; ./Interaction/Widgets/vtkBorderRepresentation.h<br>
&gt; ./Interaction/Widgets/vtkBorderWidget.cxx<br>
&gt; ./Interaction/Widgets/vtkBorderWidget.h<br>
&gt; ./Rendering/OpenGL/Testing/Cxx/TestImageResliceMapperBorder.cxx<br>
&gt; ./Rendering/OpenGL/Testing/Cxx/TestImageSliceMapperBorder.cxx<br>
&gt;<br>
&gt;<br>
&gt; They do indeed appear to be in VTK 6.0.0 rc3. I wonder why you don?t think<br>
&gt; they?re there...?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; HTH,<br>
&gt;<br>
&gt; David C.<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/bfe3d410/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/bfe3d410/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 7<br>
&gt; Date: Mon, 24 Jun 2013 11:39:19 -0400<br>
&gt; From: &quot;Marcus D. Hanwell&quot; &lt;<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] building vtk6, simple example<br>
&gt; To: Randy Heiland &lt;<a href="mailto:heiland@indiana.edu" target="_blank">heiland@indiana.edu</a>&gt;<br>
&gt; Cc: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; Message-ID:<br>
&gt;         &lt;CAMkPkZVtAAPd7UqEpS1_JvncYmbaRb0qJ4=<br>
&gt; <a href="mailto:E1RbwMQwcEvMSwA@mail.gmail.com" target="_blank">E1RbwMQwcEvMSwA@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; On Mon, Jun 24, 2013 at 9:25 AM, Randy Heiland &lt;<a href="mailto:heiland@indiana.edu" target="_blank">heiland@indiana.edu</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hello,<br>
&gt; &gt;<br>
&gt; &gt; Thought I&#39;d take a stab at VTK6 and will ask the about the build process,<br>
&gt; &gt; in general, as well as a specific link error, while I also dig a little<br>
&gt; &gt; deeper.  I did a simple cmake/build via:<br>
&gt; &gt; cmake  -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++<br>
&gt; &gt;  -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc  ../VTK6.0.0.rc3<br>
&gt; &gt;<br>
&gt; &gt; and make install.  Then I downloaded the tarball from here:<br>
&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/SimplePointsReader" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/SimplePointsReader</a> , did a<br>
&gt; &gt; successful cmake on it, but then got:<br>
&gt; &gt;<br>
&gt; &gt; ~/dev/vtk6-play/SimplePointsReader/build$ make<br>
&gt; &gt; Scanning dependencies of target SimplePointsReader<br>
&gt; &gt; [100%] Building CXX object<br>
&gt; &gt; CMakeFiles/SimplePointsReader.dir/SimplePointsReader.cxx.o<br>
&gt; &gt; Linking CXX executable<br>
&gt; &gt; SimplePointsReader.app/Contents/MacOS/SimplePointsReader<br>
&gt; &gt; ld: library not found for -lvtkFiltersParallelFlowPaths<br>
&gt; &gt; collect2: ld returned 1 exit status<br>
&gt; &gt;<br>
&gt; &gt; This seemed curious, since I hadn&#39;t turned on any parallel flags in the<br>
&gt; &gt; VTK cmake.  But sure enough, I saw that some parallel libs had been<br>
&gt; built,<br>
&gt; &gt; e.g.:<br>
&gt; &gt; ~/dev/vtk6-build$ ls /usr/local/lib/libvtk*Paral*.dylib<br>
&gt; &gt; /usr/local/lib/libvtkFiltersParallel-6.0.1.dylib*<br>
&gt; &gt; /usr/local/lib/libvtkFiltersParallel-6.0.dylib@<br>
&gt; &gt; /usr/local/lib/libvtkFiltersParallelImaging-6.0.1.dylib*<br>
&gt; &gt; /usr/local/lib/libvtkFiltersParallelImaging-6.0.dylib@<br>
&gt; &gt; /usr/local/lib/libvtkIOParallel-6.0.1.dylib*<br>
&gt; &gt; /usr/local/lib/libvtkIOParallel-6.0.dylib@<br>
&gt; &gt; /usr/local/lib/libvtkParallelCore-6.0.1.dylib*<br>
&gt; &gt; /usr/local/lib/libvtkParallelCore-6.0.dylib@<br>
&gt; &gt;<br>
&gt; &gt; Fwiw, I also have:<br>
&gt; &gt; ~/dev/vtk6-build$ grep parallel CMakeCache.txt |grep bool<br>
&gt; &gt; Module_vtkFiltersParallelFlowPaths:BOOL=OFF<br>
&gt; &gt; Module_vtkFiltersParallelGeometry:BOOL=OFF<br>
&gt; &gt; Module_vtkFiltersParallelMPI:BOOL=OFF<br>
&gt; &gt; Module_vtkFiltersParallelStatistics:BOOL=OFF<br>
&gt; &gt; Module_vtkIOMPIParallel:BOOL=OFF<br>
&gt; &gt; Module_vtkIOParallelExodus:BOOL=OFF<br>
&gt; &gt; Module_vtkIOParallelLSDyna:BOOL=OFF<br>
&gt; &gt; Module_vtkIOParallelNetCDF:BOOL=OFF<br>
&gt; &gt; Module_vtkInfovisParallel:BOOL=OFF<br>
&gt; &gt; Module_vtkParallelMPI:BOOL=OFF<br>
&gt; &gt; Module_vtkRenderingParallel:BOOL=OFF<br>
&gt; &gt;<br>
&gt; &gt; So, a couple questions - why are parallel libs being built and why does<br>
&gt; &gt; this example seem to require them?  Apologies if I missed info on the<br>
&gt; wiki,<br>
&gt; &gt; etc.<br>
&gt; &gt;<br>
&gt;<br>
&gt; Part of this stems from the CMakeLists.txt in the example - if you use<br>
&gt; find_package(VTK) without specifying components then use ${VTK_LIBRARIES}<br>
&gt; you will basically link to everything VTK built. This is not normally what<br>
&gt; people want, and you can see the pre-6.0 version called out vtkHybrid. The<br>
&gt; wiki page below provides more background,<br>
&gt;<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK/Build_System_Migration" target="_blank">http://www.vtk.org/Wiki/VTK/Build_System_Migration</a><br>
&gt;<br>
&gt; It leads to the question of why the VTK you built thinks<br>
&gt; vtkFiltersParallelFlowPaths was enabled when it was now. We will build some<br>
&gt; of the parallel modules that do not require MPI for example - they are<br>
&gt; probably in the StandAlone group, although it is possible they would be<br>
&gt; better in a parallel group of their own. The examples attempt to work with<br>
&gt; VTK 5 and 6, adding the components would make that harder to achieve which<br>
&gt; is why I think their CMake code is written the way it is.<br>
&gt;<br>
&gt; Hope that makes it clearer, thanks for bringing this up. I would like to<br>
&gt; get to the bottom of why VTK has incorrectly labelled a module as enabled<br>
&gt; that was not built.<br>
&gt;<br>
&gt; Marcus<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/13bd033c/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/13bd033c/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 8<br>
&gt; Date: Mon, 24 Jun 2013 15:34:54 +0000<br>
&gt; From: David Cole &lt;<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] Render Control<br>
&gt; To: &quot; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a> &quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;, Max<br>
&gt;         &lt;<a href="mailto:smapersmaper@gmail.com" target="_blank">smapersmaper@gmail.com</a>&gt;<br>
&gt; Message-ID: &lt;<a href="mailto:20130624154152.DF67C63DED@public.kitware.com" target="_blank">20130624154152.DF67C63DED@public.kitware.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt;<br>
&gt; &gt; Hi David and thank you for the reply,<br>
&gt;<br>
&gt;<br>
&gt; sure, no problem.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; so what is the way to add the render control to the winform in 64 bit?<br>
&gt; &gt; Currently what I did:<br>
&gt;<br>
&gt; &gt;   ...<br>
&gt; &gt; well, it works in runtime<br>
&gt;<br>
&gt;<br>
&gt; Good, it?s supposed to.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; but it says it cannot find the kitware clr in<br>
&gt; &gt; design time.<br>
&gt;<br>
&gt;<br>
&gt; It?s right, because Visual Studio is a 32-bit host, and it CANNOT LOAD<br>
&gt; 64-bit controls. It can only load ?Any CPU? controls that can be<br>
&gt; just-in-time compiled to a 32-bit architecture. The ActiViz dlls cannot be<br>
&gt; just-in-time compiled to any old architecture -- it has to match the<br>
&gt; underlying native dlls that get loaded.<br>
&gt;<br>
&gt;<br>
&gt; So, this is normal and expected behavior in the case of ActiViz. It?s<br>
&gt; strange when you first encounter it, because there aren?t many .NET<br>
&gt; controls that have this type of native code dependency. But it is the way<br>
&gt; it is, and Visual Studio itself will probably never be a 64-bit app.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; Also i don&#39;t think that for it to work i need to install also 86 bit<br>
&gt; version<br>
&gt; &gt; of activiz<br>
&gt;<br>
&gt;<br>
&gt; Yes, you do, if you want to add it the ?normal? way you add things at<br>
&gt; design time in Visual Studio. You have to add it as the 32-bit control,<br>
&gt; then switch your application?s target architecture and swap the references<br>
&gt; to the 64-bit versions... Then just ignore the Visual Studio design-time<br>
&gt; ?errors? that you get. If you can build and run it, then it?s all working<br>
&gt; as best it can.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; i tried to add the control through kitware dll but it cannot find it...<br>
&gt; &gt; Something is not right here i think...<br>
&gt; &gt; Can you please tell me what i did wrong?<br>
&gt;<br>
&gt;<br>
&gt; I don?t think you?ve done anything wrong, because you say ?it works in<br>
&gt; runtime? -- if you had done something wrong, it wouldn?t.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; David C.<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130624/6aca9872/attachment.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/6aca9872/attachment.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; vtkusers mailing list<br>
&gt; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
&gt; End of vtkusers Digest, Vol 110, Issue 32<br>
&gt; *****************************************<br>
&gt;<br>
<br>
<br>
<br>
--<br>
*Best  Regards<br>
Rahul Indoria<br>
Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212" target="_blank">+49-157-35652212</a>*<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130702/f272dd82/attachment.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130702/f272dd82/attachment.htm</a>&gt;<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
vtkusers mailing list<br>
<a href="mailto:vtkusers@vtk.org" target="_blank">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 111, Issue 2<br>
****************************************<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(0,0,255)"><b>Best  Regards<br>Rahul Indoria<br>Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212" target="_blank">+49-157-35652212</a></b></span><br>
</div>
</font></span></div></div>
<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></blockquote></div><br></div>