[vtkusers] Need Help

rahul indoria rahulindoria5 at gmail.com
Wed Jul 10 09:16:12 EDT 2013


Hi All,
         I am just modifying this example (
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation).

At this portion of this example,


// Create a mapper and actor.
  vtkSmartPointer<vtkDataSetMapper> mapper =
    vtkSmartPointer<vtkDataSetMapper>::New();
  mapper->SetInputConnection(sampleVolume->GetOutputPort());


and this statement in function SetInputConnection:
*sampleVolume->GetOutputPort()*, is giving me values on the surface.


My Query:

I have to use these values and using this values i have to generate a 2D image.

could you please suggest me some class or the way(method), by which i
can achieve this task. it`s really very urgent for me, please help.



Looking forward your reply.












On Tue, Jul 9, 2013 at 9:00 PM, <vtkusers-request at vtk.org> wrote:

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



-- 
*Best  Regards
Rahul Indoria
Mobile No: +49-157-35652212*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130710/526f7bcf/attachment.htm>


More information about the vtkusers mailing list