<div dir="ltr"><div><div><div>Dear Rahul,<br></div>it is just the way VTK creates 
pointers to objects. VTK uses/prefers Smart Pointers to raw pointers to 
free the user from the problems related to faults and leaks when one 
forgets to delete a pointer to deallocate the allocated memory, handles 
the out of scope situations, etc.<br>
<br></div><div>The argument between &lt;&gt; is the type of object the 
Smart Pointer actually points at, i.e., it will allocate an amount of 
memory depending on the type of object.<br><br></div>You may want to have a look at this reference:<br>
<a href="http://www.vtk.org/Wiki/VTK/Tutorials/SmartPointers" target="_blank">http://www.vtk.org/Wiki/VTK/Tutorials/SmartPointers</a><br><br></div>HTH,<br>JON HAITZ</div><div class="gmail_extra"><br clear="all"><div><table border="0" cellpadding="0" cellspacing="0" align="center">
<tbody><tr><td><table style="border-width:1px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9" border="0" cellpadding="0" width="100%"><tbody><tr><td style="border-width:1px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#ffffff">
<div align="left"><a href="http://www.vicomtech.org/" target="_blank"><img src="http://www.vicomtech.es/firmas/html/logovicomtech_150.png" longdesc="http://Visual+Interaction+Communication+Technologies" border="0" height="150" width="211"></a></div>
</td><td style="border-width:0px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9"><div align="center"><img src="http://www.vicomtech.es/firmas/html/barraSinFondo_150.png" border="0" height="150" width="10"></div>
</td><td style="border-width:0px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9"><table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"><tbody><tr><td><table border="0" cellpadding="0" align="center">
<tbody><tr><td><span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif;font-weight:bold">Jon Haitz Legarreta Gorrońo</span></td></tr><tr><td><span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif">Ikertzailea / Investigador / Researcher</span></td>
</tr><tr><td>
<span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif">
eOsasuna eta Aplikazio Biomedikoak / eSalud y Aplicaciones Biomedicas / eHealth &amp; Biomedical Applications
</span>
</td></tr><tr><td><table border="0" cellpadding="0" width="100%" align="left"><tbody><tr><td><span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif"><a href="http://www.vicomtech.es/castellano/html/contacto/index.html" target="_blank">Donostia - San Sebastián - Spain</a></span></td>
<td rowspan="3" style="border-width:0px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9" align="right"><div align="right"><a href="http://www.vicomtech.org/" target="_blank"><img src="http://www.vicomtech.es/firmas/html/ojo.png" longdesc="http://Visual+Interaction+Communication+Technologies+-+IK4+Research+Alliance" border="0" height="74" width="104"></a></div>
</td></tr><tr><td><span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif">Tel: +[34] 943 30 92 30</span></td></tr><tr><td><span style="font-size:10px;color:blue;font-family:Verdana,Arial,Helvetica,sans-serif"><a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a></span></td>
</tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td><td style="border-width:0px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9"><div align="center"><img src="http://www.vicomtech.es/firmas/html/barraSinFondo_150.png" border="0" height="150" width="10"></div>
</td><td style="border-width:1px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#ffffff"><div align="left"><img src="http://www.vicomtech.es/firmas/html/GraphicsMediaNet-IK4_150.png" longdesc="http://International+Network+for+the+Cooperation+in+Applied+Research+in+Computer+Graphics,+Multimoda-Multimedia+Technologies+and+Visual+Interactive+Digital+Media+Technologies+-+IK4+Research+Alliance" usemap="#SafeHtmlFilter_graphicsmedia-ik4" border="0" height="150" width="211"><map name="SafeHtmlFilter_graphicsmedia-ik4"><area shape="rect" coords="0,0,211,75" href="http://www.ik4.es" target="_blank"><area shape="rect" coords="0,75,211,150" href="http://www.graphicsmedia.net/" target="_blank"></map></div>
</td></tr></tbody></table></td></tr><tr><td><table border="0" cellpadding="0" align="center"><tbody><tr><td><span style="font-size:10px;color:gray;font-family:Verdana,Arial,Helvetica,sans-serif"><a href="http://www.vicomtech.es/castellano/html/informacion_legal/index.html" style="color:gray" target="_blank">Aviso Legal - Política de privacidad</a> / <a href="http://www.vicomtech.es/euskera/html/informacion_legal/index.html" style="color:gray" target="_blank">Lege Oharra - Pribatutasun politika</a> / <a href="http://www.vicomtech.es/ingles/html/informacion_legal/index.html" style="color:gray" target="_blank">Legal Notice - Privacy policy</a></span></td>
</tr></tbody></table></td></tr></tbody></table></div>
<br><br><div class="gmail_quote">On 28 June 2013 11:42, rahul indoria <span dir="ltr">&lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,<div>   i am new on vtk and facing many problems in understanding VTK  examples.</div><div><br></div><div>could you please tell me the meaning of this statement:</div><div><br></div><div>
<br></div><div><pre style="vertical-align:top;line-height:1.2em;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none"><span style="font-size:10.399999618530273px"> </span><font size="4">vtkSmartPointer<span style="color:rgb(0,0,128)">&lt;</span> vtkImageReader2Factory <span style="color:rgb(0,0,128)">&gt;</span> imageFactory = vtkSmartPointer<span style="color:rgb(0,0,128)">&lt;</span> vtkImageReader2Factory <span style="color:rgb(0,0,128)">&gt;</span><span style="color:rgb(0,128,128)">::</span><span style="color:rgb(0,119,136)">New</span><span style="color:rgb(0,128,0)">(</span><span style="color:rgb(0,128,0)">)</span><span style="color:rgb(0,128,128)">;</span></font></pre>

