<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, my question is :</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">are the mappers and filters same thing in VTK?</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">Looking forward your reply soon.</span><br style="font-family:arial,sans-serif;font-size:13px"></b><div class="gmail_extra">
<b><br></b></div><div class="gmail_extra" style><b>Regards</b></div><div class="gmail_extra" style><b><br></b></div><div class="gmail_extra" style><b>rahul indoria</b></div><div class="gmail_extra"><br></div><div class="gmail_extra">
<br></div><div class="gmail_extra"><br></div><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 Mon, Jun 24, 2013 at 5:41 PM,  <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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Send vtkusers mailing list submissions to<br>
        <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of vtkusers digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: vtkusers Digest, Vol 110, Issue 31 (rahul indoria)<br>
   2. Re: Plane polydata intersection (Laurent Chauvin)<br>
   3. Re: synchronous update between vtkImagePlaneWidget and<br>
      vtkResliceCursorWidget (Dean Inglis)<br>
   4. Re: Plane polydata intersection (Cory Quammen)<br>
   5. Re: Plane polydata intersection (Laurent Chauvin)<br>
   6. Re: vtkborderwidget in vtk6.0rc3 (David Cole)<br>
   7. Re: building vtk6, simple example (Marcus D. Hanwell)<br>
   8. Re: Render Control (David Cole)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 24 Jun 2013 16:16:46 +0200<br>
