<div dir="ltr">Hi,<div style>   Could you please tell me, is there any class or function in any class, which takes attribute values of points and displayed it as an image, please help.</div><div style><br></div><div style>
Looking forward your reply soon.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 3:16 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send vtkusers mailing list submissions to<br>
        <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of vtkusers digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: vtkusers Digest, Vol 111, Issue 16 (David Doria)<br>
   2. Re: FindCell method of vtkCellLocator (Biddiscombe, John A.)<br>
   3. Create &quot;ovoid&quot; with VTK (mar x)<br>
   4. Re: Create &quot;ovoid&quot; with VTK (Shawn Waldon)<br>
   5. Re: Create &quot;ovoid&quot; with VTK (Bill Lorensen)<br>
   6. tetgen mesh boundaries (Adrienne)<br>
   7. Re: Create &quot;ovoid&quot; with VTK (Bill Lorensen)<br>
   8. PointInPolygon works strange (shinpei)<br>
   9. Re: FindCell method of vtkCellLocator (shinpei)<br>
  10. Re: PointInPolygon works strange (Marco Nawijn)<br>
  11. add threshold filter to a volume (mipviwer vtk java) (amal jerbi)<br>
  12. g (sugavanesh chandrasekaran)<br>
  13. hi (sugavanesh chandrasekaran)<br>
  14. Re: PointInPolygon works strange (shinpei)<br>
  15. Re: My point cloud data won&#39;t display in the renderer. (Ruff)<br>
  16. Need Help (rahul indoria)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 9 Jul 2013 15:10:40 -0400<br>
From: David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] vtkusers Digest, Vol 111, Issue 16<br>
To: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>&gt;<br>
Cc: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CABDpjTnDGZTG73TSB9NDw5%2BarLq4m7dfj9%2Bwm0%2BKn4aQJWBoZg@mail.gmail.com">CABDpjTnDGZTG73TSB9NDw5+arLq4m7dfj9+wm0+Kn4aQJWBoZg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
&gt;   cols++; // why this statement ?<br>
This must just be the definition of &quot;resolution&quot; that is passed in via<br>
the command line. Apparently the number of columns is the &quot;resolution&quot;<br>
+ 1.<br>
<br>
&gt;   unsigned int numberOfPoints = rows * cols; // how these number points are generated<br>
This just defines the size of the point grid.<br>
<br>
&gt;   unsigned int numberOfPolys = (rows - 1) * (cols - 1); // what is this???<br>
If you make a grid of rectangles (topologically), there are rows*cols<br>
points, and (rows-1)*(cols-1) rectangles. Imagine a 3x3 grid of points<br>
- you&#39;ll see that you can draw a 2x2 grid of non-overlapping<br>
rectangles with the points as their corners.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 9 Jul 2013 20:39:13 +0000<br>
From: &quot;Biddiscombe, John A.&quot; &lt;<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>&gt;<br>
Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
To: shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt;, &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot;<br>
        &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:50320452A334BD42A5EC72BAD2145099087A4FB2@MBX110.d.ethz.ch">50320452A334BD42A5EC72BAD2145099087A4FB2@MBX110.d.ethz.ch</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
could it be that the first point you check is shared, so two is correct, but since you don&#39;t clear the Idlist between iterations, each subsequent check is just returning the same ids? (Check the vtkCellLocator code and see if the list is cleared, it may just be added to)<br>

<br>
JB<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a> [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] On Behalf Of shinpei<br>
Sent: 09 July 2013 14:24<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
<br>
Sry... I thought it would be clear what I mean.<br>
<br>
The geometry contains two triangles:<br>
Points are:<br>
(0 0 0)<br>
(0 10 0)<br>
(10 0 0)<br>
(10 10 0)<br>
<br>
with connection:<br>
(0 1 2)<br>
(1 2 3)<br>
<br>
     for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints(); ++ptId)<br>
    {<br>
        geometry-&gt;getPoints()-&gt;GetPoint(ptId, trianglePoint);<br>
<br>
        bounds[0] = trianglePoint[0] - 0.01;<br>
        bounds[1] = trianglePoint[0] + 0.01;<br>
        bounds[2] = trianglePoint[1] - 0.01;<br>
        bounds[3] = trianglePoint[1] + 0.01;<br>
        bounds[4] = trianglePoint[2] - 0.01;<br>
        bounds[5] = trianglePoint[2] + 0.01;<br>
<br>
        cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
<br>
        int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
    }<br>
<br>
The trianglePoint is e.g. (0 0 0) (first iteration of the loop) so I should get only one triangle, but I get always two triangles. The bb is small enough and there is a point which correspons to only one triangle.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 9 Jul 2013 23:06:15 +0200<br>
From: mar x &lt;<a href="mailto:myint101@gmail.com">myint101@gmail.com</a>&gt;<br>
Subject: [vtkusers] Create &quot;ovoid&quot; with VTK<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;CAHbewjfRdzoUWfgk+W_=j=<a href="mailto:yUOecTqPaP6AiKhHtqiaD5ZmiYZQ@mail.gmail.com">yUOecTqPaP6AiKhHtqiaD5ZmiYZQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Dear VTK list,<br>
<br>
I want to create a 3D object that looks like an egg/ovoid. I tried to to<br>
this with vtkSphere and by setting the vtkTransform-&gt;Scale to something<br>
like 3,1,1 but it&#39;s not working. I would be very glad if you could help me<br>
on this. Please find below the code and thank you for any help!<br>
<br>
<br>
vtkSphereSource *sSource= vtkSphereSource::New();<br>
   sSource-&gt;SetThetaResolution( 12);<br>
   sSource-&gt;SetPhiResolution (  12);<br>
   sSource-&gt;SetCenter( 0, 0, 0 );<br>
   sSource-&gt;SetRadius( 10.0 );<br>
<br>
vtkTransform* transform = vtkTransform::New();<br>
     transform-&gt;Identity();<br>
   transform-&gt;Scale(3,1,1);<br>
   transform-&gt;Update();<br>
   vtkSphere* sphere = vtkSphere::New();<br>
   sphere-&gt;SetCenter(0,0,0);<br>
  sphere-&gt;SetTransform(transform);<br>
<br>
     vtkSmartPointer&lt;vtkClipPolyData&gt; clipper =<br>
vtkSmartPointer&lt;vtkClipPolyData&gt;::New();<br>
    clipper-&gt;SetInputConnection(sSource-&gt;GetOutputPort());<br>
    clipper-&gt;SetClipFunction(sphere);<br>
    clipper-&gt;SetValue(0);<br>
    clipper-&gt;Update();<br>
<br>
  vtkPolyDataMapper *map = vtkPolyDataMapper::New();<br>
  map-&gt;SetInput(clipper-&gt;GetOutput());<br>
<br>
  vtkActor *aSphere = vtkActor::New();<br>
  aSphere-&gt;SetMapper(map);<br>
  aSphere-&gt;GetProperty()-&gt;SetColor(0,0,1);<br>
......<br>
.....<br>
.....<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/849d93ed/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/849d93ed/attachment-0001.htm</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 9 Jul 2013 17:11:15 -0400<br>
From: Shawn Waldon &lt;<a href="mailto:swaldon@cs.unc.edu">swaldon@cs.unc.edu</a>&gt;<br>
Subject: Re: [vtkusers] Create &quot;ovoid&quot; with VTK<br>
To: mar x &lt;<a href="mailto:myint101@gmail.com">myint101@gmail.com</a>&gt;<br>
Cc: VTK &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CAKqg6a6z2eFMO3KsfTp8fJV0PhS91zE7vve2AXTnMFMUzzunkA@mail.gmail.com">CAKqg6a6z2eFMO3KsfTp8fJV0PhS91zE7vve2AXTnMFMUzzunkA@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
You probably want something more like:<br>
<br>
vtkSphereSource *sSource= vtkSphereSource::New();<br>
   sSource-&gt;SetThetaResolution( 12);<br>
   sSource-&gt;SetPhiResolution (  12);<br>
   sSource-&gt;SetCenter( 0, 0, 0 );<br>
   sSource-&gt;SetRadius( 10.0 );<br>
<br>
vtkTransform* transform = vtkTransform::New();<br>
     transform-&gt;Identity();<br>
   transform-&gt;Scale(3,1,1);<br>
   transform-&gt;Update();<br>