</div><div><font size="4"><br></font></div><div><font size="4">Looking forward your reply soon.</font></div><div><font size="4"><br></font></div><div><font size="4"><br></font></div><div><font size="4"><br></font></div><div>

<font size="4">rahul indoria</font></div><div><font size="4"><br></font></div><div><font size="4"><br></font></div><div><font size="4"><br></font><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 24, 2013 at 5:49 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" target="_blank">vtkusers@vtk.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:vtkusers-owner@vtk.org" target="_blank">vtkusers-owner@vtk.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of vtkusers digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: Plane polydata intersection (Cory Quammen)<br>
   2. Re: Dispose to vtk objects (David Cole)<br>
   3. Please Help (rahul indoria)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 24 Jun 2013 11:42:52 -0400<br>
From: Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">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" target="_blank">lchauvin@bwh.harvard.edu</a>&gt;<br>
Cc: &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CANmPiKDmt-pXosFGSeQFOzG-uOFE6QhEaW-nnuEEN128w89ozQ@mail.gmail.com" target="_blank">CANmPiKDmt-pXosFGSeQFOzG-uOFE6QhEaW-nnuEEN128w89ozQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Laurent,<br>
<br>
By shaders, I mean GLSL shaders [1]. You can write custom vertex and<br>
fragment shaders than enable very careful control of how various<br>
elements of your scene are rendered. You can do things like modify the<br>
position of vertices, apply custom lighting, calculate the distance of<br>
each rendered pixels position to a plane, etc.<br>
<br>
In this case, you could simply have a fragment program that renders<br>
your polydata. For each fragment, you can get the coordinates of the<br>
fragment. With those coordinates, you can compute the distance to your<br>
plane. If the distance is outside some threshold, you can discard the<br>
fragment, which means it won&#39;t wind up in the final image. In the end,<br>
you should wind up with a thin strip of your original geometry<br>
representing the intersection of the geometry with the plane.<br>
<br>
In VTK, shaders are set through properties of vtkActors [2].<br>
Unfortunately, there isn&#39;t much documentation nor many examples for<br>
shaders available (that I know of), so I can&#39;t give you any quick<br>
pointers on how to use them.<br>
<br>
[1] <a href="http://en.wikipedia.org/wiki/GLSL" target="_blank">http://en.wikipedia.org/wiki/GLSL</a><br>
<br>
[2] <a href="http://www.vtk.org/doc/nightly/html/classvtkProperty.html#a399829856851c282d776eb138fca97d7" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkProperty.html#a399829856851c282d776eb138fca97d7</a><br>