From: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] vtkusers Digest, Vol 110, Issue 31<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CAGQ%2B16J9HaSHfsxzKBM7Bv08fqqEYv07Tpq7SQRU2QLN%2BPeajg@mail.gmail.com">CAGQ+16J9HaSHfsxzKBM7Bv08fqqEYv07Tpq7SQRU2QLN+Peajg@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, my question is :<br>
<br>
are the mappers and filters same thing in VTK?<br>
<br>
Looking forward your reply soon.<br>
<br>
<br>
On Mon, Jun 24, 2013 at 4:04 PM, &lt;<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a>&gt; wrote:<br>
<br>
&gt; Send vtkusers mailing list submissions to<br>
&gt;         <a href="mailto:vtkusers@vtk.org">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">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">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: Plane polydata intersection (Cory Quammen)<br>
&gt;    2. Re: Plane polydata intersection (Laurent Chauvin)<br>
&gt;    3. vtkLineWidget with fix length (manzohar)<br>
&gt;    4. Problems building the Piston Library (UJJWAL aryan)<br>
&gt;    5. Re: Draw points with gaussian fade out (Michka Popoff)<br>
&gt;    6. Re: Render Control (David Cole)<br>
&gt;    7. Re: Render Control (Max)<br>
&gt;    8. VTK build with postfix d : error (Ashish Singh)<br>
&gt;    9. Re: VTK build with postfix d : error (Ashish Singh)<br>
&gt;   10. Generating a polyhedron cell from polydata in Python<br>
&gt;       (Gu?ni Karl Rosenkj?r)<br>
&gt;   11. building vtk6, simple example (Randy Heiland)<br>
&gt;   12. vtkborderwidget in vtk6.0rc3 (chasank)<br>
&gt;   13. Re: Plane polydata intersection (Cory Quammen)<br>
&gt;<br>
&gt;<br>
&gt; ----------------------------------------------------------------------<br>
&gt;<br>
&gt; Message: 1<br>
&gt; Date: Sun, 23 Jun 2013 12:31:56 -0400<br>
&gt; From: Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu">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">lchauvin@bwh.harvard.edu</a>&gt;<br>
&gt; Cc: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;         &lt;<br>
&gt; <a href="mailto:CANmPiKCPp3VM6moALR0XB2Rx2OkHQk_9R339ntO%2BAVgqhJHoFw@mail.gmail.com">CANmPiKCPp3VM6moALR0XB2Rx2OkHQk_9R339ntO+AVgqhJHoFw@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=ISO-8859-1<br>
&gt;<br>
&gt; Laurent,<br>
&gt;<br>
&gt; For this special case of computing the intersection between a polydata<br>
&gt; and a plane, you can use a little trick. First, you can compute a new<br>
&gt; point data set for your polydata with,say, the z coordinates of each<br>
&gt; point in the polydata. Then, to get the intersection with an xy plane,<br>
&gt; you then use the vtkContourFilter operating on this coordinate point<br>
&gt; data and specify the z value that corresponds to your plane. The<br>
&gt; result should be equivalent to the intersection of the polydata with<br>
&gt; that plane.<br>
&gt;<br>
&gt; It should be relatively fast to compute the contour, so you can<br>
&gt; probably do this interactively.<br>
&gt;<br>
&gt; Hope that helps,<br>
&gt; Cory<br>
&gt;<br>
&gt; On Sat, Jun 22, 2013 at 2:46 PM, Laurent Chauvin<br>
&gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu">lchauvin@bwh.harvard.edu</a>&gt; wrote:<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; 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; 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; were<br>
&gt; &gt; some update since then. New widgets or object that I could use for that ?<br>
&gt; &gt;<br>
&gt; &gt; I was thinking using vtkImageReslice, get polydata of the plane and<br>
&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; 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;<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: 2<br>
&gt; Date: Sun, 23 Jun 2013 12:41:39 -0400<br>
&gt; From: Laurent Chauvin &lt;<a href="mailto:lchauvin@bwh.harvard.edu">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">cquammen@cs.unc.edu</a>&gt;<br>
&gt; Cc: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;         &lt;<br>
&gt; <a href="mailto:CAPGPbaJZGVNO-vzOjuYr6532VHOZhc2nd8ncEV%2Bc14_2qWNxng@mail.gmail.com">CAPGPbaJZGVNO-vzOjuYr6532VHOZhc2nd8ncEV+c14_2qWNxng@mail.gmail.com</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 very much for your reply.<br>
&gt; However, I&#39;m not sure to understand what you mean.<br>
&gt; Should I create a new polydata with all points at the same z coordinates ?<br>
&gt;<br>
&gt; Does this work with some oblique planes ( not parallel to x,y, or z axis )<br>
&gt; ?<br>
&gt;<br>
&gt; Thank you.<br>
&gt; -Laurent<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Jun 23, 2013 at 12:31 PM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>&gt;<br>
&gt; wrote:<br>
&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">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;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Laurent Chauvin, MS<br>
&gt; Surgical Navigation and Robotics Laboratory, Radiology<br>
&gt; Brigham And Women&#39;s Hospital, Harvard Medical School<br>
&gt; <a href="http://wiki.ncigt.org/index.php/User:Lchauvin" target="_blank">http://wiki.ncigt.org/index.php/User:Lchauvin</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/20130623/42b4458e/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130623/42b4458e/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 3<br>
&gt; Date: Sun, 23 Jun 2013 10:42:03 -0700 (PDT)<br>
&gt; From: manzohar &lt;<a href="mailto:lancia58@gmail.com">lancia58@gmail.com</a>&gt;<br>
&gt; Subject: [vtkusers] vtkLineWidget with fix length<br>
&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; Message-ID: &lt;<a href="mailto:1372009323193-5721537.post@n5.nabble.com">1372009323193-5721537.post@n5.nabble.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;<br>
&gt; Is there a way to fix the length of the line of vtkLineWidget ?<br>
&gt;<br>
&gt; Thanks<br>
&gt; Zohar<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/vtkLineWidget-with-fix-length-tp5721537.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkLineWidget-with-fix-length-tp5721537.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 4<br>
&gt; Date: Mon, 24 Jun 2013 00:21:27 +0530<br>
&gt; From: UJJWAL aryan &lt;<a href="mailto:meetukme@gmail.com">meetukme@gmail.com</a>&gt;<br>
&gt; Subject: [vtkusers] Problems building the Piston Library<br>
&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; Message-ID:<br>
&gt;         &lt;CAJdiYKDwMO94-r6dcmnehJhgV76R1=n9bXE4d=<br>
&gt; <a href="mailto:SX0iR-iA0Dgw@mail.gmail.com">SX0iR-iA0Dgw@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt; I was trying to install *vtk 6.0.0.rc3* on my system and it was showing the<br>
&gt; error PISTON_INCLUDE_DIR NOT FOUND. So, I decided to download and install<br>
&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; building the Piston Library , it gave the following error :-<br>
&gt;<br>
&gt; *nvcc fatal   : A single input file is required for a non-link phase when<br>
&gt; an outputfile is specified. CMake Error at<br>
&gt; tutorial1GPU_generated_tutorial1.cu.o.cmake:206 (message):*<br>
&gt; * Error generating<br>
&gt;<br>
&gt; /usr/local/piston/build/tutorial/CMakeFiles/tutorial1GPU.dir//./tutorial1GPU_generated_tutorial1.cu.o<br>
&gt; *<br>
&gt;<br>
&gt; So, I opened *tutorial1GPU_generated_tutorial1.cu.o.cmake *in Vim and on<br>
&gt; line 80 i noticed something unusual. I noticed that in<br>
&gt; set(CUDA_NVCC_INCLUDE_ARGS ... only a part of the string was displayed in<br>
&gt; red while remaining part was simple white. The line was very long and i<br>
&gt; think, that after a certain number of characters like 5000 or so, the<br>
&gt; system was not recognizing any other character as a string.<br>
&gt;<br>
&gt; I am not sure but maybe that is the source of the problem. Kindly take a<br>
&gt; look into it and enlighten. I am attaching the *<br>
&gt; tutorial1GPU_generated_tutorial1.cu.o.cmake *with this mail.<br>
&gt;<br>
&gt; --<br>
&gt; Ujjwal<br>
&gt; IIIT Hyderabad<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/1adeb7f2/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/1adeb7f2/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt; -------------- next part --------------<br>
&gt; A non-text attachment was scrubbed...<br>
&gt; Name: tutorial1GPU_generated_tutorial1.cu.o.cmake<br>
&gt; Type: application/octet-stream<br>
&gt; Size: 27350 bytes<br>
&gt; Desc: not available<br>
&gt; URL: &lt;<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;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 5<br>
&gt; Date: Sun, 23 Jun 2013 23:47:08 +0200<br>
&gt; From: Michka Popoff &lt;<a href="mailto:michkapopoff@gmail.com">michkapopoff@gmail.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] Draw points with gaussian fade out<br>
&gt; To: &quot;Biddiscombe, John A.&quot; &lt;<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>&gt;<br>
&gt; Cc: vtkusers &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID: &lt;<a href="mailto:00C39685-9939-41E3-9EC7-75C462824A91@gmail.com">00C39685-9939-41E3-9EC7-75C462824A91@gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;windows-1252&quot;<br>
&gt;<br>
&gt; Thank you for the code. I looked at the pictures, it seems to do what I<br>
&gt; want.<br>
&gt;<br>
&gt; I am trying to install it but my knowledge is quite limited. As I<br>
&gt; understand I can build it without recompiling the whole VTK ? Hope I can<br>
&gt; get python bindings for it.<br>
&gt;<br>
&gt; I launched cmake on the folder, I got the two following errors :<br>
&gt;<br>
&gt; 1)<br>
&gt;<br>
&gt;  CMake Error at CMakeLists.txt:8 (INCLUDE):<br>
&gt;    include could not find load file:<br>
&gt;      CMakeMacros_CSCS.cmake<br>
&gt;<br>
&gt; I was not able to find this file. I looked on the internet, and downloaded<br>
&gt; some old Paraview and VTK&#39;s from 2006/2007, but was not able to find the<br>
&gt; file.<br>
&gt; So I removed the call to this file.<br>
&gt;<br>
&gt; 2)<br>
&gt;<br>
&gt;  CMake Error at CMakeLists.txt:93 (VTK_MAKE_INSTANTIATOR3):<br>
&gt;    Unknown CMake command &quot;VTK_MAKE_INSTANTIATOR3&quot;.<br>
&gt;<br>
&gt; Apparently this is due because VTK_MAKE_INSTANTIATOR3 is no more needed,<br>
&gt; so I also removed the line calling it.<br>
&gt;<br>
&gt; Now the cmake is able to finish it&#39;s configuration.<br>
&gt;<br>
&gt;<br>
&gt; Then I did a &quot;make&quot; and got the following error :<br>
&gt;<br>
&gt; In file included from<br>
&gt; /Users/michkapopoff/Desktop/vtkCSCSPointSprites/vtkPointSpriteMapper.h:51:<br>
&gt; /Users/michkapopoff/Desktop/build/vtkCSCSPointSpritesConfigure.h:7:5:<br>
&gt; error: expected value in expression<br>
&gt; #if<br>
&gt;     ^<br>
&gt; In file included from<br>
&gt; /Users/michkapopoff/Desktop/vtkCSCSPointSprites/vtkPointSpriteMapper.cpp:33:<br>
&gt; /Users/michkapopoff/Desktop/vtkCSCSPointSprites/vtkPointSpriteMapper.h:52:10:<br>
&gt; fatal error: &#39;vtkPainterPolyDataMapper.h&#39; file not found<br>
&gt; #include &quot;vtkPainterPolyDataMapper.h&quot;<br>
&gt;          ^<br>
&gt; 2 errors generated.<br>
&gt; make[2]: *** [CMakeFiles/vtkCSCSPointSprites.dir/vtkPointSpriteMapper.o]<br>
&gt; Error 1<br>
&gt; make[1]: *** [CMakeFiles/vtkCSCSPointSprites.dir/all] Error 2<br>
&gt; make: *** [all] Error 2<br>
&gt;<br>
&gt; So it doesn&#39;t&#39; find my include did, so I need to add the path to the<br>
&gt; INCLUDE_DIRECTORIES.<br>
&gt; I added the path directly with SET(). Perhaps not the cleanest solution<br>
&gt; but it worked :<br>
&gt;<br>
&gt; SET( CSCS_POINTSPRITES_INCLUDE_DIRS<br>
&gt;   ${PROJECT_SOURCE_DIR}<br>
&gt;   ${PROJECT_BINARY_DIR}<br>
&gt;   /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10<br>
&gt; )<br>
&gt;<br>
&gt; So, next I got this error :<br>
&gt;<br>
&gt; /Users/michkapopoff/Desktop/build/vtkCSCSPointSpritesConfigure.h:7:5:<br>
&gt; error: expected value in expression<br>
&gt; #if<br>
&gt;     ^<br>
&gt; In file included from<br>
&gt; /Users/michkapopoff/Desktop/vtkCSCSPointSprites/vtkPointSpriteMapper.cpp:33:<br>
&gt; In file included from<br>
&gt; /Users/michkapopoff/Desktop/vtkCSCSPointSprites/vtkPointSpriteMapper.h:52:<br>
&gt; In file included from<br>
&gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkPainterPolyDataMapper.h:25:<br>
&gt; In file included from<br>
&gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkPolyDataMapper.h:25:<br>
&gt; In file included from<br>
&gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkMapper.h:55:<br>
&gt; In file included from<br>
&gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkAbstractMapper3D.h:32:<br>
&gt; In file included from<br>
&gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkAbstractMapper.h:28:<br>
&gt; In file included from<br>
&gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkAlgorithm.h:32:<br>
&gt; In file included from<br>
&gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkObject.h:41:<br>
&gt; In file included from<br>
&gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkObjectBase.h:43:<br>
&gt; In file included from<br>
&gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkIndent.h:24:<br>
&gt; In file included from<br>
&gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkSystemIncludes.h:40:<br>
&gt; In file included from<br>
&gt; /usr/local/Cellar/vtk/5.10.1/include/vtk-5.10/vtkIOStream.h:108:<br>
&gt; In file included from /usr/include/c++/4.2.1/backward/strstream:51:<br>
&gt; /usr/include/c++/4.2.1/backward/backward_warning.h:32:2: warning: This<br>
&gt; file includes at least one deprecated or antiquated header. Please consider<br>
&gt;       using one of the 32 headers found in section 17.4.1.2 of the C++<br>
&gt; standard. Examples include substituting the &lt;X&gt; header for the &lt;X.h&gt; header<br>
&gt; for<br>
&gt;       C++ includes, or &lt;iostream&gt; instead of the deprecated header<br>
&gt; &lt;iostream.h&gt;. To disable this warning use -Wno-deprecated. [-W#warnings]<br>
&gt; #warning This file includes at least one deprecated or antiquated header. \<br>
&gt;  ^<br>
&gt; 1 warning and 1 error generated.<br>
&gt; make[2]: *** [CMakeFiles/vtkCSCSPointSprites.dir/vtkPointSpriteMapper.o]<br>
&gt; Error 1<br>
&gt; make[1]: *** [CMakeFiles/vtkCSCSPointSprites.dir/all] Error 2<br>
&gt; make: *** [all] Error 2<br>
&gt;<br>
&gt; Perhaps you have an idea for this one ?<br>
&gt;<br>
&gt; Thanks in advance<br>
&gt;<br>
&gt; Michka Popoff<br>
&gt;<br>
&gt;<br>
&gt; On 21 juin 2013, at 14:39, &quot;Biddiscombe, John A.&quot; &lt;<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &gt; I?m attaching a very set of code from the original cvs repo that had the<br>
&gt; point sprite mapper. You should be able to compiled this against vtk, but<br>
&gt; not that the dates on the files go back to 2006, so you may need to update<br>
&gt; stuff<br>
&gt; &gt;<br>
&gt; &gt; JB<br>
&gt; &gt;<br>
&gt; &gt; From: Michka Popoff [mailto:<a href="mailto:michkapopoff@gmail.com">michkapopoff@gmail.com</a>]<br>
&gt; &gt; Sent: 20 June 2013 15:36<br>
&gt; &gt; To: vtkusers<br>
&gt; &gt; Cc: Biddiscombe, John A.; Markus Neuner<br>
&gt; &gt; Subject: Re: [vtkusers] Draw points with gaussian fade out<br>
&gt; &gt;<br>
&gt; &gt; Thanks for your answers,<br>
&gt; &gt;<br>
&gt; &gt; I try to fight my way through vtkFastSplatter, but there is only one<br>
&gt; example and I do not understand everything. (The documentation is a little<br>
&gt; sparse)<br>
&gt; &gt; The example in the docs use a vtkImageViewer2,and I want to have a<br>
&gt; vtkactor to put it in my 3d scenery.<br>
&gt; &gt; So I mapped the splatter on a vtkplane through a vtktexture (to be able<br>
&gt; to have a vtkactor). Hope this will not lead to performance problems once I<br>
&gt; try to display millions of vtkactors ...<br>
&gt; &gt; It&#39;s also not really working, the colors are messed up, and I don&#39;t<br>
&gt; understand the vtkpoints usage for the vtkFastSplatter.<br>
&gt; &gt;<br>
&gt; &gt; 5 points are used in the example, which display 5 splats, but I was not<br>
&gt; able to have only one splat centered in the middle (even using only 1<br>
&gt; point, at 0,0,0).<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; For vtkPointSpriteMapper, is not in vtk, so I have to find the way to<br>
&gt; take it from paraview, add it to vtk, and make the python bindings for it.<br>
&gt; Any idea how to achieve this ?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Regards<br>
&gt; &gt;<br>
&gt; &gt; Michka<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Le 19 juin 2013 ? 23:29, Biddiscombe, John A. a ?crit :<br>
&gt; &gt;<br>
&gt; &gt; Try googling vtkPointSpriteMapper<br>
&gt; &gt; A modified version using painters is in paraview, but the original was<br>
&gt; designed for straight vtk use.<br>
&gt; &gt;<br>
&gt; &gt; JB<br>
&gt; &gt; (apologies if you get multiple copies of this, email misfired)<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Le 19 juin 2013 ? 19:57, Markus Neuner a ?crit :<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; oh vtkGaussianSplatter is the wrong class. It generates a volume, but<br>
&gt; you could visualize it with volume rendering.<br>
&gt; &gt;<br>
&gt; &gt; The first version is basically what FastSplatter does (<br>
&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;<br>
&gt; &gt; For the second version i can&#39;t find a class in vtk that can actually<br>
&gt; does this (compute the Gaussian directly in the fragment shader).<br>
&gt; &gt;<br>
&gt; &gt; You can derive from vtkGLSLShaderProgram and implement the procedures<br>
&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; by Philip Rideout.<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt; Markus<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On 06/16/2013 06:31 PM, Michka Popoff wrote:<br>
&gt; &gt;<br>
&gt; &gt; Hi<br>
&gt; &gt;<br>
&gt; &gt; thank you for your help.<br>
&gt; &gt;<br>
&gt; &gt; 1) For the first solution, what would be the class to use to create the<br>
&gt; texture from the gaussian equation ? Once I have the textures, I could map<br>
&gt; them to planes. I did wrote some OpenGL code a while ago where I did this<br>
&gt; with a shader, billboarding the textures so that the gaussians would always<br>
&gt; face the camera. This was very fast.<br>
&gt; &gt;<br>
&gt; &gt; 2) I saw vtkGaussianSplatter, but I don&#39;t know if I can set a different<br>
&gt; radius and exponent factor for each point ? In the class these values can<br>
&gt; only be set globally. I wrote some code (in python), inspired from the<br>
&gt; FinancialField example from vtkGaussianSplatter, but the splats are passed<br>
&gt; through vtkContourFilter to make a surface. I think this is messing with my<br>
&gt; gaussians, and I don&#39;t know how to do this without vtkContourFilter. I<br>
&gt; found no other example for vtkGaussianSplatter. Here is the code I wrote,<br>
&gt; displaying 10x10 points :<br>
&gt; &gt;<br>
&gt; &gt; #!/usr/bin/env python<br>
&gt; &gt;<br>
&gt; &gt; import vtk<br>
&gt; &gt; from numpy import random<br>
&gt; &gt;<br>
&gt; &gt; # Create points<br>
&gt; &gt; points = vtk.vtkPoints()<br>
&gt; &gt; for i in range(10):<br>
&gt; &gt;     for j in range(10):<br>
&gt; &gt;         points.InsertNextPoint(i, j, 0.0)<br>
&gt; &gt;<br>
&gt; &gt; polydata = vtk.vtkPolyData()<br>
&gt; &gt; polydata.SetPoints(points)<br>
&gt; &gt;<br>
&gt; &gt; popSplatter = vtk.vtkGaussianSplatter()<br>
&gt; &gt; popSplatter.SetInput(polydata)<br>
&gt; &gt; popSplatter.SetSampleDimensions(50, 50, 50)<br>
&gt; &gt; popSplatter.SetRadius(0.05)<br>
&gt; &gt; popSplatter.ScalarWarpingOff()<br>
&gt; &gt; popSplatter.Update()<br>
&gt; &gt;<br>
&gt; &gt; popSurface = vtk.vtkContourFilter()<br>
&gt; &gt; popSurface.SetInputConnection(popSplatter.GetOutputPort())<br>
&gt; &gt; popSurface.SetValue(0, 0.01)<br>
&gt; &gt;<br>
&gt; &gt; popMapper = vtk.vtkPolyDataMapper()<br>
&gt; &gt; popMapper.SetInputConnection(popSurface.GetOutputPort())<br>
&gt; &gt; popMapper.ImmediateModeRenderingOn()<br>
&gt; &gt;<br>
&gt; &gt; popActor = vtk.vtkActor()<br>
&gt; &gt; popActor.SetMapper(popMapper)<br>
&gt; &gt;<br>
&gt; &gt; # Renderer<br>
&gt; &gt; renderer = vtk.vtkRenderer()<br>
&gt; &gt; renderer.AddActor(popActor)<br>
&gt; &gt; renderer.ResetCamera()<br>
&gt; &gt;<br>
&gt; &gt; # Render Window<br>
&gt; &gt; renderWindow = vtk.vtkRenderWindow()<br>
&gt; &gt; renderWindow.AddRenderer(renderer)<br>
&gt; &gt;<br>
&gt; &gt; # Interactor<br>
&gt; &gt; renderWindowInteractor = vtk.vtkRenderWindowInteractor()<br>
&gt; &gt; renderWindowInteractor.SetRenderWindow(renderWindow)<br>
&gt; &gt;<br>
&gt; &gt; # Begin Interaction<br>
&gt; &gt; renderWindow.Render()<br>
&gt; &gt; renderWindowInteractor.Start()<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On 16 juin 2013, at 11:14, Markus Neuner &lt;<a href="mailto:neuner.markus@gmx.net">neuner.markus@gmx.net</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Hi Michka,<br>
&gt; &gt;<br>
&gt; &gt; You could try to generate volumetric data using Gaussian splats.<br>
&gt; &gt;<br>
&gt; &gt; There are two solutions to this problem:<br>
&gt; &gt; - Create the 3D Gaussian function on the CPU during application<br>
&gt; initialization, and create a 3D texture from that.<br>
&gt; &gt;<br>
&gt; &gt; - But better and much faster is to compute the Gaussian directly in the<br>
&gt; fragment shader.<br>
&gt; &gt;<br>
&gt; &gt; Have a look at vtkGaussianSplatter it may do what you want.<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt; Markus<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On 06/15/2013 05:18 PM, Michka Popoff wrote:<br>
&gt; &gt; Hi<br>
&gt; &gt;<br>
&gt; &gt; I want to draw a lot of points in VTK (~1.000.000), with each point&#39;s<br>
&gt; color fading out to a transparent value, following a gaussian function.<br>
&gt; &gt; So the center will be bright (maximum intensity), and the border will<br>
&gt; have no color.<br>
&gt; &gt;<br>
&gt; &gt; I am able to draw a lot of points using vtkPoints, I can also change<br>
&gt; their color, but I am looking for a way to apply the fade out to every<br>
&gt; point. Of course the parameters of the gaussian function will be different<br>
&gt; for each point (intensity value in the middle, diameter).<br>
&gt; &gt;<br>
&gt; &gt; The result for 1 point would look like this :<br>
&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;<br>
&gt; &gt; Are there some filters/mappers I could use directly ? Or can I perhaps<br>
&gt; try to &quot;hijack&quot; vtkgaussiansplatter to achieve this ?<br>
&gt; &gt;<br>
&gt; &gt; Thanks in advance<br>
&gt; &gt;<br>
&gt; &gt; Michka Popoff<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 athttp://<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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; <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; &lt;vtkCSCSPointSprites.zip&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/20130623/56895d53/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130623/56895d53/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 6<br>
&gt; Date: Mon, 24 Jun 2013 01:09:58 +0000<br>
&gt; From: David Cole &lt;<a href="mailto:dlrdave@aol.com">dlrdave@aol.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] Render Control<br>
&gt; To: &quot; <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a> &quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;, Max<br>
&gt;         &lt;<a href="mailto:smapersmaper@gmail.com">smapersmaper@gmail.com</a>&gt;<br>
&gt; Message-ID: &lt;<a href="mailto:20130624011336.5098F643EA@public.kitware.com">20130624011336.5098F643EA@public.kitware.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt;<br>
&gt; The ?problem? is that Visual Studio is 32-bit only, so it can only show<br>
&gt; the x86 build in Design Mode.<br>
&gt;<br>
&gt;<br>
&gt; This happens because the ActiViz dll has underlying architecture-specific<br>
&gt; native dlls for VTK that it loads. Since they are arch-specific and VS is<br>
&gt; 32-bit only.... it can only handle the x86 dlls.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Cheers (hope this helps),<br>
&gt;<br>
&gt; David C.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; From: Max<br>
&gt; Sent: ?Sunday?, ?June? ?23?, ?2013 ?9?:?55? ?AM<br>
&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt;<br>
&gt; Hi VTKers,<br>
&gt; When I&#39;m downloading the 86 bit version of activiz I see the render control<br>
&gt; and can add it to my winforms,<br>
&gt; but when i download the 64 bit activiz version, it is not shown and i<br>
&gt; cannot<br>
&gt; add it through the kitware dll.<br>
&gt; And when i&#39;m building 86 project the form is shown correctly, but with 64<br>
&gt; bit version, it cannot show it in design mode, only the run mode.<br>
&gt; Does anyone know what can be the problem?<br>
&gt;<br>
&gt; Thank you,<br>
&gt; Max<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/Render-Control-tp5721532.html" target="_blank">http://vtk.1045678.n5.nabble.com/Render-Control-tp5721532.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; -------------- 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/95604706/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/95604706/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 7<br>
&gt; Date: Sun, 23 Jun 2013 21:08:10 -0700 (PDT)<br>
&gt; From: Max &lt;<a href="mailto:smapersmaper@gmail.com">smapersmaper@gmail.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] Render Control<br>
&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; Message-ID: &lt;<a href="mailto:1372046890508-5721541.post@n5.nabble.com">1372046890508-5721541.post@n5.nabble.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;<br>
&gt; Hi David and thank you for the reply,<br>
&gt; so what is the way to add the render control to the winform in 64 bit?<br>
&gt; Currently what I did:<br>
&gt; Installed 86 bit version of activiz,<br>
&gt; installed 64 bit version of activiz,<br>
&gt; then i saw the 86 bit render control in toolbox,<br>
&gt; added it to the winform,<br>
&gt; then i saw that it adds automatically the kitware dll 86 bit ,<br>
&gt; but i need to make the vtk project 64 bit since all my application solution<br>
&gt; works on 64 bit,<br>
&gt; so i removed the 86 kitware dll and added 2 64 bit dlls, kitware dll and<br>
&gt; mummy dll<br>
&gt; well, it works in runtime, but it says it cannot find the kitware clr in<br>
&gt; design time.<br>
&gt; Also i don&#39;t think that for it to work i need to install also 86 bit<br>
&gt; version<br>
&gt; of activiz<br>
&gt; i tried to add the control through kitware dll but it cannot find it...<br>
&gt; Something is not right here i think...<br>
&gt; Can you please tell me what i did wrong?<br>
&gt;<br>
&gt; Thank you,<br>
&gt; Max<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/Render-Control-tp5721532p5721541.html" target="_blank">http://vtk.1045678.n5.nabble.com/Render-Control-tp5721532p5721541.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 8<br>
&gt; Date: Mon, 24 Jun 2013 12:26:25 +0530<br>
&gt; From: Ashish Singh &lt;<a href="mailto:asinghmlists@gmail.com">asinghmlists@gmail.com</a>&gt;<br>
&gt; Subject: [vtkusers] VTK build with postfix d : error<br>
&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; Message-ID:<br>
&gt;         &lt;<br>
&gt; <a href="mailto:CAOqamVFZjnwAPrKXSAmaecXwp-tavUGyj1WowzrZ86V_v3xA7w@mail.gmail.com">CAOqamVFZjnwAPrKXSAmaecXwp-tavUGyj1WowzrZ86V_v3xA7w@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; 1) I am trying to build VTK5.10.1 with Qt 4.8.4 on Windows 7, x64 platform<br>
&gt; with Visual Studio 2010 with postfix &#39;d&#39; option. The build goes fine<br>
&gt; without any errors. I am able to run the cone example( plain VTK example)<br>
&gt; using my build.  But when I run the RenderWindowNoUiFile ( VTK + Qt<br>
&gt; example), I get a runtime error saying -<br>
&gt; &quot;The application was unable to start correct (0xc000000d). Click OK to<br>
&gt; close the application&quot;<br>
&gt;<br>
&gt; 2) When I try to build &quot;Install&quot; for this VTK build, I  get the following<br>
&gt; error:<br>
&gt;<br>
&gt; 1&gt;  -- Up-to-date: E:/VTKDebugBin/bin/QVTKd.dll<br>
&gt; 1&gt;  CMake Error at GUISupport/Qt/PluginInstall.cmake:13 (FILE):<br>
&gt; 1&gt;    file INSTALL cannot find<br>
&gt; &quot;E:/VTKDebugBuild/bin/Debug/QVTKWidgetPlugin.dll&quot;.<br>
&gt; 1&gt;  Call Stack (most recent call first):<br>
&gt; 1&gt;    GUISupport/Qt/cmake_install.cmake:89 (INCLUDE)<br>
&gt; 1&gt;    GUISupport/cmake_install.cmake:32 (INCLUDE)<br>
&gt; 1&gt;    cmake_install.cmake:181 (INCLUDE)<br>
&gt; 1&gt;<br>
&gt; 1&gt;<br>
&gt; 1&gt;C:\Program Files<br>
&gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error<br>
&gt; MSB3073: The command &quot;setlocal<br>
&gt; 1&gt;C:\Program Files<br>
&gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error<br>
&gt; MSB3073: &quot;C:\Program Files (x86)\CMake 2.8\bin\cmake.exe&quot;<br>
&gt; -DBUILD_TYPE=Debug -P cmake_install.cmake<br>
&gt; 1&gt;C:\Program Files<br>
&gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error<br>
&gt; MSB3073: if %errorlevel% neq 0 goto :cmEnd<br>
&gt; 1&gt;C:\Program Files<br>
&gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error<br>
&gt; MSB3073: :cmEnd<br>
&gt; 1&gt;C:\Program Files<br>
&gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error<br>
&gt; MSB3073: endlocal &amp; call :cmErrorLevel %errorlevel% &amp; goto :cmDone<br>
&gt; 1&gt;C:\Program Files<br>
&gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error<br>
&gt; MSB3073: :cmErrorLevel<br>
&gt; 1&gt;C:\Program Files<br>
&gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error<br>
&gt; MSB3073: exit /b %1<br>
&gt; 1&gt;C:\Program Files<br>
&gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error<br>
&gt; MSB3073: :cmDone<br>
&gt; 1&gt;C:\Program Files<br>
&gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error<br>
&gt; MSB3073: if %errorlevel% neq 0 goto :VCEnd<br>
&gt; 1&gt;C:\Program Files<br>
&gt; (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error<br>
&gt; MSB3073: :VCEnd&quot; exited with code 1.<br>
&gt; 1&gt;<br>
&gt; 1&gt;Build FAILED.<br>
&gt; 1&gt;<br>
&gt; 1&gt;Time Elapsed 00:00:10.95<br>
&gt; ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<br>
&gt;<br>
&gt; Can anyone please help me figure out what is going wrong here and how to<br>
&gt; fix these 2 issues?<br>
&gt;<br>
&gt; The details of my environment are:<br>
&gt; VTK version: 5.10.1<br>
&gt; Qt: 4.8.4<br>
&gt; OS: windows 7 64 bit<br>
&gt; Visual Studio 2010<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Ashish<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/e052c949/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/e052c949/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 9<br>
&gt; Date: Mon, 24 Jun 2013 13:45:40 +0530<br>
&gt; From: Ashish Singh &lt;<a href="mailto:asinghmlists@gmail.com">asinghmlists@gmail.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] VTK build with postfix d : error<br>
&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; Message-ID:<br>
&gt;         &lt;CAOqamVG9VOK+iG=CnpFDbxq8TWjVmjMbR+=<br>
&gt; <a href="mailto:W7aimJ5JHPZkH4w@mail.gmail.com">W7aimJ5JHPZkH4w@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; I am replying to my own post. For issue # 2, I checked file<br>
&gt; GUISupport/Qt/PluginInstall.cmake<br>
&gt;<br>
&gt; The contents of this file are as follows:<br>
&gt; ----<br>
&gt; # Configured file and directory locations.<br>
&gt; SET(VTK_LIB_DIR &quot;E:/VTKDebugBuild/bin&quot;)<br>
&gt; SET(VTK_INSTALL_QT_DIR &quot;/plugins/designer&quot;)<br>
&gt; SET(VTK_INSTALL_QT_PLUGIN_DIR<br>
&gt; &quot;${CMAKE_INSTALL_PREFIX}${VTK_INSTALL_QT_DIR}&quot;)<br>
&gt; SET(VTK_INSTALL_QT_PLUGIN_FILE &quot;QVTKWidgetPlugin.dll&quot;)<br>
&gt; SET(VTK_CONFIGURATIONS &quot;Debug;Release;MinSizeRel;RelWithDebInfo&quot;)<br>
&gt;<br>
&gt; IF(VTK_CONFIGURATIONS)<br>
&gt;   SET(VTK_LIBSUBDIR &quot;/${BUILD_TYPE}&quot;)<br>
&gt; ENDIF(VTK_CONFIGURATIONS)<br>
&gt;<br>
&gt; # Install the file to the specified location.<br>
&gt; FILE(INSTALL DESTINATION &quot;${VTK_INSTALL_QT_PLUGIN_DIR}&quot; TYPE SHARED_LIBRARY<br>
&gt;   FILES &quot;${VTK_LIB_DIR}${VTK_LIBSUBDIR}/${VTK_INSTALL_QT_PLUGIN_FILE}&quot;)<br>
&gt; ----<br>
&gt; If we look at line :<br>
&gt; SET(VTK_INSTALL_QT_PLUGIN_FILE &quot;QVTKWidgetPlugin.dll&quot;)<br>
&gt;<br>
&gt; we see that it is looking for file &quot;QVTKWidgetPlugin.dll&quot;. But since, I<br>
&gt; already added a postfix d, it cannot find this file and therefore is giving<br>
&gt; errors. If I change the file name to QVTKWidgetPlugind.dll, the build<br>
&gt; &quot;Install&quot; step succeeds.<br>
&gt;<br>
&gt; Is this a bug?<br>
&gt;<br>
&gt; Issue # 1, still remains. I am still not able to run the<br>
&gt; RenderWindowNoUiFile example after adding postfix d.<br>
&gt;<br>
&gt; Can anyone please help?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Ashish<br>
&gt;<br>
&gt; On Mon, Jun 24, 2013 at 12:26 PM, Ashish Singh &lt;<a href="mailto:asinghmlists@gmail.com">asinghmlists@gmail.com</a><br>
&gt; &gt;wrote:<br>
&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;<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/f3ff4e48/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/f3ff4e48/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 10<br>
&gt; Date: Mon, 24 Jun 2013 09:13:26 +0000<br>
&gt; From: Gu?ni Karl Rosenkj?r &lt;<a href="mailto:grosenkj@eos.ubc.ca">grosenkj@eos.ubc.ca</a>&gt;<br>
&gt; Subject: [vtkusers] Generating a polyhedron cell from polydata in<br>
&gt;         Python<br>
&gt; To: VTKusers &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;         &lt;CAOqTh=<br>
&gt; <a href="mailto:m3A110FVXoHTb77wU3CvdFNcOHqaF0kCVP1TJvy-WE5w@mail.gmail.com">m3A110FVXoHTb77wU3CvdFNcOHqaF0kCVP1TJvy-WE5w@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; Hello all vtk users,<br>
&gt;<br>
&gt; I am trying to make a polyhedron cell (vtkUnstructuredGrid) from a<br>
&gt; polydata. Googling for information on how to do this I have found these C++<br>
&gt; test and used the as a guide.<br>
&gt;<br>
&gt; However when I run my code on Fedora 17 64bit, using python 2.7.3 and vtk<br>
&gt; 5.10.1 (self compiled), I get an error when using InsertNextCell call of<br>
&gt; the vtkUnstructuredGrid object.<br>
&gt;<br>
&gt; Here is a example code I am using:<br>
&gt; import vtk<br>
&gt;<br>
&gt; # Read the polyData<br>
&gt; cube = vtk.vtkCubeSource()<br>
&gt; Poly = cube.GetOutput()<br>
&gt;<br>
&gt; # Extract the information needed from the poly data<br>
&gt; numPts = vtk.vtkIdTypeArray()<br>
&gt; numPts.InsertNextValue(Poly.GetNumberOfPoints())<br>
&gt; ptsIds = vtk.vtkIdTypeArray()<br>
&gt; for cP in range(numPts.GetValue(0)): ptsIds.InsertNextValue(cP)<br>
&gt; numCellFaces = vtk.vtkIdTypeArray()<br>
&gt; numCellFaces.InsertNextValue(Poly.GetNumberOfPolys())<br>
&gt; faces = vtk.vtkIdTypeArray()<br>
&gt; for cF in range(numCellFaces.GetValue(0)):<br>
&gt;     numPtsInFace = vtk.vtkIdTypeArray()<br>
&gt;     numPtsInFace.InsertNextValue( Poly.GetCell(cF).GetNumberOfPoints())<br>
&gt;     faces.InsertNextValue(numPtsInFace)<br>
&gt;     for cPF in range(numPtsInFace.GetValue(0)):<br>
&gt;         faces.InsertNextValue(Poly.GetCell(cF).GetPointId(cPF))<br>
&gt;<br>
&gt; # Make the grid<br>
&gt; UnstructPolyHed = vtk.vtkUnstructuredGrid()<br>
&gt; UnstructPolyHed.SetPoints(Poly.GetPoints())<br>
&gt;<br>
&gt; UnstructPolyHed.InsertNextCell(vtk.VTK_POLYHEDRON,numPts,ptsIds,numCellFaces,faces)<br>
&gt;<br>
&gt;<br>
&gt; But I always end with this error: InsertNextCell() takes exactly 2<br>
&gt; arguments (5 given)<br>
&gt;<br>
&gt; The example used 5 inputs as follows<br>
&gt; InsertNextCell(int type, vtkIdType npts, vtkIdType *ptIds, vtkIdType<br>
&gt; nfaces, vtkIdType *faces)<br>
&gt;<br>
&gt;<br>
&gt; What am I doing incorrectly?<br>
&gt;<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Gudni Karl<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/c805ba42/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/c805ba42/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 11<br>
&gt; Date: Mon, 24 Jun 2013 09:25:01 -0400<br>
&gt; From: Randy Heiland &lt;<a href="mailto:heiland@indiana.edu">heiland@indiana.edu</a>&gt;<br>
&gt; Subject: [vtkusers] building vtk6, simple example<br>
&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; Message-ID: &lt;<a href="mailto:86953D8F-E239-49CE-AEF8-044F0B7C5BAD@indiana.edu">86953D8F-E239-49CE-AEF8-044F0B7C5BAD@indiana.edu</a>&gt;<br>
&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; Thought I&#39;d take a stab at VTK6 and will ask the about the build process,<br>
&gt; in general, as well as a specific link error, while I also dig a little<br>
&gt; deeper.  I did a simple cmake/build via:<br>
&gt; cmake  -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++<br>
&gt;  -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc  ../VTK6.0.0.rc3<br>
&gt;<br>
&gt; and make install.  Then I downloaded the tarball from here:<br>
&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; successful cmake on it, but then got:<br>
&gt;<br>
&gt; ~/dev/vtk6-play/SimplePointsReader/build$ make<br>
&gt; Scanning dependencies of target SimplePointsReader<br>
&gt; [100%] Building CXX object<br>
&gt; CMakeFiles/SimplePointsReader.dir/SimplePointsReader.cxx.o<br>
&gt; Linking CXX executable<br>
&gt; SimplePointsReader.app/Contents/MacOS/SimplePointsReader<br>
&gt; ld: library not found for -lvtkFiltersParallelFlowPaths<br>
&gt; collect2: ld returned 1 exit status<br>
&gt;<br>
&gt; This seemed curious, since I hadn&#39;t turned on any parallel flags in the<br>
&gt; VTK cmake.  But sure enough, I saw that some parallel libs had been built,<br>
&gt; e.g.:<br>
&gt; ~/dev/vtk6-build$ ls /usr/local/lib/libvtk*Paral*.dylib<br>
&gt; /usr/local/lib/libvtkFiltersParallel-6.0.1.dylib*<br>
&gt; /usr/local/lib/libvtkFiltersParallel-6.0.dylib@<br>
&gt; /usr/local/lib/libvtkFiltersParallelImaging-6.0.1.dylib*<br>
&gt; /usr/local/lib/libvtkFiltersParallelImaging-6.0.dylib@<br>
&gt; /usr/local/lib/libvtkIOParallel-6.0.1.dylib*<br>
&gt; /usr/local/lib/libvtkIOParallel-6.0.dylib@<br>
&gt; /usr/local/lib/libvtkParallelCore-6.0.1.dylib*<br>
&gt; /usr/local/lib/libvtkParallelCore-6.0.dylib@<br>
&gt;<br>
&gt; Fwiw, I also have:<br>
&gt; ~/dev/vtk6-build$ grep parallel CMakeCache.txt |grep bool<br>
&gt; Module_vtkFiltersParallelFlowPaths:BOOL=OFF<br>
&gt; Module_vtkFiltersParallelGeometry:BOOL=OFF<br>
&gt; Module_vtkFiltersParallelMPI:BOOL=OFF<br>
&gt; Module_vtkFiltersParallelStatistics:BOOL=OFF<br>
&gt; Module_vtkIOMPIParallel:BOOL=OFF<br>
&gt; Module_vtkIOParallelExodus:BOOL=OFF<br>
&gt; Module_vtkIOParallelLSDyna:BOOL=OFF<br>
&gt; Module_vtkIOParallelNetCDF:BOOL=OFF<br>
&gt; Module_vtkInfovisParallel:BOOL=OFF<br>
&gt; Module_vtkParallelMPI:BOOL=OFF<br>
&gt; Module_vtkRenderingParallel:BOOL=OFF<br>
&gt;<br>
&gt; So, a couple questions - why are parallel libs being built and why does<br>
&gt; this example seem to require them?  Apologies if I missed info on the wiki,<br>
&gt; etc.<br>
&gt;<br>
&gt; thanks, Randy<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 12<br>
&gt; Date: Mon, 24 Jun 2013 07:01:15 -0700 (PDT)<br>
&gt; From: chasank &lt;<a href="mailto:chasank@gmail.com">chasank@gmail.com</a>&gt;<br>
&gt; Subject: [vtkusers] vtkborderwidget in vtk6.0rc3<br>
&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; Message-ID: &lt;<a href="mailto:1372082475230-5721550.post@n5.nabble.com">1372082475230-5721550.post@n5.nabble.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; Although vtk5.10.1 has vtkBorderWidget class, vtk6.0rc3 has not<br>
&gt; vtkBorderWidget class. Also, this class is not marked as deprecated in<br>
&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; wonder whether vtk6.0 stable version will have this class. If not, which<br>
&gt; class will be used instead of vtkBorderWidget in vtk6.0 stable version.<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/vtkborderwidget-in-vtk6-0rc3-tp5721550.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkborderwidget-in-vtk6-0rc3-tp5721550.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 13<br>
&gt; Date: Mon, 24 Jun 2013 10:04:14 -0400<br>
&gt; From: Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu">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">lchauvin@bwh.harvard.edu</a>&gt;<br>
&gt; Cc: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;         &lt;CANmPiKAiLM3NwHvKY4aUejELTQ=+ihOifUJ-xZYkKo7EAWR=<br>
&gt; <a href="mailto:qA@mail.gmail.com">qA@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; On Sun, Jun 23, 2013 at 12:41 PM, Laurent Chauvin<br>
&gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu">lchauvin@bwh.harvard.edu</a>&gt; wrote:<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;<br>
&gt; Laurent,<br>
&gt;<br>
&gt; You don&#39;t need to create a new polydata. Instead, you can add a new<br>
&gt; vtkDataArray (likely a vtkFloatArray or vtkDataArray in this case) to<br>
&gt; the point data of whatever polydata you already have by using<br>
&gt; vtkPolyData::GetPointData()-&gt;AddArray(...).<br>
&gt;<br>
&gt; For axis-aligned planes, this new array could simply contain the x, y,<br>
&gt; or z coordinate of each of the points in your vtkPolyData. If you want<br>
&gt; an intersection of your poly data with a plane spanning x and y, you<br>
&gt; would add a point data array storing all the z values. You can then<br>
&gt; use the vtkContourFilter to get the polydata consisting of line<br>
&gt; segments that represents the intersection of your polydata with the<br>
&gt; plane at a given z value by specifying that z value as the isolevel<br>
&gt; for the contour filter. You have to make sure you tell the<br>
&gt; vtkContourFilter to use your new coordinate array.<br>
&gt;<br>
&gt; For an quick example of this concept, I&#39;ve attached a simple ParaView<br>
&gt; statefile showing how you can do this for a cylinder polydata. In this<br>
&gt; example, I&#39;ve specified my plane as spanning the x and y coordinates<br>
&gt; with z value 0.2. In ParaView, I&#39;ve used the Calculator to compute the<br>
&gt; array consisting of the z coordinates of each point in the cylinder.<br>
&gt; Forgive me if you don&#39;t have ParaView installed, we use it all the<br>
&gt; time when prototyping visualizations.<br>
&gt;<br>
&gt; &gt; Does this work with some oblique planes ( not parallel to x,y, or z axis<br>
&gt; ) ?<br>
&gt;<br>
&gt; For the general case of an arbitrary plane, you would want to compute<br>
&gt; the distance from each point your desired plan instead of creating a<br>
&gt; new array containing the x, y, or z coordinates of each point. Then<br>
&gt; you would set the vtkContourFilter isolevel to 0. The point plane<br>
&gt; calculation is pretty simple:<br>
&gt; <a href="http://mathworld.wolfram.com/Point-PlaneDistance.html" target="_blank">http://mathworld.wolfram.com/Point-PlaneDistance.html</a><br>
&gt;<br>
&gt; Does that make sense?<br>
&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">cquammen@cs.unc.edu</a>&gt;<br>
&gt; wrote:<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">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; &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; &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; &gt; were<br>
&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; ?<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; &gt; compute<br>
&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; computing intensive to be able to do it smoothly with an interactive<br>
&gt; &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;<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;<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; -------------- next part --------------<br>
&gt; A non-text attachment was scrubbed...<br>
&gt; Name: PlaneIntersectionExample.pvsm<br>
&gt; Type: application/octet-stream<br>
&gt; Size: 119252 bytes<br>
&gt; Desc: not available<br>
&gt; URL: &lt;<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;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; vtkusers mailing list<br>
&gt; <a href="mailto:vtkusers@vtk.org">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 31<br>
&gt; *****************************************<br>
&gt;<br>
<br>
<br>
<br>
--<br>
*Best  Regards<br>
Rahul Indoria<br>
Mobile No: +49-157-35652212*<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<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>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 24 Jun 2013 10:20:15 -0400<br>
From: Laurent Chauvin &lt;<a href="mailto:lchauvin@bwh.harvard.edu">lchauvin@bwh.harvard.edu</a>&gt;<br>
Subject: Re: [vtkusers] Plane polydata intersection<br>
To: Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>&gt;<br>
Cc: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:74BDA439-1EE1-430A-B61E-A0CCD569634B@bwh.harvard.edu">74BDA439-1EE1-430A-B61E-A0CCD569634B@bwh.harvard.edu</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi Cory,<br>
<br>
Thank you for your reply.<br>
<br>
However, you said I have to compute distance from each point to my plane, then use vtkContourFilter.<br>
But I think it would be really heavy computation to compute distance from each point to the plane every time I move the plane, isn&#39;t it ?<br>
<br>
I would like to be able to display the intersection while the plane is moving. If I have a polydata like a bone or a skull or something like that, it would be really long to compute this distance, isn&#39;t it ?<br>
<br>
Thank you.<br>
-Laurent<br>
<br>
<br>
<br>
On Jun 24, 2013, at 10:04 AM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>&gt; wrote:<br>
<br>
&gt; On Sun, Jun 23, 2013 at 12:41 PM, Laurent Chauvin<br>
&gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu">lchauvin@bwh.harvard.edu</a>&gt; wrote:<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; Laurent,<br>
&gt;<br>
&gt; You don&#39;t need to create a new polydata. Instead, you can add a new<br>
&gt; vtkDataArray (likely a vtkFloatArray or vtkDataArray in this case) to<br>
&gt; the point data of whatever polydata you already have by using<br>
&gt; vtkPolyData::GetPointData()-&gt;AddArray(...).<br>
&gt;<br>
&gt; For axis-aligned planes, this new array could simply contain the x, y,<br>
&gt; or z coordinate of each of the points in your vtkPolyData. If you want<br>
&gt; an intersection of your poly data with a plane spanning x and y, you<br>
&gt; would add a point data array storing all the z values. You can then<br>
&gt; use the vtkContourFilter to get the polydata consisting of line<br>
&gt; segments that represents the intersection of your polydata with the<br>
&gt; plane at a given z value by specifying that z value as the isolevel<br>
&gt; for the contour filter. You have to make sure you tell the<br>
&gt; vtkContourFilter to use your new coordinate array.<br>
&gt;<br>
&gt; For an quick example of this concept, I&#39;ve attached a simple ParaView<br>
&gt; statefile showing how you can do this for a cylinder polydata. In this<br>
&gt; example, I&#39;ve specified my plane as spanning the x and y coordinates<br>
&gt; with z value 0.2. In ParaView, I&#39;ve used the Calculator to compute the<br>
&gt; array consisting of the z coordinates of each point in the cylinder.<br>
&gt; Forgive me if you don&#39;t have ParaView installed, we use it all the<br>
&gt; time when prototyping visualizations.<br>
&gt;<br>
&gt;&gt; Does this work with some oblique planes ( not parallel to x,y, or z axis ) ?<br>
&gt;<br>
&gt; For the general case of an arbitrary plane, you would want to compute<br>
&gt; the distance from each point your desired plan instead of creating a<br>
&gt; new array containing the x, y, or z coordinates of each point. Then<br>
&gt; you would set the vtkContourFilter isolevel to 0. The point plane<br>
&gt; calculation is pretty simple:<br>
&gt; <a href="http://mathworld.wolfram.com/Point-PlaneDistance.html" target="_blank">http://mathworld.wolfram.com/Point-PlaneDistance.html</a><br>
&gt;<br>
&gt; Does that make sense?<br>
&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">cquammen@cs.unc.edu</a>&gt; wrote:<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">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;&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;&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;&gt; were<br>
&gt;&gt;&gt;&gt; some update since then. New widgets or object that I could use for that<br>
&gt;&gt;&gt;&gt; ?<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;&gt; compute<br>
&gt;&gt;&gt;&gt; the intersection between the 2 polydata, but I think it would also be to<br>
&gt;&gt;&gt;&gt; computing intensive to be able to do it smoothly with an interactive<br>
&gt;&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;<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;<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; &lt;PlaneIntersectionExample.pvsm&gt;<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<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>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 24 Jun 2013 10:44:29 -0400<br>
From: Dean Inglis &lt;<a href="mailto:inglis.dl@gmail.com">inglis.dl@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] synchronous update between vtkImagePlaneWidget<br>
        and     vtkResliceCursorWidget<br>
