[vtkusers] vtkusers Digest, Vol 111, Issue 18
rahul indoria
rahulindoria5 at gmail.com
Wed Jul 10 11:58:31 EDT 2013
Hi,
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.
Looking forward your reply soon.
On Wed, Jul 10, 2013 at 3:16 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: vtkusers Digest, Vol 111, Issue 16 (David Doria)
> 2. Re: FindCell method of vtkCellLocator (Biddiscombe, John A.)
> 3. Create "ovoid" with VTK (mar x)
> 4. Re: Create "ovoid" with VTK (Shawn Waldon)
> 5. Re: Create "ovoid" with VTK (Bill Lorensen)
> 6. tetgen mesh boundaries (Adrienne)
> 7. Re: Create "ovoid" with VTK (Bill Lorensen)
> 8. PointInPolygon works strange (shinpei)
> 9. Re: FindCell method of vtkCellLocator (shinpei)
> 10. Re: PointInPolygon works strange (Marco Nawijn)
> 11. add threshold filter to a volume (mipviwer vtk java) (amal jerbi)
> 12. g (sugavanesh chandrasekaran)
> 13. hi (sugavanesh chandrasekaran)
> 14. Re: PointInPolygon works strange (shinpei)
> 15. Re: My point cloud data won't display in the renderer. (Ruff)
> 16. Need Help (rahul indoria)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 9 Jul 2013 15:10:40 -0400
> From: David Doria <daviddoria 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:
> <
> CABDpjTnDGZTG73TSB9NDw5+arLq4m7dfj9+wm0+Kn4aQJWBoZg at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> > cols++; // why this statement ?
> This must just be the definition of "resolution" that is passed in via
> the command line. Apparently the number of columns is the "resolution"
> + 1.
>
> > unsigned int numberOfPoints = rows * cols; // how these number points
> are generated
> This just defines the size of the point grid.
>
> > unsigned int numberOfPolys = (rows - 1) * (cols - 1); // what is
> this???
> If you make a grid of rectangles (topologically), there are rows*cols
> points, and (rows-1)*(cols-1) rectangles. Imagine a 3x3 grid of points
> - you'll see that you can draw a 2x2 grid of non-overlapping
> rectangles with the points as their corners.
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 9 Jul 2013 20:39:13 +0000
> From: "Biddiscombe, John A." <biddisco at cscs.ch>
> Subject: Re: [vtkusers] FindCell method of vtkCellLocator
> To: shinpei <noro_shinpei at web.de>, "vtkusers at vtk.org"
> <vtkusers at vtk.org>
> Message-ID:
> <50320452A334BD42A5EC72BAD2145099087A4FB2 at MBX110.d.ethz.ch>
> Content-Type: text/plain; charset="us-ascii"
>
> could it be that the first point you check is shared, so two is correct,
> but since you don'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)
>
> JB
>
> -----Original Message-----
> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
> Behalf Of shinpei
> Sent: 09 July 2013 14:24
> To: vtkusers at vtk.org
> Subject: Re: [vtkusers] FindCell method of vtkCellLocator
>
> 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.
> _______________________________________________
> 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
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 9 Jul 2013 23:06:15 +0200
> From: mar x <myint101 at gmail.com>
> Subject: [vtkusers] Create "ovoid" with VTK
> To: vtkusers at vtk.org
> Message-ID:
> <CAHbewjfRdzoUWfgk+W_=j=
> yUOecTqPaP6AiKhHtqiaD5ZmiYZQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear VTK list,
>
> I want to create a 3D object that looks like an egg/ovoid. I tried to to
> this with vtkSphere and by setting the vtkTransform->Scale to something
> like 3,1,1 but it's not working. I would be very glad if you could help me
> on this. Please find below the code and thank you for any help!
>
>
> vtkSphereSource *sSource= vtkSphereSource::New();
> sSource->SetThetaResolution( 12);
> sSource->SetPhiResolution ( 12);
> sSource->SetCenter( 0, 0, 0 );
> sSource->SetRadius( 10.0 );
>
> vtkTransform* transform = vtkTransform::New();
> transform->Identity();
> transform->Scale(3,1,1);
> transform->Update();
> vtkSphere* sphere = vtkSphere::New();
> sphere->SetCenter(0,0,0);
> sphere->SetTransform(transform);
>
> vtkSmartPointer<vtkClipPolyData> clipper =
> vtkSmartPointer<vtkClipPolyData>::New();
> clipper->SetInputConnection(sSource->GetOutputPort());
> clipper->SetClipFunction(sphere);
> clipper->SetValue(0);
> clipper->Update();
>
> vtkPolyDataMapper *map = vtkPolyDataMapper::New();
> map->SetInput(clipper->GetOutput());
>
> vtkActor *aSphere = vtkActor::New();
> aSphere->SetMapper(map);
> aSphere->GetProperty()->SetColor(0,0,1);
> ......
> .....
> .....
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130709/849d93ed/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 4
> Date: Tue, 9 Jul 2013 17:11:15 -0400
> From: Shawn Waldon <swaldon at cs.unc.edu>
> Subject: Re: [vtkusers] Create "ovoid" with VTK
> To: mar x <myint101 at gmail.com>
> Cc: VTK <vtkusers at vtk.org>
> Message-ID:
> <
> CAKqg6a6z2eFMO3KsfTp8fJV0PhS91zE7vve2AXTnMFMUzzunkA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> You probably want something more like:
>
> vtkSphereSource *sSource= vtkSphereSource::New();
> sSource->SetThetaResolution( 12);
> sSource->SetPhiResolution ( 12);
> sSource->SetCenter( 0, 0, 0 );
> sSource->SetRadius( 10.0 );
>
> vtkTransform* transform = vtkTransform::New();
> transform->Identity();
> transform->Scale(3,1,1);
> transform->Update();
> vtkTransformPolyDataFilter* tFilter = vtkTransformPolyDataFilter::New();
> tFilter->SetInputConnection(sSource.GetOutputPort());
> tFilter->SetTransform(transform);
> tFilter->Update()
>
> vtkPolyDataMapper *map = vtkPolyDataMapper::New();
> map->SetInputConnection(tFilter->GetOutputPort());
>
> .................
>
> I didn't change your example much due to laziness and wanting to
> copy/paste, but you really should use vtkSmartPointers.
>
>
>
> On Tue, Jul 9, 2013 at 5:06 PM, mar x <myint101 at gmail.com> wrote:
>
> > Dear VTK list,
> >
> > I want to create a 3D object that looks like an egg/ovoid. I tried to to
> > this with vtkSphere and by setting the vtkTransform->Scale to something
> > like 3,1,1 but it's not working. I would be very glad if you could help
> me
> > on this. Please find below the code and thank you for any help!
> >
> >
> > vtkSphereSource *sSource= vtkSphereSource::New();
> > sSource->SetThetaResolution( 12);
> > sSource->SetPhiResolution ( 12);
> > sSource->SetCenter( 0, 0, 0 );
> > sSource->SetRadius( 10.0 );
> >
> > vtkTransform* transform = vtkTransform::New();
> > transform->Identity();
> > transform->Scale(3,1,1);
> > transform->Update();
> > vtkSphere* sphere = vtkSphere::New();
> > sphere->SetCenter(0,0,0);
> > sphere->SetTransform(transform);
> >
> > vtkSmartPointer<vtkClipPolyData> clipper =
> > vtkSmartPointer<vtkClipPolyData>::New();
> > clipper->SetInputConnection(sSource->GetOutputPort());
> > clipper->SetClipFunction(sphere);
> > clipper->SetValue(0);
> > clipper->Update();
> >
> > vtkPolyDataMapper *map = vtkPolyDataMapper::New();
> > map->SetInput(clipper->GetOutput());
> >
> > vtkActor *aSphere = vtkActor::New();
> > aSphere->SetMapper(map);
> > aSphere->GetProperty()->SetColor(0,0,1);
> > ......
> > .....
> > .....
> >
> > _______________________________________________
> > 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
> >
> >
>
>
> --
> Shawn Waldon
> Graduate Student
> Department of Computer Science
> University of North Carolina at Chapel Hill
> swaldon at cs.unc.edu
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130709/45e7e8a5/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 5
> Date: Tue, 9 Jul 2013 17:16:14 -0400
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Subject: Re: [vtkusers] Create "ovoid" with VTK
> To: Shawn Waldon <swaldon at cs.unc.edu>
> Cc: VTK <vtkusers at vtk.org>
> Message-ID:
> <CADZJ4hPLLbBhch3ck=
> 0939SeBr_LrDdSXJDCVcDgS_C1Jmjj4w at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Or try:
> // .NAME vtkParametricEllipsoid - Generate an ellipsoid.
> // .SECTION Description
> // vtkParametricEllipsoid generates an ellipsoid.
> // If all the radii are the same, we have a sphere.
> // An oblate spheroid occurs if RadiusX = RadiusY > RadiusZ.
> // Here the Z-axis forms the symmetry axis. To a first
> // approximation, this is the shape of the earth.
> // A prolate spheroid occurs if RadiusX = RadiusY < RadiusZ.
>
>
>
> On Tue, Jul 9, 2013 at 5:11 PM, Shawn Waldon <swaldon at cs.unc.edu> wrote:
>
> > You probably want something more like:
> >
> > vtkSphereSource *sSource= vtkSphereSource::New();
> > sSource->SetThetaResolution( 12);
> > sSource->SetPhiResolution ( 12);
> > sSource->SetCenter( 0, 0, 0 );
> > sSource->SetRadius( 10.0 );
> >
> > vtkTransform* transform = vtkTransform::New();
> > transform->Identity();
> > transform->Scale(3,1,1);
> > transform->Update();
> > vtkTransformPolyDataFilter* tFilter = vtkTransformPolyDataFilter::New();
> > tFilter->SetInputConnection(sSource.GetOutputPort());
> > tFilter->SetTransform(transform);
> > tFilter->Update()
> >
> > vtkPolyDataMapper *map = vtkPolyDataMapper::New();
> > map->SetInputConnection(tFilter->GetOutputPort());
> >
> > .................
> >
> > I didn't change your example much due to laziness and wanting to
> > copy/paste, but you really should use vtkSmartPointers.
> >
> >
> >
> > On Tue, Jul 9, 2013 at 5:06 PM, mar x <myint101 at gmail.com> wrote:
> >
> >> Dear VTK list,
> >>
> >> I want to create a 3D object that looks like an egg/ovoid. I tried to to
> >> this with vtkSphere and by setting the vtkTransform->Scale to something
> >> like 3,1,1 but it's not working. I would be very glad if you could help
> me
> >> on this. Please find below the code and thank you for any help!
> >>
> >>
> >> vtkSphereSource *sSource= vtkSphereSource::New();
> >> sSource->SetThetaResolution( 12);
> >> sSource->SetPhiResolution ( 12);
> >> sSource->SetCenter( 0, 0, 0 );
> >> sSource->SetRadius( 10.0 );
> >>
> >> vtkTransform* transform = vtkTransform::New();
> >> transform->Identity();
> >> transform->Scale(3,1,1);
> >> transform->Update();
> >> vtkSphere* sphere = vtkSphere::New();
> >> sphere->SetCenter(0,0,0);
> >> sphere->SetTransform(transform);
> >>
> >> vtkSmartPointer<vtkClipPolyData> clipper =
> >> vtkSmartPointer<vtkClipPolyData>::New();
> >> clipper->SetInputConnection(sSource->GetOutputPort());
> >> clipper->SetClipFunction(sphere);
> >> clipper->SetValue(0);
> >> clipper->Update();
> >>
> >> vtkPolyDataMapper *map = vtkPolyDataMapper::New();
> >> map->SetInput(clipper->GetOutput());
> >>
> >> vtkActor *aSphere = vtkActor::New();
> >> aSphere->SetMapper(map);
> >> aSphere->GetProperty()->SetColor(0,0,1);
> >> ......
> >> .....
> >> .....
> >>
> >> _______________________________________________
> >> 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
> >>
> >>
> >
> >
> > --
> > Shawn Waldon
> > Graduate Student
> > Department of Computer Science
> > University of North Carolina at Chapel Hill
> > swaldon at cs.unc.edu
> >
> > _______________________________________________
> > 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/5e4baa68/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 6
> Date: Tue, 9 Jul 2013 14:22:45 -0700 (PDT)
> From: Adrienne <dunhama at spu.edu>
> Subject: [vtkusers] tetgen mesh boundaries
> To: vtkusers at vtk.org
> Message-ID: <1373404965041-5721853.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> It seems several people are familiar with tetgen, so I was wondering if
> anyone could help me out.
>
> I've created a tetrahedron mesh using a set of vertices stored in a .node
> file. However, there are some parts on the boundary of the mesh that should
> be concave. I tried to specify those nodes using the boundary marker 1, but
> the mesh tetgen creates still surrounds those nodes (see node 8 below). Why
> doesn't this work?
>
> Here's a simplified example of my .node file:
>
> #test.node
> 9 3 0 1
> 0 0 0 0 1
> 1 1 0 0 1
> 2 1 1 0 1
> 3 0 1 0 1
> 4 0 0 1 1
> 5 1 0 1 1
> 6 1 1 1 1
> 7 0 1 1 1
> 8 0.2 0.5 0.5 1
>
> Thanks!
> Adrienne
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/tetgen-mesh-boundaries-tp5721853.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 7
> Date: Tue, 9 Jul 2013 17:50:38 -0400
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Subject: Re: [vtkusers] Create "ovoid" with VTK
> To: mar x <myint101 at gmail.com>, VTK Users <vtkusers at vtk.org>
> Message-ID:
> <
> CADZJ4hMfeODKBJ6fvviL7yn80b09SKrsGU0RQ6NJ8cbnroSvOQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> You could use
>
> http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilterto
> create a union of a sphere and ellipsoid. This image might help:
> http://commons.wikimedia.org/wiki/File:Ovoid_plot.gif
>
>
>
> On Tue, Jul 9, 2013 at 5:35 PM, mar x <myint101 at gmail.com> wrote:
>
> > Thanks for the fast answers. I tried both but both gives just an
> ellipsoid
> > and no ovoid. In other words I want to create a 3D object that is a
> > composition of a half sphere and and half ellipsoid.
> >
> > Best regards.
> >
> >
> > 2013/7/9 Bill Lorensen <bill.lorensen at gmail.com>
> >
> >> Or try:
> >> // .NAME vtkParametricEllipsoid - Generate an ellipsoid.
> >> // .SECTION Description
> >> // vtkParametricEllipsoid generates an ellipsoid.
> >> // If all the radii are the same, we have a sphere.
> >> // An oblate spheroid occurs if RadiusX = RadiusY > RadiusZ.
> >> // Here the Z-axis forms the symmetry axis. To a first
> >> // approximation, this is the shape of the earth.
> >> // A prolate spheroid occurs if RadiusX = RadiusY < RadiusZ.
> >>
> >>
> >>
> >> On Tue, Jul 9, 2013 at 5:11 PM, Shawn Waldon <swaldon at cs.unc.edu>
> wrote:
> >>
> >>> You probably want something more like:
> >>>
> >>> vtkSphereSource *sSource= vtkSphereSource::New();
> >>> sSource->SetThetaResolution( 12);
> >>> sSource->SetPhiResolution ( 12);
> >>> sSource->SetCenter( 0, 0, 0 );
> >>> sSource->SetRadius( 10.0 );
> >>>
> >>> vtkTransform* transform = vtkTransform::New();
> >>> transform->Identity();
> >>> transform->Scale(3,1,1);
> >>> transform->Update();
> >>> vtkTransformPolyDataFilter* tFilter =
> vtkTransformPolyDataFilter::New();
> >>> tFilter->SetInputConnection(sSource.GetOutputPort());
> >>> tFilter->SetTransform(transform);
> >>> tFilter->Update()
> >>>
> >>> vtkPolyDataMapper *map = vtkPolyDataMapper::New();
> >>> map->SetInputConnection(tFilter->GetOutputPort());
> >>>
> >>> .................
> >>>
> >>> I didn't change your example much due to laziness and wanting to
> >>> copy/paste, but you really should use vtkSmartPointers.
> >>>
> >>>
> >>>
> >>> On Tue, Jul 9, 2013 at 5:06 PM, mar x <myint101 at gmail.com> wrote:
> >>>
> >>>> Dear VTK list,
> >>>>
> >>>> I want to create a 3D object that looks like an egg/ovoid. I tried to
> >>>> to this with vtkSphere and by setting the vtkTransform->Scale to
> something
> >>>> like 3,1,1 but it's not working. I would be very glad if you could
> help me
> >>>> on this. Please find below the code and thank you for any help!
> >>>>
> >>>>
> >>>> vtkSphereSource *sSource= vtkSphereSource::New();
> >>>> sSource->SetThetaResolution( 12);
> >>>> sSource->SetPhiResolution ( 12);
> >>>> sSource->SetCenter( 0, 0, 0 );
> >>>> sSource->SetRadius( 10.0 );
> >>>>
> >>>> vtkTransform* transform = vtkTransform::New();
> >>>> transform->Identity();
> >>>> transform->Scale(3,1,1);
> >>>> transform->Update();
> >>>> vtkSphere* sphere = vtkSphere::New();
> >>>> sphere->SetCenter(0,0,0);
> >>>> sphere->SetTransform(transform);
> >>>>
> >>>> vtkSmartPointer<vtkClipPolyData> clipper =
> >>>> vtkSmartPointer<vtkClipPolyData>::New();
> >>>> clipper->SetInputConnection(sSource->GetOutputPort());
> >>>> clipper->SetClipFunction(sphere);
> >>>> clipper->SetValue(0);
> >>>> clipper->Update();
> >>>>
> >>>> vtkPolyDataMapper *map = vtkPolyDataMapper::New();
> >>>> map->SetInput(clipper->GetOutput());
> >>>>
> >>>> vtkActor *aSphere = vtkActor::New();
> >>>> aSphere->SetMapper(map);
> >>>> aSphere->GetProperty()->SetColor(0,0,1);
> >>>> ......
> >>>> .....
> >>>> .....
> >>>>
> >>>> _______________________________________________
> >>>> 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
> >>>>
> >>>>
> >>>
> >>>
> >>> --
> >>> Shawn Waldon
> >>> Graduate Student
> >>> Department of Computer Science
> >>> University of North Carolina at Chapel Hill
> >>> swaldon at cs.unc.edu
> >>>
> >>> _______________________________________________
> >>> 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
> >>
> >
> >
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130709/35740d0b/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 8
> Date: Tue, 9 Jul 2013 17:27:48 -0700 (PDT)
> From: shinpei <noro_shinpei at web.de>
> Subject: [vtkusers] PointInPolygon works strange
> To: vtkusers at vtk.org
> Message-ID: <1373416068888-5721855.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> I tried the example PointInPolygon
> <http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/PointInPolygon> with
> the following code:
>
> int main()
> {
> vtkNew(vtkPolygon, polygon);
> polygon->GetPoints()->InsertNextPoint(0.0, 0.0, 0.0);
> polygon->GetPoints()->InsertNextPoint(0.0, 10.0, 0.0);
> polygon->GetPoints()->InsertNextPoint(10.0, 0.0, 0.0);
>
> double testIn[3] = {5.0, 0.0, 0.0};
>
> double n[3];
> polygon->ComputeNormal(polygon->GetPoints()->GetNumberOfPoints(),
>
> static_cast<double*>(polygon->GetPoints()->GetData()->GetVoidPointer(0)),
> n);
>
> double bounds[6];
> polygon->GetPoints()->GetBounds(bounds);
>
> std::cout << "testIn in polygon? " <<
>
> polygon->PointInPolygon(testIn,polygon->GetPoints()->GetNumberOfPoints(),
>
> static_cast<double*>(polygon->GetPoints()->GetData()->GetVoidPointer(0)),
> bounds, n) << std::endl;
> return EXIT_SUCCESS;
> }
>
> But the result is: The Point (5 0 0) is not in the polygon. This could not
> be the right result. The point rests on the edge (0 0 0) - (10 0 0) of the
> triangle.
>
> What is wrong?
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/PointInPolygon-works-strange-tp5721855.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 9
> Date: Tue, 9 Jul 2013 17:30:42 -0700 (PDT)
> From: shinpei <noro_shinpei at web.de>
> Subject: Re: [vtkusers] FindCell method of vtkCellLocator
> To: vtkusers at vtk.org
> Message-ID: <1373416242875-5721856.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> No the first point I check is (0 0 0) and this point corresponds only to
> one
> triangle.
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721856.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 10
> Date: Wed, 10 Jul 2013 11:00:11 +0200
> From: Marco Nawijn <nawijn at gmail.com>
> Subject: Re: [vtkusers] PointInPolygon works strange
> To: shinpei <noro_shinpei at web.de>
> Cc: VTK Users <vtkusers at vtk.org>
> Message-ID:
> <CA+pnd0mG8hH-ecbVcT8=WMhaaTN-KqC=
> jBb7eNf5RDbpPD4BuA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear Shinpei,
>
> I have never used this class/method before, but can it be a matter of
> definition? In my opinion you have the interior and the boundary defined by
> the polygon. I can imagine that "PointInPolygon" checks if the point is in
> the interior, so it excludes points on the boundary. Since your point is on
> the boundary, it would then be outside of the polygon.
>
> Kind regards,
>
> Marco
>
>
>
> On Wed, Jul 10, 2013 at 2:27 AM, shinpei <noro_shinpei at web.de> wrote:
>
> > Hi,
> >
> > I tried the example PointInPolygon
> > <http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/PointInPolygon>
> with
> > the following code:
> >
> > int main()
> > {
> > vtkNew(vtkPolygon, polygon);
> > polygon->GetPoints()->InsertNextPoint(0.0, 0.0, 0.0);
> > polygon->GetPoints()->InsertNextPoint(0.0, 10.0, 0.0);
> > polygon->GetPoints()->InsertNextPoint(10.0, 0.0, 0.0);
> >
> > double testIn[3] = {5.0, 0.0, 0.0};
> >
> > double n[3];
> > polygon->ComputeNormal(polygon->GetPoints()->GetNumberOfPoints(),
> >
> > static_cast<double*>(polygon->GetPoints()->GetData()->GetVoidPointer(0)),
> > n);
> >
> > double bounds[6];
> > polygon->GetPoints()->GetBounds(bounds);
> >
> > std::cout << "testIn in polygon? " <<
> >
> > polygon->PointInPolygon(testIn,polygon->GetPoints()->GetNumberOfPoints(),
> >
> > static_cast<double*>(polygon->GetPoints()->GetData()->GetVoidPointer(0)),
> > bounds, n) << std::endl;
> > return EXIT_SUCCESS;
> > }
> >
> > But the result is: The Point (5 0 0) is not in the polygon. This could
> not
> > be the right result. The point rests on the edge (0 0 0) - (10 0 0) of
> the
> > triangle.
> >
> > What is wrong?
> >
> >
> >
> > --
> > View this message in context:
> >
> http://vtk.1045678.n5.nabble.com/PointInPolygon-works-strange-tp5721855.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/20130710/b734c3ed/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 11
> Date: Wed, 10 Jul 2013 11:01:10 +0200
> From: amal jerbi <am.jerbi at gmail.com>
> Subject: [vtkusers] add threshold filter to a volume (mipviwer vtk
> java)
> To: vtkusers at vtk.org
> Message-ID:
> <
> CABf2nGVZM1Zn6o1unoA0cZY5JxGQWYsr-VZ_0iJvAVf9csWHEw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I would like to add a threshold filter to the example of
> http://gdcm.sourceforge.net/html/MIPViewer_8java-example.html I have add
> this code but that show now thing!!!
>
> vtkMeshQuality qualityFilter = new vtkMeshQuality();
> qualityFilter.SetInputConnection(change.GetOutputPort());
> qualityFilter.SetTriangleQualityMeasureToArea();
> qualityFilter.Update();
> tkDataSet qualityMesh = qualityFilter.GetOutput();
> vtkThreshold selectCells = new vtkThreshold();
> selectCells.ThresholdByLower(.1);
> selectCells.SetInputArrayToProcess(0, 0, 0, "FIELD_ASSOCIATION_CELLS",
> "vSCALARS");
> selectCells.SetInput(qualityMesh);
> selectCells.Update();
> vtkUnstructuredGrid ug = selectCells.GetOutput();
> mapper.SetInput(ug);
>
> also, when i execute the java code of the mipviewer (without threshold
> filter) i got the volume but whith an error :Extension GL_VERSION_1_2 could
> not be loaded so, i test the exixtance of the version1.2 like that:
>
> vtkOpenGLExtensionManager extensions = new
> vtkOpenGLExtensionManager();
> extensions.SetRenderWindow(renWin);
> int etat = extensions.ExtensionSupported("GL_VERSION_1_2");
> System.out.println("version=" + etat);
>
> i got 1 so the version 1.2 exist on my graphic card!!! any idea to solve
> that maily the quality of the display is not good
>
> thanks a lot AMAL.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130710/8e997c29/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 12
> Date: Wed, 10 Jul 2013 03:47:29 -0700 (PDT)
> From: sugavanesh chandrasekaran <sugavanesh.cs at gmail.com>
> Subject: [vtkusers] g
> To: vtkusers at vtk.org
> Message-ID: <1373453249366-5721864.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> hi
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/g-tp5721864.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 13
> Date: Wed, 10 Jul 2013 03:51:28 -0700 (PDT)
> From: sugavanesh chandrasekaran <sugavanesh.cs at gmail.com>
> Subject: [vtkusers] hi
> To: vtkusers at vtk.org
> Message-ID: <1373453488618-5721865.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> hi there,
>
> I have been doing vector plot using SetColorModeToColorByScale(); for
> showing vectors in equal length.
>
> But the problem is , at the boundary nodes, where the value is zero , it
> shows ( blue color ) all the vectors in same direction, ie., opposite to
> the
> actual right direction.
>
> This makes my vector plot to be entirely a wrong one.
>
> Can anyone give a solution to resolve this problem please.
>
> Thanks in advance..
>
> regards,
> sugavanesh
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/hi-tp5721865.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 14
> Date: Wed, 10 Jul 2013 05:07:35 -0700 (PDT)
> From: shinpei <noro_shinpei at web.de>
> Subject: Re: [vtkusers] PointInPolygon works strange
> To: vtkusers at vtk.org
> Message-ID: <1373458055144-5721866.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Could be, but it is not. When I check the point (1 0 0) the result is
> "true",
> so 'on-the-edge' is still inside.
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/PointInPolygon-works-strange-tp5721855p5721866.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 15
> Date: Wed, 10 Jul 2013 05:56:13 -0700 (PDT)
> From: Ruff <albin.nilsson at gmail.com>
> Subject: Re: [vtkusers] My point cloud data won't display in the
> renderer.
> To: vtkusers at vtk.org
> Message-ID: <1373460973731-5721868.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Thank you! Although Im still confused about where to add my scalar values,
> or
> if you mean that I should pass the glyphFilter into my unstructuredGrid
> somehow.
>
> The examples uses points->polydata->glyphfilter, so I write:
> /polydata = vtkPolyData()
> polydata.SetPoints( vtkPoints with [index,x,y,z] )
> glyphFilter = vtkVertexGlyphFilter()
> glyphFilter.AddInput(polydata)/
>
> But I still haven't added my scalars! None of the examples does anything
> but
> render the points, without any distinction to scalar values.
> I suppose I can't use UnstructuredGridVolumeRayCastMapper, so what should I
> do with the polyData, to what do I add my scalar values, and how do I map
> it?
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844p5721868.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 16
> Date: Wed, 10 Jul 2013 15:16:12 +0200
> From: rahul indoria <rahulindoria5 at gmail.com>
> Subject: [vtkusers] Need Help
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <
> CAGQ+16LMUsrGD0u_RqWv_2E4_B-a06woqfdquYixRAHSymUPtQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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
> >
>
> ------------------------------
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest, Vol 111, Issue 18
> *****************************************
>
--
*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/4b4b49ce/attachment.htm>
More information about the vtkusers
mailing list