vtkTransformPolyDataFilter* tFilter = vtkTransformPolyDataFilter::New();<br>
tFilter-&gt;SetInputConnection(sSource.GetOutputPort());<br>
tFilter-&gt;SetTransform(transform);<br>
tFilter-&gt;Update()<br>
<br>
vtkPolyDataMapper *map = vtkPolyDataMapper::New();<br>
map-&gt;SetInputConnection(tFilter-&gt;GetOutputPort());<br>
<br>
.................<br>
<br>
I didn&#39;t change your example much due to laziness and wanting to<br>
copy/paste, but you really should use vtkSmartPointers.<br>
<br>
<br>
<br>
On Tue, Jul 9, 2013 at 5:06 PM, mar x &lt;<a href="mailto:myint101@gmail.com">myint101@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Dear VTK list,<br>
&gt;<br>
&gt; I want to create a 3D object that looks like an egg/ovoid. I tried to to<br>
&gt; this with vtkSphere and by setting the vtkTransform-&gt;Scale to something<br>
&gt; like 3,1,1 but it&#39;s not working. I would be very glad if you could help me<br>
&gt; on this. Please find below the code and thank you for any help!<br>
&gt;<br>
&gt;<br>
&gt; vtkSphereSource *sSource= vtkSphereSource::New();<br>
&gt;    sSource-&gt;SetThetaResolution( 12);<br>
&gt;    sSource-&gt;SetPhiResolution (  12);<br>
&gt;    sSource-&gt;SetCenter( 0, 0, 0 );<br>
&gt;    sSource-&gt;SetRadius( 10.0 );<br>
&gt;<br>
&gt; vtkTransform* transform = vtkTransform::New();<br>
&gt;      transform-&gt;Identity();<br>
&gt;    transform-&gt;Scale(3,1,1);<br>
&gt;    transform-&gt;Update();<br>
&gt;    vtkSphere* sphere = vtkSphere::New();<br>
&gt;    sphere-&gt;SetCenter(0,0,0);<br>
&gt;   sphere-&gt;SetTransform(transform);<br>
&gt;<br>
&gt;      vtkSmartPointer&lt;vtkClipPolyData&gt; clipper =<br>
&gt; vtkSmartPointer&lt;vtkClipPolyData&gt;::New();<br>
&gt;     clipper-&gt;SetInputConnection(sSource-&gt;GetOutputPort());<br>
&gt;     clipper-&gt;SetClipFunction(sphere);<br>
&gt;     clipper-&gt;SetValue(0);<br>
&gt;     clipper-&gt;Update();<br>
&gt;<br>
&gt;   vtkPolyDataMapper *map = vtkPolyDataMapper::New();<br>
&gt;   map-&gt;SetInput(clipper-&gt;GetOutput());<br>
&gt;<br>
&gt;   vtkActor *aSphere = vtkActor::New();<br>
&gt;   aSphere-&gt;SetMapper(map);<br>
&gt;   aSphere-&gt;GetProperty()-&gt;SetColor(0,0,1);<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>
<br>
<br>
--<br>
Shawn Waldon<br>
Graduate Student<br>
Department of Computer Science<br>
University of North Carolina at Chapel Hill<br>
<a href="mailto:swaldon@cs.unc.edu">swaldon@cs.unc.edu</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/45e7e8a5/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/45e7e8a5/attachment-0001.htm</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Tue, 9 Jul 2013 17:16:14 -0400<br>
From: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] Create &quot;ovoid&quot; with VTK<br>
To: Shawn Waldon &lt;<a href="mailto:swaldon@cs.unc.edu">swaldon@cs.unc.edu</a>&gt;<br>
Cc: VTK &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;CADZJ4hPLLbBhch3ck=<a href="mailto:0939SeBr_LrDdSXJDCVcDgS_C1Jmjj4w@mail.gmail.com">0939SeBr_LrDdSXJDCVcDgS_C1Jmjj4w@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Or try:<br>
// .NAME vtkParametricEllipsoid - Generate an ellipsoid.<br>
// .SECTION Description<br>
// vtkParametricEllipsoid generates an ellipsoid.<br>
// If all the radii are the same, we have a sphere.<br>
// An oblate spheroid occurs if RadiusX = RadiusY &gt; RadiusZ.<br>
// Here the Z-axis forms the symmetry axis. To a first<br>
// approximation, this is the shape of the earth.<br>
// A prolate spheroid occurs if RadiusX = RadiusY &lt; RadiusZ.<br>
<br>
<br>
<br>
On Tue, Jul 9, 2013 at 5:11 PM, Shawn Waldon &lt;<a href="mailto:swaldon@cs.unc.edu">swaldon@cs.unc.edu</a>&gt; wrote:<br>
<br>
&gt; You probably want something more like:<br>
&gt;<br>
&gt; vtkSphereSource *sSource= vtkSphereSource::New();<br>
&gt;    sSource-&gt;SetThetaResolution( 12);<br>
&gt;    sSource-&gt;SetPhiResolution (  12);<br>
&gt;    sSource-&gt;SetCenter( 0, 0, 0 );<br>
&gt;    sSource-&gt;SetRadius( 10.0 );<br>
&gt;<br>
&gt; vtkTransform* transform = vtkTransform::New();<br>
&gt;      transform-&gt;Identity();<br>
&gt;    transform-&gt;Scale(3,1,1);<br>
&gt;    transform-&gt;Update();<br>
&gt; vtkTransformPolyDataFilter* tFilter = vtkTransformPolyDataFilter::New();<br>
&gt; tFilter-&gt;SetInputConnection(sSource.GetOutputPort());<br>
&gt; tFilter-&gt;SetTransform(transform);<br>
&gt; tFilter-&gt;Update()<br>
&gt;<br>
&gt; vtkPolyDataMapper *map = vtkPolyDataMapper::New();<br>
&gt; map-&gt;SetInputConnection(tFilter-&gt;GetOutputPort());<br>
&gt;<br>
&gt; .................<br>
&gt;<br>
&gt; I didn&#39;t change your example much due to laziness and wanting to<br>
&gt; copy/paste, but you really should use vtkSmartPointers.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 9, 2013 at 5:06 PM, mar x &lt;<a href="mailto:myint101@gmail.com">myint101@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Dear VTK list,<br>
&gt;&gt;<br>
&gt;&gt; I want to create a 3D object that looks like an egg/ovoid. I tried to to<br>
&gt;&gt; this with vtkSphere and by setting the vtkTransform-&gt;Scale to something<br>
&gt;&gt; like 3,1,1 but it&#39;s not working. I would be very glad if you could help me<br>
&gt;&gt; on this. Please find below the code and thank you for any help!<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; vtkSphereSource *sSource= vtkSphereSource::New();<br>
&gt;&gt;    sSource-&gt;SetThetaResolution( 12);<br>
&gt;&gt;    sSource-&gt;SetPhiResolution (  12);<br>
&gt;&gt;    sSource-&gt;SetCenter( 0, 0, 0 );<br>
&gt;&gt;    sSource-&gt;SetRadius( 10.0 );<br>
&gt;&gt;<br>
&gt;&gt; vtkTransform* transform = vtkTransform::New();<br>
&gt;&gt;      transform-&gt;Identity();<br>
&gt;&gt;    transform-&gt;Scale(3,1,1);<br>
&gt;&gt;    transform-&gt;Update();<br>
&gt;&gt;    vtkSphere* sphere = vtkSphere::New();<br>
&gt;&gt;    sphere-&gt;SetCenter(0,0,0);<br>
&gt;&gt;   sphere-&gt;SetTransform(transform);<br>
&gt;&gt;<br>
&gt;&gt;      vtkSmartPointer&lt;vtkClipPolyData&gt; clipper =<br>
&gt;&gt; vtkSmartPointer&lt;vtkClipPolyData&gt;::New();<br>
&gt;&gt;     clipper-&gt;SetInputConnection(sSource-&gt;GetOutputPort());<br>
&gt;&gt;     clipper-&gt;SetClipFunction(sphere);<br>
&gt;&gt;     clipper-&gt;SetValue(0);<br>
&gt;&gt;     clipper-&gt;Update();<br>
&gt;&gt;<br>
&gt;&gt;   vtkPolyDataMapper *map = vtkPolyDataMapper::New();<br>
&gt;&gt;   map-&gt;SetInput(clipper-&gt;GetOutput());<br>
&gt;&gt;<br>
&gt;&gt;   vtkActor *aSphere = vtkActor::New();<br>
&gt;&gt;   aSphere-&gt;SetMapper(map);<br>
&gt;&gt;    aSphere-&gt;GetProperty()-&gt;SetColor(0,0,1);<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;<br>
&gt;<br>
&gt; --<br>
&gt; Shawn Waldon<br>
&gt; Graduate Student<br>
&gt; Department of Computer Science<br>
&gt; University of North Carolina at Chapel Hill<br>
&gt; <a href="mailto:swaldon@cs.unc.edu">swaldon@cs.unc.edu</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/5e4baa68/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/5e4baa68/attachment-0001.htm</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Tue, 9 Jul 2013 14:22:45 -0700 (PDT)<br>
From: Adrienne &lt;<a href="mailto:dunhama@spu.edu">dunhama@spu.edu</a>&gt;<br>
Subject: [vtkusers] tetgen mesh boundaries<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: &lt;<a href="mailto:1373404965041-5721853.post@n5.nabble.com">1373404965041-5721853.post@n5.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
It seems several people are familiar with tetgen, so I was wondering if<br>
anyone could help me out.<br>
<br>
I&#39;ve created a tetrahedron mesh using a set of vertices stored in a .node<br>
file. However, there are some parts on the boundary of the mesh that should<br>
be concave. I tried to specify those nodes using the boundary marker 1, but<br>
the mesh tetgen creates still surrounds those nodes (see node 8 below). Why<br>
doesn&#39;t this work?<br>
<br>
Here&#39;s a simplified example of my .node file:<br>
<br>
#test.node<br>
9 3 0 1<br>
0 0 0 0 1<br>
1 1 0 0 1<br>
2 1 1 0 1<br>
3 0 1 0 1<br>
4 0 0 1 1<br>
5 1 0 1 1<br>
6 1 1 1 1<br>
7 0 1 1 1<br>
8 0.2 0.5 0.5 1<br>
<br>
Thanks!<br>
Adrienne<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/tetgen-mesh-boundaries-tp5721853.html" target="_blank">http://vtk.1045678.n5.nabble.com/tetgen-mesh-boundaries-tp5721853.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Tue, 9 Jul 2013 17:50:38 -0400<br>
From: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] Create &quot;ovoid&quot; with VTK<br>
To: mar x &lt;<a href="mailto:myint101@gmail.com">myint101@gmail.com</a>&gt;, VTK Users &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CADZJ4hMfeODKBJ6fvviL7yn80b09SKrsGU0RQ6NJ8cbnroSvOQ@mail.gmail.com">CADZJ4hMfeODKBJ6fvviL7yn80b09SKrsGU0RQ6NJ8cbnroSvOQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
You could use<br>
<a href="http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilterto" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilterto</a><br>
create a union of a sphere and ellipsoid. This image might help:<br>
<a href="http://commons.wikimedia.org/wiki/File:Ovoid_plot.gif" target="_blank">http://commons.wikimedia.org/wiki/File:Ovoid_plot.gif</a><br>
<br>
<br>
<br>
On Tue, Jul 9, 2013 at 5:35 PM, mar x &lt;<a href="mailto:myint101@gmail.com">myint101@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Thanks for the fast answers. I tried both but both gives just an ellipsoid<br>
&gt; and no ovoid. In other words I want to create a 3D object that is a<br>
&gt; composition of a half sphere and and half ellipsoid.<br>
&gt;<br>
&gt; Best regards.<br>
&gt;<br>
&gt;<br>
&gt; 2013/7/9 Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
&gt;<br>
&gt;&gt; Or try:<br>
&gt;&gt; // .NAME vtkParametricEllipsoid - Generate an ellipsoid.<br>
&gt;&gt; // .SECTION Description<br>
&gt;&gt; // vtkParametricEllipsoid generates an ellipsoid.<br>
&gt;&gt; // If all the radii are the same, we have a sphere.<br>
&gt;&gt; // An oblate spheroid occurs if RadiusX = RadiusY &gt; RadiusZ.<br>
&gt;&gt; // Here the Z-axis forms the symmetry axis. To a first<br>
&gt;&gt; // approximation, this is the shape of the earth.<br>
&gt;&gt; // A prolate spheroid occurs if RadiusX = RadiusY &lt; RadiusZ.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Jul 9, 2013 at 5:11 PM, Shawn Waldon &lt;<a href="mailto:swaldon@cs.unc.edu">swaldon@cs.unc.edu</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; You probably want something more like:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; vtkSphereSource *sSource= vtkSphereSource::New();<br>
&gt;&gt;&gt;    sSource-&gt;SetThetaResolution( 12);<br>
&gt;&gt;&gt;    sSource-&gt;SetPhiResolution (  12);<br>
&gt;&gt;&gt;    sSource-&gt;SetCenter( 0, 0, 0 );<br>
&gt;&gt;&gt;    sSource-&gt;SetRadius( 10.0 );<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;  vtkTransform* transform = vtkTransform::New();<br>
&gt;&gt;&gt;      transform-&gt;Identity();<br>
&gt;&gt;&gt;    transform-&gt;Scale(3,1,1);<br>
&gt;&gt;&gt;    transform-&gt;Update();<br>
&gt;&gt;&gt; vtkTransformPolyDataFilter* tFilter = vtkTransformPolyDataFilter::New();<br>
&gt;&gt;&gt; tFilter-&gt;SetInputConnection(sSource.GetOutputPort());<br>
&gt;&gt;&gt; tFilter-&gt;SetTransform(transform);<br>
&gt;&gt;&gt; tFilter-&gt;Update()<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; vtkPolyDataMapper *map = vtkPolyDataMapper::New();<br>
&gt;&gt;&gt; map-&gt;SetInputConnection(tFilter-&gt;GetOutputPort());<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; .................<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I didn&#39;t change your example much due to laziness and wanting to<br>
&gt;&gt;&gt; copy/paste, but you really should use vtkSmartPointers.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Tue, Jul 9, 2013 at 5:06 PM, mar x &lt;<a href="mailto:myint101@gmail.com">myint101@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Dear VTK list,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I want to create a 3D object that looks like an egg/ovoid. I tried to<br>
&gt;&gt;&gt;&gt; to this with vtkSphere and by setting the vtkTransform-&gt;Scale to something<br>
&gt;&gt;&gt;&gt; like 3,1,1 but it&#39;s not working. I would be very glad if you could help me<br>
&gt;&gt;&gt;&gt; on this. Please find below the code and thank you for any help!<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; vtkSphereSource *sSource= vtkSphereSource::New();<br>
&gt;&gt;&gt;&gt;    sSource-&gt;SetThetaResolution( 12);<br>
&gt;&gt;&gt;&gt;    sSource-&gt;SetPhiResolution (  12);<br>
&gt;&gt;&gt;&gt;    sSource-&gt;SetCenter( 0, 0, 0 );<br>
&gt;&gt;&gt;&gt;    sSource-&gt;SetRadius( 10.0 );<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; vtkTransform* transform = vtkTransform::New();<br>
&gt;&gt;&gt;&gt;      transform-&gt;Identity();<br>
&gt;&gt;&gt;&gt;    transform-&gt;Scale(3,1,1);<br>
&gt;&gt;&gt;&gt;    transform-&gt;Update();<br>
&gt;&gt;&gt;&gt;    vtkSphere* sphere = vtkSphere::New();<br>
&gt;&gt;&gt;&gt;    sphere-&gt;SetCenter(0,0,0);<br>
&gt;&gt;&gt;&gt;   sphere-&gt;SetTransform(transform);<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;      vtkSmartPointer&lt;vtkClipPolyData&gt; clipper =<br>
&gt;&gt;&gt;&gt; vtkSmartPointer&lt;vtkClipPolyData&gt;::New();<br>
&gt;&gt;&gt;&gt;     clipper-&gt;SetInputConnection(sSource-&gt;GetOutputPort());<br>
&gt;&gt;&gt;&gt;     clipper-&gt;SetClipFunction(sphere);<br>
&gt;&gt;&gt;&gt;     clipper-&gt;SetValue(0);<br>
&gt;&gt;&gt;&gt;     clipper-&gt;Update();<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;   vtkPolyDataMapper *map = vtkPolyDataMapper::New();<br>
&gt;&gt;&gt;&gt;   map-&gt;SetInput(clipper-&gt;GetOutput());<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;   vtkActor *aSphere = vtkActor::New();<br>
&gt;&gt;&gt;&gt;   aSphere-&gt;SetMapper(map);<br>
&gt;&gt;&gt;&gt;    aSphere-&gt;GetProperty()-&gt;SetColor(0,0,1);<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;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Shawn Waldon<br>
&gt;&gt;&gt; Graduate Student<br>
&gt;&gt;&gt; Department of Computer Science<br>
&gt;&gt;&gt; University of North Carolina at Chapel Hill<br>
&gt;&gt;&gt; <a href="mailto:swaldon@cs.unc.edu">swaldon@cs.unc.edu</a><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;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Unpaid intern in BillsBasement at noware dot com<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/35740d0b/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/35740d0b/attachment-0001.htm</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Tue, 9 Jul 2013 17:27:48 -0700 (PDT)<br>
From: shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt;<br>
Subject: [vtkusers] PointInPolygon works strange<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: &lt;<a href="mailto:1373416068888-5721855.post@n5.nabble.com">1373416068888-5721855.post@n5.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Hi,<br>
<br>
I tried the example  PointInPolygon<br>
&lt;<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/PointInPolygon" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/PointInPolygon</a>&gt;   with<br>
the following code:<br>
<br>
int main()<br>
{<br>
    vtkNew(vtkPolygon, polygon);<br>
    polygon-&gt;GetPoints()-&gt;InsertNextPoint(0.0, 0.0, 0.0);<br>
    polygon-&gt;GetPoints()-&gt;InsertNextPoint(0.0, 10.0, 0.0);<br>
    polygon-&gt;GetPoints()-&gt;InsertNextPoint(10.0, 0.0, 0.0);<br>
<br>
    double testIn[3] = {5.0, 0.0, 0.0};<br>
<br>
    double n[3];<br>
    polygon-&gt;ComputeNormal(polygon-&gt;GetPoints()-&gt;GetNumberOfPoints(),<br>
<br>
static_cast&lt;double*&gt;(polygon-&gt;GetPoints()-&gt;GetData()-&gt;GetVoidPointer(0)),<br>
n);<br>
<br>
    double bounds[6];<br>
    polygon-&gt;GetPoints()-&gt;GetBounds(bounds);<br>
<br>
    std::cout &lt;&lt; &quot;testIn in polygon? &quot; &lt;&lt;<br>
<br>
polygon-&gt;PointInPolygon(testIn,polygon-&gt;GetPoints()-&gt;GetNumberOfPoints(),<br>
<br>
static_cast&lt;double*&gt;(polygon-&gt;GetPoints()-&gt;GetData()-&gt;GetVoidPointer(0)),<br>
                                         bounds, n) &lt;&lt; std::endl;<br>
    return EXIT_SUCCESS;<br>
}<br>
<br>
But the result is: The Point (5 0 0) is not in the polygon. This could not<br>
be the right result. The point rests on the edge (0 0 0) - (10 0 0) of the<br>
triangle.<br>
<br>
What is wrong?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/PointInPolygon-works-strange-tp5721855.html" target="_blank">http://vtk.1045678.n5.nabble.com/PointInPolygon-works-strange-tp5721855.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Tue, 9 Jul 2013 17:30:42 -0700 (PDT)<br>
From: shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt;<br>
Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: &lt;<a href="mailto:1373416242875-5721856.post@n5.nabble.com">1373416242875-5721856.post@n5.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
No the first point I check is (0 0 0) and this point corresponds only to one<br>
triangle.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721856.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721856.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 10<br>
Date: Wed, 10 Jul 2013 11:00:11 +0200<br>
From: Marco Nawijn &lt;<a href="mailto:nawijn@gmail.com">nawijn@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] PointInPolygon works strange<br>
To: shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt;<br>
Cc: VTK Users &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;CA+pnd0mG8hH-ecbVcT8=WMhaaTN-KqC=<a href="mailto:jBb7eNf5RDbpPD4BuA@mail.gmail.com">jBb7eNf5RDbpPD4BuA@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Dear Shinpei,<br>
<br>
I have never used this class/method before, but can it be a matter of<br>
definition? In my opinion you have the interior and the boundary defined by<br>
the polygon. I can imagine that &quot;PointInPolygon&quot; checks if the point is in<br>
the interior, so it excludes points on the boundary. Since your point is on<br>
the boundary, it would then be outside of the polygon.<br>
<br>
Kind regards,<br>
<br>
Marco<br>
<br>
<br>
<br>
On Wed, Jul 10, 2013 at 2:27 AM, shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I tried the example  PointInPolygon<br>
&gt; &lt;<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/PointInPolygon" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/PointInPolygon</a>&gt;   with<br>
&gt; the following code:<br>
&gt;<br>
&gt; int main()<br>
&gt; {<br>
&gt;     vtkNew(vtkPolygon, polygon);<br>
&gt;     polygon-&gt;GetPoints()-&gt;InsertNextPoint(0.0, 0.0, 0.0);<br>
&gt;     polygon-&gt;GetPoints()-&gt;InsertNextPoint(0.0, 10.0, 0.0);<br>
&gt;     polygon-&gt;GetPoints()-&gt;InsertNextPoint(10.0, 0.0, 0.0);<br>
&gt;<br>
&gt;     double testIn[3] = {5.0, 0.0, 0.0};<br>
&gt;<br>
&gt;     double n[3];<br>
&gt;     polygon-&gt;ComputeNormal(polygon-&gt;GetPoints()-&gt;GetNumberOfPoints(),<br>
&gt;<br>
&gt; static_cast&lt;double*&gt;(polygon-&gt;GetPoints()-&gt;GetData()-&gt;GetVoidPointer(0)),<br>
&gt; n);<br>
&gt;<br>
&gt;     double bounds[6];<br>
&gt;     polygon-&gt;GetPoints()-&gt;GetBounds(bounds);<br>
&gt;<br>
&gt;     std::cout &lt;&lt; &quot;testIn in polygon? &quot; &lt;&lt;<br>
&gt;<br>
&gt; polygon-&gt;PointInPolygon(testIn,polygon-&gt;GetPoints()-&gt;GetNumberOfPoints(),<br>
&gt;<br>
&gt; static_cast&lt;double*&gt;(polygon-&gt;GetPoints()-&gt;GetData()-&gt;GetVoidPointer(0)),<br>
&gt;                                          bounds, n) &lt;&lt; std::endl;<br>
&gt;     return EXIT_SUCCESS;<br>
&gt; }<br>
&gt;<br>
&gt; But the result is: The Point (5 0 0) is not in the polygon. This could not<br>
&gt; be the right result. The point rests on the edge (0 0 0) - (10 0 0) of the<br>
&gt; triangle.<br>
&gt;<br>
&gt; What is wrong?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/PointInPolygon-works-strange-tp5721855.html" target="_blank">http://vtk.1045678.n5.nabble.com/PointInPolygon-works-strange-tp5721855.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130710/b734c3ed/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130710/b734c3ed/attachment-0001.htm</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 11<br>
Date: Wed, 10 Jul 2013 11:01:10 +0200<br>
From: amal jerbi &lt;<a href="mailto:am.jerbi@gmail.com">am.jerbi@gmail.com</a>&gt;<br>
Subject: [vtkusers] add threshold filter to a volume (mipviwer vtk<br>
        java)<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CABf2nGVZM1Zn6o1unoA0cZY5JxGQWYsr-VZ_0iJvAVf9csWHEw@mail.gmail.com">CABf2nGVZM1Zn6o1unoA0cZY5JxGQWYsr-VZ_0iJvAVf9csWHEw@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
I would like to add a threshold filter to the example of<br>
<a href="http://gdcm.sourceforge.net/html/MIPViewer_8java-example.html" target="_blank">http://gdcm.sourceforge.net/html/MIPViewer_8java-example.html</a> I have add<br>
this code but that show now thing!!!<br>
<br>
vtkMeshQuality qualityFilter = new vtkMeshQuality();<br>
qualityFilter.SetInputConnection(change.GetOutputPort());<br>
qualityFilter.SetTriangleQualityMeasureToArea();<br>
qualityFilter.Update();<br>
tkDataSet qualityMesh = qualityFilter.GetOutput();<br>
vtkThreshold selectCells = new vtkThreshold();<br>
selectCells.ThresholdByLower(.1);<br>
selectCells.SetInputArrayToProcess(0, 0, 0, &quot;FIELD_ASSOCIATION_CELLS&quot;,<br>
&quot;vSCALARS&quot;);<br>
selectCells.SetInput(qualityMesh);<br>
selectCells.Update();<br>
vtkUnstructuredGrid ug = selectCells.GetOutput();<br>
mapper.SetInput(ug);<br>
<br>
also, when i execute the java code of the mipviewer (without threshold<br>
filter) i got the volume but whith an error :Extension GL_VERSION_1_2 could<br>
not be loaded so, i test the exixtance of the version1.2 like that:<br>
<br>
        vtkOpenGLExtensionManager extensions = new vtkOpenGLExtensionManager();<br>
        extensions.SetRenderWindow(renWin);<br>
        int etat = extensions.ExtensionSupported(&quot;GL_VERSION_1_2&quot;);<br>
        System.out.println(&quot;version=&quot; + etat);<br>
<br>
i got 1 so the version 1.2 exist on my graphic card!!! any idea to solve<br>
that maily the quality of the display is not good<br>
<br>
thanks a lot AMAL.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130710/8e997c29/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130710/8e997c29/attachment-0001.htm</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 12<br>
Date: Wed, 10 Jul 2013 03:47:29 -0700 (PDT)<br>
From: sugavanesh chandrasekaran &lt;<a href="mailto:sugavanesh.cs@gmail.com">sugavanesh.cs@gmail.com</a>&gt;<br>
Subject: [vtkusers] g<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: &lt;<a href="mailto:1373453249366-5721864.post@n5.nabble.com">1373453249366-5721864.post@n5.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
hi<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/g-tp5721864.html" target="_blank">http://vtk.1045678.n5.nabble.com/g-tp5721864.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 13<br>
Date: Wed, 10 Jul 2013 03:51:28 -0700 (PDT)<br>
From: sugavanesh chandrasekaran &lt;<a href="mailto:sugavanesh.cs@gmail.com">sugavanesh.cs@gmail.com</a>&gt;<br>
Subject: [vtkusers] hi<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: &lt;<a href="mailto:1373453488618-5721865.post@n5.nabble.com">1373453488618-5721865.post@n5.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
hi there,<br>
<br>
I have been doing vector plot using SetColorModeToColorByScale(); for<br>
showing vectors in equal length.<br>
<br>
But the problem is , at the boundary nodes, where the value is zero , it<br>
shows ( blue color ) all the vectors in same direction, ie., opposite to the<br>
actual right direction.<br>
<br>
This makes my vector plot to be entirely a wrong one.<br>
<br>
Can anyone give a solution to resolve this problem please.<br>
<br>
Thanks in advance..<br>
<br>
regards,<br>
sugavanesh<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/hi-tp5721865.html" target="_blank">http://vtk.1045678.n5.nabble.com/hi-tp5721865.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 14<br>
Date: Wed, 10 Jul 2013 05:07:35 -0700 (PDT)<br>
From: shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt;<br>
Subject: Re: [vtkusers] PointInPolygon works strange<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: &lt;<a href="mailto:1373458055144-5721866.post@n5.nabble.com">1373458055144-5721866.post@n5.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Could be, but it is not. When I check the point (1 0 0) the result is &quot;true&quot;,<br>
so &#39;on-the-edge&#39; is still inside.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/PointInPolygon-works-strange-tp5721855p5721866.html" target="_blank">http://vtk.1045678.n5.nabble.com/PointInPolygon-works-strange-tp5721855p5721866.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 15<br>
Date: Wed, 10 Jul 2013 05:56:13 -0700 (PDT)<br>
From: Ruff &lt;<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] My point cloud data won&#39;t display in the<br>
        renderer.<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: &lt;<a href="mailto:1373460973731-5721868.post@n5.nabble.com">1373460973731-5721868.post@n5.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Thank you! Although Im still confused about where to add my scalar values, or<br>