To: ljp19890525 &lt;<a href="mailto:ljp19890525@163.com">ljp19890525@163.com</a>&gt;<br>
Cc: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;CABX+von=ToFhe54mk_p=JczfgXE66aOcjYnf+DN1M_hz5O=<a href="mailto:1qg@mail.gmail.com">1qg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi,<br>
<br>
try the following code snippet.  Basically, create a callback class wherein<br>
you decide how to update the reslice cursor widget from the image plane<br>
widget.<br>
Add the callback to listen for the image plane widget&#39;s InteractionEvent.<br>
<br>
regards,<br>
Dean<br>
<br>
<br>
class myCallback : public vtkCommand<br>
{<br>
  public:<br>
    static myCallback *New() {<br>
      return new myCallback; }<br>
<br>
    void Execute( vtkObject* vtkNotUsed(caller), unsigned long<br>
vtkNotUsed(event),<br>
                  void * vtkNotUsed(callData) )<br>
    {<br>
      /** do something with ipwidget and rcwidget when the ipwidget fires a<br>
           an interaction event signal */<br>
    }<br>
<br>
 myCallback():ipwidget( 0 ), rcwidget( 0 ){}<br>
  ~myCallback(){ this-&gt;ipwidget= 0; this-&gt;rcwidget = 0; }<br>
  vtkImagePlaneWidget* ipwidget;<br>
  vtkResliceCursorWidget* rcwidget;<br>
};<br>
<br>
<br>
void myclass::some_setup_method()<br>
{<br>
  vtkSmartPointer&lt;myCallback&gt; cbk = vtkSmartPointer&lt;myCallback&gt;::New();<br>
  cbk-&gt;ipwidget = this-&gt;ipwidget;<br>
  cbk-&gt;rcwidget = this-&gt;rcwidget;<br>
  this-&gt;ipwidget-&gt;AddObserver( vtkCommand::InteractionEvent, cbk );<br>
}<br>
<br>
<br>
<br>
On Thu, Jun 20, 2013 at 10:15 PM, nil_debug &lt;<a href="mailto:ljp19890525@163.com">ljp19890525@163.com</a>&gt; wrote:<br>
<br>
&gt; **<br>
&gt; Hello,<br>
&gt; Is anyone can help me? Now I have defined a vtkImagePlaneWidget and a<br>
&gt; vtkResliceCursorWidget,  I would like to when dragging the<br>
&gt;  vtkImagePlaneWidget the   vtkResliceCursorWidget can move.In a word  I<br>
&gt; don&#39;t know how to a &quot;AddObserver&quot; for the vtkImagePlaneWidget from<br>
&gt; the vtkResliceCursorWidget! I do know  I should define a &quot;myCallBack&quot;,but<br>
&gt; How?<br>
&gt; Will be deeply grateful !<br>
&gt;<br>
&gt; ------------------------------<br>
&gt; nil_debug<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/20130624/2a076878/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/2a076878/attachment-0001.htm</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Mon, 24 Jun 2013 10:46:10 -0400<br>
From: Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>&gt;<br>
Subject: Re: [vtkusers] Plane polydata intersection<br>
To: Laurent Chauvin &lt;<a href="mailto:lchauvin@bwh.harvard.edu">lchauvin@bwh.harvard.edu</a>&gt;<br>
Cc: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;CANmPiKDicXmSpCLMJyZM5Q7-VA=<a href="mailto:0JuAPQn6Ke7X2bZZvDKf3kQ@mail.gmail.com">0JuAPQn6Ke7X2bZZvDKf3kQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Laurent,<br>
<br>
If your plane doesn&#39;t change orientation, then you should be able to<br>
change your isolevel value as you move the plane along its normal,<br>
thereby avoiding the distance computation, e.g., compute the distance<br>
one time relative to the current plane, then add 5 to the isolevel if<br>
your plane moves 5 units along the plane normal, etc.<br>
<br>
For a non-geometry based approach, you might use custom shaders to<br>
compute the distance of each vertex to your plane and discard<br>
fragments that aren&#39;t within some distance to the plane. This would be<br>
fast but may suffer from giving you a more-than-one-pixel-thick<br>
representation of the intersection in parts of the scene closest to<br>
the camera and perhaps missing some pixels in parts of the scene<br>
furthest from the camera.<br>
<br>
Hope that helps,<br>
Cory<br>
<br>
<br>
<br>
On Mon, Jun 24, 2013 at 10:20 AM, Laurent Chauvin<br>
&lt;<a href="mailto:lchauvin@bwh.harvard.edu">lchauvin@bwh.harvard.edu</a>&gt; wrote:<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">cquammen@cs.unc.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; On Sun, Jun 23, 2013 at 12:41 PM, Laurent Chauvin<br>
&gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Cory,<br>
&gt;<br>
&gt; Thank you very much for your reply.<br>
&gt; However, I&#39;m not sure to understand what you mean.<br>
&gt; Should I create a new polydata with all points at the same z coordinates ?<br>
&gt;<br>
&gt;<br>
&gt; Laurent,<br>
&gt;<br>
&gt; You don&#39;t need to create a new polydata. Instead, you can add a new<br>
&gt; vtkDataArray (likely a vtkFloatArray or vtkDataArray in this case) to<br>
&gt; the point data of whatever polydata you already have by using<br>
&gt; vtkPolyData::GetPointData()-&gt;AddArray(...).<br>
&gt;<br>
&gt; For axis-aligned planes, this new array could simply contain the x, y,<br>
&gt; or z coordinate of each of the points in your vtkPolyData. If you want<br>
&gt; an intersection of your poly data with a plane spanning x and y, you<br>
&gt; would add a point data array storing all the z values. You can then<br>
&gt; use the vtkContourFilter to get the polydata consisting of line<br>
&gt; segments that represents the intersection of your polydata with the<br>
&gt; plane at a given z value by specifying that z value as the isolevel<br>
&gt; for the contour filter. You have to make sure you tell the<br>
&gt; vtkContourFilter to use your new coordinate array.<br>
&gt;<br>
&gt; For an quick example of this concept, I&#39;ve attached a simple ParaView<br>
&gt; statefile showing how you can do this for a cylinder polydata. In this<br>
&gt; example, I&#39;ve specified my plane as spanning the x and y coordinates<br>
&gt; with z value 0.2. In ParaView, I&#39;ve used the Calculator to compute the<br>
&gt; array consisting of the z coordinates of each point in the cylinder.<br>
&gt; Forgive me if you don&#39;t have ParaView installed, we use it all the<br>
&gt; time when prototyping visualizations.<br>
&gt;<br>
&gt; Does this work with some oblique planes ( not parallel to x,y, or z axis ) ?<br>
&gt;<br>
&gt;<br>
&gt; For the general case of an arbitrary plane, you would want to compute<br>
&gt; the distance from each point your desired plan instead of creating a<br>
&gt; new array containing the x, y, or z coordinates of each point. Then<br>
&gt; you would set the vtkContourFilter isolevel to 0. The point plane<br>
&gt; calculation is pretty simple:<br>
&gt; <a href="http://mathworld.wolfram.com/Point-PlaneDistance.html" target="_blank">http://mathworld.wolfram.com/Point-PlaneDistance.html</a><br>
&gt;<br>
&gt; Does that make sense?<br>
&gt;<br>
&gt; Thank you.<br>
&gt; -Laurent<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Jun 23, 2013 at 12:31 PM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; Laurent,<br>
&gt;<br>
&gt; For this special case of computing the intersection between a polydata<br>
&gt; and a plane, you can use a little trick. First, you can compute a new<br>
&gt; point data set for your polydata with,say, the z coordinates of each<br>
&gt; point in the polydata. Then, to get the intersection with an xy plane,<br>
&gt; you then use the vtkContourFilter operating on this coordinate point<br>
&gt; data and specify the z value that corresponds to your plane. The<br>
&gt; result should be equivalent to the intersection of the polydata with<br>
&gt; that plane.<br>
&gt;<br>
&gt; It should be relatively fast to compute the contour, so you can<br>
&gt; probably do this interactively.<br>
&gt;<br>
&gt; Hope that helps,<br>
&gt; Cory<br>
&gt;<br>
&gt; On Sat, Jun 22, 2013 at 2:46 PM, Laurent Chauvin<br>
&gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; I&#39;m working on Slicer, and I was trying to find a nice way to display<br>
&gt; intersection between polydata and a plane.<br>
&gt; I read we could use a vtkCutter, but the thing is, I would like to do<br>
&gt; this<br>
&gt; interactively. I want to be able to move the plane, and update the<br>
&gt; intersection while moving the plane.<br>
&gt; I&#39;m not sure using vtkCutter for this purpose would work. I think<br>
&gt; vtkCutter<br>
&gt; will take some times to execute, then moving the plane will be slow.<br>
&gt;<br>
&gt; I know this question has been asked before, but I would like if there<br>
&gt; were<br>
&gt; some update since then. New widgets or object that I could use for that<br>
&gt; ?<br>
&gt;<br>
&gt; I was thinking using vtkImageReslice, get polydata of the plane and<br>
&gt; compute<br>
&gt; the intersection between the 2 polydata, but I think it would also be to<br>
&gt; computing intensive to be able to do it smoothly with an interactive<br>
&gt; plane.<br>
&gt;<br>
&gt; Thank you.<br>
&gt; -Laurent<br>
&gt;<br>
&gt;<br>
&gt;<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>
&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;<br>
&gt; --<br>
&gt; Laurent Chauvin, MS<br>
&gt; Surgical Navigation and Robotics Laboratory, Radiology<br>
&gt; Brigham And Women&#39;s Hospital, Harvard Medical School<br>
&gt; <a href="http://wiki.ncigt.org/index.php/User:Lchauvin" target="_blank">http://wiki.ncigt.org/index.php/User:Lchauvin</a><br>
&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; &lt;PlaneIntersectionExample.pvsm&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Cory Quammen<br>
Research Associate<br>
Department of Computer Science<br>
The University of North Carolina at Chapel Hill<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Mon, 24 Jun 2013 11:05:39 -0400<br>
From: Laurent Chauvin &lt;<a href="mailto:lchauvin@bwh.harvard.edu">lchauvin@bwh.harvard.edu</a>&gt;<br>
Subject: Re: [vtkusers] Plane polydata intersection<br>
To: Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>&gt;<br>
Cc: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:339D1015-DE2E-4A6E-9E74-F78C876AE7DF@bwh.harvard.edu">339D1015-DE2E-4A6E-9E74-F78C876AE7DF@bwh.harvard.edu</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi Cory.<br>
<br>
Indeed the plane I will use can change position and direction.<br>
<br>
Please, could you explain what is custom shaders and how to use them to compute distance ?<br>
<br>
Thank you.<br>
-Laurent<br>
<br>
<br>
<br>
On Jun 24, 2013, at 10:46 AM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>&gt; wrote:<br>
<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">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 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">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">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;&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;&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">cquammen@cs.unc.edu</a>&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">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>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<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>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Mon, 24 Jun 2013 15:32:32 +0000<br>
From: David Cole &lt;<a href="mailto:dlrdave@aol.com">dlrdave@aol.com</a>&gt;<br>
Subject: Re: [vtkusers] vtkborderwidget in vtk6.0rc3<br>
To: &quot; <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a> &quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;, chasank<br>
        &lt;<a href="mailto:chasank@gmail.com">chasank@gmail.com</a>&gt;<br>