<br>
Cory<br>
<br>
On Mon, Jun 24, 2013 at 11:05 AM, Laurent Chauvin<br>
&lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt; Hi Cory.<br>
&gt;<br>
&gt; Indeed the plane I will use can change position and direction.<br>
&gt;<br>
&gt; Please, could you explain what is custom shaders and how to use them to<br>
&gt; compute distance ?<br>
&gt;<br>
&gt; Thank you.<br>
&gt; -Laurent<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Jun 24, 2013, at 10:46 AM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; Laurent,<br>
&gt;<br>
&gt; If your plane doesn&#39;t change orientation, then you should be able to<br>
&gt; change your isolevel value as you move the plane along its normal,<br>
&gt; thereby avoiding the distance computation, e.g., compute the distance<br>
&gt; one time relative to the current plane, then add 5 to the isolevel if<br>
&gt; your plane moves 5 units along the plane normal, etc.<br>
&gt;<br>
&gt; For a non-geometry based approach, you might use custom shaders to<br>
&gt; compute the distance of each vertex to your plane and discard<br>
&gt; fragments that aren&#39;t within some distance to the plane. This would be<br>
&gt; fast but may suffer from giving you a more-than-one-pixel-thick<br>
&gt; representation of the intersection in parts of the scene closest to<br>
&gt; the camera and perhaps missing some pixels in parts of the scene<br>
&gt; furthest from the camera.<br>
&gt;<br>
&gt; Hope that helps,<br>
&gt; Cory<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jun 24, 2013 at 10:20 AM, Laurent Chauvin<br>
&gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">lchauvin@bwh.harvard.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Cory,<br>
&gt;<br>
&gt; Thank you for your reply.<br>
&gt;<br>
&gt; However, you said I have to compute distance from each point to my plane,<br>
&gt; then use vtkContourFilter.<br>
&gt; But I think it would be really heavy computation to compute distance from<br>
&gt; each point to the plane every time I move the plane, isn&#39;t it ?<br>
&gt;<br>
&gt; I would like to be able to display the intersection while the plane is<br>
&gt; moving. If I have a polydata like a bone or a skull or something like that,<br>
&gt; it would be really long to compute this distance, isn&#39;t it ?<br>
&gt;<br>
&gt; Thank you.<br>
&gt; -Laurent<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Jun 24, 2013, at 10:04 AM, Cory Quammen &lt;<a href="mailto:cquammen@cs.unc.edu" target="_blank">cquammen@cs.unc.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; On Sun, Jun 23, 2013 at 12:41 PM, Laurent Chauvin<br>
&gt; &lt;<a href="mailto:lchauvin@bwh.harvard.edu" target="_blank">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" target="_blank">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" target="_blank">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>
&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>
<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: 2<br>
Date: Mon, 24 Jun 2013 15:42:21 +0000<br>
From: David Cole &lt;<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>&gt;<br>
Subject: Re: [vtkusers] Dispose to vtk objects<br>
To: &quot; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a> &quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;, Max<br>
        &lt;<a href="mailto:smapersmaper@gmail.com" target="_blank">smapersmaper@gmail.com</a>&gt;<br>
Message-ID: &lt;<a href="mailto:20130624154810.60BF964D8D@public.kitware.com" target="_blank">20130624154810.60BF964D8D@public.kitware.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
&gt; Hi VTKers,<br>
&gt; Could someone please clarify this,<br>
&gt; I think it is relevant to any activiz application...<br>
&gt; I wrote a huge dispose function for disposing all the pipeline<br>
&gt; Is it really necessary? For this I need to track all the actors and all the<br>
&gt; filters for them to get disposed...<br>
<br>
<br>
<br>
<br>
As I said in my previous replies to this thread, you should only call ?Dispose? explicitly if it turns out to be necessary for a particular construction of a connected objects network.<br>
<br>
<br>
In general, you should NOT need to call Dispose.<br>
<br>
<br>
You CAN call it if necessary, but ONLY if you?re sure no other references to the object exist on the managed side. (Because if they do, and you Dispose of the object, that other reference may try to call a method on it later that will not succeed because Dispose has already been called...)<br>


<br>
<br>
I would say it is safe to call it at Form_Closed time or app shutdown, or some other similar situation in which many objects are being Disposed, deleted and forgotten about, and there will be no more calls via any references to them.<br>


<br>
<br>
Calls to Dispose are unnecessary unless proven otherwise.<br>
<br>
<br>
If you have a particular code snippet to send along, where you think Dispose really is necessary, then talking about a particular example is easier than this sort of general discussion.<br>
<br>
<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/3201356d/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130624/3201356d/attachment-0001.htm</a>&gt;<br>


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