if you mean that I should pass the glyphFilter into my unstructuredGrid<br>
somehow.<br>
<br>
The examples uses points-&gt;polydata-&gt;glyphfilter, so I write:<br>
/polydata = vtkPolyData()<br>
polydata.SetPoints(    vtkPoints with [index,x,y,z]    )<br>
glyphFilter = vtkVertexGlyphFilter()<br>
glyphFilter.AddInput(polydata)/<br>
<br>
But I still haven&#39;t added my scalars! None of the examples does anything but<br>
render the points, without any distinction to scalar values.<br>
I suppose I can&#39;t use UnstructuredGridVolumeRayCastMapper, so what should I<br>
do with the polyData, to what do I add my scalar values, and how do I map<br>
it?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844p5721868.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844p5721868.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 16<br>
Date: Wed, 10 Jul 2013 15:16:12 +0200<br>
From: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>&gt;<br>
Subject: [vtkusers] Need Help<br>
To: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CAGQ%2B16LMUsrGD0u_RqWv_2E4_B-a06woqfdquYixRAHSymUPtQ@mail.gmail.com">CAGQ+16LMUsrGD0u_RqWv_2E4_B-a06woqfdquYixRAHSymUPtQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi All,<br>
         I am just modifying this example (<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation</a>).<br>
<br>
At this portion of this example,<br>
<br>
<br>
// Create a mapper and actor.<br>
  vtkSmartPointer&lt;vtkDataSetMapper&gt; mapper =<br>
    vtkSmartPointer&lt;vtkDataSetMapper&gt;::New();<br>
  mapper-&gt;SetInputConnection(sampleVolume-&gt;GetOutputPort());<br>