Message-ID: &lt;<a href="mailto:20130624153446.3248465791@public.kitware.com">20130624153446.3248465791@public.kitware.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
&gt; Although vtk5.10.1 has vtkBorderWidget class, vtk6.0rc3 has not<br>
&gt; vtkBorderWidget class. Also, this class is not marked as deprecated in<br>
&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; wonder whether vtk6.0 stable version will have this class. If not, which<br>
&gt; class will be used instead of vtkBorderWidget in vtk6.0 stable version.<br>
<br>
<br>
<br>
If I do a checkout of VTK 6.0.0.rc3:<br>
<br>
$ git checkout v6.0.0.rc3<br>
<br>
<br>
And then look for files with ?border? in the name:<br>
<br>
$ find . | grep -i border<br>
./Interaction/Widgets/Testing/Cxx/TestBorderWidget.cxx<br>
./Interaction/Widgets/Testing/Cxx/vtkBorderWidgetTest1.cxx<br>
./Interaction/Widgets/vtkBorderRepresentation.cxx<br>
./Interaction/Widgets/vtkBorderRepresentation.h<br>
./Interaction/Widgets/vtkBorderWidget.cxx<br>
./Interaction/Widgets/vtkBorderWidget.h<br>
./Rendering/OpenGL/Testing/Cxx/TestImageResliceMapperBorder.cxx<br>
./Rendering/OpenGL/Testing/Cxx/TestImageSliceMapperBorder.cxx<br>
<br>
<br>
They do indeed appear to be in VTK 6.0.0 rc3. I wonder why you don?t think they?re there...?<br>
<br>
<br>
<br>
HTH,<br>
<br>
David C.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<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>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Mon, 24 Jun 2013 11:39:19 -0400<br>
From: &quot;Marcus D. Hanwell&quot; &lt;<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>&gt;<br>
Subject: Re: [vtkusers] building vtk6, simple example<br>
To: Randy Heiland &lt;<a href="mailto:heiland@indiana.edu">heiland@indiana.edu</a>&gt;<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;CAMkPkZVtAAPd7UqEpS1_JvncYmbaRb0qJ4=<a href="mailto:E1RbwMQwcEvMSwA@mail.gmail.com">E1RbwMQwcEvMSwA@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
On Mon, Jun 24, 2013 at 9:25 AM, Randy Heiland &lt;<a href="mailto:heiland@indiana.edu">heiland@indiana.edu</a>&gt; wrote:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt; Thought I&#39;d take a stab at VTK6 and will ask the about the build process,<br>
&gt; in general, as well as a specific link error, while I also dig a little<br>
&gt; deeper.  I did a simple cmake/build via:<br>
&gt; cmake  -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++<br>
&gt;  -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc  ../VTK6.0.0.rc3<br>
&gt;<br>
&gt; and make install.  Then I downloaded the tarball from here:<br>
&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; successful cmake on it, but then got:<br>
&gt;<br>
&gt; ~/dev/vtk6-play/SimplePointsReader/build$ make<br>
&gt; Scanning dependencies of target SimplePointsReader<br>
&gt; [100%] Building CXX object<br>
&gt; CMakeFiles/SimplePointsReader.dir/SimplePointsReader.cxx.o<br>
&gt; Linking CXX executable<br>
&gt; SimplePointsReader.app/Contents/MacOS/SimplePointsReader<br>
&gt; ld: library not found for -lvtkFiltersParallelFlowPaths<br>
&gt; collect2: ld returned 1 exit status<br>
&gt;<br>
&gt; This seemed curious, since I hadn&#39;t turned on any parallel flags in the<br>
&gt; VTK cmake.  But sure enough, I saw that some parallel libs had been built,<br>
&gt; e.g.:<br>
&gt; ~/dev/vtk6-build$ ls /usr/local/lib/libvtk*Paral*.dylib<br>
&gt; /usr/local/lib/libvtkFiltersParallel-6.0.1.dylib*<br>
&gt; /usr/local/lib/libvtkFiltersParallel-6.0.dylib@<br>
&gt; /usr/local/lib/libvtkFiltersParallelImaging-6.0.1.dylib*<br>
&gt; /usr/local/lib/libvtkFiltersParallelImaging-6.0.dylib@<br>
&gt; /usr/local/lib/libvtkIOParallel-6.0.1.dylib*<br>
&gt; /usr/local/lib/libvtkIOParallel-6.0.dylib@<br>
&gt; /usr/local/lib/libvtkParallelCore-6.0.1.dylib*<br>
&gt; /usr/local/lib/libvtkParallelCore-6.0.dylib@<br>
&gt;<br>
&gt; Fwiw, I also have:<br>
&gt; ~/dev/vtk6-build$ grep parallel CMakeCache.txt |grep bool<br>
&gt; Module_vtkFiltersParallelFlowPaths:BOOL=OFF<br>
&gt; Module_vtkFiltersParallelGeometry:BOOL=OFF<br>
&gt; Module_vtkFiltersParallelMPI:BOOL=OFF<br>
&gt; Module_vtkFiltersParallelStatistics:BOOL=OFF<br>
&gt; Module_vtkIOMPIParallel:BOOL=OFF<br>
&gt; Module_vtkIOParallelExodus:BOOL=OFF<br>
&gt; Module_vtkIOParallelLSDyna:BOOL=OFF<br>
&gt; Module_vtkIOParallelNetCDF:BOOL=OFF<br>
&gt; Module_vtkInfovisParallel:BOOL=OFF<br>
&gt; Module_vtkParallelMPI:BOOL=OFF<br>
&gt; Module_vtkRenderingParallel:BOOL=OFF<br>
&gt;<br>
&gt; So, a couple questions - why are parallel libs being built and why does<br>
&gt; this example seem to require them?  Apologies if I missed info on the wiki,<br>
&gt; etc.<br>
&gt;<br>
<br>
Part of this stems from the CMakeLists.txt in the example - if you use<br>
find_package(VTK) without specifying components then use ${VTK_LIBRARIES}<br>
you will basically link to everything VTK built. This is not normally what<br>
people want, and you can see the pre-6.0 version called out vtkHybrid. The<br>
wiki page below provides more background,<br>
<br>
<a href="http://www.vtk.org/Wiki/VTK/Build_System_Migration" target="_blank">http://www.vtk.org/Wiki/VTK/Build_System_Migration</a><br>
<br>
It leads to the question of why the VTK you built thinks<br>
vtkFiltersParallelFlowPaths was enabled when it was now. We will build some<br>
of the parallel modules that do not require MPI for example - they are<br>
probably in the StandAlone group, although it is possible they would be<br>
better in a parallel group of their own. The examples attempt to work with<br>
VTK 5 and 6, adding the components would make that harder to achieve which<br>
is why I think their CMake code is written the way it is.<br>
<br>
Hope that makes it clearer, thanks for bringing this up. I would like to<br>
get to the bottom of why VTK has incorrectly labelled a module as enabled<br>
that was not built.<br>
<br>
Marcus<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<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>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Mon, 24 Jun 2013 15:34:54 +0000<br>
From: David Cole &lt;<a href="mailto:dlrdave@aol.com">dlrdave@aol.com</a>&gt;<br>
Subject: Re: [vtkusers] Render Control<br>
To: &quot; <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a> &quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;, Max<br>
        &lt;<a href="mailto:smapersmaper@gmail.com">smapersmaper@gmail.com</a>&gt;<br>