<br>
<br>
and this statement in function SetInputConnection:<br>
*sampleVolume-&gt;GetOutputPort()*, is giving me values on the surface.<br>
<br>
<br>
My Query:<br>
<br>
I have to use these values and using this values i have to generate a 2D image.<br>
<br>
could you please suggest me some class or the way(method), by which i<br>
can achieve this task. it`s really very urgent for me, please help.<br>
<br>
<br>
<br>
Looking forward your reply.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Tue, Jul 9, 2013 at 9:00 PM, &lt;<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a>&gt; wrote:<br>
<br>
&gt; Send vtkusers mailing list submissions to<br>
&gt;         <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt;<br>
&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;         <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt;         <a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br>
&gt;<br>
&gt; You can reach the person managing the list at<br>
&gt;         <a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br>
&gt;<br>
&gt; When replying, please edit your Subject line so it is more specific<br>
&gt; than &quot;Re: Contents of vtkusers digest...&quot;<br>
&gt;<br>
&gt;<br>
&gt; Today&#39;s Topics:<br>
&gt;<br>
&gt;    1. Re: My point cloud data won&#39;t display in the renderer.<br>
&gt;       (Bill Lorensen)<br>
&gt;    2. Re: vtkusers Digest, Vol 111, Issue 16 (rahul indoria)<br>
&gt;    3. Re: vtkusers Digest, Vol 111, Issue 16 (Bill Lorensen)<br>
&gt;<br>
&gt;<br>
&gt; ----------------------------------------------------------------------<br>
&gt;<br>
&gt; Message: 1<br>
&gt; Date: Tue, 9 Jul 2013 12:10:24 -0400<br>
&gt; From: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] My point cloud data won&#39;t display in the<br>
&gt;         renderer.<br>
&gt; To: Ruff &lt;<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>&gt;<br>
&gt; Cc: VTK Users &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;         &lt;CADZJ4hOT2J5Pg9C=<br>
&gt; <a href="mailto:SxkQ%2BWOisqxcqefh6r5GQhLAc%2B_2cCTMiA@mail.gmail.com">SxkQ+WOisqxcqefh6r5GQhLAc+_2cCTMiA@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; A vtkPoint is a geometric location. You need cells to visualize your data.<br>
&gt; in your case, you need Vert&#39;s, one for each Point. An easy way to create<br>
&gt; the verts is to use vtkVertexGlyphFilter.<br>
&gt;<br>
&gt; See for example:<br>
&gt; <a href="http://vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadTextFile" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadTextFile</a><br>
&gt; <a href="http://vtk.org/Wiki/VTK/Examples/Cxx/Filtering/VertexGlyphFilter" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/Filtering/VertexGlyphFilter</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 9, 2013 at 11:46 AM, Ruff &lt;<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; All i get is an empty renderWindow. I get no errors, but no data is<br>
&gt; &gt; rendered<br>
&gt; &gt; either. What am I doing wrong?<br>
&gt; &gt;<br>
&gt; &gt; What I do is pretty much this:<br>
&gt; &gt;<br>
&gt; &gt; AtomGrid=vtk.vtkUnstructuredGrid()<br>
&gt; &gt; AtomGrid.SetPoints(    vtkPoints with [index,x,y,z]    )<br>
&gt; &gt; AtomGrid.GetPointData().SetScalars(    vtkFloatArray with [index, scalar]<br>
&gt; &gt; )<br>
&gt; &gt;<br>
&gt; &gt; volMapper = vtk.vtkUnstructuredGridVolumeRayCastMapper()<br>
&gt; &gt; volMapper.SetBlendModeToComposite()<br>
&gt; &gt; volMapper.SetInput(AtomGrid)<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I tried volMapper.SetScalarModeToUsePointFieldData(), but then it claims<br>
&gt; &gt; that I have no scalar values to use(!!)<br>
&gt; &gt;<br>
&gt; &gt; (I cheated before, and was satisfied using ImageData for this, but now I<br>
&gt; &gt; really need to get this to work with UnstructuredGrid)<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/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.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;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Unpaid intern in BillsBasement at noware dot com<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/20130709/0b18f194/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/0b18f194/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 2<br>
&gt; Date: Tue, 9 Jul 2013 20:43:19 +0200<br>
&gt; From: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] vtkusers Digest, Vol 111, Issue 16<br>
&gt; To: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;         &lt;CAGQ+16JOmQ6-kXGLVqk=p5PUo9eY-scAhxsxfZ1vnanY4bY=<br>
&gt; <a href="mailto:YQ@mail.gmail.com">YQ@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; Hi,<br>
&gt;    Can you explain me some portion of the code of this example (<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation</a>)?<br>
&gt;<br>
&gt; i need to ask the line by line documentation of this function, how these<br>
&gt; points and surface is formed?<br>
&gt;<br>
&gt;<br>
&gt; vtkSmartPointer&lt;vtkPolyData&gt; SweepLine (vtkPolyData *line,<br>
&gt;                                         double direction[3],<br>
&gt;                                         double distance,<br>
&gt;                                         unsigned int cols)<br>
&gt;<br>
&gt; {<br>
&gt;<br>
&gt; unsigned int rows = line-&gt;GetNumberOfPoints();<br>
&gt;<br>
&gt;   double spacing = distance / cols;<br>
&gt;   vtkSmartPointer&lt;vtkPolyData&gt; surface =<br>
&gt;     vtkSmartPointer&lt;vtkPolyData&gt;::New();<br>
&gt;<br>
&gt;   // Generate the points<br>
&gt;   cols++; // why this statement ?<br>
&gt;   unsigned int numberOfPoints = rows * cols; // how these number<br>
&gt; points are generated<br>
&gt;   unsigned int numberOfPolys = (rows - 1) * (cols - 1); // what is this???<br>
&gt;<br>
&gt;<br>
&gt; vtkSmartPointer&lt;vtkPoints&gt; points =<br>
&gt;     vtkSmartPointer&lt;vtkPoints&gt;::New();<br>
&gt;   points-&gt;Allocate(numberOfPoints);<br>
&gt;   vtkSmartPointer&lt;vtkCellArray&gt; polys =<br>
&gt;     vtkSmartPointer&lt;vtkCellArray&gt;::New();<br>
&gt;   polys-&gt;Allocate(numberOfPolys*4);<br>
&gt;<br>
&gt;   double x[3];<br>
&gt;   unsigned int cnt = 0;<br>
&gt;   for (unsigned int row = 0; row &lt; rows; row++)<br>
&gt;     {<br>
&gt;       for (unsigned int col = 0; col &lt; cols; col++)<br>
&gt;         {<br>
&gt;           double p[3];<br>
&gt;           line-&gt;GetPoint(row, p);<br>
&gt;           x[0] = p[0] + direction[0] * col * spacing;<br>
&gt;           x[1] = p[1] + direction[1] * col * spacing;<br>
&gt;           x[2] = p[2] + direction[2] * col * spacing;<br>
&gt;           points-&gt;InsertPoint(cnt++, x);<br>
&gt;         }<br>
&gt;     }<br>
&gt;   // Generate the quads<br>
&gt;   vtkIdType pts[4];<br>
&gt;   for (unsigned int row = 0; row &lt; rows - 1; row++)<br>
&gt;     {<br>
&gt;       for (unsigned int col = 0; col &lt; cols - 1; col++)<br>
&gt;         {<br>
&gt;           pts[0] = col + row * (cols);<br>
&gt;           pts[1] = pts[0] + 1;<br>
&gt;           pts[2] = pts[0] + cols + 1;<br>
&gt;           pts[3] = pts[0] + cols;<br>
&gt;           polys-&gt;InsertNextCell(4,pts);<br>
&gt;         }<br>
&gt;     }<br>
&gt;   surface-&gt;SetPoints(points);<br>
&gt;   surface-&gt;SetPolys(polys);<br>
&gt;<br>
&gt;   return surface;}<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; please reply as soon as possible<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 9, 2013 at 6:00 PM, &lt;<a href="mailto:vtkusers-request@vtk.org">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">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">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">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: Vtk 6.0 dotnet (David Cole)<br>
&gt; &gt;    2. Re: Regarding example VTKimagereslicemapper (rahul indoria)<br>
&gt; &gt;    3. FindCell method of vtkCellLocator (shinpei)<br>
&gt; &gt;    4. Re: FindCell method of vtkCellLocator (Alex Malyushytskyy)<br>
&gt; &gt;    5. VTK Stereo Rendering (mailagentrus)<br>
&gt; &gt;    6. [vtkUsers] About Different RenderWindowInteractor (hongsongyang)<br>
&gt; &gt;    7. using vtkGL2PSExporter in python [ under pythonXY() ]<br>
&gt; &gt;       (Gideon Valch)<br>
&gt; &gt;    8. Re: Help with image planes example (Ruff)<br>
&gt; &gt;    9. adding texture to a wavefront .obj  file in vtk (Umer Rafi)<br>
&gt; &gt;   10. Unexpected actor orientation results (divya)<br>
&gt; &gt;   11. Re: FindCell method of vtkCellLocator (shinpei)<br>
&gt; &gt;   12. VTK application running on Linux loads VNC server (Haroon Showgan)<br>
&gt; &gt;   13. .RAW file (Massinissa Bandou)<br>
&gt; &gt;   14. Re: .RAW file (Bill Lorensen)<br>
&gt; &gt;   15. My point cloud data won&#39;t display in the renderer. (Ruff)<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ----------------------------------------------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 1<br>
&gt; &gt; Date: Mon, 8 Jul 2013 16:21:52 +0000<br>
&gt; &gt; From: David Cole &lt;<a href="mailto:dlrdave@aol.com">dlrdave@aol.com</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] Vtk 6.0 dotnet<br>
&gt; &gt; To: &quot; <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a> &quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;, Serge Lalonde<br>
&gt; &gt;         &lt;<a href="mailto:serge@infolytica.com">serge@infolytica.com</a>&gt;<br>
&gt; &gt; Message-ID: &lt;<a href="mailto:20130708165306.6B0E66504F@public.kitware.com">20130708165306.6B0E66504F@public.kitware.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt; &gt;<br>
&gt; &gt; Thanks, Serge. It *is* too bad that the kickstarter approach did not<br>
&gt; yield<br>
&gt; &gt; a funded project this time around. Perhaps later, another one will be<br>
&gt; &gt; successful.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Alex, you wrote ?as for me I would trust more in the results of free<br>
&gt; &gt; development than in results of the projects developed using such<br>
&gt; financing.?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; In response, I would simply point out the results of free development are<br>
&gt; &gt; that ActiViz is presently ?stuck? on the VTK 5.8 version. And it was only<br>
&gt; &gt; ?free as in beer? to those of you who didn?t pay for it.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; It?s also too bad that nobody else has stepped up and said, ?hey, how can<br>
&gt; &gt; I contribute and help to make this happen?? (Aside from the 20<br>
&gt; kickstarter<br>
&gt; &gt; project backers [1] -- thanks again, guys...)<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; For those willing to contribute effort and manpower to the problem,<br>
&gt; rather<br>
&gt; &gt; than money, go for it. VTK and ActiViz are both open source, and may be<br>
&gt; &gt; built and extended by any interested party. I recently abandoned the<br>
&gt; topic<br>
&gt; &gt; integrating the two [2] due to lack of activity. Anybody who wants to,<br>
&gt; &gt; please feel free to resurrect it, rebase it on current ?master?, and try<br>
&gt; &gt; again. Alternatively, you could simply extend the ActiViz git repo with<br>
&gt; &gt; commits to make it build against an external VTK 5.10 or 6.0 [3].<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; While I am capable and mildly interested in furthering ActiViz .NET, I<br>
&gt; &gt; prefer to spend much of my free time on non-computer related activities<br>
&gt; &gt; these days. I get quite enough compute time just doing my job. But money<br>
&gt; &gt; actually does motivate me... and I would be willing to do the work if<br>
&gt; paid<br>
&gt; &gt; for it. So, that, plus gauging actual interest level, were my primary<br>
&gt; &gt; motivations for seeking funding via kickstarter.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Cheers,<br>
&gt; &gt;<br>
&gt; &gt; David Cole<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; [1]<br>
&gt; &gt;<br>
&gt; <a href="http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510/backers" target="_blank">http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510/backers</a><br>

&gt; &gt;<br>
&gt; &gt; [2] <a href="http://review.source.kitware.com/#/t/1615/" target="_blank">http://review.source.kitware.com/#/t/1615/</a><br>
&gt; &gt;<br>
&gt; &gt; [3] <a href="http://public.kitware.com/gitweb?p=activizdotnet.git" target="_blank">http://public.kitware.com/gitweb?p=activizdotnet.git</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; P.S. ---<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I would also like to point out that nowadays, you can simply build a<br>
&gt; &gt; managed-C++ project with VS 2012, and ?just link for free? to the native<br>
&gt; &gt; VTK C++ libraries. That doesn?t help folks using other .NET languages,<br>
&gt; but<br>
&gt; &gt; it is a nice feature of the modern C++ compiler from MS that you can link<br>
&gt; &gt; in both managed and un-managed code together. If you are starting a new<br>
&gt; &gt; Windows Forms application, consider using managed C++ as your language.<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/20130708/0cc105c5/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/0cc105c5/attachment-0001.htm</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 2<br>
&gt; &gt; Date: Mon, 8 Jul 2013 20:12:06 +0200<br>
&gt; &gt; From: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] Regarding example VTKimagereslicemapper<br>
&gt; &gt; To: David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;, &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot;<br>
&gt; &gt;         &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt; Message-ID:<br>
&gt; &gt;         &lt;CAGQ+16KkyGkkjmWQ86Xh5=<br>
&gt; &gt; <a href="mailto:VfUnbABFEquKOdKEDKfm9_F1eyaA@mail.gmail.com">VfUnbABFEquKOdKEDKfm9_F1eyaA@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;     Could you please tell me, what are port index in VTK functions?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Mon, Jul 8, 2013 at 5:51 PM, David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; In the future, please keep the conversation on the mailing list so that<br>
&gt; &gt; &gt; everyone can participate/benefit from the discussion.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I believe what you&#39;re seeing is a contrast adjustment mechanism (called<br>
&gt; &gt; &gt; &quot;window level events&quot; -<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; <a href="http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details</a><br>
&gt; &gt; &gt; ).<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; David<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Mon, Jul 8, 2013 at 11:48 AM, rahul indoria &lt;<br>
&gt; <a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a><br>
&gt; &gt; &gt;wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;&gt; Hi David,<br>
&gt; &gt; &gt;&gt;                I have one more question regarding this example, in the<br>
&gt; &gt; &gt;&gt; output of this example(<br>
&gt; &gt; &gt;&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a>),<br>
&gt; why<br>
&gt; &gt; &gt;&gt; we are getting different colors of the image, when i am left-clicking<br>
&gt; on<br>
&gt; &gt; &gt;&gt; the image and moving mouse up and down?<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Looking forward your reply soon.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; rahul indoria<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; On Mon, Jul 8, 2013 at 3:22 PM, David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; On Mon, Jul 8, 2013 at 9:05 AM, rahul indoria &lt;<br>
&gt; <a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a><br>
&gt; &gt; &gt;wrote:<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt; Hi,<br>
&gt; &gt; &gt;&gt;&gt;&gt;    I was modifying this example:<br>
&gt; &gt; &gt;&gt;&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a><br>
&gt; &gt; &gt;&gt;&gt;&gt;  in this example, i am deleting the object vtkImageSlice, and when i<br>
&gt; &gt; am<br>
&gt; &gt; &gt;&gt;&gt;&gt; putting the object &quot;imageSliceMapper&quot; i getting an error?<br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt; As vtkimageslice class used to represent an image in a 3D scene, i<br>
&gt; &gt; &gt;&gt;&gt;&gt; don`t want to display this in 3D scene, just want to display on the<br>
&gt; &gt; screen<br>
&gt; &gt; &gt;&gt;&gt;&gt; that`s why i am deleting this class, so why i am getting this error?<br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt; I modified this code like this :<br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; What do you want to do if not display the image? The problem is that<br>
&gt; &gt; you<br>
&gt; &gt; &gt;&gt;&gt; can&#39;t call AddViewProp on a mapper - it has to be a vtkProp subclass<br>
&gt; &gt; &gt;&gt;&gt; (like the vtkImageSlice was). In the future, please include the exact<br>
&gt; &gt; &gt;&gt;&gt; error that you are getting.<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; David<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; *Best  Regards<br>
&gt; &gt; &gt;&gt; Rahul Indoria<br>
&gt; &gt; &gt;&gt; Mobile No: +49-157-35652212*<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; *Best  Regards<br>
&gt; &gt; Rahul Indoria<br>
&gt; &gt; Mobile No: +49-157-35652212*<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/20130708/8de03097/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/8de03097/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: Mon, 8 Jul 2013 15:44:56 -0700 (PDT)<br>
&gt; &gt; From: shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] FindCell method of vtkCellLocator<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID: &lt;<a href="mailto:1373323496433-5721831.post@n5.nabble.com">1373323496433-5721831.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; I have two triangle cells in my vtkCellLocator and I create a little bb<br>
&gt; &gt; around a point of one triangle (see picture). Now I use FindCell(bb,<br>
&gt; &gt; idList)<br>
&gt; &gt; and I should get one id, but I get two. Is this a bug, or must I change<br>
&gt; &gt; something?<br>
&gt; &gt;<br>
&gt; &gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png</a>&gt;<br>
&gt; &gt; - two trinagles (red)<br>
&gt; &gt; - bb (blue)<br>
&gt; &gt;<br>
&gt; &gt; My code:<br>
&gt; &gt;<br>
&gt; &gt;     for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt; ++ptId)<br>
&gt; &gt;     {<br>
&gt; &gt;         bounds[0] = trianglePoint[0] - 0.01;<br>
&gt; &gt;         bounds[1] = trianglePoint[0] + 0.01;<br>
&gt; &gt;         bounds[2] = trianglePoint[1] - 0.01;<br>
&gt; &gt;         bounds[3] = trianglePoint[1] + 0.01;<br>
&gt; &gt;         bounds[4] = trianglePoint[2] - 0.01;<br>
&gt; &gt;         bounds[5] = trianglePoint[2] + 0.01;<br>
&gt; &gt;<br>
&gt; &gt;         cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
&gt; &gt;<br>
&gt; &gt;         int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
&gt; &gt;     }<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Thx<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/FindCell-method-of-vtkCellLocator-tp5721831.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.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, 8 Jul 2013 19:00:25 -0700<br>
&gt; &gt; From: Alex Malyushytskyy &lt;<a href="mailto:alexmalvtk@gmail.com">alexmalvtk@gmail.com</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
&gt; &gt; To: shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt;<br>
&gt; &gt; Cc: VTK &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt; Message-ID:<br>
&gt; &gt;         &lt;<br>
&gt; &gt; <a href="mailto:CAHR9pJ0m4dYdghFRjZ5Y6YffT23dv3Q%2BScsu4JEK8yMLQZ7rbg@mail.gmail.com">CAHR9pJ0m4dYdghFRjZ5Y6YffT23dv3Q+Scsu4JEK8yMLQZ7rbg@mail.gmail.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>
&gt; &gt; It is not clear that attached picture corresponds to your claims.<br>
&gt; &gt; There is no visible  relation between trianglePoint and<br>
&gt; &gt; geometry-&gt;GetNumberOfPoints().<br>
&gt; &gt; Also  for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt; &gt; ++ptId)<br>
&gt; &gt; loop does not make any sense cause nothing changes in the loop.<br>
&gt; &gt;<br>
&gt; &gt; So I guess your trianglePoint is not what you think it is.<br>
&gt; &gt; For example if this point is shared by 2 triangles you will have the same<br>
&gt; &gt; effect.<br>
&gt; &gt; Another possible problem might be absolute value 0.1 used.<br>
&gt; &gt; For example your triangle may have size smaller than it, which will be a<br>
&gt; &gt; source of such effect too.<br>
&gt; &gt;<br>
&gt; &gt; Your example is not complete , you could create much better example<br>
&gt; &gt; initializing all available variables so the behavior can be reproduced.<br>
&gt; &gt;<br>
&gt; &gt; Alex<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Mon, Jul 8, 2013 at 3:44 PM, shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I have two triangle cells in my vtkCellLocator and I create a little bb<br>
&gt; &gt; &gt; around a point of one triangle (see picture). Now I use FindCell(bb,<br>
&gt; &gt; &gt; idList)<br>
&gt; &gt; &gt; and I should get one id, but I get two. Is this a bug, or must I change<br>
&gt; &gt; &gt; something?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png</a>&gt;<br>
&gt; &gt; &gt; - two trinagles (red)<br>
&gt; &gt; &gt; - bb (blue)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; My code:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;     for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt; &gt; ++ptId)<br>
&gt; &gt; &gt;     {<br>
&gt; &gt; &gt;         bounds[0] = trianglePoint[0] - 0.01;<br>
&gt; &gt; &gt;         bounds[1] = trianglePoint[0] + 0.01;<br>
&gt; &gt; &gt;         bounds[2] = trianglePoint[1] - 0.01;<br>
&gt; &gt; &gt;         bounds[3] = trianglePoint[1] + 0.01;<br>
&gt; &gt; &gt;         bounds[4] = trianglePoint[2] - 0.01;<br>
&gt; &gt; &gt;         bounds[5] = trianglePoint[2] + 0.01;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;         cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;         int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
&gt; &gt; &gt;     }<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thx<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; View this message in context:<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html</a><br>
&gt; &gt; &gt; Sent from the VTK - Users mailing list archive at Nabble.com.<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; -------------- 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/20130708/533f4d72/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/533f4d72/attachment-0001.htm</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 5<br>
&gt; &gt; Date: Mon, 8 Jul 2013 22:09:00 -0700 (PDT)<br>
&gt; &gt; From: mailagentrus &lt;<a href="mailto:mailagentrus@mail.ru">mailagentrus@mail.ru</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] VTK Stereo Rendering<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID: &lt;<a href="mailto:1373346540408-5721833.post@n5.nabble.com">1373346540408-5721833.post@n5.nabble.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;<br>
&gt; &gt; Hi! I want to add a stereo mode to my program. Program wil be show pairs<br>
&gt; of<br>
&gt; &gt; images image in stereo mode (with Nvidia 3d vision). I set up NVidia<br>
&gt; Qudro<br>
&gt; &gt; 410 and saw stereo mode with Polydata object with using Paraview.<br>
&gt; &gt; But, when I try to make own program i see inly the firs pair images in<br>
&gt; &gt; stereo mode, after that image in right eye does not update... Updates<br>
&gt; inly<br>
&gt; &gt; the left eye image.<br>
&gt; &gt; Help me, please!<br>
&gt; &gt;<br>
&gt; &gt; Code:<br>
&gt; &gt;<br>
&gt; &gt; #include &lt;vtkPolyDataReader.h&gt;<br>
&gt; &gt; #include &lt;vtkSmartPointer.h&gt;<br>
&gt; &gt; #include &lt;vtkDataSetMapper.h&gt;<br>
&gt; &gt; #include &lt;vtkActor.h&gt;<br>
&gt; &gt; #include &lt;vtkRenderWindow.h&gt;<br>
&gt; &gt; #include &lt;vtkRenderer.h&gt;<br>
&gt; &gt; #include &lt;vtkRenderWindowInteractor.h&gt;<br>
&gt; &gt; #include &lt;vtkCamera.h&gt;<br>
&gt; &gt; #include &quot;vtkCommand.h&quot;<br>
&gt; &gt; #include &quot;vtkImageData.h&quot;<br>
&gt; &gt; #include &lt;vtkBMPReader.h&gt;<br>
&gt; &gt; #include &lt;vtkImageViewer2.h&gt;<br>
&gt; &gt; #include &lt;vtkImageActor.h&gt;<br>
&gt; &gt;<br>
&gt; &gt; vtkSmartPointer&lt;vtkBMPReader&gt; readerR;<br>
&gt; &gt; vtkSmartPointer&lt;vtkBMPReader&gt; readerL;<br>
&gt; &gt; vtkSmartPointer&lt;vtkImageViewer2&gt; imageViewer;<br>
&gt; &gt;<br>
&gt; &gt; class vtkTimerCallback : public vtkCommand<br>
&gt; &gt; {<br>
&gt; &gt;   public:<br>
&gt; &gt;     static vtkTimerCallback *New()<br>
&gt; &gt;     {<br>
&gt; &gt;       vtkTimerCallback *cb = new vtkTimerCallback;<br>
&gt; &gt;       cb-&gt;TimerCount = 0;<br>
&gt; &gt;       return cb;<br>
&gt; &gt;     }<br>
&gt; &gt;<br>
&gt; &gt;     virtual void Execute(vtkObject *vtkNotUsed(caller), unsigned long<br>
&gt; &gt; eventId,<br>
&gt; &gt;                          void *vtkNotUsed(callData))<br>
&gt; &gt;     {<br>
&gt; &gt;       if (vtkCommand::TimerEvent == eventId)<br>
&gt; &gt;         {<br>
&gt; &gt;<br>
&gt; &gt; // for example name for left eye image is<br>
&gt; &gt;                 readerL-&gt;SetFileName ( &quot;D:/1234/-40.bmp&quot;);<br>
&gt; &gt;                 readerL-&gt;Update();<br>
&gt; &gt;<br>
&gt; &gt; // for example name for right eye image is<br>
&gt; &gt;                 readerR-&gt;SetFileName ( &quot;D:/1234/40.bmp&quot;);<br>
&gt; &gt;                 readerR-&gt;Update();<br>
&gt; &gt;<br>
&gt; &gt;                 imageViewer-&gt;SetInput(readerL-&gt;GetOutput());<br>
&gt; &gt;                 imageViewer-&gt;GetRenderWindow()-&gt;SetStereoTypeToLeft();<br>
&gt; &gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt; &gt;   imageViewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
&gt; &gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt; &gt;<br>
&gt; &gt;                 imageViewer-&gt;GetRenderWindow()-&gt;StereoUpdate();<br>
&gt; &gt;<br>
&gt; &gt;                 imageViewer-&gt;SetInput(readerL-&gt;GetOutput());<br>
&gt; &gt;                 imageViewer-&gt;GetRenderWindow()-&gt;SetStereoTypeToRight();<br>
&gt; &gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt; &gt;   imageViewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
&gt; &gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt; &gt;<br>
&gt; &gt;                 imageViewer-&gt;GetRenderWindow()-&gt;StereoUpdate();<br>
&gt; &gt;<br>
&gt; &gt;         ++this-&gt;TimerCount;<br>
&gt; &gt;         }<br>
&gt; &gt;         cout &lt;&lt; this-&gt;TimerCount &lt;&lt; endl;<br>
&gt; &gt;     }<br>
&gt; &gt;<br>
&gt; &gt;   private:<br>
&gt; &gt;     int TimerCount;<br>
&gt; &gt;<br>
&gt; &gt; };<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; int main ( int argc, char *argv[] )<br>
&gt; &gt; {<br>
&gt; &gt;   //Read the image<br>
&gt; &gt;    readerL =<br>
&gt; &gt;     vtkSmartPointer&lt;vtkBMPReader&gt;::New();<br>
&gt; &gt;   readerL-&gt;SetFileName ( &quot;D:/1234/-5.bmp&quot;);<br>
&gt; &gt;   readerL-&gt;Update();<br>
&gt; &gt;<br>
&gt; &gt;    readerR =<br>
&gt; &gt;     vtkSmartPointer&lt;vtkBMPReader&gt;::New();<br>
&gt; &gt;   readerR-&gt;SetFileName ( &quot;D:/1234/5.bmp&quot;);<br>
&gt; &gt;   readerR-&gt;Update();<br>
&gt; &gt;<br>
&gt; &gt;   // Visualize<br>
&gt; &gt;   imageViewer =<br>
&gt; &gt;     vtkSmartPointer&lt;vtkImageViewer2&gt;::New();<br>
&gt; &gt;<br>
&gt; &gt;    vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; renderWindowInteractor =<br>
&gt; &gt;     vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
&gt; &gt;   imageViewer-&gt;SetupInteractor(renderWindowInteractor);<br>
&gt; &gt;<br>
&gt; &gt;     imageViewer-&gt;GetRenderWindow()-&gt;SetSize( 800, 600 );<br>
&gt; &gt;<br>
&gt; &gt;   imageViewer-&gt;GetRenderWindow()-&gt;StereoCapableWindowOn();<br>
&gt; &gt;   imageViewer-&gt;GetRenderWindow()-&gt;SetStereoTypeToCrystalEyes();<br>
&gt; &gt;   imageViewer-&gt;GetRenderWindow()-&gt;SetStereoRender(1);<br>
&gt; &gt;   imageViewer-&gt;GetRenderWindow()-&gt;StereoUpdate();<br>
&gt; &gt;<br>
&gt; &gt;  renderWindowInteractor-&gt;Initialize();<br>
&gt; &gt;<br>
&gt; &gt;   imageViewer-&gt;SetInput(readerBase-&gt;GetOutput());<br>
&gt; &gt;   imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt; &gt;   imageViewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
&gt; &gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt; &gt;<br>
&gt; &gt;    // Sign up to receive TimerEvent<br>
&gt; &gt;   vtkSmartPointer&lt;vtkTimerCallback&gt; cb =<br>
&gt; &gt;     vtkSmartPointer&lt;vtkTimerCallback&gt;::New();<br>
&gt; &gt;   renderWindowInteractor-&gt;AddObserver(vtkCommand::TimerEvent, cb);<br>
&gt; &gt;<br>
&gt; &gt;   int timerId = renderWindowInteractor-&gt;CreateRepeatingTimer(100);<br>
&gt; &gt;   std::cout &lt;&lt; &quot;timerId: &quot; &lt;&lt; timerId &lt;&lt; std::endl;<br>
&gt; &gt;<br>
&gt; &gt;   renderWindowInteractor-&gt;Start();<br>
&gt; &gt;<br>
&gt; &gt;    return EXIT_SUCCESS;<br>
&gt; &gt; }<br>
&gt; &gt;<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/VTK-Stereo-Rendering-tp5721833.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Stereo-Rendering-tp5721833.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: 6<br>
&gt; &gt; Date: Tue, 9 Jul 2013 14:08:36 +0800<br>
&gt; &gt; From: &quot;hongsongyang&quot; &lt;<a href="mailto:hongsongyang@163.com">hongsongyang@163.com</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] [vtkUsers] About Different RenderWindowInteractor<br>
&gt; &gt; To: &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt; Message-ID: &lt;D36F8CD489D643279CDEF9B7802D2D8F@WlfPC&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt; &gt;<br>
&gt; &gt; Dear All:<br>
&gt; &gt;<br>
&gt; &gt;      I have several renders (e.g 4 render), and we could use SetViewport<br>
&gt; to<br>
&gt; &gt; display all of them in one RenderWindow.<br>
&gt; &gt;<br>
&gt; &gt; My question is that could I set different interactor for each of the<br>
&gt; &gt; render?<br>
&gt; &gt;<br>
&gt; &gt; For example, for render1, I only need zoom and ww/wl operation, but for<br>
&gt; &gt; render2, I need zoom, pan and rotate operation.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Thanks a lot.<br>
&gt; &gt;<br>
&gt; &gt; Hongsongyang<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/20130709/73d6e3a8/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/73d6e3a8/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: Mon, 8 Jul 2013 23:34:35 -0700<br>
&gt; &gt; From: Gideon Valch &lt;<a href="mailto:gvalch1237@gmail.com">gvalch1237@gmail.com</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] using vtkGL2PSExporter in python [ under<br>
&gt; &gt;         pythonXY() ]<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID:<br>
&gt; &gt;         &lt;<br>
&gt; &gt; <a href="mailto:CAEEGk3YCKrV6gQCtRoPXZZQXQ%2BQr7J%2BKPgK%2BzLAAeF2e6%2BKpgw@mail.gmail.com">CAEEGk3YCKrV6gQCtRoPXZZQXQ+Qr7J+KPgK+zLAAeF2e6+Kpgw@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,<br>
&gt; &gt;<br>
&gt; &gt; I use pythonxy() as my platform for python supported vtk.     Currently,<br>
&gt; &gt; I&#39;m trying to export a vtk render window to post script using the sample<br>
&gt; &gt; code (at bottom) but I&#39;m getting an error (see below).   I suspect this<br>
&gt; &gt; relates to how pythonxy() is compiled.  Can anyone suggest a workaround?<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; GV<br>
&gt; &gt;<br>
&gt; &gt; exporter = vtk.vtkGL2PSExporter()<br>
&gt; &gt; AttributeError: &#39;module&#39; object has no attribute &#39;vtkGL2PSExporter&#39;<br>
&gt; &gt;<br>
&gt; &gt; ----------------------------<br>
&gt; &gt;<br>
&gt; &gt; prefix=&quot;c:\\temp\\foo444&quot;<br>
&gt; &gt; exporter = vtk.vtkGL2PSExporter()<br>
&gt; &gt; exporter.SetFilePrefix(prefix)<br>
&gt; &gt; exporter.SetFileFormatToSVG()<br>
&gt; &gt; exporter.SetRenderWindow(renWin)<br>
&gt; &gt; exporter.CompressOff()<br>
&gt; &gt; exporter.SetSortToOff()<br>
&gt; &gt; #exporter.DrawBackgroundOn()<br>
&gt; &gt; #exporter.Write3DPropsAsRasterImageOn()<br>
&gt; &gt; exporter.Write()<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/20130708/2dfee622/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/2dfee622/attachment-0001.htm</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 8<br>
&gt; &gt; Date: Tue, 9 Jul 2013 00:44:38 -0700 (PDT)<br>
&gt; &gt; From: Ruff &lt;<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] Help with image planes example<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID: &lt;<a href="mailto:1373355878399-5721836.post@n5.nabble.com">1373355878399-5721836.post@n5.nabble.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;<br>
&gt; &gt; Thank you!<br>
&gt; &gt; The problem is that when I tried with ImageData as input in<br>
&gt; volume16reader<br>
&gt; &gt; I<br>
&gt; &gt; got the error &quot;Attempt to connect input port index 0 for an algorithm<br>
&gt; with<br>
&gt; &gt; 0<br>
&gt; &gt; input ports&quot;<br>
&gt; &gt; Using ImageData as input directly to vtkImagePlaneWidget worked fine<br>
&gt; &gt; though,<br>
&gt; &gt; so I guess that solves it.<br>
&gt; &gt; (My VTK-programming right now is mostly trial and error along with trying<br>
&gt; &gt; to<br>
&gt; &gt; understand the different data structures and the pipeline)<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/Help-with-image-planes-example-tp5721813p5721836.html" target="_blank">http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813p5721836.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: 9<br>
&gt; &gt; Date: Tue, 09 Jul 2013 11:23:11 +0200<br>
&gt; &gt; From: Umer Rafi &lt;<a href="mailto:umer.rafi@rwth-aachen.de">umer.rafi@rwth-aachen.de</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] adding texture to a wavefront .obj  file in vtk<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID: &lt;<a href="mailto:fb959ae41b00e3.51dbf29f@rwth-aachen.de">fb959ae41b00e3.51dbf29f@rwth-aachen.de</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; CHARSET=US-ASCII<br>
&gt; &gt;<br>
&gt; &gt; Hello everyone,<br>
&gt; &gt;<br>
&gt; &gt;     I am new to vtk. I am having a wavefront file of a 3d human model.<br>
&gt; &gt; What I want to do is to render it using vtk and apply different textures<br>
&gt; to<br>
&gt; &gt; different parts of the 3d human model. For example I have a texture image<br>
&gt; &gt; containing a shirt that I want to apply to torso and arms only.  Another<br>
&gt; &gt; one for jeans that I want to apply to legs and thighs only. I will really<br>
&gt; &gt; appreciate if anyone can provide a sample code snippet to get me started.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; thanks in advance.<br>
&gt; &gt;<br>
&gt; &gt; Regards<br>
&gt; &gt; Umer<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 10<br>
&gt; &gt; Date: Tue, 9 Jul 2013 16:53:12 +0530<br>
&gt; &gt; From: &quot;divya&quot; &lt;<a href="mailto:divya@triassicsolutions.com">divya@triassicsolutions.com</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] Unexpected actor orientation results<br>
&gt; &gt; To: &quot;Vtk Users&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt; Message-ID: &lt;004201ce7c96$b5c358a0$214a09e0$@<a href="http://triassicsolutions.com" target="_blank">triassicsolutions.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Dear vtkUsers,<br>
&gt; &gt;<br>
&gt; &gt; I am trying to find the orientation of an actor while I&#39;m rotating it,<br>
&gt; the<br>
&gt; &gt; z<br>
&gt; &gt; and y are correct, but the value range for  the x axis is [-90, 90],<br>
&gt; &gt; whereas<br>
&gt; &gt; the value range for  z and y axis is [-180, 180].<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Also the rotation doesn&#39;t happen in the chosen axis, for example when I<br>
&gt; &gt; chose to rotate the actor by 15 degrees on y-axis, the value of the<br>
&gt; z-axis<br>
&gt; &gt; increases.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &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/20130709/3543ac30/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/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: not available<br>
&gt; &gt; Type: image/jpeg<br>
&gt; &gt; Size: 10515 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/20130709/3543ac30/attachment-0002.jpeg" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0002.jpeg</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; -------------- next part --------------<br>
&gt; &gt; A non-text attachment was scrubbed...<br>
&gt; &gt; Name: not available<br>
&gt; &gt; Type: image/jpeg<br>
&gt; &gt; Size: 13048 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/20130709/3543ac30/attachment-0003.jpeg" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0003.jpeg</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 11<br>
&gt; &gt; Date: Tue, 9 Jul 2013 05:23:41 -0700 (PDT)<br>
&gt; &gt; From: shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID: &lt;<a href="mailto:1373372621955-5721840.post@n5.nabble.com">1373372621955-5721840.post@n5.nabble.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;<br>
&gt; &gt; Sry... I thought it would be clear what I mean.<br>
&gt; &gt;<br>
&gt; &gt; The geometry contains two triangles:<br>
&gt; &gt; Points are:<br>
&gt; &gt; (0 0 0)<br>
&gt; &gt; (0 10 0)<br>
&gt; &gt; (10 0 0)<br>
&gt; &gt; (10 10 0)<br>
&gt; &gt;<br>
&gt; &gt; with connection:<br>
&gt; &gt; (0 1 2)<br>
&gt; &gt; (1 2 3)<br>
&gt; &gt;<br>
&gt; &gt;      for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt; ++ptId)<br>
&gt; &gt;     {<br>
&gt; &gt;         geometry-&gt;getPoints()-&gt;GetPoint(ptId, trianglePoint);<br>
&gt; &gt;<br>
&gt; &gt;         bounds[0] = trianglePoint[0] - 0.01;<br>
&gt; &gt;         bounds[1] = trianglePoint[0] + 0.01;<br>
&gt; &gt;         bounds[2] = trianglePoint[1] - 0.01;<br>
&gt; &gt;         bounds[3] = trianglePoint[1] + 0.01;<br>
&gt; &gt;         bounds[4] = trianglePoint[2] - 0.01;<br>
&gt; &gt;         bounds[5] = trianglePoint[2] + 0.01;<br>
&gt; &gt;<br>
&gt; &gt;         cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
&gt; &gt;<br>
&gt; &gt;         int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
&gt; &gt;     }<br>
&gt; &gt;<br>
&gt; &gt; The trianglePoint is e.g. (0 0 0) (first iteration of the loop) so I<br>
&gt; should<br>
&gt; &gt; get only one triangle, but I get always two triangles. The bb is small<br>
&gt; &gt; enough and there is a point which correspons to only one triangle.<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/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.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: 12<br>
&gt; &gt; Date: Tue, 9 Jul 2013 15:43:23 +0300<br>
&gt; &gt; From: Haroon Showgan &lt;<a href="mailto:haroon.showgan@gmail.com">haroon.showgan@gmail.com</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] VTK application running on Linux loads VNC server<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID:<br>
&gt; &gt;         &lt;CAJ=<br>
&gt; &gt; <a href="mailto:gTgXfT44oBK1Qz5idLBRDt0kdiZuLh0iA%2BmrtAChwR_-Pkw@mail.gmail.com">gTgXfT44oBK1Qz5idLBRDt0kdiZuLh0iA+mrtAChwR_-Pkw@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; I&#39;m implementing a VTK application for visualizing geometrical 3D<br>
&gt; objects.<br>
&gt; &gt; Most of the code is written in C++, and I use TCL-TK widgets for the GUI<br>
&gt; (I<br>
&gt; &gt; use *vtkTkRenderWidget* for the main canvas).<br>
&gt; &gt;<br>
&gt; &gt; Most of my objects are *vtkVoxel* objects inserted into a *<br>
&gt; &gt; vtkUnstructuredGrid*.<br>
&gt; &gt;<br>
&gt; &gt; I run this application on a Linux server and I connect to this server<br>
&gt; from<br>
&gt; &gt; Windows using VNC. I noticed that when I load a very large data set into<br>
&gt; &gt; the application then the *VNC server* (on the Linux machine) consumes a<br>
&gt; lot<br>
&gt; &gt; of memory and uses 100% CPU. I didn&#39;t realize that the memory and CPU<br>
&gt; &gt; usages of a VNC server would be affected so much like this.<br>
&gt; &gt;<br>
&gt; &gt;  Note that my VTK application is also consuming a lot of memory and CPU,<br>
&gt; &gt; but what I find strange is that the VNC server is also affected (the<br>
&gt; &gt; process is called *Xvnc_core*).<br>
&gt; &gt;<br>
&gt; &gt; Does anyone know how this is caused and do you have any suggestion how to<br>
&gt; &gt; mitigate the problem?<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt; Haroon<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/20130709/621fefc2/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/621fefc2/attachment-0001.htm</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 13<br>
&gt; &gt; Date: Tue, 9 Jul 2013 07:25:46 -0700 (PDT)<br>
&gt; &gt; From: Massinissa Bandou &lt;Massinissa.Bandou@USherbrooke.ca&gt;<br>
&gt; &gt; Subject: [vtkusers] .RAW file<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID: &lt;<a href="mailto:1373379946181-5721842.post@n5.nabble.com">1373379946181-5721842.post@n5.nabble.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;<br>
&gt; &gt; Hello everyone,<br>
&gt; &gt;<br>
&gt; &gt; I tried to read a (.raw) file with the following code but it displays a<br>
&gt; RED<br>
&gt; &gt; CUBE. Here is some information about my file  dataInfo.txt<br>
&gt; &gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt</a>&gt;  . Is<br>
&gt; there<br>
&gt; &gt; something wrong in my code?<br>
&gt; &gt;<br>
&gt; &gt; thx for your time and help!<br>
&gt; &gt;<br>
&gt; &gt; sorry my file is too large to be send.<br>
&gt; &gt;<br>
&gt; &gt; #include &lt;vtkSmartPointer.h&gt;<br>
&gt; &gt; #include &lt;vtkRenderWindow.h&gt;<br>
&gt; &gt; #include &lt;vtkRenderWindowInteractor.h&gt;<br>
&gt; &gt; #include &lt;vtkRenderer.h&gt;<br>
&gt; &gt; #include &lt;vtkActor&gt;<br>
&gt; &gt; #include &lt;vtkImageReader&gt;<br>
&gt; &gt; #include &lt;vtkDataSetMapper&gt;<br>
&gt; &gt;<br>
&gt; &gt; int main(int argc, char *argv[])<br>
&gt; &gt; {<br>
&gt; &gt;         vtkImageReader *reader = vtkImageReader::New();<br>
&gt; &gt;         reader-&gt;SetFileName(file.c_str());<br>
&gt; &gt;         reader-&gt;SetFileDimensionality(3);<br>
&gt; &gt;         reader-&gt;SetNumberOfScalarComponents(1);<br>
&gt; &gt;         reader-&gt;SetDataExtent(0,512,0,512,0,512);<br>
&gt; &gt;         reader-&gt;SetDataSpacing(0.145, 0.145, 0.145);<br>
&gt; &gt;         reader-&gt;SetDataByteOrderToBigEndian();<br>
&gt; &gt;         reader-&gt;SetDataScalarTypeToChar();<br>
&gt; &gt;         reader-&gt;Update();<br>
&gt; &gt;<br>
&gt; &gt;         vtkSmartPointer&lt;vtkDataSetMapper&gt; map =<br>
&gt; &gt; vtkSmartPointer&lt;vtkDataSetMapper&gt;::New();<br>
&gt; &gt;         map-&gt;SetInputConnection(reader-&gt;GetOutputPort());<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;         vtkSmartPointer&lt;vtkActor&gt; actor =<br>
&gt; vtkSmartPointer&lt;vtkActor&gt;::New();<br>
&gt; &gt;         actor-&gt;SetMapper(map);<br>
&gt; &gt;<br>
&gt; &gt;         vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; interactor =<br>
&gt; &gt; vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
&gt; &gt;<br>
&gt; &gt;         vtkSmartPointer&lt;vtkRenderWindow&gt; renderWindow =<br>
&gt; &gt; vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<br>
&gt; &gt;         interactor-&gt;SetRenderWindow(renderWindow);<br>
&gt; &gt;         vtkSmartPointer&lt;vtkRenderer&gt; renderer =<br>
&gt; &gt; vtkSmartPointer&lt;vtkRenderer&gt;::New();<br>
&gt; &gt;         renderWindow-&gt;AddRenderer(renderer);<br>
&gt; &gt;         renderer-&gt;AddActor(actor);<br>
&gt; &gt;<br>
&gt; &gt;         renderWindow-&gt;Render();<br>
&gt; &gt;         interactor-&gt;Start();<br>
&gt; &gt; }<br>
&gt; &gt;<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/RAW-file-tp5721842.html" target="_blank">http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.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: 14<br>
&gt; &gt; Date: Tue, 9 Jul 2013 11:38:50 -0400<br>
&gt; &gt; From: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
&gt; &gt; Subject: Re: [vtkusers] .RAW file<br>
&gt; &gt; To: Massinissa Bandou &lt;<a href="mailto:Massinissa.Bandou@usherbrooke.ca">Massinissa.Bandou@usherbrooke.ca</a>&gt;<br>
&gt; &gt; Cc: VTK Users &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt; Message-ID:<br>
&gt; &gt;         &lt;<br>
&gt; &gt; <a href="mailto:CADZJ4hNXVuS_7L9ocCzex3XHpqyg5dpdKJ2NmxfQn_DnaSDp_Q@mail.gmail.com">CADZJ4hNXVuS_7L9ocCzex3XHpqyg5dpdKJ2NmxfQn_DnaSDp_Q@mail.gmail.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>
&gt; &gt; If your data is 512x512x512 then<br>
&gt; &gt; reader-&gt;SetDataExtent(0,512,0,512,0,512);<br>
&gt; &gt; should be:<br>
&gt; &gt; reader-&gt;SetDataExtent(0,511,0,511,0,511);<br>
&gt; &gt;<br>
&gt; &gt; Also be certain you are setting the correct endianness.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Tue, Jul 9, 2013 at 10:25 AM, Massinissa Bandou &lt;<br>
&gt; &gt; <a href="mailto:Massinissa.Bandou@usherbrooke.ca">Massinissa.Bandou@usherbrooke.ca</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Hello everyone,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I tried to read a (.raw) file with the following code but it displays a<br>
&gt; &gt; RED<br>
&gt; &gt; &gt; CUBE. Here is some information about my file  dataInfo.txt<br>
&gt; &gt; &gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt</a>&gt;  . Is<br>
&gt; &gt; there<br>
&gt; &gt; &gt; something wrong in my code?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; thx for your time and help!<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; sorry my file is too large to be send.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; #include &lt;vtkSmartPointer.h&gt;<br>
&gt; &gt; &gt; #include &lt;vtkRenderWindow.h&gt;<br>
&gt; &gt; &gt; #include &lt;vtkRenderWindowInteractor.h&gt;<br>
&gt; &gt; &gt; #include &lt;vtkRenderer.h&gt;<br>
&gt; &gt; &gt; #include &lt;vtkActor&gt;<br>
&gt; &gt; &gt; #include &lt;vtkImageReader&gt;<br>
&gt; &gt; &gt; #include &lt;vtkDataSetMapper&gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; int main(int argc, char *argv[])<br>
&gt; &gt; &gt; {<br>
&gt; &gt; &gt;         vtkImageReader *reader = vtkImageReader::New();<br>
&gt; &gt; &gt;         reader-&gt;SetFileName(file.c_str());<br>
&gt; &gt; &gt;         reader-&gt;SetFileDimensionality(3);<br>
&gt; &gt; &gt;         reader-&gt;SetNumberOfScalarComponents(1);<br>
&gt; &gt; &gt;         reader-&gt;SetDataExtent(0,512,0,512,0,512);<br>
&gt; &gt; &gt;         reader-&gt;SetDataSpacing(0.145, 0.145, 0.145);<br>
&gt; &gt; &gt;         reader-&gt;SetDataByteOrderToBigEndian();<br>
&gt; &gt; &gt;         reader-&gt;SetDataScalarTypeToChar();<br>
&gt; &gt; &gt;         reader-&gt;Update();<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;         vtkSmartPointer&lt;vtkDataSetMapper&gt; map =<br>
&gt; &gt; &gt; vtkSmartPointer&lt;vtkDataSetMapper&gt;::New();<br>
&gt; &gt; &gt;         map-&gt;SetInputConnection(reader-&gt;GetOutputPort());<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;         vtkSmartPointer&lt;vtkActor&gt; actor =<br>
&gt; &gt; vtkSmartPointer&lt;vtkActor&gt;::New();<br>
&gt; &gt; &gt;         actor-&gt;SetMapper(map);<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;         vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; interactor =<br>
&gt; &gt; &gt; vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;         vtkSmartPointer&lt;vtkRenderWindow&gt; renderWindow =<br>
&gt; &gt; &gt; vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<br>
&gt; &gt; &gt;         interactor-&gt;SetRenderWindow(renderWindow);<br>
&gt; &gt; &gt;         vtkSmartPointer&lt;vtkRenderer&gt; renderer =<br>
&gt; &gt; &gt; vtkSmartPointer&lt;vtkRenderer&gt;::New();<br>
&gt; &gt; &gt;         renderWindow-&gt;AddRenderer(renderer);<br>
&gt; &gt; &gt;         renderer-&gt;AddActor(actor);<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;         renderWindow-&gt;Render();<br>
&gt; &gt; &gt;         interactor-&gt;Start();<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; View this message in context:<br>
&gt; &gt; &gt; <a href="http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html" target="_blank">http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html</a><br>
&gt; &gt; &gt; Sent from the VTK - Users mailing list archive at Nabble.com.<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; Unpaid intern in BillsBasement at noware dot com<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/20130709/b188c2b1/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/b188c2b1/attachment-0001.htm</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 15<br>
&gt; &gt; Date: Tue, 9 Jul 2013 08:46:33 -0700 (PDT)<br>
&gt; &gt; From: Ruff &lt;<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>&gt;<br>
&gt; &gt; Subject: [vtkusers] My point cloud data won&#39;t display in the renderer.<br>
&gt; &gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt; Message-ID: &lt;<a href="mailto:1373384793963-5721844.post@n5.nabble.com">1373384793963-5721844.post@n5.nabble.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;<br>
&gt; &gt; All i get is an empty renderWindow. I get no errors, but no data is<br>
&gt; &gt; rendered<br>
&gt; &gt; either. What am I doing wrong?<br>
&gt; &gt;<br>
&gt; &gt; What I do is pretty much this:<br>
&gt; &gt;<br>
&gt; &gt; AtomGrid=vtk.vtkUnstructuredGrid()<br>
&gt; &gt; AtomGrid.SetPoints(    vtkPoints with [index,x,y,z]    )<br>
&gt; &gt; AtomGrid.GetPointData().SetScalars(    vtkFloatArray with [index, scalar]<br>
&gt; &gt; )<br>
&gt; &gt;<br>
&gt; &gt; volMapper = vtk.vtkUnstructuredGridVolumeRayCastMapper()<br>
&gt; &gt; volMapper.SetBlendModeToComposite()<br>
&gt; &gt; volMapper.SetInput(AtomGrid)<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I tried volMapper.SetScalarModeToUsePointFieldData(), but then it claims<br>
&gt; &gt; that I have no scalar values to use(!!)<br>
&gt; &gt;<br>
&gt; &gt; (I cheated before, and was satisfied using ImageData for this, but now I<br>
&gt; &gt; really need to get this to work with UnstructuredGrid)<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/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.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; _______________________________________________<br>
&gt; &gt; vtkusers mailing list<br>
&gt; &gt; <a href="mailto:vtkusers@vtk.org">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 111, Issue 16<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/20130709/ce46c409/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/ce46c409/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 3<br>
&gt; Date: Tue, 9 Jul 2013 15:00:16 -0400<br>
&gt; From: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] vtkusers Digest, Vol 111, Issue 16<br>
&gt; To: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>&gt;<br>
&gt; Cc: &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;         &lt;CADZJ4hMNYM4Rp7Fn0Kt+yvxbje_3eeD+F0-=<br>
&gt; <a href="mailto:Ti%2Ba4JGRBQp5Yw@mail.gmail.com">Ti+a4JGRBQp5Yw@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; The points and cells are generated in the for loops.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 9, 2013 at 2:43 PM, rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a><br>
&gt; &gt;wrote:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;    Can you explain me some portion of the code of this example (<br>
&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation</a><br>
&gt; )?<br>
&gt; &gt;<br>
&gt; &gt; i need to ask the line by line documentation of this function, how these<br>
&gt; &gt; points and surface is formed?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; vtkSmartPointer&lt;vtkPolyData&gt; SweepLine (vtkPolyData *line,<br>
&gt; &gt;                                         double direction[3],<br>
&gt; &gt;                                         double distance,<br>
&gt; &gt;                                         unsigned int cols)<br>
&gt; &gt;<br>
&gt; &gt; {<br>
&gt; &gt;<br>
&gt; &gt; unsigned int rows = line-&gt;GetNumberOfPoints();<br>
&gt; &gt;<br>
&gt; &gt;   double spacing = distance / cols;<br>
&gt; &gt;   vtkSmartPointer&lt;vtkPolyData&gt; surface =<br>
&gt; &gt;     vtkSmartPointer&lt;vtkPolyData&gt;::New();<br>
&gt; &gt;<br>
&gt; &gt;   // Generate the points<br>
&gt; &gt;   cols++; // why this statement ?<br>
&gt; &gt;   unsigned int numberOfPoints = rows * cols; // how these number points<br>
&gt; are generated<br>
&gt; &gt;   unsigned int numberOfPolys = (rows - 1) * (cols - 1); // what is<br>
&gt; this???<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; vtkSmartPointer&lt;vtkPoints&gt; points =<br>
&gt; &gt;     vtkSmartPointer&lt;vtkPoints&gt;::New();<br>
&gt; &gt;   points-&gt;Allocate(numberOfPoints);<br>
&gt; &gt;   vtkSmartPointer&lt;vtkCellArray&gt; polys =<br>
&gt; &gt;     vtkSmartPointer&lt;vtkCellArray&gt;::New();<br>
&gt; &gt;   polys-&gt;Allocate(numberOfPolys*4);<br>
&gt; &gt;<br>
&gt; &gt;   double x[3];<br>
&gt; &gt;   unsigned int cnt = 0;<br>
&gt; &gt;   for (unsigned int row = 0; row &lt; rows; row++)<br>
&gt; &gt;     {<br>
&gt; &gt;       for (unsigned int col = 0; col &lt; cols; col++)<br>
&gt; &gt;         {<br>
&gt; &gt;           double p[3];<br>
&gt; &gt;           line-&gt;GetPoint(row, p);<br>
&gt; &gt;           x[0] = p[0] + direction[0] * col * spacing;<br>
&gt; &gt;           x[1] = p[1] + direction[1] * col * spacing;<br>
&gt; &gt;           x[2] = p[2] + direction[2] * col * spacing;<br>
&gt; &gt;           points-&gt;InsertPoint(cnt++, x);<br>
&gt; &gt;         }<br>
&gt; &gt;     }<br>
&gt; &gt;   // Generate the quads<br>
&gt; &gt;   vtkIdType pts[4];<br>
&gt; &gt;   for (unsigned int row = 0; row &lt; rows - 1; row++)<br>
&gt; &gt;     {<br>
&gt; &gt;       for (unsigned int col = 0; col &lt; cols - 1; col++)<br>
&gt; &gt;         {<br>
&gt; &gt;           pts[0] = col + row * (cols);<br>
&gt; &gt;           pts[1] = pts[0] + 1;<br>
&gt; &gt;           pts[2] = pts[0] + cols + 1;<br>
&gt; &gt;           pts[3] = pts[0] + cols;<br>
&gt; &gt;           polys-&gt;InsertNextCell(4,pts);<br>
&gt; &gt;         }<br>
&gt; &gt;     }<br>
&gt; &gt;   surface-&gt;SetPoints(points);<br>
&gt; &gt;   surface-&gt;SetPolys(polys);<br>
&gt; &gt;<br>
&gt; &gt;   return surface;}<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; please reply as soon as possible<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Tue, Jul 9, 2013 at 6:00 PM, &lt;<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Send vtkusers mailing list submissions to<br>
&gt; &gt;&gt;         <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; To subscribe or unsubscribe via the World Wide Web, visit<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; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt; &gt;&gt;         <a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; You can reach the person managing the list at<br>
&gt; &gt;&gt;         <a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; When replying, please edit your Subject line so it is more specific<br>
&gt; &gt;&gt; than &quot;Re: Contents of vtkusers digest...&quot;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Today&#39;s Topics:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;    1. Re: Vtk 6.0 dotnet (David Cole)<br>
&gt; &gt;&gt;    2. Re: Regarding example VTKimagereslicemapper (rahul indoria)<br>
&gt; &gt;&gt;    3. FindCell method of vtkCellLocator (shinpei)<br>
&gt; &gt;&gt;    4. Re: FindCell method of vtkCellLocator (Alex Malyushytskyy)<br>
&gt; &gt;&gt;    5. VTK Stereo Rendering (mailagentrus)<br>
&gt; &gt;&gt;    6. [vtkUsers] About Different RenderWindowInteractor (hongsongyang)<br>
&gt; &gt;&gt;    7. using vtkGL2PSExporter in python [ under pythonXY() ]<br>
&gt; &gt;&gt;       (Gideon Valch)<br>
&gt; &gt;&gt;    8. Re: Help with image planes example (Ruff)<br>
&gt; &gt;&gt;    9. adding texture to a wavefront .obj  file in vtk (Umer Rafi)<br>
&gt; &gt;&gt;   10. Unexpected actor orientation results (divya)<br>
&gt; &gt;&gt;   11. Re: FindCell method of vtkCellLocator (shinpei)<br>
&gt; &gt;&gt;   12. VTK application running on Linux loads VNC server (Haroon Showgan)<br>
&gt; &gt;&gt;   13. .RAW file (Massinissa Bandou)<br>
&gt; &gt;&gt;   14. Re: .RAW file (Bill Lorensen)<br>
&gt; &gt;&gt;   15. My point cloud data won&#39;t display in the renderer. (Ruff)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ----------------------------------------------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 1<br>
&gt; &gt;&gt; Date: Mon, 8 Jul 2013 16:21:52 +0000<br>
&gt; &gt;&gt; From: David Cole &lt;<a href="mailto:dlrdave@aol.com">dlrdave@aol.com</a>&gt;<br>
&gt; &gt;&gt; Subject: Re: [vtkusers] Vtk 6.0 dotnet<br>
&gt; &gt;&gt; To: &quot; <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a> &quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;, Serge Lalonde<br>
&gt; &gt;&gt;         &lt;<a href="mailto:serge@infolytica.com">serge@infolytica.com</a>&gt;<br>
&gt; &gt;&gt; Message-ID: &lt;<a href="mailto:20130708165306.6B0E66504F@public.kitware.com">20130708165306.6B0E66504F@public.kitware.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thanks, Serge. It *is* too bad that the kickstarter approach did not<br>
&gt; &gt;&gt; yield a funded project this time around. Perhaps later, another one<br>
&gt; will be<br>
&gt; &gt;&gt; successful.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Alex, you wrote ?as for me I would trust more in the results of free<br>
&gt; &gt;&gt; development than in results of the projects developed using such<br>
&gt; financing.?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; In response, I would simply point out the results of free development<br>
&gt; are<br>
&gt; &gt;&gt; that ActiViz is presently ?stuck? on the VTK 5.8 version. And it was<br>
&gt; only<br>
&gt; &gt;&gt; ?free as in beer? to those of you who didn?t pay for it.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; It?s also too bad that nobody else has stepped up and said, ?hey, how<br>
&gt; can<br>
&gt; &gt;&gt; I contribute and help to make this happen?? (Aside from the 20<br>
&gt; kickstarter<br>
&gt; &gt;&gt; project backers [1] -- thanks again, guys...)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; For those willing to contribute effort and manpower to the problem,<br>
&gt; &gt;&gt; rather than money, go for it. VTK and ActiViz are both open source, and<br>
&gt; may<br>
&gt; &gt;&gt; be built and extended by any interested party. I recently abandoned the<br>
&gt; &gt;&gt; topic integrating the two [2] due to lack of activity. Anybody who wants<br>
&gt; &gt;&gt; to, please feel free to resurrect it, rebase it on current ?master?, and<br>
&gt; &gt;&gt; try again. Alternatively, you could simply extend the ActiViz git repo<br>
&gt; with<br>
&gt; &gt;&gt; commits to make it build against an external VTK 5.10 or 6.0 [3].<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; While I am capable and mildly interested in furthering ActiViz .NET, I<br>
&gt; &gt;&gt; prefer to spend much of my free time on non-computer related activities<br>
&gt; &gt;&gt; these days. I get quite enough compute time just doing my job. But money<br>
&gt; &gt;&gt; actually does motivate me... and I would be willing to do the work if<br>
&gt; paid<br>
&gt; &gt;&gt; for it. So, that, plus gauging actual interest level, were my primary<br>
&gt; &gt;&gt; motivations for seeking funding via kickstarter.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Cheers,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; David Cole<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; [1]<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510/backers" target="_blank">http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510/backers</a><br>

&gt; &gt;&gt;<br>
&gt; &gt;&gt; [2] <a href="http://review.source.kitware.com/#/t/1615/" target="_blank">http://review.source.kitware.com/#/t/1615/</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; [3] <a href="http://public.kitware.com/gitweb?p=activizdotnet.git" target="_blank">http://public.kitware.com/gitweb?p=activizdotnet.git</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; P.S. ---<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I would also like to point out that nowadays, you can simply build a<br>
&gt; &gt;&gt; managed-C++ project with VS 2012, and ?just link for free? to the native<br>
&gt; &gt;&gt; VTK C++ libraries. That doesn?t help folks using other .NET languages,<br>
&gt; but<br>
&gt; &gt;&gt; it is a nice feature of the modern C++ compiler from MS that you can<br>
&gt; link<br>
&gt; &gt;&gt; in both managed and un-managed code together. If you are starting a new<br>
&gt; &gt;&gt; Windows Forms application, consider using managed C++ as your language.<br>
&gt; &gt;&gt; -------------- next part --------------<br>
&gt; &gt;&gt; An HTML attachment was scrubbed...<br>
&gt; &gt;&gt; URL: &lt;<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/0cc105c5/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/0cc105c5/attachment-0001.htm</a><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 2<br>
&gt; &gt;&gt; Date: Mon, 8 Jul 2013 20:12:06 +0200<br>
&gt; &gt;&gt; From: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>&gt;<br>
&gt; &gt;&gt; Subject: Re: [vtkusers] Regarding example VTKimagereslicemapper<br>
&gt; &gt;&gt; To: David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;, &quot;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&quot;<br>
&gt; &gt;&gt;         &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt;&gt; Message-ID:<br>
&gt; &gt;&gt;         &lt;CAGQ+16KkyGkkjmWQ86Xh5=<br>
&gt; &gt;&gt; <a href="mailto:VfUnbABFEquKOdKEDKfm9_F1eyaA@mail.gmail.com">VfUnbABFEquKOdKEDKfm9_F1eyaA@mail.gmail.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hi,<br>
&gt; &gt;&gt;     Could you please tell me, what are port index in VTK functions?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Mon, Jul 8, 2013 at 5:51 PM, David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt; In the future, please keep the conversation on the mailing list so<br>
&gt; that<br>
&gt; &gt;&gt; &gt; everyone can participate/benefit from the discussion.<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; I believe what you&#39;re seeing is a contrast adjustment mechanism<br>
&gt; (called<br>
&gt; &gt;&gt; &gt; &quot;window level events&quot; -<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details</a><br>
&gt; &gt;&gt; &gt; ).<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; David<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; On Mon, Jul 8, 2013 at 11:48 AM, rahul indoria &lt;<br>
&gt; <a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a><br>
&gt; &gt;&gt; &gt;wrote:<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;&gt; Hi David,<br>
&gt; &gt;&gt; &gt;&gt;                I have one more question regarding this example, in<br>
&gt; the<br>
&gt; &gt;&gt; &gt;&gt; output of this example(<br>
&gt; &gt;&gt; &gt;&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a>),<br>
&gt; why<br>
&gt; &gt;&gt; &gt;&gt; we are getting different colors of the image, when i am left-clicking<br>
&gt; &gt;&gt; on<br>
&gt; &gt;&gt; &gt;&gt; the image and moving mouse up and down?<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; Looking forward your reply soon.<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; rahul indoria<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; On Mon, Jul 8, 2013 at 3:22 PM, David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;<br>
&gt; &gt;&gt; wrote:<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; On Mon, Jul 8, 2013 at 9:05 AM, rahul indoria &lt;<br>
&gt; &gt;&gt; <a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>&gt;wrote:<br>
&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; Hi,<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt;    I was modifying this example:<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a><br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt;  in this example, i am deleting the object vtkImageSlice, and when<br>
&gt; i<br>
&gt; &gt;&gt; am<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; putting the object &quot;imageSliceMapper&quot; i getting an error?<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; As vtkimageslice class used to represent an image in a 3D scene, i<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; don`t want to display this in 3D scene, just want to display on the<br>
&gt; &gt;&gt; screen<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; that`s why i am deleting this class, so why i am getting this<br>
&gt; error?<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; I modified this code like this :<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; What do you want to do if not display the image? The problem is that<br>
&gt; &gt;&gt; you<br>
&gt; &gt;&gt; &gt;&gt;&gt; can&#39;t call AddViewProp on a mapper - it has to be a vtkProp subclass<br>
&gt; &gt;&gt; &gt;&gt;&gt; (like the vtkImageSlice was). In the future, please include the<br>
&gt; exact<br>
&gt; &gt;&gt; &gt;&gt;&gt; error that you are getting.<br>
&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; David<br>
&gt; &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; *Best  Regards<br>
&gt; &gt;&gt; &gt;&gt; Rahul Indoria<br>
&gt; &gt;&gt; &gt;&gt; Mobile No: +49-157-35652212*<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; *Best  Regards<br>
&gt; &gt;&gt; Rahul Indoria<br>
&gt; &gt;&gt; Mobile No: +49-157-35652212*<br>
&gt; &gt;&gt; -------------- next part --------------<br>
&gt; &gt;&gt; An HTML attachment was scrubbed...<br>
&gt; &gt;&gt; URL: &lt;<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/8de03097/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/8de03097/attachment-0001.htm</a><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 3<br>
&gt; &gt;&gt; Date: Mon, 8 Jul 2013 15:44:56 -0700 (PDT)<br>
&gt; &gt;&gt; From: shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt;<br>
&gt; &gt;&gt; Subject: [vtkusers] FindCell method of vtkCellLocator<br>
&gt; &gt;&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt;&gt; Message-ID: &lt;<a href="mailto:1373323496433-5721831.post@n5.nabble.com">1373323496433-5721831.post@n5.nabble.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hi,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I have two triangle cells in my vtkCellLocator and I create a little bb<br>
&gt; &gt;&gt; around a point of one triangle (see picture). Now I use FindCell(bb,<br>
&gt; &gt;&gt; idList)<br>
&gt; &gt;&gt; and I should get one id, but I get two. Is this a bug, or must I change<br>
&gt; &gt;&gt; something?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png</a>&gt;<br>
&gt; &gt;&gt; - two trinagles (red)<br>
&gt; &gt;&gt; - bb (blue)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; My code:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;     for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt; ++ptId)<br>
&gt; &gt;&gt;     {<br>
&gt; &gt;&gt;         bounds[0] = trianglePoint[0] - 0.01;<br>
&gt; &gt;&gt;         bounds[1] = trianglePoint[0] + 0.01;<br>
&gt; &gt;&gt;         bounds[2] = trianglePoint[1] - 0.01;<br>
&gt; &gt;&gt;         bounds[3] = trianglePoint[1] + 0.01;<br>
&gt; &gt;&gt;         bounds[4] = trianglePoint[2] - 0.01;<br>
&gt; &gt;&gt;         bounds[5] = trianglePoint[2] + 0.01;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;         cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;         int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
&gt; &gt;&gt;     }<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thx<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; View this message in context:<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html</a><br>
&gt; &gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 4<br>
&gt; &gt;&gt; Date: Mon, 8 Jul 2013 19:00:25 -0700<br>
&gt; &gt;&gt; From: Alex Malyushytskyy &lt;<a href="mailto:alexmalvtk@gmail.com">alexmalvtk@gmail.com</a>&gt;<br>
&gt; &gt;&gt; Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
&gt; &gt;&gt; To: shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt;<br>
&gt; &gt;&gt; Cc: VTK &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt;&gt; Message-ID:<br>
&gt; &gt;&gt;         &lt;<br>
&gt; &gt;&gt; <a href="mailto:CAHR9pJ0m4dYdghFRjZ5Y6YffT23dv3Q%2BScsu4JEK8yMLQZ7rbg@mail.gmail.com">CAHR9pJ0m4dYdghFRjZ5Y6YffT23dv3Q+Scsu4JEK8yMLQZ7rbg@mail.gmail.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; It is not clear that attached picture corresponds to your claims.<br>
&gt; &gt;&gt; There is no visible  relation between trianglePoint and<br>
&gt; &gt;&gt; geometry-&gt;GetNumberOfPoints().<br>
&gt; &gt;&gt; Also  for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt; &gt;&gt; ++ptId)<br>
&gt; &gt;&gt; loop does not make any sense cause nothing changes in the loop.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; So I guess your trianglePoint is not what you think it is.<br>
&gt; &gt;&gt; For example if this point is shared by 2 triangles you will have the<br>
&gt; same<br>
&gt; &gt;&gt; effect.<br>
&gt; &gt;&gt; Another possible problem might be absolute value 0.1 used.<br>
&gt; &gt;&gt; For example your triangle may have size smaller than it, which will be a<br>
&gt; &gt;&gt; source of such effect too.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Your example is not complete , you could create much better example<br>
&gt; &gt;&gt; initializing all available variables so the behavior can be reproduced.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Alex<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Mon, Jul 8, 2013 at 3:44 PM, shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt; Hi,<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; I have two triangle cells in my vtkCellLocator and I create a little<br>
&gt; bb<br>
&gt; &gt;&gt; &gt; around a point of one triangle (see picture). Now I use FindCell(bb,<br>
&gt; &gt;&gt; &gt; idList)<br>
&gt; &gt;&gt; &gt; and I should get one id, but I get two. Is this a bug, or must I<br>
&gt; change<br>
&gt; &gt;&gt; &gt; something?<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png</a>&gt;<br>
&gt; &gt;&gt; &gt; - two trinagles (red)<br>
&gt; &gt;&gt; &gt; - bb (blue)<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; My code:<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;     for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt; &gt;&gt; ++ptId)<br>
&gt; &gt;&gt; &gt;     {<br>
&gt; &gt;&gt; &gt;         bounds[0] = trianglePoint[0] - 0.01;<br>
&gt; &gt;&gt; &gt;         bounds[1] = trianglePoint[0] + 0.01;<br>
&gt; &gt;&gt; &gt;         bounds[2] = trianglePoint[1] - 0.01;<br>
&gt; &gt;&gt; &gt;         bounds[3] = trianglePoint[1] + 0.01;<br>
&gt; &gt;&gt; &gt;         bounds[4] = trianglePoint[2] - 0.01;<br>
&gt; &gt;&gt; &gt;         bounds[5] = trianglePoint[2] + 0.01;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;         cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;         int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
&gt; &gt;&gt; &gt;     }<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; Thx<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; View this message in context:<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html</a><br>
&gt; &gt;&gt; &gt; Sent from the VTK - Users mailing list archive at Nabble.com.<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; -------------- next part --------------<br>
&gt; &gt;&gt; An HTML attachment was scrubbed...<br>
&gt; &gt;&gt; URL: &lt;<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/533f4d72/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/533f4d72/attachment-0001.htm</a><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 5<br>
&gt; &gt;&gt; Date: Mon, 8 Jul 2013 22:09:00 -0700 (PDT)<br>
&gt; &gt;&gt; From: mailagentrus &lt;<a href="mailto:mailagentrus@mail.ru">mailagentrus@mail.ru</a>&gt;<br>
&gt; &gt;&gt; Subject: [vtkusers] VTK Stereo Rendering<br>
&gt; &gt;&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt;&gt; Message-ID: &lt;<a href="mailto:1373346540408-5721833.post@n5.nabble.com">1373346540408-5721833.post@n5.nabble.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hi! I want to add a stereo mode to my program. Program wil be show pairs<br>
&gt; &gt;&gt; of<br>
&gt; &gt;&gt; images image in stereo mode (with Nvidia 3d vision). I set up NVidia<br>
&gt; Qudro<br>
&gt; &gt;&gt; 410 and saw stereo mode with Polydata object with using Paraview.<br>
&gt; &gt;&gt; But, when I try to make own program i see inly the firs pair images in<br>
&gt; &gt;&gt; stereo mode, after that image in right eye does not update... Updates<br>
&gt; inly<br>
&gt; &gt;&gt; the left eye image.<br>
&gt; &gt;&gt; Help me, please!<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Code:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; #include &lt;vtkPolyDataReader.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkSmartPointer.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkDataSetMapper.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkActor.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkRenderWindow.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkRenderer.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkRenderWindowInteractor.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkCamera.h&gt;<br>
&gt; &gt;&gt; #include &quot;vtkCommand.h&quot;<br>
&gt; &gt;&gt; #include &quot;vtkImageData.h&quot;<br>
&gt; &gt;&gt; #include &lt;vtkBMPReader.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkImageViewer2.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkImageActor.h&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; vtkSmartPointer&lt;vtkBMPReader&gt; readerR;<br>
&gt; &gt;&gt; vtkSmartPointer&lt;vtkBMPReader&gt; readerL;<br>
&gt; &gt;&gt; vtkSmartPointer&lt;vtkImageViewer2&gt; imageViewer;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; class vtkTimerCallback : public vtkCommand<br>
&gt; &gt;&gt; {<br>
&gt; &gt;&gt;   public:<br>
&gt; &gt;&gt;     static vtkTimerCallback *New()<br>
&gt; &gt;&gt;     {<br>
&gt; &gt;&gt;       vtkTimerCallback *cb = new vtkTimerCallback;<br>
&gt; &gt;&gt;       cb-&gt;TimerCount = 0;<br>
&gt; &gt;&gt;       return cb;<br>
&gt; &gt;&gt;     }<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;     virtual void Execute(vtkObject *vtkNotUsed(caller), unsigned long<br>
&gt; &gt;&gt; eventId,<br>
&gt; &gt;&gt;                          void *vtkNotUsed(callData))<br>
&gt; &gt;&gt;     {<br>
&gt; &gt;&gt;       if (vtkCommand::TimerEvent == eventId)<br>
&gt; &gt;&gt;         {<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; // for example name for left eye image is<br>
&gt; &gt;&gt;                 readerL-&gt;SetFileName ( &quot;D:/1234/-40.bmp&quot;);<br>
&gt; &gt;&gt;                 readerL-&gt;Update();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; // for example name for right eye image is<br>
&gt; &gt;&gt;                 readerR-&gt;SetFileName ( &quot;D:/1234/40.bmp&quot;);<br>
&gt; &gt;&gt;                 readerR-&gt;Update();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;                 imageViewer-&gt;SetInput(readerL-&gt;GetOutput());<br>
&gt; &gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;SetStereoTypeToLeft();<br>
&gt; &gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt; &gt;&gt;   imageViewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
&gt; &gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;StereoUpdate();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;                 imageViewer-&gt;SetInput(readerL-&gt;GetOutput());<br>
&gt; &gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;SetStereoTypeToRight();<br>
&gt; &gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt; &gt;&gt;   imageViewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
&gt; &gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;StereoUpdate();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;         ++this-&gt;TimerCount;<br>
&gt; &gt;&gt;         }<br>
&gt; &gt;&gt;         cout &lt;&lt; this-&gt;TimerCount &lt;&lt; endl;<br>
&gt; &gt;&gt;     }<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   private:<br>
&gt; &gt;&gt;     int TimerCount;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; };<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; int main ( int argc, char *argv[] )<br>
&gt; &gt;&gt; {<br>
&gt; &gt;&gt;   //Read the image<br>
&gt; &gt;&gt;    readerL =<br>
&gt; &gt;&gt;     vtkSmartPointer&lt;vtkBMPReader&gt;::New();<br>
&gt; &gt;&gt;   readerL-&gt;SetFileName ( &quot;D:/1234/-5.bmp&quot;);<br>
&gt; &gt;&gt;   readerL-&gt;Update();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;    readerR =<br>
&gt; &gt;&gt;     vtkSmartPointer&lt;vtkBMPReader&gt;::New();<br>
&gt; &gt;&gt;   readerR-&gt;SetFileName ( &quot;D:/1234/5.bmp&quot;);<br>
&gt; &gt;&gt;   readerR-&gt;Update();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   // Visualize<br>
&gt; &gt;&gt;   imageViewer =<br>
&gt; &gt;&gt;     vtkSmartPointer&lt;vtkImageViewer2&gt;::New();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;    vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; renderWindowInteractor =<br>
&gt; &gt;&gt;     vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
&gt; &gt;&gt;   imageViewer-&gt;SetupInteractor(renderWindowInteractor);<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;     imageViewer-&gt;GetRenderWindow()-&gt;SetSize( 800, 600 );<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   imageViewer-&gt;GetRenderWindow()-&gt;StereoCapableWindowOn();<br>
&gt; &gt;&gt;   imageViewer-&gt;GetRenderWindow()-&gt;SetStereoTypeToCrystalEyes();<br>
&gt; &gt;&gt;   imageViewer-&gt;GetRenderWindow()-&gt;SetStereoRender(1);<br>
&gt; &gt;&gt;   imageViewer-&gt;GetRenderWindow()-&gt;StereoUpdate();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;  renderWindowInteractor-&gt;Initialize();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   imageViewer-&gt;SetInput(readerBase-&gt;GetOutput());<br>
&gt; &gt;&gt;   imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt; &gt;&gt;   imageViewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
&gt; &gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;    // Sign up to receive TimerEvent<br>
&gt; &gt;&gt;   vtkSmartPointer&lt;vtkTimerCallback&gt; cb =<br>
&gt; &gt;&gt;     vtkSmartPointer&lt;vtkTimerCallback&gt;::New();<br>
&gt; &gt;&gt;   renderWindowInteractor-&gt;AddObserver(vtkCommand::TimerEvent, cb);<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   int timerId = renderWindowInteractor-&gt;CreateRepeatingTimer(100);<br>
&gt; &gt;&gt;   std::cout &lt;&lt; &quot;timerId: &quot; &lt;&lt; timerId &lt;&lt; std::endl;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;   renderWindowInteractor-&gt;Start();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;    return EXIT_SUCCESS;<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; View this message in context:<br>
&gt; &gt;&gt; <a href="http://vtk.1045678.n5.nabble.com/VTK-Stereo-Rendering-tp5721833.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Stereo-Rendering-tp5721833.html</a><br>
&gt; &gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 6<br>
&gt; &gt;&gt; Date: Tue, 9 Jul 2013 14:08:36 +0800<br>
&gt; &gt;&gt; From: &quot;hongsongyang&quot; &lt;<a href="mailto:hongsongyang@163.com">hongsongyang@163.com</a>&gt;<br>
&gt; &gt;&gt; Subject: [vtkusers] [vtkUsers] About Different RenderWindowInteractor<br>
&gt; &gt;&gt; To: &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt;&gt; Message-ID: &lt;D36F8CD489D643279CDEF9B7802D2D8F@WlfPC&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Dear All:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;      I have several renders (e.g 4 render), and we could use SetViewport<br>
&gt; &gt;&gt; to<br>
&gt; &gt;&gt; display all of them in one RenderWindow.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; My question is that could I set different interactor for each of the<br>
&gt; &gt;&gt; render?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; For example, for render1, I only need zoom and ww/wl operation, but for<br>
&gt; &gt;&gt; render2, I need zoom, pan and rotate operation.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thanks a lot.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hongsongyang<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; -------------- next part --------------<br>
&gt; &gt;&gt; An HTML attachment was scrubbed...<br>
&gt; &gt;&gt; URL: &lt;<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/73d6e3a8/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/73d6e3a8/attachment-0001.htm</a><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 7<br>
&gt; &gt;&gt; Date: Mon, 8 Jul 2013 23:34:35 -0700<br>
&gt; &gt;&gt; From: Gideon Valch &lt;<a href="mailto:gvalch1237@gmail.com">gvalch1237@gmail.com</a>&gt;<br>
&gt; &gt;&gt; Subject: [vtkusers] using vtkGL2PSExporter in python [ under<br>
&gt; &gt;&gt;         pythonXY() ]<br>
&gt; &gt;&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt;&gt; Message-ID:<br>
&gt; &gt;&gt;         &lt;<br>
&gt; &gt;&gt; <a href="mailto:CAEEGk3YCKrV6gQCtRoPXZZQXQ%2BQr7J%2BKPgK%2BzLAAeF2e6%2BKpgw@mail.gmail.com">CAEEGk3YCKrV6gQCtRoPXZZQXQ+Qr7J+KPgK+zLAAeF2e6+Kpgw@mail.gmail.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hello,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I use pythonxy() as my platform for python supported vtk.     Currently,<br>
&gt; &gt;&gt; I&#39;m trying to export a vtk render window to post script using the sample<br>
&gt; &gt;&gt; code (at bottom) but I&#39;m getting an error (see below).   I suspect this<br>
&gt; &gt;&gt; relates to how pythonxy() is compiled.  Can anyone suggest a workaround?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thanks,<br>
&gt; &gt;&gt; GV<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; exporter = vtk.vtkGL2PSExporter()<br>
&gt; &gt;&gt; AttributeError: &#39;module&#39; object has no attribute &#39;vtkGL2PSExporter&#39;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ----------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; prefix=&quot;c:\\temp\\foo444&quot;<br>
&gt; &gt;&gt; exporter = vtk.vtkGL2PSExporter()<br>
&gt; &gt;&gt; exporter.SetFilePrefix(prefix)<br>
&gt; &gt;&gt; exporter.SetFileFormatToSVG()<br>
&gt; &gt;&gt; exporter.SetRenderWindow(renWin)<br>
&gt; &gt;&gt; exporter.CompressOff()<br>
&gt; &gt;&gt; exporter.SetSortToOff()<br>
&gt; &gt;&gt; #exporter.DrawBackgroundOn()<br>
&gt; &gt;&gt; #exporter.Write3DPropsAsRasterImageOn()<br>
&gt; &gt;&gt; exporter.Write()<br>
&gt; &gt;&gt; -------------- next part --------------<br>
&gt; &gt;&gt; An HTML attachment was scrubbed...<br>
&gt; &gt;&gt; URL: &lt;<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/2dfee622/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/2dfee622/attachment-0001.htm</a><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 8<br>
&gt; &gt;&gt; Date: Tue, 9 Jul 2013 00:44:38 -0700 (PDT)<br>
&gt; &gt;&gt; From: Ruff &lt;<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>&gt;<br>
&gt; &gt;&gt; Subject: Re: [vtkusers] Help with image planes example<br>
&gt; &gt;&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt;&gt; Message-ID: &lt;<a href="mailto:1373355878399-5721836.post@n5.nabble.com">1373355878399-5721836.post@n5.nabble.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thank you!<br>
&gt; &gt;&gt; The problem is that when I tried with ImageData as input in<br>
&gt; &gt;&gt; volume16reader I<br>
&gt; &gt;&gt; got the error &quot;Attempt to connect input port index 0 for an algorithm<br>
&gt; &gt;&gt; with 0<br>
&gt; &gt;&gt; input ports&quot;<br>
&gt; &gt;&gt; Using ImageData as input directly to vtkImagePlaneWidget worked fine<br>
&gt; &gt;&gt; though,<br>
&gt; &gt;&gt; so I guess that solves it.<br>
&gt; &gt;&gt; (My VTK-programming right now is mostly trial and error along with<br>
&gt; trying<br>
&gt; &gt;&gt; to<br>
&gt; &gt;&gt; understand the different data structures and the pipeline)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; View this message in context:<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813p5721836.html" target="_blank">http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813p5721836.html</a><br>
&gt; &gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 9<br>
&gt; &gt;&gt; Date: Tue, 09 Jul 2013 11:23:11 +0200<br>
&gt; &gt;&gt; From: Umer Rafi &lt;<a href="mailto:umer.rafi@rwth-aachen.de">umer.rafi@rwth-aachen.de</a>&gt;<br>
&gt; &gt;&gt; Subject: [vtkusers] adding texture to a wavefront .obj  file in vtk<br>
&gt; &gt;&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt;&gt; Message-ID: &lt;<a href="mailto:fb959ae41b00e3.51dbf29f@rwth-aachen.de">fb959ae41b00e3.51dbf29f@rwth-aachen.de</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; CHARSET=US-ASCII<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hello everyone,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;     I am new to vtk. I am having a wavefront file of a 3d human model.<br>
&gt; &gt;&gt; What I want to do is to render it using vtk and apply different<br>
&gt; textures to<br>
&gt; &gt;&gt; different parts of the 3d human model. For example I have a texture<br>
&gt; image<br>
&gt; &gt;&gt; containing a shirt that I want to apply to torso and arms only.  Another<br>
&gt; &gt;&gt; one for jeans that I want to apply to legs and thighs only. I will<br>
&gt; really<br>
&gt; &gt;&gt; appreciate if anyone can provide a sample code snippet to get me<br>
&gt; started.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; thanks in advance.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Regards<br>
&gt; &gt;&gt; Umer<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 10<br>
&gt; &gt;&gt; Date: Tue, 9 Jul 2013 16:53:12 +0530<br>
&gt; &gt;&gt; From: &quot;divya&quot; &lt;<a href="mailto:divya@triassicsolutions.com">divya@triassicsolutions.com</a>&gt;<br>
&gt; &gt;&gt; Subject: [vtkusers] Unexpected actor orientation results<br>
&gt; &gt;&gt; To: &quot;Vtk Users&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt;&gt; Message-ID: &lt;004201ce7c96$b5c358a0$214a09e0$@<a href="http://triassicsolutions.com" target="_blank">triassicsolutions.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Dear vtkUsers,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I am trying to find the orientation of an actor while I&#39;m rotating it,<br>
&gt; &gt;&gt; the z<br>
&gt; &gt;&gt; and y are correct, but the value range for  the x axis is [-90, 90],<br>
&gt; &gt;&gt; whereas<br>
&gt; &gt;&gt; the value range for  z and y axis is [-180, 180].<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Also the rotation doesn&#39;t happen in the chosen axis, for example when I<br>
&gt; &gt;&gt; chose to rotate the actor by 15 degrees on y-axis, the value of the<br>
&gt; z-axis<br>
&gt; &gt;&gt; increases.<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;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; -------------- next part --------------<br>
&gt; &gt;&gt; An HTML attachment was scrubbed...<br>
&gt; &gt;&gt; URL: &lt;<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0001.htm</a><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; -------------- next part --------------<br>
&gt; &gt;&gt; A non-text attachment was scrubbed...<br>
&gt; &gt;&gt; Name: not available<br>
&gt; &gt;&gt; Type: image/jpeg<br>
&gt; &gt;&gt; Size: 10515 bytes<br>
&gt; &gt;&gt; Desc: not available<br>
&gt; &gt;&gt; URL: &lt;<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0002.jpeg" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0002.jpeg</a><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; -------------- next part --------------<br>
&gt; &gt;&gt; A non-text attachment was scrubbed...<br>
&gt; &gt;&gt; Name: not available<br>
&gt; &gt;&gt; Type: image/jpeg<br>
&gt; &gt;&gt; Size: 13048 bytes<br>
&gt; &gt;&gt; Desc: not available<br>
&gt; &gt;&gt; URL: &lt;<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0003.jpeg" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0003.jpeg</a><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 11<br>
&gt; &gt;&gt; Date: Tue, 9 Jul 2013 05:23:41 -0700 (PDT)<br>
&gt; &gt;&gt; From: shinpei &lt;<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>&gt;<br>
&gt; &gt;&gt; Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
&gt; &gt;&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt;&gt; Message-ID: &lt;<a href="mailto:1373372621955-5721840.post@n5.nabble.com">1373372621955-5721840.post@n5.nabble.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Sry... I thought it would be clear what I mean.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; The geometry contains two triangles:<br>
&gt; &gt;&gt; Points are:<br>
&gt; &gt;&gt; (0 0 0)<br>
&gt; &gt;&gt; (0 10 0)<br>
&gt; &gt;&gt; (10 0 0)<br>
&gt; &gt;&gt; (10 10 0)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; with connection:<br>
&gt; &gt;&gt; (0 1 2)<br>
&gt; &gt;&gt; (1 2 3)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;      for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt; &gt;&gt; ++ptId)<br>
&gt; &gt;&gt;     {<br>
&gt; &gt;&gt;         geometry-&gt;getPoints()-&gt;GetPoint(ptId, trianglePoint);<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;         bounds[0] = trianglePoint[0] - 0.01;<br>
&gt; &gt;&gt;         bounds[1] = trianglePoint[0] + 0.01;<br>
&gt; &gt;&gt;         bounds[2] = trianglePoint[1] - 0.01;<br>
&gt; &gt;&gt;         bounds[3] = trianglePoint[1] + 0.01;<br>
&gt; &gt;&gt;         bounds[4] = trianglePoint[2] - 0.01;<br>
&gt; &gt;&gt;         bounds[5] = trianglePoint[2] + 0.01;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;         cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;         int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
&gt; &gt;&gt;     }<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; The trianglePoint is e.g. (0 0 0) (first iteration of the loop) so I<br>
&gt; &gt;&gt; should<br>
&gt; &gt;&gt; get only one triangle, but I get always two triangles. The bb is small<br>
&gt; &gt;&gt; enough and there is a point which correspons to only one triangle.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; View this message in context:<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html</a><br>
&gt; &gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 12<br>
&gt; &gt;&gt; Date: Tue, 9 Jul 2013 15:43:23 +0300<br>
&gt; &gt;&gt; From: Haroon Showgan &lt;<a href="mailto:haroon.showgan@gmail.com">haroon.showgan@gmail.com</a>&gt;<br>
&gt; &gt;&gt; Subject: [vtkusers] VTK application running on Linux loads VNC server<br>
&gt; &gt;&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt;&gt; Message-ID:<br>
&gt; &gt;&gt;         &lt;CAJ=<br>
&gt; &gt;&gt; <a href="mailto:gTgXfT44oBK1Qz5idLBRDt0kdiZuLh0iA%2BmrtAChwR_-Pkw@mail.gmail.com">gTgXfT44oBK1Qz5idLBRDt0kdiZuLh0iA+mrtAChwR_-Pkw@mail.gmail.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hi,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I&#39;m implementing a VTK application for visualizing geometrical 3D<br>
&gt; objects.<br>
&gt; &gt;&gt; Most of the code is written in C++, and I use TCL-TK widgets for the GUI<br>
&gt; &gt;&gt; (I<br>
&gt; &gt;&gt; use *vtkTkRenderWidget* for the main canvas).<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Most of my objects are *vtkVoxel* objects inserted into a *<br>
&gt; &gt;&gt; vtkUnstructuredGrid*.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I run this application on a Linux server and I connect to this server<br>
&gt; from<br>
&gt; &gt;&gt; Windows using VNC. I noticed that when I load a very large data set into<br>
&gt; &gt;&gt; the application then the *VNC server* (on the Linux machine) consumes a<br>
&gt; &gt;&gt; lot<br>
&gt; &gt;&gt; of memory and uses 100% CPU. I didn&#39;t realize that the memory and CPU<br>
&gt; &gt;&gt; usages of a VNC server would be affected so much like this.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;  Note that my VTK application is also consuming a lot of memory and CPU,<br>
&gt; &gt;&gt; but what I find strange is that the VNC server is also affected (the<br>
&gt; &gt;&gt; process is called *Xvnc_core*).<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Does anyone know how this is caused and do you have any suggestion how<br>
&gt; to<br>
&gt; &gt;&gt; mitigate the problem?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Regards,<br>
&gt; &gt;&gt; Haroon<br>
&gt; &gt;&gt; -------------- next part --------------<br>
&gt; &gt;&gt; An HTML attachment was scrubbed...<br>
&gt; &gt;&gt; URL: &lt;<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/621fefc2/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/621fefc2/attachment-0001.htm</a><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 13<br>
&gt; &gt;&gt; Date: Tue, 9 Jul 2013 07:25:46 -0700 (PDT)<br>
&gt; &gt;&gt; From: Massinissa Bandou &lt;Massinissa.Bandou@USherbrooke.ca&gt;<br>
&gt; &gt;&gt; Subject: [vtkusers] .RAW file<br>
&gt; &gt;&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt;&gt; Message-ID: &lt;<a href="mailto:1373379946181-5721842.post@n5.nabble.com">1373379946181-5721842.post@n5.nabble.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hello everyone,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I tried to read a (.raw) file with the following code but it displays a<br>
&gt; &gt;&gt; RED<br>
&gt; &gt;&gt; CUBE. Here is some information about my file  dataInfo.txt<br>
&gt; &gt;&gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt</a>&gt;  . Is<br>
&gt; there<br>
&gt; &gt;&gt; something wrong in my code?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; thx for your time and help!<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; sorry my file is too large to be send.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; #include &lt;vtkSmartPointer.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkRenderWindow.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkRenderWindowInteractor.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkRenderer.h&gt;<br>
&gt; &gt;&gt; #include &lt;vtkActor&gt;<br>
&gt; &gt;&gt; #include &lt;vtkImageReader&gt;<br>
&gt; &gt;&gt; #include &lt;vtkDataSetMapper&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; int main(int argc, char *argv[])<br>
&gt; &gt;&gt; {<br>
&gt; &gt;&gt;         vtkImageReader *reader = vtkImageReader::New();<br>
&gt; &gt;&gt;         reader-&gt;SetFileName(file.c_str());<br>
&gt; &gt;&gt;         reader-&gt;SetFileDimensionality(3);<br>
&gt; &gt;&gt;         reader-&gt;SetNumberOfScalarComponents(1);<br>
&gt; &gt;&gt;         reader-&gt;SetDataExtent(0,512,0,512,0,512);<br>
&gt; &gt;&gt;         reader-&gt;SetDataSpacing(0.145, 0.145, 0.145);<br>
&gt; &gt;&gt;         reader-&gt;SetDataByteOrderToBigEndian();<br>
&gt; &gt;&gt;         reader-&gt;SetDataScalarTypeToChar();<br>
&gt; &gt;&gt;         reader-&gt;Update();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;         vtkSmartPointer&lt;vtkDataSetMapper&gt; map =<br>
&gt; &gt;&gt; vtkSmartPointer&lt;vtkDataSetMapper&gt;::New();<br>
&gt; &gt;&gt;         map-&gt;SetInputConnection(reader-&gt;GetOutputPort());<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;         vtkSmartPointer&lt;vtkActor&gt; actor =<br>
&gt; &gt;&gt; vtkSmartPointer&lt;vtkActor&gt;::New();<br>
&gt; &gt;&gt;         actor-&gt;SetMapper(map);<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;         vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; interactor =<br>
&gt; &gt;&gt; vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;         vtkSmartPointer&lt;vtkRenderWindow&gt; renderWindow =<br>
&gt; &gt;&gt; vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<br>
&gt; &gt;&gt;         interactor-&gt;SetRenderWindow(renderWindow);<br>
&gt; &gt;&gt;         vtkSmartPointer&lt;vtkRenderer&gt; renderer =<br>
&gt; &gt;&gt; vtkSmartPointer&lt;vtkRenderer&gt;::New();<br>
&gt; &gt;&gt;         renderWindow-&gt;AddRenderer(renderer);<br>
&gt; &gt;&gt;         renderer-&gt;AddActor(actor);<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;         renderWindow-&gt;Render();<br>
&gt; &gt;&gt;         interactor-&gt;Start();<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; View this message in context:<br>
&gt; &gt;&gt; <a href="http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html" target="_blank">http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html</a><br>
&gt; &gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 14<br>
&gt; &gt;&gt; Date: Tue, 9 Jul 2013 11:38:50 -0400<br>
&gt; &gt;&gt; From: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
&gt; &gt;&gt; Subject: Re: [vtkusers] .RAW file<br>
&gt; &gt;&gt; To: Massinissa Bandou &lt;<a href="mailto:Massinissa.Bandou@usherbrooke.ca">Massinissa.Bandou@usherbrooke.ca</a>&gt;<br>
&gt; &gt;&gt; Cc: VTK Users &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
&gt; &gt;&gt; Message-ID:<br>
&gt; &gt;&gt;         &lt;<br>
&gt; &gt;&gt; <a href="mailto:CADZJ4hNXVuS_7L9ocCzex3XHpqyg5dpdKJ2NmxfQn_DnaSDp_Q@mail.gmail.com">CADZJ4hNXVuS_7L9ocCzex3XHpqyg5dpdKJ2NmxfQn_DnaSDp_Q@mail.gmail.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; If your data is 512x512x512 then<br>
&gt; &gt;&gt; reader-&gt;SetDataExtent(0,512,0,512,0,512);<br>
&gt; &gt;&gt; should be:<br>
&gt; &gt;&gt; reader-&gt;SetDataExtent(0,511,0,511,0,511);<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Also be certain you are setting the correct endianness.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Tue, Jul 9, 2013 at 10:25 AM, Massinissa Bandou &lt;<br>
&gt; &gt;&gt; <a href="mailto:Massinissa.Bandou@usherbrooke.ca">Massinissa.Bandou@usherbrooke.ca</a>&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt; Hello everyone,<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; I tried to read a (.raw) file with the following code but it displays<br>
&gt; a<br>
&gt; &gt;&gt; RED<br>
&gt; &gt;&gt; &gt; CUBE. Here is some information about my file  dataInfo.txt<br>
&gt; &gt;&gt; &gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt</a>&gt;  . Is<br>
&gt; &gt;&gt; there<br>
&gt; &gt;&gt; &gt; something wrong in my code?<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; thx for your time and help!<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; sorry my file is too large to be send.<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; #include &lt;vtkSmartPointer.h&gt;<br>
&gt; &gt;&gt; &gt; #include &lt;vtkRenderWindow.h&gt;<br>
&gt; &gt;&gt; &gt; #include &lt;vtkRenderWindowInteractor.h&gt;<br>
&gt; &gt;&gt; &gt; #include &lt;vtkRenderer.h&gt;<br>
&gt; &gt;&gt; &gt; #include &lt;vtkActor&gt;<br>
&gt; &gt;&gt; &gt; #include &lt;vtkImageReader&gt;<br>
&gt; &gt;&gt; &gt; #include &lt;vtkDataSetMapper&gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; int main(int argc, char *argv[])<br>
&gt; &gt;&gt; &gt; {<br>
&gt; &gt;&gt; &gt;         vtkImageReader *reader = vtkImageReader::New();<br>
&gt; &gt;&gt; &gt;         reader-&gt;SetFileName(file.c_str());<br>
&gt; &gt;&gt; &gt;         reader-&gt;SetFileDimensionality(3);<br>
&gt; &gt;&gt; &gt;         reader-&gt;SetNumberOfScalarComponents(1);<br>
&gt; &gt;&gt; &gt;         reader-&gt;SetDataExtent(0,512,0,512,0,512);<br>
&gt; &gt;&gt; &gt;         reader-&gt;SetDataSpacing(0.145, 0.145, 0.145);<br>
&gt; &gt;&gt; &gt;         reader-&gt;SetDataByteOrderToBigEndian();<br>
&gt; &gt;&gt; &gt;         reader-&gt;SetDataScalarTypeToChar();<br>
&gt; &gt;&gt; &gt;         reader-&gt;Update();<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;         vtkSmartPointer&lt;vtkDataSetMapper&gt; map =<br>
&gt; &gt;&gt; &gt; vtkSmartPointer&lt;vtkDataSetMapper&gt;::New();<br>
&gt; &gt;&gt; &gt;         map-&gt;SetInputConnection(reader-&gt;GetOutputPort());<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;         vtkSmartPointer&lt;vtkActor&gt; actor =<br>
&gt; &gt;&gt; vtkSmartPointer&lt;vtkActor&gt;::New();<br>
&gt; &gt;&gt; &gt;         actor-&gt;SetMapper(map);<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;         vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; interactor =<br>
&gt; &gt;&gt; &gt; vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;         vtkSmartPointer&lt;vtkRenderWindow&gt; renderWindow =<br>
&gt; &gt;&gt; &gt; vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<br>
&gt; &gt;&gt; &gt;         interactor-&gt;SetRenderWindow(renderWindow);<br>
&gt; &gt;&gt; &gt;         vtkSmartPointer&lt;vtkRenderer&gt; renderer =<br>
&gt; &gt;&gt; &gt; vtkSmartPointer&lt;vtkRenderer&gt;::New();<br>
&gt; &gt;&gt; &gt;         renderWindow-&gt;AddRenderer(renderer);<br>
&gt; &gt;&gt; &gt;         renderer-&gt;AddActor(actor);<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;         renderWindow-&gt;Render();<br>
&gt; &gt;&gt; &gt;         interactor-&gt;Start();<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; --<br>
&gt; &gt;&gt; &gt; View this message in context:<br>
&gt; &gt;&gt; &gt; <a href="http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html" target="_blank">http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html</a><br>
&gt; &gt;&gt; &gt; Sent from the VTK - Users mailing list archive at Nabble.com.<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; Unpaid intern in BillsBasement at noware dot com<br>
&gt; &gt;&gt; -------------- next part --------------<br>
&gt; &gt;&gt; An HTML attachment was scrubbed...<br>
&gt; &gt;&gt; URL: &lt;<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/b188c2b1/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/b188c2b1/attachment-0001.htm</a><br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Message: 15<br>
&gt; &gt;&gt; Date: Tue, 9 Jul 2013 08:46:33 -0700 (PDT)<br>
&gt; &gt;&gt; From: Ruff &lt;<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>&gt;<br>
&gt; &gt;&gt; Subject: [vtkusers] My point cloud data won&#39;t display in the renderer.<br>
&gt; &gt;&gt; To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; &gt;&gt; Message-ID: &lt;<a href="mailto:1373384793963-5721844.post@n5.nabble.com">1373384793963-5721844.post@n5.nabble.com</a>&gt;<br>
&gt; &gt;&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; All i get is an empty renderWindow. I get no errors, but no data is<br>
&gt; &gt;&gt; rendered<br>
&gt; &gt;&gt; either. What am I doing wrong?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; What I do is pretty much this:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; AtomGrid=vtk.vtkUnstructuredGrid()<br>
&gt; &gt;&gt; AtomGrid.SetPoints(    vtkPoints with [index,x,y,z]    )<br>
&gt; &gt;&gt; AtomGrid.GetPointData().SetScalars(    vtkFloatArray with [index,<br>
&gt; scalar]<br>
&gt; &gt;&gt; )<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; volMapper = vtk.vtkUnstructuredGridVolumeRayCastMapper()<br>
&gt; &gt;&gt; volMapper.SetBlendModeToComposite()<br>
&gt; &gt;&gt; volMapper.SetInput(AtomGrid)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I tried volMapper.SetScalarModeToUsePointFieldData(), but then it claims<br>
&gt; &gt;&gt; that I have no scalar values to use(!!)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; (I cheated before, and was satisfied using ImageData for this, but now I<br>
&gt; &gt;&gt; really need to get this to work with UnstructuredGrid)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; View this message in context:<br>
&gt; &gt;&gt;<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html</a><br>

&gt; &gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ------------------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; vtkusers mailing list<br>
&gt; &gt;&gt; <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><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; End of vtkusers Digest, Vol 111, Issue 16<br>
&gt; &gt;&gt; *****************************************<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; *Best  Regards<br>
&gt; &gt; Rahul Indoria<br>
&gt; &gt; Mobile No: +49-157-35652212*<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt; &gt;<br>
&gt; &gt; Visit other Kitware open-source projects at<br>
&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt; &gt;<br>
&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; &gt;<br>
&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Unpaid intern in BillsBasement at noware dot com<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/20130709/e6f9bcc4/attachment.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/e6f9bcc4/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">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 111, Issue 17<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/20130710/526f7bcf/attachment.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130710/526f7bcf/attachment.htm</a>&gt;<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
vtkusers mailing list<br>
<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
End of vtkusers Digest, Vol 111, Issue 18<br>
*****************************************<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(0,0,255)"><b>Best  Regards<br>Rahul Indoria<br>Mobile No: +49-157-35652212</b></span><br></div>
</div>