Message-ID: &lt;<a href="mailto:20130624154152.DF67C63DED@public.kitware.com">20130624154152.DF67C63DED@public.kitware.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
&gt; Hi David and thank you for the reply,<br>
<br>
<br>
sure, no problem.<br>
<br>
<br>
<br>
&gt; so what is the way to add the render control to the winform in 64 bit?<br>
&gt; Currently what I did:<br>
<br>
&gt;   ...<br>
&gt; well, it works in runtime<br>
<br>
<br>
Good, it?s supposed to.<br>
<br>
<br>
<br>
&gt; but it says it cannot find the kitware clr in<br>
&gt; design time.<br>
<br>
<br>
It?s right, because Visual Studio is a 32-bit host, and it CANNOT LOAD 64-bit controls. It can only load ?Any CPU? controls that can be just-in-time compiled to a 32-bit architecture. The ActiViz dlls cannot be just-in-time compiled to any old architecture -- it has to match the underlying native dlls that get loaded.<br>

<br>
<br>
So, this is normal and expected behavior in the case of ActiViz. It?s strange when you first encounter it, because there aren?t many .NET controls that have this type of native code dependency. But it is the way it is, and Visual Studio itself will probably never be a 64-bit app.<br>

<br>
<br>
<br>
&gt; Also i don&#39;t think that for it to work i need to install also 86 bit version<br>
&gt; of activiz<br>
<br>
<br>
Yes, you do, if you want to add it the ?normal? way you add things at design time in Visual Studio. You have to add it as the 32-bit control, then switch your application?s target architecture and swap the references to the 64-bit versions... Then just ignore the Visual Studio design-time ?errors? that you get. If you can build and run it, then it?s all working as best it can.<br>

<br>
<br>
<br>
&gt; i tried to add the control through kitware dll but it cannot find it...<br>
&gt; Something is not right here i think...<br>
&gt; Can you please tell me what i did wrong?<br>
<br>
<br>
I don?t think you?ve done anything wrong, because you say ?it works in runtime? -- if you had done something wrong, it wouldn?t.<br>
<br>
<br>
<br>
Cheers,<br>
<br>
David C.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<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>&gt;<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
vtkusers mailing list<br>
<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
End of vtkusers Digest, Vol 110, Issue 32<br>
*****************************************<br>
</blockquote></div><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: +49-157-35652212</b></span><br></div>
</div></div>