<div dir="ltr">If i have a polydata, then how can i access a point data at particular location. or all the points data?<div><br></div><div>Looking forward your reply soon.</div><div><br></div><div style>rahul</div><div><br>
</div><div><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 11, 2013 at 1:00 PM, <span dir="ltr"><<a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send vtkusers mailing list submissions to<br>
<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of vtkusers digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Create "ovoid" with VTK (mar x)<br>
2. Zoom to Mouse in 3D (Alfredo Rodriguez)<br>
3. Re: vtkusers Digest, Vol 111, Issue 18 (Alex Malyushytskyy)<br>
4. (no subject) (<a href="mailto:uverworld_1016@yahoo.co.jp">uverworld_1016@yahoo.co.jp</a>)<br>
5. How to indicate pressure contour (<a href="mailto:uverworld_1016@yahoo.co.jp">uverworld_1016@yahoo.co.jp</a>)<br>
6. Re: My point cloud data won't display in the renderer. (Ruff)<br>
7. Re: Memory management : pointer on VTK object (Malsoaz James)<br>
8. My volume won't display in the renderer. (Ruff)<br>
9. Returning Type of any object (rahul indoria)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 10 Jul 2013 20:14:01 +0200<br>
From: mar x <<a href="mailto:myint101@gmail.com">myint101@gmail.com</a>><br>
Subject: Re: [vtkusers] Create "ovoid" with VTK<br>
To: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Message-ID:<br>
<CAHbewjeD=cog=<a href="mailto:G0Gbkt9Ga6KSa7FUtkAR-e5tBF1jK6CRO975A@mail.gmail.com">G0Gbkt9Ga6KSa7FUtkAR-e5tBF1jK6CRO975A@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Ok I solved the problem by clipping the half of a sphere with vtkPlane and<br>
the half of an ellipsoid. Thanks!<br>
<br>
<br>
2013/7/9 Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
<br>
> You could use<br>
> <a href="http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilterto" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilterto</a> create a union of a sphere and ellipsoid. This image might help:<br>
> <a href="http://commons.wikimedia.org/wiki/File:Ovoid_plot.gif" target="_blank">http://commons.wikimedia.org/wiki/File:Ovoid_plot.gif</a><br>
><br>
><br>
><br>
> On Tue, Jul 9, 2013 at 5:35 PM, mar x <<a href="mailto:myint101@gmail.com">myint101@gmail.com</a>> wrote:<br>
><br>
>> Thanks for the fast answers. I tried both but both gives just an<br>
>> ellipsoid and no ovoid. In other words I want to create a 3D object that is<br>
>> a composition of a half sphere and and half ellipsoid.<br>
>><br>
>> Best regards.<br>
>><br>
>><br>
>> 2013/7/9 Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>><br>
>>> Or try:<br>
>>> // .NAME vtkParametricEllipsoid - Generate an ellipsoid.<br>
>>> // .SECTION Description<br>
>>> // vtkParametricEllipsoid generates an ellipsoid.<br>
>>> // If all the radii are the same, we have a sphere.<br>
>>> // An oblate spheroid occurs if RadiusX = RadiusY > RadiusZ.<br>
>>> // Here the Z-axis forms the symmetry axis. To a first<br>
>>> // approximation, this is the shape of the earth.<br>
>>> // A prolate spheroid occurs if RadiusX = RadiusY < RadiusZ.<br>
>>><br>
>>><br>
>>><br>
>>> On Tue, Jul 9, 2013 at 5:11 PM, Shawn Waldon <<a href="mailto:swaldon@cs.unc.edu">swaldon@cs.unc.edu</a>> wrote:<br>
>>><br>
>>>> You probably want something more like:<br>
>>>><br>
>>>> vtkSphereSource *sSource= vtkSphereSource::New();<br>
>>>> sSource->SetThetaResolution( 12);<br>
>>>> sSource->SetPhiResolution ( 12);<br>
>>>> sSource->SetCenter( 0, 0, 0 );<br>
>>>> sSource->SetRadius( 10.0 );<br>
>>>><br>
>>>> vtkTransform* transform = vtkTransform::New();<br>
>>>> transform->Identity();<br>
>>>> transform->Scale(3,1,1);<br>
>>>> transform->Update();<br>
>>>> vtkTransformPolyDataFilter* tFilter = vtkTransformPolyDataFilter::New();<br>
>>>> tFilter->SetInputConnection(sSource.GetOutputPort());<br>
>>>> tFilter->SetTransform(transform);<br>
>>>> tFilter->Update()<br>
>>>><br>
>>>> vtkPolyDataMapper *map = vtkPolyDataMapper::New();<br>
>>>> map->SetInputConnection(tFilter->GetOutputPort());<br>
>>>><br>
>>>> .................<br>
>>>><br>
>>>> I didn't change your example much due to laziness and wanting to<br>
>>>> copy/paste, but you really should use vtkSmartPointers.<br>
>>>><br>
>>>><br>
>>>><br>
>>>> On Tue, Jul 9, 2013 at 5:06 PM, mar x <<a href="mailto:myint101@gmail.com">myint101@gmail.com</a>> wrote:<br>
>>>><br>
>>>>> Dear VTK list,<br>
>>>>><br>
>>>>> I want to create a 3D object that looks like an egg/ovoid. I tried to<br>
>>>>> to this with vtkSphere and by setting the vtkTransform->Scale to something<br>
>>>>> like 3,1,1 but it's not working. I would be very glad if you could help me<br>
>>>>> on this. Please find below the code and thank you for any help!<br>
>>>>><br>
>>>>><br>
>>>>> vtkSphereSource *sSource= vtkSphereSource::New();<br>
>>>>> sSource->SetThetaResolution( 12);<br>
>>>>> sSource->SetPhiResolution ( 12);<br>
>>>>> sSource->SetCenter( 0, 0, 0 );<br>
>>>>> sSource->SetRadius( 10.0 );<br>
>>>>><br>
>>>>> vtkTransform* transform = vtkTransform::New();<br>
>>>>> transform->Identity();<br>
>>>>> transform->Scale(3,1,1);<br>
>>>>> transform->Update();<br>
>>>>> vtkSphere* sphere = vtkSphere::New();<br>
>>>>> sphere->SetCenter(0,0,0);<br>
>>>>> sphere->SetTransform(transform);<br>
>>>>><br>
>>>>> vtkSmartPointer<vtkClipPolyData> clipper =<br>
>>>>> vtkSmartPointer<vtkClipPolyData>::New();<br>
>>>>> clipper->SetInputConnection(sSource->GetOutputPort());<br>
>>>>> clipper->SetClipFunction(sphere);<br>
>>>>> clipper->SetValue(0);<br>
>>>>> clipper->Update();<br>
>>>>><br>
>>>>> vtkPolyDataMapper *map = vtkPolyDataMapper::New();<br>
>>>>> map->SetInput(clipper->GetOutput());<br>
>>>>><br>
>>>>> vtkActor *aSphere = vtkActor::New();<br>
>>>>> aSphere->SetMapper(map);<br>
>>>>> aSphere->GetProperty()->SetColor(0,0,1);<br>
>>>>> ......<br>
>>>>> .....<br>
>>>>> .....<br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>>>><br>
>>>>> Visit other Kitware open-source projects at<br>
>>>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>>>><br>
>>>>> Please keep messages on-topic and check the VTK FAQ at:<br>
>>>>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>>>>><br>
>>>>> Follow this link to subscribe/unsubscribe:<br>
>>>>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>>>>><br>
>>>>><br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Shawn Waldon<br>
>>>> Graduate Student<br>
>>>> Department of Computer Science<br>
>>>> University of North Carolina at Chapel Hill<br>
>>>> <a href="mailto:swaldon@cs.unc.edu">swaldon@cs.unc.edu</a><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>>><br>
>>>> Visit other Kitware open-source projects at<br>
>>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>>><br>
>>>> Please keep messages on-topic and check the VTK FAQ at:<br>
>>>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>>>><br>
>>>> Follow this link to subscribe/unsubscribe:<br>
>>>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>>>><br>
>>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Unpaid intern in BillsBasement at noware dot com<br>
>>><br>
>><br>
>><br>
><br>
><br>
> --<br>
> Unpaid intern in BillsBasement at noware dot com<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130710/2b0ec623/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130710/2b0ec623/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 10 Jul 2013 20:48:29 +0000<br>
From: Alfredo Rodriguez <<a href="mailto:alfredo@mbfbioscience.com">alfredo@mbfbioscience.com</a>><br>
Subject: [vtkusers] Zoom to Mouse in 3D<br>
To: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Message-ID:<br>
<<a href="mailto:CAAE14C9A957DC4F8DE80150FFA07E9F03A97951@exchange3.microbrightfield.com">CAAE14C9A957DC4F8DE80150FFA07E9F03A97951@exchange3.microbrightfield.com</a>><br>
<br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi,<br>
<br>
I'm new to vtk and I need to modify existing vtk code to allow "zoom to mouse" in the 3D window using the mouse wheel. This is similar to zoom implemented in google maps but in 3D. From what I've read looks like I need to override the OnMouseWheelForward() and OnMouseWheelBackward() methods of my particular derivation of vtkInteractorStyle but I'm wondering if vtk already offers something to accomplish this type of zooming.<br>
<br>
Any information on this will be really helpful.<br>
<br>
Thanks,<br>
<br>
Alfredo<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130710/4e47ee1b/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130710/4e47ee1b/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 10 Jul 2013 17:38:14 -0700<br>
From: Alex Malyushytskyy <<a href="mailto:alexmalvtk@gmail.com">alexmalvtk@gmail.com</a>><br>
Subject: Re: [vtkusers] vtkusers Digest, Vol 111, Issue 18<br>
To: rahul indoria <<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>><br>
Cc: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Message-ID:<br>
<CAHR9pJ3G-_G_eeqJEMb6Cg5X=<a href="mailto:MQMUumquVwh1fn2z4YNdhyGFA@mail.gmail.com">MQMUumquVwh1fn2z4YNdhyGFA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Do not reply to existing topics, if it is not related to your message..<br>
You are not only send a lot of trash to people but screw up their mail<br>
system .<br>
Give your topic useful title.<br>
<br>
Follow your simple rules and somebody might read your question and even<br>
provide useful advice.<br>
<br>
This is my second reply, first one did not even come through because your<br>
message was so big.<br>
<br>
Alex<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130710/e115a48a/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130710/e115a48a/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 11 Jul 2013 14:06:12 +0900 (JST)<br>
From: <a href="mailto:uverworld_1016@yahoo.co.jp">uverworld_1016@yahoo.co.jp</a><br>
Subject: [vtkusers] (no subject)<br>
To: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Message-ID: <<a href="mailto:286432.11805.qm@web100912.mail.kks.yahoo.co.jp">286432.11805.qm@web100912.mail.kks.yahoo.co.jp</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi?<br>
I use LS-DYNA to analyze a shock wave.<br>
I want to obseved the behavior of the shock wave to use paraview.<br>
Now I am in trouble because pressure contour can be indicated in paraview.<br>
The acceleration and velocity which is generated by the shock wave can be indicated in paraview.<br>
In LS-Prepost, pressure contour can be observed.<br>
At <a href="http://paraview.org/Wiki/ParaView:FAQ" target="_blank">http://paraview.org/Wiki/ParaView:FAQ</a>, [ Paraview can load d3plot files.] is written below.<br>
What should I do to indicated pressure contour in paraview ??<br>
Please tell me.<br>
<br>
Thanks and regards.<br>
Yusuke<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130711/1772a40e/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130711/1772a40e/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 11 Jul 2013 14:13:05 +0900 (JST)<br>
From: <a href="mailto:uverworld_1016@yahoo.co.jp">uverworld_1016@yahoo.co.jp</a><br>
Subject: [vtkusers] How to indicate pressure contour<br>
To: Paraview?????? <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Message-ID: <<a href="mailto:262408.19783.qm@web100916.mail.kks.yahoo.co.jp">262408.19783.qm@web100916.mail.kks.yahoo.co.jp</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi?<br>
I use LS-DYNA to analyze a shock wave.<br>
I want to obseved the behavior of the shock wave to use paraview.<br>
Now I am in trouble because pressure contour can be indicated in paraview.<br>
The acceleration and velocity which is generated by the shock wave can be indicated in paraview.<br>
In LS-Prepost, pressure contour can be observed.<br>
At <a href="http://paraview.org/Wiki/ParaView:FAQ" target="_blank">http://paraview.org/Wiki/ParaView:FAQ</a>, [ Paraview can load d3plot files.] is written below.<br>
What should I do to indicated pressure contour in paraview ??<br>
Please tell me.<br>
<br>
Thanks and regards.<br>
Yusuke<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130711/8c7237d5/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130711/8c7237d5/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Wed, 10 Jul 2013 23:54:24 -0700 (PDT)<br>
From: Ruff <<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>><br>
Subject: Re: [vtkusers] My point cloud data won't display in the<br>
renderer.<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: <<a href="mailto:1373525664302-5721885.post@n5.nabble.com">1373525664302-5721885.post@n5.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Nvm, i got it to work. Thanks! Though i realize that I asked for a point<br>
cloud when it was a volume i was looking for all along. Looks kind of like<br>
what i was trying to achieve.<br>
<br>
Anyway, since it works, should someone (like me, totally unfamiliar with<br>
vtk) google this, here's what i did:<br>
<br>
verts = vtkPoints() #(Points with [index,x,y,z] )<br>
scalars = vtk.vtkDoubleArray() #(Array with [index, scalar])<br>
scalars.SetNumberOfComponents(1) #For that one scalar value<br>
<br>
# inserting stuff<br>
<br>
cloud = vtkPolyData<br>
cloud.SetPoints(verts)<br>
cloud.GetPointData().SetScalars(scalars)<br>
<br>
glyphFilter = vtkVertexGlyphFilter()<br>
glyphFilter.AddInput(cloud)<br>
<br>
cloudMapper = vtkPolyDataMapper()<br>
cloudMapper.SetInputConnection(glyphFilter.GetOutputPort())<br>
<br>
#These two seems to be set by default<br>
#cloudMapper.ScalarVisibilityOn()<br>
#cloudMapper.SetScalarModeToUsePointData()<br>
cloudMapper.SetScalarRange(0,255) # col.-range of my scalars<br>
<br>
cloudActor = vtkActor()<br>
cloudActor.SetMapper(cloudMapper)<br>
cloudActor.GetProperty().SetRepresentationToPoints()<br>
<br>
etc...<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844p5721885.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844p5721885.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Thu, 11 Jul 2013 08:04:37 +0100 (BST)<br>
From: Malsoaz James <<a href="mailto:jmalsoaz@yahoo.fr">jmalsoaz@yahoo.fr</a>><br>
Subject: Re: [vtkusers] Memory management : pointer on VTK object<br>
To: Alex Malyushytskyy <<a href="mailto:alexmalvtk@gmail.com">alexmalvtk@gmail.com</a>><br>
Cc: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Message-ID:<br>
<<a href="mailto:1373526277.83094.YahooMailNeo@web172904.mail.ir2.yahoo.com">1373526277.83094.YahooMailNeo@web172904.mail.ir2.yahoo.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Thank you.<br>
<br>
SetSource(NULL) solves the issue.<br>
<br>
Best.<br>
<br>
<br>
________________________________<br>
De?: Alex Malyushytskyy <<a href="mailto:alexmalvtk@gmail.com">alexmalvtk@gmail.com</a>><br>
??: Malsoaz James <<a href="mailto:jmalsoaz@yahoo.fr">jmalsoaz@yahoo.fr</a>><br>
Cc?: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Envoy? le : Samedi 6 juillet 2013 0h01<br>
Objet?: Re: [vtkusers] Memory management : pointer on VTK object<br>
<br>
<br>
<br>
Try to add<br>
SetSource(NULL);<br>
<br>
calls after you register polydata<br>
<br>
<br>
polydata->Register(NULL);<br>
polydata->SetSource(NULL);<br>
.....<br>
output->Register(NULL);<br>
output->SetSource(NULL);<br>
<br>
<br>
Another source of extra memory usage may be memory granularity,<br>
<br>
If you say that DeepCopy helps it means deleting/allocationg memory at the same and bugger chunks helps to avoid granularity.<br>
<br>
In this case nothing you can do.<br>
<br>
<br>
In any case I would suggest to get<br>
<br>
vtkTransformPolyDataFilter * trFilter = vtkTransformPolyDataFilter::New();<br>
<br>
<br>
and<br>
?? trFilter->Delete();<br>
out of loop.<br>
<br>
<br>
<br>
Regards,<br>
<br>
??? Alex<br>
<br>
<br>
<br>
<br>
<br>
On Thu, Jul 4, 2013 at 12:33 AM, Malsoaz James <<a href="mailto:jmalsoaz@yahoo.fr">jmalsoaz@yahoo.fr</a>> wrote:<br>
<br>
Hi,<br>
><br>
><br>
>I'm experiencing troubles when copying pointers of VTK object.<br>
><br>
><br>
>Let's say I want to apply transformation to a polydata recursively like this:<br>
><br>
><br>
>? ? //Read STL<br>
>? ? vtkSTLReader * reader = vtkSTLReader::New();<br>
>? ? reader->SetFileName("1.stl");<br>
>? ? reader->Update();<br>
><br>
><br>
>? ? vtkPolyData * polydata = reader->GetOutput();<br>
>? ? polydata->Register(NULL);<br>
>? ? reader->Delete();<br>
><br>
><br>
>? ? vtkTransform * tr = vtkTransform::New();<br>
>? ? tr->Translate(5, 10, 1);<br>
>? ? tr->Update();<br>
><br>
><br>
>? ? for(int i = 0 ; i < 1000 ; ++i)<br>
>? ? {<br>
>? ? std::cout << i << std::endl;<br>
>? ? vtkTransformPolyDataFilter * trFilter = vtkTransformPolyDataFilter::New();<br>
>trFilter->SetInput(polydata);<br>
>trFilter->SetTransform(tr);<br>
>trFilter->Update();<br>
><br>
><br>
>vtkPolyData * output = trFilter->GetOutput();<br>
>output->Register(NULL);<br>
>trFilter->Delete();<br>
><br>
><br>
>polydata->Delete();<br>
>polydata = output;<br>
>? ? }<br>
>? ? tr->Delete();<br>
><br>
>? ? polydata->Delete();<br>
><br>
><br>
>This is working fine and I have no VTK leaks. Unfortunately, I'm noticing that memory for my program increases instead of remaining constant.<br>
>What's wrong with theses few lines?<br>
><br>
><br>
>By the way, using DeepCopy to save output data is working:<br>
>polydata = vtkPolyData::New();<br>
>polydata->DeepCopy(output);<br>
>output->Delete();<br>
>But I would like to avoid to deep copy data when I only need to add a reference to the pointer. I also would like to avoid the use of vtkSmartPointer.<br>
><br>
><br>
>Thank you for your help<br>
>Best.<br>
><br>
><br>
>_______________________________________________<br>
>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
>Follow this link to subscribe/unsubscribe:<br>
><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130711/0d888bab/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130711/0d888bab/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Thu, 11 Jul 2013 01:53:48 -0700 (PDT)<br>
From: Ruff <<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>><br>
Subject: [vtkusers] My volume won't display in the renderer.<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: <<a href="mailto:1373532828028-5721892.post@n5.nabble.com">1373532828028-5721892.post@n5.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Now I can render it as point clouds, but not as a volume. All I get is an<br>
empty renderWindow. I get no errors, but no data is rendered either. What am<br>
I doing wrong?<br>
<br>
ScalarGrid = vtk.vtkUnstructuredGrid()<br>
ScalarGrid.SetPoints( vtkPoints with [index,x,y,z] )<br>
ScalarGrid.GetPointData().SetScalars( vtkFloatArray with [index, scalar]<br>
)<br>
<br>
volumeMapper = vtkUnstructuredGridVolumeRayCastMapper()<br>
volumeMapper.SetInputConnection(ScalarGrid)<br>
volumeMapper.SetScalarModeToUsePointData()<br>
<br>
...etc<br>
<br>
I tried using DataSetTriangleFilter (found in some example) but then the<br>
program claims that Im using the "ray cast mapper without scalars!"<br>
I rendered it as a point cloud before, with the vtkVertexGlyphFilter, but<br>
that doesn't seem to be applicable here, though I suppose the solution has<br>
something to do with cells here as well...<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/My-volume-won-t-display-in-the-renderer-tp5721892.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-volume-won-t-display-in-the-renderer-tp5721892.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Thu, 11 Jul 2013 13:00:10 +0200<br>
From: rahul indoria <<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>><br>
Subject: [vtkusers] Returning Type of any object<br>
To: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Message-ID:<br>
<<a href="mailto:CAGQ%2B16Ldk0Dj0HrRENZjQsZDcMPYGfdDiQEm2XXM8E_AfA-Q3Q@mail.gmail.com">CAGQ+16Ldk0Dj0HrRENZjQsZDcMPYGfdDiQEm2XXM8E_AfA-Q3Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi,<br>
I just want to ask, if i have any vtk class then how would i know the<br>
return type this class object.<br>
<br>
<br>
Looking forward your reply soon.<br>
<br>
<br>
<br>
<br>
On Wed, Jul 10, 2013 at 3:16 PM, rahul indoria <<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>>wrote:<br>
<br>
> Hi All,<br>
> I am just modifying this example (<br>
> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation</a><br>
> ).<br>
><br>
> At this portion of this example,<br>
><br>
><br>
> // Create a mapper and actor.<br>
> vtkSmartPointer<vtkDataSetMapper> mapper =<br>
> vtkSmartPointer<vtkDataSetMapper>::New();<br>
> mapper->SetInputConnection(sampleVolume->GetOutputPort());<br>
><br>
><br>
> and this statement in function SetInputConnection: *sampleVolume->GetOutputPort()*, is giving me values on the surface.<br>
><br>
><br>
> My Query:<br>
><br>
> I have to use these values and using this values i have to generate a 2D image.<br>
><br>
> could you please suggest me some class or the way(method), by which i can achieve this task. it`s really very urgent for me, please help.<br>
><br>
><br>
><br>
> Looking forward your reply.<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> On Tue, Jul 9, 2013 at 9:00 PM, <<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a>> wrote:<br>
><br>
>> Send vtkusers mailing list submissions to<br>
>> <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>><br>
>> To subscribe or unsubscribe via the World Wide Web, visit<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> or, via email, send a message with subject or body 'help' to<br>
>> <a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br>
>><br>
>> You can reach the person managing the list at<br>
>> <a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br>
>><br>
>> When replying, please edit your Subject line so it is more specific<br>
>> than "Re: Contents of vtkusers digest..."<br>
>><br>
>><br>
>> Today's Topics:<br>
>><br>
>> 1. Re: My point cloud data won't display in the renderer.<br>
>> (Bill Lorensen)<br>
>> 2. Re: vtkusers Digest, Vol 111, Issue 16 (rahul indoria)<br>
>> 3. Re: vtkusers Digest, Vol 111, Issue 16 (Bill Lorensen)<br>
>><br>
>><br>
>> ----------------------------------------------------------------------<br>
>><br>
>> Message: 1<br>
>> Date: Tue, 9 Jul 2013 12:10:24 -0400<br>
>> From: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> Subject: Re: [vtkusers] My point cloud data won't display in the<br>
>> renderer.<br>
>> To: Ruff <<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>><br>
>> Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> Message-ID:<br>
>> <CADZJ4hOT2J5Pg9C=<br>
>> <a href="mailto:SxkQ%2BWOisqxcqefh6r5GQhLAc%2B_2cCTMiA@mail.gmail.com">SxkQ+WOisqxcqefh6r5GQhLAc+_2cCTMiA@mail.gmail.com</a>><br>
>> Content-Type: text/plain; charset="iso-8859-1"<br>
>><br>
>> A vtkPoint is a geometric location. You need cells to visualize your data.<br>
>> in your case, you need Vert's, one for each Point. An easy way to create<br>
>> the verts is to use vtkVertexGlyphFilter.<br>
>><br>
>> See for example:<br>
>> <a href="http://vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadTextFile" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadTextFile</a><br>
>> <a href="http://vtk.org/Wiki/VTK/Examples/Cxx/Filtering/VertexGlyphFilter" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/Filtering/VertexGlyphFilter</a><br>
>><br>
>><br>
>><br>
>> On Tue, Jul 9, 2013 at 11:46 AM, Ruff <<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>> wrote:<br>
>><br>
>> > All i get is an empty renderWindow. I get no errors, but no data is<br>
>> > rendered<br>
>> > either. What am I doing wrong?<br>
>> ><br>
>> > What I do is pretty much this:<br>
>> ><br>
>> > AtomGrid=vtk.vtkUnstructuredGrid()<br>
>> > AtomGrid.SetPoints( vtkPoints with [index,x,y,z] )<br>
>> > AtomGrid.GetPointData().SetScalars( vtkFloatArray with [index,<br>
>> scalar]<br>
>> > )<br>
>> ><br>
>> > volMapper = vtk.vtkUnstructuredGridVolumeRayCastMapper()<br>
>> > volMapper.SetBlendModeToComposite()<br>
>> > volMapper.SetInput(AtomGrid)<br>
>> ><br>
>> ><br>
>> > I tried volMapper.SetScalarModeToUsePointFieldData(), but then it claims<br>
>> > that I have no scalar values to use(!!)<br>
>> ><br>
>> > (I cheated before, and was satisfied using ImageData for this, but now I<br>
>> > really need to get this to work with UnstructuredGrid)<br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > View this message in context:<br>
>> ><br>
>> <a href="http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html</a><br>
>> > Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Please keep messages on-topic and check the VTK FAQ at:<br>
>> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Unpaid intern in BillsBasement at noware dot com<br>
>> -------------- next part --------------<br>
>> An HTML attachment was scrubbed...<br>
>> URL: <<br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/0b18f194/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/0b18f194/attachment-0001.htm</a><br>
>> ><br>
>><br>
>> ------------------------------<br>
>><br>
>> Message: 2<br>
>> Date: Tue, 9 Jul 2013 20:43:19 +0200<br>
>> From: rahul indoria <<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>><br>
>> Subject: Re: [vtkusers] vtkusers Digest, Vol 111, Issue 16<br>
>> To: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> Message-ID:<br>
>> <CAGQ+16JOmQ6-kXGLVqk=p5PUo9eY-scAhxsxfZ1vnanY4bY=<br>
>> <a href="mailto:YQ@mail.gmail.com">YQ@mail.gmail.com</a>><br>
>> Content-Type: text/plain; charset="iso-8859-1"<br>
>><br>
>> Hi,<br>
>> Can you explain me some portion of the code of this example (<br>
>> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation</a><br>
>> )?<br>
>><br>
>> i need to ask the line by line documentation of this function, how these<br>
>> points and surface is formed?<br>
>><br>
>><br>
>> vtkSmartPointer<vtkPolyData> SweepLine (vtkPolyData *line,<br>
>> double direction[3],<br>
>> double distance,<br>
>> unsigned int cols)<br>
>><br>
>> {<br>
>><br>
>> unsigned int rows = line->GetNumberOfPoints();<br>
>><br>
>> double spacing = distance / cols;<br>
>> vtkSmartPointer<vtkPolyData> surface =<br>
>> vtkSmartPointer<vtkPolyData>::New();<br>
>><br>
>> // Generate the points<br>
>> cols++; // why this statement ?<br>
>> unsigned int numberOfPoints = rows * cols; // how these number<br>
>> points are generated<br>
>> unsigned int numberOfPolys = (rows - 1) * (cols - 1); // what is this???<br>
>><br>
>><br>
>> vtkSmartPointer<vtkPoints> points =<br>
>> vtkSmartPointer<vtkPoints>::New();<br>
>> points->Allocate(numberOfPoints);<br>
>> vtkSmartPointer<vtkCellArray> polys =<br>
>> vtkSmartPointer<vtkCellArray>::New();<br>
>> polys->Allocate(numberOfPolys*4);<br>
>><br>
>> double x[3];<br>
>> unsigned int cnt = 0;<br>
>> for (unsigned int row = 0; row < rows; row++)<br>
>> {<br>
>> for (unsigned int col = 0; col < cols; col++)<br>
>> {<br>
>> double p[3];<br>
>> line->GetPoint(row, p);<br>
>> x[0] = p[0] + direction[0] * col * spacing;<br>
>> x[1] = p[1] + direction[1] * col * spacing;<br>
>> x[2] = p[2] + direction[2] * col * spacing;<br>
>> points->InsertPoint(cnt++, x);<br>
>> }<br>
>> }<br>
>> // Generate the quads<br>
>> vtkIdType pts[4];<br>
>> for (unsigned int row = 0; row < rows - 1; row++)<br>
>> {<br>
>> for (unsigned int col = 0; col < cols - 1; col++)<br>
>> {<br>
>> pts[0] = col + row * (cols);<br>
>> pts[1] = pts[0] + 1;<br>
>> pts[2] = pts[0] + cols + 1;<br>
>> pts[3] = pts[0] + cols;<br>
>> polys->InsertNextCell(4,pts);<br>
>> }<br>
>> }<br>
>> surface->SetPoints(points);<br>
>> surface->SetPolys(polys);<br>
>><br>
>> return surface;}<br>
>><br>
>><br>
>><br>
>><br>
>> please reply as soon as possible<br>
>><br>
>><br>
>><br>
>> On Tue, Jul 9, 2013 at 6:00 PM, <<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a>> wrote:<br>
>><br>
>> > Send vtkusers mailing list submissions to<br>
>> > <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> ><br>
>> > To subscribe or unsubscribe via the World Wide Web, visit<br>
>> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> > or, via email, send a message with subject or body 'help' to<br>
>> > <a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br>
>> ><br>
>> > You can reach the person managing the list at<br>
>> > <a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br>
>> ><br>
>> > When replying, please edit your Subject line so it is more specific<br>
>> > than "Re: Contents of vtkusers digest..."<br>
>> ><br>
>> ><br>
>> > Today's Topics:<br>
>> ><br>
>> > 1. Re: Vtk 6.0 dotnet (David Cole)<br>
>> > 2. Re: Regarding example VTKimagereslicemapper (rahul indoria)<br>
>> > 3. FindCell method of vtkCellLocator (shinpei)<br>
>> > 4. Re: FindCell method of vtkCellLocator (Alex Malyushytskyy)<br>
>> > 5. VTK Stereo Rendering (mailagentrus)<br>
>> > 6. [vtkUsers] About Different RenderWindowInteractor (hongsongyang)<br>
>> > 7. using vtkGL2PSExporter in python [ under pythonXY() ]<br>
>> > (Gideon Valch)<br>
>> > 8. Re: Help with image planes example (Ruff)<br>
>> > 9. adding texture to a wavefront .obj file in vtk (Umer Rafi)<br>
>> > 10. Unexpected actor orientation results (divya)<br>
>> > 11. Re: FindCell method of vtkCellLocator (shinpei)<br>
>> > 12. VTK application running on Linux loads VNC server (Haroon Showgan)<br>
>> > 13. .RAW file (Massinissa Bandou)<br>
>> > 14. Re: .RAW file (Bill Lorensen)<br>
>> > 15. My point cloud data won't display in the renderer. (Ruff)<br>
>> ><br>
>> ><br>
>> > ----------------------------------------------------------------------<br>
>> ><br>
>> > Message: 1<br>
>> > Date: Mon, 8 Jul 2013 16:21:52 +0000<br>
>> > From: David Cole <<a href="mailto:dlrdave@aol.com">dlrdave@aol.com</a>><br>
>> > Subject: Re: [vtkusers] Vtk 6.0 dotnet<br>
>> > To: " <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a> " <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>>, Serge Lalonde<br>
>> > <<a href="mailto:serge@infolytica.com">serge@infolytica.com</a>><br>
>> > Message-ID: <<a href="mailto:20130708165306.6B0E66504F@public.kitware.com">20130708165306.6B0E66504F@public.kitware.com</a>><br>
>> > Content-Type: text/plain; charset="utf-8"<br>
>> ><br>
>> > Thanks, Serge. It *is* too bad that the kickstarter approach did not<br>
>> yield<br>
>> > a funded project this time around. Perhaps later, another one will be<br>
>> > successful.<br>
>> ><br>
>> ><br>
>> ><br>
>> > Alex, you wrote ?as for me I would trust more in the results of free<br>
>> > development than in results of the projects developed using such<br>
>> financing.?<br>
>> ><br>
>> ><br>
>> ><br>
>> > In response, I would simply point out the results of free development<br>
>> are<br>
>> > that ActiViz is presently ?stuck? on the VTK 5.8 version. And it was<br>
>> only<br>
>> > ?free as in beer? to those of you who didn?t pay for it.<br>
>> ><br>
>> ><br>
>> ><br>
>> > It?s also too bad that nobody else has stepped up and said, ?hey, how<br>
>> can<br>
>> > I contribute and help to make this happen?? (Aside from the 20<br>
>> kickstarter<br>
>> > project backers [1] -- thanks again, guys...)<br>
>> ><br>
>> ><br>
>> ><br>
>> > For those willing to contribute effort and manpower to the problem,<br>
>> rather<br>
>> > than money, go for it. VTK and ActiViz are both open source, and may be<br>
>> > built and extended by any interested party. I recently abandoned the<br>
>> topic<br>
>> > integrating the two [2] due to lack of activity. Anybody who wants to,<br>
>> > please feel free to resurrect it, rebase it on current ?master?, and try<br>
>> > again. Alternatively, you could simply extend the ActiViz git repo with<br>
>> > commits to make it build against an external VTK 5.10 or 6.0 [3].<br>
>> ><br>
>> ><br>
>> > While I am capable and mildly interested in furthering ActiViz .NET, I<br>
>> > prefer to spend much of my free time on non-computer related activities<br>
>> > these days. I get quite enough compute time just doing my job. But money<br>
>> > actually does motivate me... and I would be willing to do the work if<br>
>> paid<br>
>> > for it. So, that, plus gauging actual interest level, were my primary<br>
>> > motivations for seeking funding via kickstarter.<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > Cheers,<br>
>> ><br>
>> > David Cole<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > [1]<br>
>> ><br>
>> <a href="http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510/backers" target="_blank">http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510/backers</a><br>
>> ><br>
>> > [2] <a href="http://review.source.kitware.com/#/t/1615/" target="_blank">http://review.source.kitware.com/#/t/1615/</a><br>
>> ><br>
>> > [3] <a href="http://public.kitware.com/gitweb?p=activizdotnet.git" target="_blank">http://public.kitware.com/gitweb?p=activizdotnet.git</a><br>
>> ><br>
>> ><br>
>> ><br>
>> > P.S. ---<br>
>> ><br>
>> ><br>
>> > I would also like to point out that nowadays, you can simply build a<br>
>> > managed-C++ project with VS 2012, and ?just link for free? to the native<br>
>> > VTK C++ libraries. That doesn?t help folks using other .NET languages,<br>
>> but<br>
>> > it is a nice feature of the modern C++ compiler from MS that you can<br>
>> link<br>
>> > in both managed and un-managed code together. If you are starting a new<br>
>> > Windows Forms application, consider using managed C++ as your language.<br>
>> > -------------- next part --------------<br>
>> > An HTML attachment was scrubbed...<br>
>> > URL: <<br>
>> ><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/0cc105c5/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/0cc105c5/attachment-0001.htm</a><br>
>> > ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 2<br>
>> > Date: Mon, 8 Jul 2013 20:12:06 +0200<br>
>> > From: rahul indoria <<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>><br>
>> > Subject: Re: [vtkusers] Regarding example VTKimagereslicemapper<br>
>> > To: David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>>, "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>"<br>
>> > <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> > Message-ID:<br>
>> > <CAGQ+16KkyGkkjmWQ86Xh5=<br>
>> > <a href="mailto:VfUnbABFEquKOdKEDKfm9_F1eyaA@mail.gmail.com">VfUnbABFEquKOdKEDKfm9_F1eyaA@mail.gmail.com</a>><br>
>> > Content-Type: text/plain; charset="iso-8859-1"<br>
>> ><br>
>> > Hi,<br>
>> > Could you please tell me, what are port index in VTK functions?<br>
>> ><br>
>> ><br>
>> > On Mon, Jul 8, 2013 at 5:51 PM, David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>><br>
>> wrote:<br>
>> ><br>
>> > > In the future, please keep the conversation on the mailing list so<br>
>> that<br>
>> > > everyone can participate/benefit from the discussion.<br>
>> > ><br>
>> > > I believe what you're seeing is a contrast adjustment mechanism<br>
>> (called<br>
>> > > "window level events" -<br>
>> > ><br>
>> ><br>
>> <a href="http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details</a><br>
>> > > ).<br>
>> > ><br>
>> > ><br>
>> > > David<br>
>> > ><br>
>> > ><br>
>> > > On Mon, Jul 8, 2013 at 11:48 AM, rahul indoria <<br>
>> <a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a><br>
>> > >wrote:<br>
>> > ><br>
>> > >> Hi David,<br>
>> > >> I have one more question regarding this example, in<br>
>> the<br>
>> > >> output of this example(<br>
>> > >> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a>),<br>
>> why<br>
>> > >> we are getting different colors of the image, when i am<br>
>> left-clicking on<br>
>> > >> the image and moving mouse up and down?<br>
>> > >><br>
>> > >> Looking forward your reply soon.<br>
>> > >><br>
>> > >><br>
>> > >> rahul indoria<br>
>> > >><br>
>> > >><br>
>> > >> On Mon, Jul 8, 2013 at 3:22 PM, David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>><br>
>> > wrote:<br>
>> > >><br>
>> > >>> On Mon, Jul 8, 2013 at 9:05 AM, rahul indoria <<br>
>> <a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a><br>
>> > >wrote:<br>
>> > >>><br>
>> > >>>> Hi,<br>
>> > >>>> I was modifying this example:<br>
>> > >>>> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a><br>
>> > >>>> in this example, i am deleting the object vtkImageSlice, and when<br>
>> i<br>
>> > am<br>
>> > >>>> putting the object "imageSliceMapper" i getting an error?<br>
>> > >>>><br>
>> > >>>> As vtkimageslice class used to represent an image in a 3D scene, i<br>
>> > >>>> don`t want to display this in 3D scene, just want to display on the<br>
>> > screen<br>
>> > >>>> that`s why i am deleting this class, so why i am getting this<br>
>> error?<br>
>> > >>>><br>
>> > >>>> I modified this code like this :<br>
>> > >>>><br>
>> > >>><br>
>> > >>> What do you want to do if not display the image? The problem is that<br>
>> > you<br>
>> > >>> can't call AddViewProp on a mapper - it has to be a vtkProp subclass<br>
>> > >>> (like the vtkImageSlice was). In the future, please include the<br>
>> exact<br>
>> > >>> error that you are getting.<br>
>> > >>><br>
>> > >>> David<br>
>> > >>><br>
>> > >><br>
>> > >><br>
>> > >><br>
>> > >> --<br>
>> > >> *Best Regards<br>
>> > >> Rahul Indoria<br>
>> > >> Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212">+49-157-35652212</a>*<br>
>> > >><br>
>> > ><br>
>> > ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > *Best Regards<br>
>> > Rahul Indoria<br>
>> > Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212">+49-157-35652212</a>*<br>
>> > -------------- next part --------------<br>
>> > An HTML attachment was scrubbed...<br>
>> > URL: <<br>
>> ><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/8de03097/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/8de03097/attachment-0001.htm</a><br>
>> > ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 3<br>
>> > Date: Mon, 8 Jul 2013 15:44:56 -0700 (PDT)<br>
>> > From: shinpei <<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>><br>
>> > Subject: [vtkusers] FindCell method of vtkCellLocator<br>
>> > To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> > Message-ID: <<a href="mailto:1373323496433-5721831.post@n5.nabble.com">1373323496433-5721831.post@n5.nabble.com</a>><br>
>> > Content-Type: text/plain; charset=us-ascii<br>
>> ><br>
>> > Hi,<br>
>> ><br>
>> > I have two triangle cells in my vtkCellLocator and I create a little bb<br>
>> > around a point of one triangle (see picture). Now I use FindCell(bb,<br>
>> > idList)<br>
>> > and I should get one id, but I get two. Is this a bug, or must I change<br>
>> > something?<br>
>> ><br>
>> > <<a href="http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png</a>><br>
>> > - two trinagles (red)<br>
>> > - bb (blue)<br>
>> ><br>
>> > My code:<br>
>> ><br>
>> > for (vtkIdType ptId = 0; ptId < geometry->GetNumberOfPoints();<br>
>> ++ptId)<br>
>> > {<br>
>> > bounds[0] = trianglePoint[0] - 0.01;<br>
>> > bounds[1] = trianglePoint[0] + 0.01;<br>
>> > bounds[2] = trianglePoint[1] - 0.01;<br>
>> > bounds[3] = trianglePoint[1] + 0.01;<br>
>> > bounds[4] = trianglePoint[2] - 0.01;<br>
>> > bounds[5] = trianglePoint[2] + 0.01;<br>
>> ><br>
>> > cellLocator->FindCellsWithinBounds(bounds, foundCells);<br>
>> ><br>
>> > int size = foundCells->GetNumberOfIds(); // is always two<br>
>> > }<br>
>> ><br>
>> ><br>
>> > Thx<br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > View this message in context:<br>
>> ><br>
>> <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html</a><br>
>> > Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 4<br>
>> > Date: Mon, 8 Jul 2013 19:00:25 -0700<br>
>> > From: Alex Malyushytskyy <<a href="mailto:alexmalvtk@gmail.com">alexmalvtk@gmail.com</a>><br>
>> > Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
>> > To: shinpei <<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>><br>
>> > Cc: VTK <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> > Message-ID:<br>
>> > <<br>
>> > <a href="mailto:CAHR9pJ0m4dYdghFRjZ5Y6YffT23dv3Q%2BScsu4JEK8yMLQZ7rbg@mail.gmail.com">CAHR9pJ0m4dYdghFRjZ5Y6YffT23dv3Q+Scsu4JEK8yMLQZ7rbg@mail.gmail.com</a>><br>
>> > Content-Type: text/plain; charset="iso-8859-1"<br>
>> ><br>
>> > It is not clear that attached picture corresponds to your claims.<br>
>> > There is no visible relation between trianglePoint and<br>
>> > geometry->GetNumberOfPoints().<br>
>> > Also for (vtkIdType ptId = 0; ptId < geometry->GetNumberOfPoints();<br>
>> > ++ptId)<br>
>> > loop does not make any sense cause nothing changes in the loop.<br>
>> ><br>
>> > So I guess your trianglePoint is not what you think it is.<br>
>> > For example if this point is shared by 2 triangles you will have the<br>
>> same<br>
>> > effect.<br>
>> > Another possible problem might be absolute value 0.1 used.<br>
>> > For example your triangle may have size smaller than it, which will be a<br>
>> > source of such effect too.<br>
>> ><br>
>> > Your example is not complete , you could create much better example<br>
>> > initializing all available variables so the behavior can be reproduced.<br>
>> ><br>
>> > Alex<br>
>> ><br>
>> ><br>
>> ><br>
>> > On Mon, Jul 8, 2013 at 3:44 PM, shinpei <<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>> wrote:<br>
>> ><br>
>> > > Hi,<br>
>> > ><br>
>> > > I have two triangle cells in my vtkCellLocator and I create a little<br>
>> bb<br>
>> > > around a point of one triangle (see picture). Now I use FindCell(bb,<br>
>> > > idList)<br>
>> > > and I should get one id, but I get two. Is this a bug, or must I<br>
>> change<br>
>> > > something?<br>
>> > ><br>
>> > > <<a href="http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png</a>><br>
>> > > - two trinagles (red)<br>
>> > > - bb (blue)<br>
>> > ><br>
>> > > My code:<br>
>> > ><br>
>> > > for (vtkIdType ptId = 0; ptId < geometry->GetNumberOfPoints();<br>
>> > ++ptId)<br>
>> > > {<br>
>> > > bounds[0] = trianglePoint[0] - 0.01;<br>
>> > > bounds[1] = trianglePoint[0] + 0.01;<br>
>> > > bounds[2] = trianglePoint[1] - 0.01;<br>
>> > > bounds[3] = trianglePoint[1] + 0.01;<br>
>> > > bounds[4] = trianglePoint[2] - 0.01;<br>
>> > > bounds[5] = trianglePoint[2] + 0.01;<br>
>> > ><br>
>> > > cellLocator->FindCellsWithinBounds(bounds, foundCells);<br>
>> > ><br>
>> > > int size = foundCells->GetNumberOfIds(); // is always two<br>
>> > > }<br>
>> > ><br>
>> > ><br>
>> > > Thx<br>
>> > ><br>
>> > ><br>
>> > ><br>
>> > > --<br>
>> > > View this message in context:<br>
>> > ><br>
>> ><br>
>> <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html</a><br>
>> > > Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> > > _______________________________________________<br>
>> > > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> > ><br>
>> > > Visit other Kitware open-source projects at<br>
>> > > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> > ><br>
>> > > Please keep messages on-topic and check the VTK FAQ at:<br>
>> > > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> > ><br>
>> > > Follow this link to subscribe/unsubscribe:<br>
>> > > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> > ><br>
>> > -------------- next part --------------<br>
>> > An HTML attachment was scrubbed...<br>
>> > URL: <<br>
>> ><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/533f4d72/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/533f4d72/attachment-0001.htm</a><br>
>> > ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 5<br>
>> > Date: Mon, 8 Jul 2013 22:09:00 -0700 (PDT)<br>
>> > From: mailagentrus <<a href="mailto:mailagentrus@mail.ru">mailagentrus@mail.ru</a>><br>
>> > Subject: [vtkusers] VTK Stereo Rendering<br>
>> > To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> > Message-ID: <<a href="mailto:1373346540408-5721833.post@n5.nabble.com">1373346540408-5721833.post@n5.nabble.com</a>><br>
>> > Content-Type: text/plain; charset=us-ascii<br>
>> ><br>
>> > Hi! I want to add a stereo mode to my program. Program wil be show<br>
>> pairs of<br>
>> > images image in stereo mode (with Nvidia 3d vision). I set up NVidia<br>
>> Qudro<br>
>> > 410 and saw stereo mode with Polydata object with using Paraview.<br>
>> > But, when I try to make own program i see inly the firs pair images in<br>
>> > stereo mode, after that image in right eye does not update... Updates<br>
>> inly<br>
>> > the left eye image.<br>
>> > Help me, please!<br>
>> ><br>
>> > Code:<br>
>> ><br>
>> > #include <vtkPolyDataReader.h><br>
>> > #include <vtkSmartPointer.h><br>
>> > #include <vtkDataSetMapper.h><br>
>> > #include <vtkActor.h><br>
>> > #include <vtkRenderWindow.h><br>
>> > #include <vtkRenderer.h><br>
>> > #include <vtkRenderWindowInteractor.h><br>
>> > #include <vtkCamera.h><br>
>> > #include "vtkCommand.h"<br>
>> > #include "vtkImageData.h"<br>
>> > #include <vtkBMPReader.h><br>
>> > #include <vtkImageViewer2.h><br>
>> > #include <vtkImageActor.h><br>
>> ><br>
>> > vtkSmartPointer<vtkBMPReader> readerR;<br>
>> > vtkSmartPointer<vtkBMPReader> readerL;<br>
>> > vtkSmartPointer<vtkImageViewer2> imageViewer;<br>
>> ><br>
>> > class vtkTimerCallback : public vtkCommand<br>
>> > {<br>
>> > public:<br>
>> > static vtkTimerCallback *New()<br>
>> > {<br>
>> > vtkTimerCallback *cb = new vtkTimerCallback;<br>
>> > cb->TimerCount = 0;<br>
>> > return cb;<br>
>> > }<br>
>> ><br>
>> > virtual void Execute(vtkObject *vtkNotUsed(caller), unsigned long<br>
>> > eventId,<br>
>> > void *vtkNotUsed(callData))<br>
>> > {<br>
>> > if (vtkCommand::TimerEvent == eventId)<br>
>> > {<br>
>> ><br>
>> > // for example name for left eye image is<br>
>> > readerL->SetFileName ( "D:/1234/-40.bmp");<br>
>> > readerL->Update();<br>
>> ><br>
>> > // for example name for right eye image is<br>
>> > readerR->SetFileName ( "D:/1234/40.bmp");<br>
>> > readerR->Update();<br>
>> ><br>
>> > imageViewer->SetInput(readerL->GetOutput());<br>
>> > imageViewer->GetRenderWindow()->SetStereoTypeToLeft();<br>
>> > imageViewer->GetRenderWindow()->Render();<br>
>> > imageViewer->GetRenderer()->ResetCamera();<br>
>> > imageViewer->GetRenderWindow()->Render();<br>
>> ><br>
>> > imageViewer->GetRenderWindow()->StereoUpdate();<br>
>> ><br>
>> > imageViewer->SetInput(readerL->GetOutput());<br>
>> > imageViewer->GetRenderWindow()->SetStereoTypeToRight();<br>
>> > imageViewer->GetRenderWindow()->Render();<br>
>> > imageViewer->GetRenderer()->ResetCamera();<br>
>> > imageViewer->GetRenderWindow()->Render();<br>
>> ><br>
>> > imageViewer->GetRenderWindow()->StereoUpdate();<br>
>> ><br>
>> > ++this->TimerCount;<br>
>> > }<br>
>> > cout << this->TimerCount << endl;<br>
>> > }<br>
>> ><br>
>> > private:<br>
>> > int TimerCount;<br>
>> ><br>
>> > };<br>
>> ><br>
>> ><br>
>> > int main ( int argc, char *argv[] )<br>
>> > {<br>
>> > //Read the image<br>
>> > readerL =<br>
>> > vtkSmartPointer<vtkBMPReader>::New();<br>
>> > readerL->SetFileName ( "D:/1234/-5.bmp");<br>
>> > readerL->Update();<br>
>> ><br>
>> > readerR =<br>
>> > vtkSmartPointer<vtkBMPReader>::New();<br>
>> > readerR->SetFileName ( "D:/1234/5.bmp");<br>
>> > readerR->Update();<br>
>> ><br>
>> > // Visualize<br>
>> > imageViewer =<br>
>> > vtkSmartPointer<vtkImageViewer2>::New();<br>
>> ><br>
>> > vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor =<br>
>> > vtkSmartPointer<vtkRenderWindowInteractor>::New();<br>
>> > imageViewer->SetupInteractor(renderWindowInteractor);<br>
>> ><br>
>> > imageViewer->GetRenderWindow()->SetSize( 800, 600 );<br>
>> ><br>
>> > imageViewer->GetRenderWindow()->StereoCapableWindowOn();<br>
>> > imageViewer->GetRenderWindow()->SetStereoTypeToCrystalEyes();<br>
>> > imageViewer->GetRenderWindow()->SetStereoRender(1);<br>
>> > imageViewer->GetRenderWindow()->StereoUpdate();<br>
>> ><br>
>> > renderWindowInteractor->Initialize();<br>
>> ><br>
>> > imageViewer->SetInput(readerBase->GetOutput());<br>
>> > imageViewer->GetRenderWindow()->Render();<br>
>> > imageViewer->GetRenderer()->ResetCamera();<br>
>> > imageViewer->GetRenderWindow()->Render();<br>
>> ><br>
>> > // Sign up to receive TimerEvent<br>
>> > vtkSmartPointer<vtkTimerCallback> cb =<br>
>> > vtkSmartPointer<vtkTimerCallback>::New();<br>
>> > renderWindowInteractor->AddObserver(vtkCommand::TimerEvent, cb);<br>
>> ><br>
>> > int timerId = renderWindowInteractor->CreateRepeatingTimer(100);<br>
>> > std::cout << "timerId: " << timerId << std::endl;<br>
>> ><br>
>> > renderWindowInteractor->Start();<br>
>> ><br>
>> > return EXIT_SUCCESS;<br>
>> > }<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > View this message in context:<br>
>> > <a href="http://vtk.1045678.n5.nabble.com/VTK-Stereo-Rendering-tp5721833.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Stereo-Rendering-tp5721833.html</a><br>
>> > Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 6<br>
>> > Date: Tue, 9 Jul 2013 14:08:36 +0800<br>
>> > From: "hongsongyang" <<a href="mailto:hongsongyang@163.com">hongsongyang@163.com</a>><br>
>> > Subject: [vtkusers] [vtkUsers] About Different RenderWindowInteractor<br>
>> > To: <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> > Message-ID: <D36F8CD489D643279CDEF9B7802D2D8F@WlfPC><br>
>> > Content-Type: text/plain; charset="us-ascii"<br>
>> ><br>
>> > Dear All:<br>
>> ><br>
>> > I have several renders (e.g 4 render), and we could use<br>
>> SetViewport to<br>
>> > display all of them in one RenderWindow.<br>
>> ><br>
>> > My question is that could I set different interactor for each of the<br>
>> > render?<br>
>> ><br>
>> > For example, for render1, I only need zoom and ww/wl operation, but for<br>
>> > render2, I need zoom, pan and rotate operation.<br>
>> ><br>
>> ><br>
>> ><br>
>> > Thanks a lot.<br>
>> ><br>
>> > Hongsongyang<br>
>> ><br>
>> > -------------- next part --------------<br>
>> > An HTML attachment was scrubbed...<br>
>> > URL: <<br>
>> ><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/73d6e3a8/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/73d6e3a8/attachment-0001.htm</a><br>
>> > ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 7<br>
>> > Date: Mon, 8 Jul 2013 23:34:35 -0700<br>
>> > From: Gideon Valch <<a href="mailto:gvalch1237@gmail.com">gvalch1237@gmail.com</a>><br>
>> > Subject: [vtkusers] using vtkGL2PSExporter in python [ under<br>
>> > pythonXY() ]<br>
>> > To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> > Message-ID:<br>
>> > <<br>
>> > <a href="mailto:CAEEGk3YCKrV6gQCtRoPXZZQXQ%2BQr7J%2BKPgK%2BzLAAeF2e6%2BKpgw@mail.gmail.com">CAEEGk3YCKrV6gQCtRoPXZZQXQ+Qr7J+KPgK+zLAAeF2e6+Kpgw@mail.gmail.com</a>><br>
>> > Content-Type: text/plain; charset="iso-8859-1"<br>
>> ><br>
>> > Hello,<br>
>> ><br>
>> > I use pythonxy() as my platform for python supported vtk. Currently,<br>
>> > I'm trying to export a vtk render window to post script using the sample<br>
>> > code (at bottom) but I'm getting an error (see below). I suspect this<br>
>> > relates to how pythonxy() is compiled. Can anyone suggest a workaround?<br>
>> ><br>
>> > Thanks,<br>
>> > GV<br>
>> ><br>
>> > exporter = vtk.vtkGL2PSExporter()<br>
>> > AttributeError: 'module' object has no attribute 'vtkGL2PSExporter'<br>
>> ><br>
>> > ----------------------------<br>
>> ><br>
>> > prefix="c:\\temp\\foo444"<br>
>> > exporter = vtk.vtkGL2PSExporter()<br>
>> > exporter.SetFilePrefix(prefix)<br>
>> > exporter.SetFileFormatToSVG()<br>
>> > exporter.SetRenderWindow(renWin)<br>
>> > exporter.CompressOff()<br>
>> > exporter.SetSortToOff()<br>
>> > #exporter.DrawBackgroundOn()<br>
>> > #exporter.Write3DPropsAsRasterImageOn()<br>
>> > exporter.Write()<br>
>> > -------------- next part --------------<br>
>> > An HTML attachment was scrubbed...<br>
>> > URL: <<br>
>> ><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/2dfee622/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/2dfee622/attachment-0001.htm</a><br>
>> > ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 8<br>
>> > Date: Tue, 9 Jul 2013 00:44:38 -0700 (PDT)<br>
>> > From: Ruff <<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>><br>
>> > Subject: Re: [vtkusers] Help with image planes example<br>
>> > To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> > Message-ID: <<a href="mailto:1373355878399-5721836.post@n5.nabble.com">1373355878399-5721836.post@n5.nabble.com</a>><br>
>> > Content-Type: text/plain; charset=us-ascii<br>
>> ><br>
>> > Thank you!<br>
>> > The problem is that when I tried with ImageData as input in<br>
>> volume16reader<br>
>> > I<br>
>> > got the error "Attempt to connect input port index 0 for an algorithm<br>
>> with<br>
>> > 0<br>
>> > input ports"<br>
>> > Using ImageData as input directly to vtkImagePlaneWidget worked fine<br>
>> > though,<br>
>> > so I guess that solves it.<br>
>> > (My VTK-programming right now is mostly trial and error along with<br>
>> trying<br>
>> > to<br>
>> > understand the different data structures and the pipeline)<br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > View this message in context:<br>
>> ><br>
>> <a href="http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813p5721836.html" target="_blank">http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813p5721836.html</a><br>
>> > Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 9<br>
>> > Date: Tue, 09 Jul 2013 11:23:11 +0200<br>
>> > From: Umer Rafi <<a href="mailto:umer.rafi@rwth-aachen.de">umer.rafi@rwth-aachen.de</a>><br>
>> > Subject: [vtkusers] adding texture to a wavefront .obj file in vtk<br>
>> > To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> > Message-ID: <<a href="mailto:fb959ae41b00e3.51dbf29f@rwth-aachen.de">fb959ae41b00e3.51dbf29f@rwth-aachen.de</a>><br>
>> > Content-Type: text/plain; CHARSET=US-ASCII<br>
>> ><br>
>> > Hello everyone,<br>
>> ><br>
>> > I am new to vtk. I am having a wavefront file of a 3d human model.<br>
>> > What I want to do is to render it using vtk and apply different<br>
>> textures to<br>
>> > different parts of the 3d human model. For example I have a texture<br>
>> image<br>
>> > containing a shirt that I want to apply to torso and arms only. Another<br>
>> > one for jeans that I want to apply to legs and thighs only. I will<br>
>> really<br>
>> > appreciate if anyone can provide a sample code snippet to get me<br>
>> started.<br>
>> ><br>
>> ><br>
>> > thanks in advance.<br>
>> ><br>
>> > Regards<br>
>> > Umer<br>
>> ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 10<br>
>> > Date: Tue, 9 Jul 2013 16:53:12 +0530<br>
>> > From: "divya" <<a href="mailto:divya@triassicsolutions.com">divya@triassicsolutions.com</a>><br>
>> > Subject: [vtkusers] Unexpected actor orientation results<br>
>> > To: "Vtk Users" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> > Message-ID: <004201ce7c96$b5c358a0$214a09e0$@<a href="http://triassicsolutions.com" target="_blank">triassicsolutions.com</a>><br>
>> > Content-Type: text/plain; charset="us-ascii"<br>
>> ><br>
>> ><br>
>> ><br>
>> > Dear vtkUsers,<br>
>> ><br>
>> > I am trying to find the orientation of an actor while I'm rotating it,<br>
>> the<br>
>> > z<br>
>> > and y are correct, but the value range for the x axis is [-90, 90],<br>
>> > whereas<br>
>> > the value range for z and y axis is [-180, 180].<br>
>> ><br>
>> ><br>
>> ><br>
>> > Also the rotation doesn't happen in the chosen axis, for example when I<br>
>> > chose to rotate the actor by 15 degrees on y-axis, the value of the<br>
>> z-axis<br>
>> > increases.<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > -------------- next part --------------<br>
>> > An HTML attachment was scrubbed...<br>
>> > URL: <<br>
>> ><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0001.htm</a><br>
>> > ><br>
>> > -------------- next part --------------<br>
>> > A non-text attachment was scrubbed...<br>
>> > Name: not available<br>
>> > Type: image/jpeg<br>
>> > Size: 10515 bytes<br>
>> > Desc: not available<br>
>> > URL: <<br>
>> ><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0002.jpeg" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0002.jpeg</a><br>
>> > ><br>
>> > -------------- next part --------------<br>
>> > A non-text attachment was scrubbed...<br>
>> > Name: not available<br>
>> > Type: image/jpeg<br>
>> > Size: 13048 bytes<br>
>> > Desc: not available<br>
>> > URL: <<br>
>> ><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0003.jpeg" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0003.jpeg</a><br>
>> > ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 11<br>
>> > Date: Tue, 9 Jul 2013 05:23:41 -0700 (PDT)<br>
>> > From: shinpei <<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>><br>
>> > Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
>> > To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> > Message-ID: <<a href="mailto:1373372621955-5721840.post@n5.nabble.com">1373372621955-5721840.post@n5.nabble.com</a>><br>
>> > Content-Type: text/plain; charset=us-ascii<br>
>> ><br>
>> > Sry... I thought it would be clear what I mean.<br>
>> ><br>
>> > The geometry contains two triangles:<br>
>> > Points are:<br>
>> > (0 0 0)<br>
>> > (0 10 0)<br>
>> > (10 0 0)<br>
>> > (10 10 0)<br>
>> ><br>
>> > with connection:<br>
>> > (0 1 2)<br>
>> > (1 2 3)<br>
>> ><br>
>> > for (vtkIdType ptId = 0; ptId < geometry->GetNumberOfPoints();<br>
>> ++ptId)<br>
>> > {<br>
>> > geometry->getPoints()->GetPoint(ptId, trianglePoint);<br>
>> ><br>
>> > bounds[0] = trianglePoint[0] - 0.01;<br>
>> > bounds[1] = trianglePoint[0] + 0.01;<br>
>> > bounds[2] = trianglePoint[1] - 0.01;<br>
>> > bounds[3] = trianglePoint[1] + 0.01;<br>
>> > bounds[4] = trianglePoint[2] - 0.01;<br>
>> > bounds[5] = trianglePoint[2] + 0.01;<br>
>> ><br>
>> > cellLocator->FindCellsWithinBounds(bounds, foundCells);<br>
>> ><br>
>> > int size = foundCells->GetNumberOfIds(); // is always two<br>
>> > }<br>
>> ><br>
>> > The trianglePoint is e.g. (0 0 0) (first iteration of the loop) so I<br>
>> should<br>
>> > get only one triangle, but I get always two triangles. The bb is small<br>
>> > enough and there is a point which correspons to only one triangle.<br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > View this message in context:<br>
>> ><br>
>> <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html</a><br>
>> > Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 12<br>
>> > Date: Tue, 9 Jul 2013 15:43:23 +0300<br>
>> > From: Haroon Showgan <<a href="mailto:haroon.showgan@gmail.com">haroon.showgan@gmail.com</a>><br>
>> > Subject: [vtkusers] VTK application running on Linux loads VNC server<br>
>> > To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> > Message-ID:<br>
>> > <CAJ=<br>
>> > <a href="mailto:gTgXfT44oBK1Qz5idLBRDt0kdiZuLh0iA%2BmrtAChwR_-Pkw@mail.gmail.com">gTgXfT44oBK1Qz5idLBRDt0kdiZuLh0iA+mrtAChwR_-Pkw@mail.gmail.com</a>><br>
>> > Content-Type: text/plain; charset="iso-8859-1"<br>
>> ><br>
>> > Hi,<br>
>> ><br>
>> > I'm implementing a VTK application for visualizing geometrical 3D<br>
>> objects.<br>
>> > Most of the code is written in C++, and I use TCL-TK widgets for the<br>
>> GUI (I<br>
>> > use *vtkTkRenderWidget* for the main canvas).<br>
>> ><br>
>> > Most of my objects are *vtkVoxel* objects inserted into a *<br>
>> > vtkUnstructuredGrid*.<br>
>> ><br>
>> > I run this application on a Linux server and I connect to this server<br>
>> from<br>
>> > Windows using VNC. I noticed that when I load a very large data set into<br>
>> > the application then the *VNC server* (on the Linux machine) consumes a<br>
>> lot<br>
>> > of memory and uses 100% CPU. I didn't realize that the memory and CPU<br>
>> > usages of a VNC server would be affected so much like this.<br>
>> ><br>
>> > Note that my VTK application is also consuming a lot of memory and CPU,<br>
>> > but what I find strange is that the VNC server is also affected (the<br>
>> > process is called *Xvnc_core*).<br>
>> ><br>
>> > Does anyone know how this is caused and do you have any suggestion how<br>
>> to<br>
>> > mitigate the problem?<br>
>> ><br>
>> > Regards,<br>
>> > Haroon<br>
>> > -------------- next part --------------<br>
>> > An HTML attachment was scrubbed...<br>
>> > URL: <<br>
>> ><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/621fefc2/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/621fefc2/attachment-0001.htm</a><br>
>> > ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 13<br>
>> > Date: Tue, 9 Jul 2013 07:25:46 -0700 (PDT)<br>
>> > From: Massinissa Bandou <Massinissa.Bandou@USherbrooke.ca><br>
>> > Subject: [vtkusers] .RAW file<br>
>> > To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> > Message-ID: <<a href="mailto:1373379946181-5721842.post@n5.nabble.com">1373379946181-5721842.post@n5.nabble.com</a>><br>
>> > Content-Type: text/plain; charset=us-ascii<br>
>> ><br>
>> > Hello everyone,<br>
>> ><br>
>> > I tried to read a (.raw) file with the following code but it displays a<br>
>> RED<br>
>> > CUBE. Here is some information about my file dataInfo.txt<br>
>> > <<a href="http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt</a>> . Is<br>
>> there<br>
>> > something wrong in my code?<br>
>> ><br>
>> > thx for your time and help!<br>
>> ><br>
>> > sorry my file is too large to be send.<br>
>> ><br>
>> > #include <vtkSmartPointer.h><br>
>> > #include <vtkRenderWindow.h><br>
>> > #include <vtkRenderWindowInteractor.h><br>
>> > #include <vtkRenderer.h><br>
>> > #include <vtkActor><br>
>> > #include <vtkImageReader><br>
>> > #include <vtkDataSetMapper><br>
>> ><br>
>> > int main(int argc, char *argv[])<br>
>> > {<br>
>> > vtkImageReader *reader = vtkImageReader::New();<br>
>> > reader->SetFileName(file.c_str());<br>
>> > reader->SetFileDimensionality(3);<br>
>> > reader->SetNumberOfScalarComponents(1);<br>
>> > reader->SetDataExtent(0,512,0,512,0,512);<br>
>> > reader->SetDataSpacing(0.145, 0.145, 0.145);<br>
>> > reader->SetDataByteOrderToBigEndian();<br>
>> > reader->SetDataScalarTypeToChar();<br>
>> > reader->Update();<br>
>> ><br>
>> > vtkSmartPointer<vtkDataSetMapper> map =<br>
>> > vtkSmartPointer<vtkDataSetMapper>::New();<br>
>> > map->SetInputConnection(reader->GetOutputPort());<br>
>> ><br>
>> ><br>
>> > vtkSmartPointer<vtkActor> actor =<br>
>> vtkSmartPointer<vtkActor>::New();<br>
>> > actor->SetMapper(map);<br>
>> ><br>
>> > vtkSmartPointer<vtkRenderWindowInteractor> interactor =<br>
>> > vtkSmartPointer<vtkRenderWindowInteractor>::New();<br>
>> ><br>
>> > vtkSmartPointer<vtkRenderWindow> renderWindow =<br>
>> > vtkSmartPointer<vtkRenderWindow>::New();<br>
>> > interactor->SetRenderWindow(renderWindow);<br>
>> > vtkSmartPointer<vtkRenderer> renderer =<br>
>> > vtkSmartPointer<vtkRenderer>::New();<br>
>> > renderWindow->AddRenderer(renderer);<br>
>> > renderer->AddActor(actor);<br>
>> ><br>
>> > renderWindow->Render();<br>
>> > interactor->Start();<br>
>> > }<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > View this message in context:<br>
>> > <a href="http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html" target="_blank">http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html</a><br>
>> > Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 14<br>
>> > Date: Tue, 9 Jul 2013 11:38:50 -0400<br>
>> > From: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> > Subject: Re: [vtkusers] .RAW file<br>
>> > To: Massinissa Bandou <<a href="mailto:Massinissa.Bandou@usherbrooke.ca">Massinissa.Bandou@usherbrooke.ca</a>><br>
>> > Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> > Message-ID:<br>
>> > <<br>
>> > <a href="mailto:CADZJ4hNXVuS_7L9ocCzex3XHpqyg5dpdKJ2NmxfQn_DnaSDp_Q@mail.gmail.com">CADZJ4hNXVuS_7L9ocCzex3XHpqyg5dpdKJ2NmxfQn_DnaSDp_Q@mail.gmail.com</a>><br>
>> > Content-Type: text/plain; charset="iso-8859-1"<br>
>> ><br>
>> > If your data is 512x512x512 then<br>
>> > reader->SetDataExtent(0,512,0,512,0,512);<br>
>> > should be:<br>
>> > reader->SetDataExtent(0,511,0,511,0,511);<br>
>> ><br>
>> > Also be certain you are setting the correct endianness.<br>
>> ><br>
>> ><br>
>> > On Tue, Jul 9, 2013 at 10:25 AM, Massinissa Bandou <<br>
>> > <a href="mailto:Massinissa.Bandou@usherbrooke.ca">Massinissa.Bandou@usherbrooke.ca</a>> wrote:<br>
>> ><br>
>> > > Hello everyone,<br>
>> > ><br>
>> > > I tried to read a (.raw) file with the following code but it displays<br>
>> a<br>
>> > RED<br>
>> > > CUBE. Here is some information about my file dataInfo.txt<br>
>> > > <<a href="http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt</a>> . Is<br>
>> > there<br>
>> > > something wrong in my code?<br>
>> > ><br>
>> > > thx for your time and help!<br>
>> > ><br>
>> > > sorry my file is too large to be send.<br>
>> > ><br>
>> > > #include <vtkSmartPointer.h><br>
>> > > #include <vtkRenderWindow.h><br>
>> > > #include <vtkRenderWindowInteractor.h><br>
>> > > #include <vtkRenderer.h><br>
>> > > #include <vtkActor><br>
>> > > #include <vtkImageReader><br>
>> > > #include <vtkDataSetMapper><br>
>> > ><br>
>> > > int main(int argc, char *argv[])<br>
>> > > {<br>
>> > > vtkImageReader *reader = vtkImageReader::New();<br>
>> > > reader->SetFileName(file.c_str());<br>
>> > > reader->SetFileDimensionality(3);<br>
>> > > reader->SetNumberOfScalarComponents(1);<br>
>> > > reader->SetDataExtent(0,512,0,512,0,512);<br>
>> > > reader->SetDataSpacing(0.145, 0.145, 0.145);<br>
>> > > reader->SetDataByteOrderToBigEndian();<br>
>> > > reader->SetDataScalarTypeToChar();<br>
>> > > reader->Update();<br>
>> > ><br>
>> > > vtkSmartPointer<vtkDataSetMapper> map =<br>
>> > > vtkSmartPointer<vtkDataSetMapper>::New();<br>
>> > > map->SetInputConnection(reader->GetOutputPort());<br>
>> > ><br>
>> > ><br>
>> > > vtkSmartPointer<vtkActor> actor =<br>
>> > vtkSmartPointer<vtkActor>::New();<br>
>> > > actor->SetMapper(map);<br>
>> > ><br>
>> > > vtkSmartPointer<vtkRenderWindowInteractor> interactor =<br>
>> > > vtkSmartPointer<vtkRenderWindowInteractor>::New();<br>
>> > ><br>
>> > > vtkSmartPointer<vtkRenderWindow> renderWindow =<br>
>> > > vtkSmartPointer<vtkRenderWindow>::New();<br>
>> > > interactor->SetRenderWindow(renderWindow);<br>
>> > > vtkSmartPointer<vtkRenderer> renderer =<br>
>> > > vtkSmartPointer<vtkRenderer>::New();<br>
>> > > renderWindow->AddRenderer(renderer);<br>
>> > > renderer->AddActor(actor);<br>
>> > ><br>
>> > > renderWindow->Render();<br>
>> > > interactor->Start();<br>
>> > > }<br>
>> > ><br>
>> > ><br>
>> > ><br>
>> > ><br>
>> > > --<br>
>> > > View this message in context:<br>
>> > > <a href="http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html" target="_blank">http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html</a><br>
>> > > Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> > > _______________________________________________<br>
>> > > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> > ><br>
>> > > Visit other Kitware open-source projects at<br>
>> > > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> > ><br>
>> > > Please keep messages on-topic and check the VTK FAQ at:<br>
>> > > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> > ><br>
>> > > Follow this link to subscribe/unsubscribe:<br>
>> > > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> > ><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Unpaid intern in BillsBasement at noware dot com<br>
>> > -------------- next part --------------<br>
>> > An HTML attachment was scrubbed...<br>
>> > URL: <<br>
>> ><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/b188c2b1/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/b188c2b1/attachment-0001.htm</a><br>
>> > ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > Message: 15<br>
>> > Date: Tue, 9 Jul 2013 08:46:33 -0700 (PDT)<br>
>> > From: Ruff <<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>><br>
>> > Subject: [vtkusers] My point cloud data won't display in the renderer.<br>
>> > To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> > Message-ID: <<a href="mailto:1373384793963-5721844.post@n5.nabble.com">1373384793963-5721844.post@n5.nabble.com</a>><br>
>> > Content-Type: text/plain; charset=us-ascii<br>
>> ><br>
>> > All i get is an empty renderWindow. I get no errors, but no data is<br>
>> > rendered<br>
>> > either. What am I doing wrong?<br>
>> ><br>
>> > What I do is pretty much this:<br>
>> ><br>
>> > AtomGrid=vtk.vtkUnstructuredGrid()<br>
>> > AtomGrid.SetPoints( vtkPoints with [index,x,y,z] )<br>
>> > AtomGrid.GetPointData().SetScalars( vtkFloatArray with [index,<br>
>> scalar]<br>
>> > )<br>
>> ><br>
>> > volMapper = vtk.vtkUnstructuredGridVolumeRayCastMapper()<br>
>> > volMapper.SetBlendModeToComposite()<br>
>> > volMapper.SetInput(AtomGrid)<br>
>> ><br>
>> ><br>
>> > I tried volMapper.SetScalarModeToUsePointFieldData(), but then it claims<br>
>> > that I have no scalar values to use(!!)<br>
>> ><br>
>> > (I cheated before, and was satisfied using ImageData for this, but now I<br>
>> > really need to get this to work with UnstructuredGrid)<br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > View this message in context:<br>
>> ><br>
>> <a href="http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html</a><br>
>> > Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> ><br>
>> ><br>
>> > ------------------------------<br>
>> ><br>
>> > _______________________________________________<br>
>> > vtkusers mailing list<br>
>> > <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> ><br>
>> ><br>
>> > End of vtkusers Digest, Vol 111, Issue 16<br>
>> > *****************************************<br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> *Best Regards<br>
>> Rahul Indoria<br>
>> Mobile No: +49-157-35652212*<br>
>> -------------- next part --------------<br>
>> An HTML attachment was scrubbed...<br>
>> URL: <<br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/ce46c409/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/ce46c409/attachment-0001.htm</a><br>
>> ><br>
>><br>
>> ------------------------------<br>
>><br>
>> Message: 3<br>
>> Date: Tue, 9 Jul 2013 15:00:16 -0400<br>
>> From: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> Subject: Re: [vtkusers] vtkusers Digest, Vol 111, Issue 16<br>
>> To: rahul indoria <<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>><br>
>> Cc: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> Message-ID:<br>
>> <CADZJ4hMNYM4Rp7Fn0Kt+yvxbje_3eeD+F0-=<br>
>> <a href="mailto:Ti%2Ba4JGRBQp5Yw@mail.gmail.com">Ti+a4JGRBQp5Yw@mail.gmail.com</a>><br>
>> Content-Type: text/plain; charset="iso-8859-1"<br>
>><br>
>> The points and cells are generated in the for loops.<br>
>><br>
>><br>
>><br>
>> On Tue, Jul 9, 2013 at 2:43 PM, rahul indoria <<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a><br>
>> >wrote:<br>
>><br>
>> > Hi,<br>
>> > Can you explain me some portion of the code of this example (<br>
>> ><br>
>> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation</a><br>
>> )?<br>
>> ><br>
>> > i need to ask the line by line documentation of this function, how these<br>
>> > points and surface is formed?<br>
>> ><br>
>> ><br>
>> > vtkSmartPointer<vtkPolyData> SweepLine (vtkPolyData *line,<br>
>> > double direction[3],<br>
>> > double distance,<br>
>> > unsigned int cols)<br>
>> ><br>
>> > {<br>
>> ><br>
>> > unsigned int rows = line->GetNumberOfPoints();<br>
>> ><br>
>> > double spacing = distance / cols;<br>
>> > vtkSmartPointer<vtkPolyData> surface =<br>
>> > vtkSmartPointer<vtkPolyData>::New();<br>
>> ><br>
>> > // Generate the points<br>
>> > cols++; // why this statement ?<br>
>> > unsigned int numberOfPoints = rows * cols; // how these number points<br>
>> are generated<br>
>> > unsigned int numberOfPolys = (rows - 1) * (cols - 1); // what is<br>
>> this???<br>
>> ><br>
>> ><br>
>> > vtkSmartPointer<vtkPoints> points =<br>
>> > vtkSmartPointer<vtkPoints>::New();<br>
>> > points->Allocate(numberOfPoints);<br>
>> > vtkSmartPointer<vtkCellArray> polys =<br>
>> > vtkSmartPointer<vtkCellArray>::New();<br>
>> > polys->Allocate(numberOfPolys*4);<br>
>> ><br>
>> > double x[3];<br>
>> > unsigned int cnt = 0;<br>
>> > for (unsigned int row = 0; row < rows; row++)<br>
>> > {<br>
>> > for (unsigned int col = 0; col < cols; col++)<br>
>> > {<br>
>> > double p[3];<br>
>> > line->GetPoint(row, p);<br>
>> > x[0] = p[0] + direction[0] * col * spacing;<br>
>> > x[1] = p[1] + direction[1] * col * spacing;<br>
>> > x[2] = p[2] + direction[2] * col * spacing;<br>
>> > points->InsertPoint(cnt++, x);<br>
>> > }<br>
>> > }<br>
>> > // Generate the quads<br>
>> > vtkIdType pts[4];<br>
>> > for (unsigned int row = 0; row < rows - 1; row++)<br>
>> > {<br>
>> > for (unsigned int col = 0; col < cols - 1; col++)<br>
>> > {<br>
>> > pts[0] = col + row * (cols);<br>
>> > pts[1] = pts[0] + 1;<br>
>> > pts[2] = pts[0] + cols + 1;<br>
>> > pts[3] = pts[0] + cols;<br>
>> > polys->InsertNextCell(4,pts);<br>
>> > }<br>
>> > }<br>
>> > surface->SetPoints(points);<br>
>> > surface->SetPolys(polys);<br>
>> ><br>
>> > return surface;}<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > please reply as soon as possible<br>
>> ><br>
>> ><br>
>> ><br>
>> > On Tue, Jul 9, 2013 at 6:00 PM, <<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a>> wrote:<br>
>> ><br>
>> >> Send vtkusers mailing list submissions to<br>
>> >> <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> >><br>
>> >> To subscribe or unsubscribe via the World Wide Web, visit<br>
>> >> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> >> or, via email, send a message with subject or body 'help' to<br>
>> >> <a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br>
>> >><br>
>> >> You can reach the person managing the list at<br>
>> >> <a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br>
>> >><br>
>> >> When replying, please edit your Subject line so it is more specific<br>
>> >> than "Re: Contents of vtkusers digest..."<br>
>> >><br>
>> >><br>
>> >> Today's Topics:<br>
>> >><br>
>> >> 1. Re: Vtk 6.0 dotnet (David Cole)<br>
>> >> 2. Re: Regarding example VTKimagereslicemapper (rahul indoria)<br>
>> >> 3. FindCell method of vtkCellLocator (shinpei)<br>
>> >> 4. Re: FindCell method of vtkCellLocator (Alex Malyushytskyy)<br>
>> >> 5. VTK Stereo Rendering (mailagentrus)<br>
>> >> 6. [vtkUsers] About Different RenderWindowInteractor (hongsongyang)<br>
>> >> 7. using vtkGL2PSExporter in python [ under pythonXY() ]<br>
>> >> (Gideon Valch)<br>
>> >> 8. Re: Help with image planes example (Ruff)<br>
>> >> 9. adding texture to a wavefront .obj file in vtk (Umer Rafi)<br>
>> >> 10. Unexpected actor orientation results (divya)<br>
>> >> 11. Re: FindCell method of vtkCellLocator (shinpei)<br>
>> >> 12. VTK application running on Linux loads VNC server (Haroon<br>
>> Showgan)<br>
>> >> 13. .RAW file (Massinissa Bandou)<br>
>> >> 14. Re: .RAW file (Bill Lorensen)<br>
>> >> 15. My point cloud data won't display in the renderer. (Ruff)<br>
>> >><br>
>> >><br>
>> >> ----------------------------------------------------------------------<br>
>> >><br>
>> >> Message: 1<br>
>> >> Date: Mon, 8 Jul 2013 16:21:52 +0000<br>
>> >> From: David Cole <<a href="mailto:dlrdave@aol.com">dlrdave@aol.com</a>><br>
>> >> Subject: Re: [vtkusers] Vtk 6.0 dotnet<br>
>> >> To: " <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a> " <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>>, Serge Lalonde<br>
>> >> <<a href="mailto:serge@infolytica.com">serge@infolytica.com</a>><br>
>> >> Message-ID: <<a href="mailto:20130708165306.6B0E66504F@public.kitware.com">20130708165306.6B0E66504F@public.kitware.com</a>><br>
>> >> Content-Type: text/plain; charset="utf-8"<br>
>> >><br>
>> >> Thanks, Serge. It *is* too bad that the kickstarter approach did not<br>
>> >> yield a funded project this time around. Perhaps later, another one<br>
>> will be<br>
>> >> successful.<br>
>> >><br>
>> >><br>
>> >><br>
>> >> Alex, you wrote ?as for me I would trust more in the results of free<br>
>> >> development than in results of the projects developed using such<br>
>> financing.?<br>
>> >><br>
>> >><br>
>> >><br>
>> >> In response, I would simply point out the results of free development<br>
>> are<br>
>> >> that ActiViz is presently ?stuck? on the VTK 5.8 version. And it was<br>
>> only<br>
>> >> ?free as in beer? to those of you who didn?t pay for it.<br>
>> >><br>
>> >><br>
>> >><br>
>> >> It?s also too bad that nobody else has stepped up and said, ?hey, how<br>
>> can<br>
>> >> I contribute and help to make this happen?? (Aside from the 20<br>
>> kickstarter<br>
>> >> project backers [1] -- thanks again, guys...)<br>
>> >><br>
>> >><br>
>> >><br>
>> >> For those willing to contribute effort and manpower to the problem,<br>
>> >> rather than money, go for it. VTK and ActiViz are both open source,<br>
>> and may<br>
>> >> be built and extended by any interested party. I recently abandoned the<br>
>> >> topic integrating the two [2] due to lack of activity. Anybody who<br>
>> wants<br>
>> >> to, please feel free to resurrect it, rebase it on current ?master?,<br>
>> and<br>
>> >> try again. Alternatively, you could simply extend the ActiViz git repo<br>
>> with<br>
>> >> commits to make it build against an external VTK 5.10 or 6.0 [3].<br>
>> >><br>
>> >><br>
>> >> While I am capable and mildly interested in furthering ActiViz .NET, I<br>
>> >> prefer to spend much of my free time on non-computer related activities<br>
>> >> these days. I get quite enough compute time just doing my job. But<br>
>> money<br>
>> >> actually does motivate me... and I would be willing to do the work if<br>
>> paid<br>
>> >> for it. So, that, plus gauging actual interest level, were my primary<br>
>> >> motivations for seeking funding via kickstarter.<br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >> Cheers,<br>
>> >><br>
>> >> David Cole<br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >> [1]<br>
>> >><br>
>> <a href="http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510/backers" target="_blank">http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510/backers</a><br>
>> >><br>
>> >> [2] <a href="http://review.source.kitware.com/#/t/1615/" target="_blank">http://review.source.kitware.com/#/t/1615/</a><br>
>> >><br>
>> >> [3] <a href="http://public.kitware.com/gitweb?p=activizdotnet.git" target="_blank">http://public.kitware.com/gitweb?p=activizdotnet.git</a><br>
>> >><br>
>> >><br>
>> >><br>
>> >> P.S. ---<br>
>> >><br>
>> >><br>
>> >> I would also like to point out that nowadays, you can simply build a<br>
>> >> managed-C++ project with VS 2012, and ?just link for free? to the<br>
>> native<br>
>> >> VTK C++ libraries. That doesn?t help folks using other .NET languages,<br>
>> but<br>
>> >> it is a nice feature of the modern C++ compiler from MS that you can<br>
>> link<br>
>> >> in both managed and un-managed code together. If you are starting a new<br>
>> >> Windows Forms application, consider using managed C++ as your language.<br>
>> >> -------------- next part --------------<br>
>> >> An HTML attachment was scrubbed...<br>
>> >> URL: <<br>
>> >><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/0cc105c5/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/0cc105c5/attachment-0001.htm</a><br>
>> >> ><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 2<br>
>> >> Date: Mon, 8 Jul 2013 20:12:06 +0200<br>
>> >> From: rahul indoria <<a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>><br>
>> >> Subject: Re: [vtkusers] Regarding example VTKimagereslicemapper<br>
>> >> To: David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>>, "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>"<br>
>> >> <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> >> Message-ID:<br>
>> >> <CAGQ+16KkyGkkjmWQ86Xh5=<br>
>> >> <a href="mailto:VfUnbABFEquKOdKEDKfm9_F1eyaA@mail.gmail.com">VfUnbABFEquKOdKEDKfm9_F1eyaA@mail.gmail.com</a>><br>
>> >> Content-Type: text/plain; charset="iso-8859-1"<br>
>> >><br>
>> >> Hi,<br>
>> >> Could you please tell me, what are port index in VTK functions?<br>
>> >><br>
>> >><br>
>> >> On Mon, Jul 8, 2013 at 5:51 PM, David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>><br>
>> wrote:<br>
>> >><br>
>> >> > In the future, please keep the conversation on the mailing list so<br>
>> that<br>
>> >> > everyone can participate/benefit from the discussion.<br>
>> >> ><br>
>> >> > I believe what you're seeing is a contrast adjustment mechanism<br>
>> (called<br>
>> >> > "window level events" -<br>
>> >> ><br>
>> >><br>
>> <a href="http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details</a><br>
>> >> > ).<br>
>> >> ><br>
>> >> ><br>
>> >> > David<br>
>> >> ><br>
>> >> ><br>
>> >> > On Mon, Jul 8, 2013 at 11:48 AM, rahul indoria <<br>
>> <a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a><br>
>> >> >wrote:<br>
>> >> ><br>
>> >> >> Hi David,<br>
>> >> >> I have one more question regarding this example, in<br>
>> the<br>
>> >> >> output of this example(<br>
>> >> >> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a>),<br>
>> why<br>
>> >> >> we are getting different colors of the image, when i am<br>
>> left-clicking<br>
>> >> on<br>
>> >> >> the image and moving mouse up and down?<br>
>> >> >><br>
>> >> >> Looking forward your reply soon.<br>
>> >> >><br>
>> >> >><br>
>> >> >> rahul indoria<br>
>> >> >><br>
>> >> >><br>
>> >> >> On Mon, Jul 8, 2013 at 3:22 PM, David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>><br>
>> >> wrote:<br>
>> >> >><br>
>> >> >>> On Mon, Jul 8, 2013 at 9:05 AM, rahul indoria <<br>
>> >> <a href="mailto:rahulindoria5@gmail.com">rahulindoria5@gmail.com</a>>wrote:<br>
>> >> >>><br>
>> >> >>>> Hi,<br>
>> >> >>>> I was modifying this example:<br>
>> >> >>>> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a><br>
>> >> >>>> in this example, i am deleting the object vtkImageSlice, and<br>
>> when i<br>
>> >> am<br>
>> >> >>>> putting the object "imageSliceMapper" i getting an error?<br>
>> >> >>>><br>
>> >> >>>> As vtkimageslice class used to represent an image in a 3D scene, i<br>
>> >> >>>> don`t want to display this in 3D scene, just want to display on<br>
>> the<br>
>> >> screen<br>
>> >> >>>> that`s why i am deleting this class, so why i am getting this<br>
>> error?<br>
>> >> >>>><br>
>> >> >>>> I modified this code like this :<br>
>> >> >>>><br>
>> >> >>><br>
>> >> >>> What do you want to do if not display the image? The problem is<br>
>> that<br>
>> >> you<br>
>> >> >>> can't call AddViewProp on a mapper - it has to be a vtkProp<br>
>> subclass<br>
>> >> >>> (like the vtkImageSlice was). In the future, please include the<br>
>> exact<br>
>> >> >>> error that you are getting.<br>
>> >> >>><br>
>> >> >>> David<br>
>> >> >>><br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >> --<br>
>> >> >> *Best Regards<br>
>> >> >> Rahul Indoria<br>
>> >> >> Mobile No: +49-157-35652212*<br>
>> >> >><br>
>> >> ><br>
>> >> ><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> *Best Regards<br>
>> >> Rahul Indoria<br>
>> >> Mobile No: +49-157-35652212*<br>
>> >> -------------- next part --------------<br>
>> >> An HTML attachment was scrubbed...<br>
>> >> URL: <<br>
>> >><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/8de03097/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/8de03097/attachment-0001.htm</a><br>
>> >> ><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 3<br>
>> >> Date: Mon, 8 Jul 2013 15:44:56 -0700 (PDT)<br>
>> >> From: shinpei <<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>><br>
>> >> Subject: [vtkusers] FindCell method of vtkCellLocator<br>
>> >> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> >> Message-ID: <<a href="mailto:1373323496433-5721831.post@n5.nabble.com">1373323496433-5721831.post@n5.nabble.com</a>><br>
>> >> Content-Type: text/plain; charset=us-ascii<br>
>> >><br>
>> >> Hi,<br>
>> >><br>
>> >> I have two triangle cells in my vtkCellLocator and I create a little bb<br>
>> >> around a point of one triangle (see picture). Now I use FindCell(bb,<br>
>> >> idList)<br>
>> >> and I should get one id, but I get two. Is this a bug, or must I change<br>
>> >> something?<br>
>> >><br>
>> >> <<a href="http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png</a>><br>
>> >> - two trinagles (red)<br>
>> >> - bb (blue)<br>
>> >><br>
>> >> My code:<br>
>> >><br>
>> >> for (vtkIdType ptId = 0; ptId < geometry->GetNumberOfPoints();<br>
>> ++ptId)<br>
>> >> {<br>
>> >> bounds[0] = trianglePoint[0] - 0.01;<br>
>> >> bounds[1] = trianglePoint[0] + 0.01;<br>
>> >> bounds[2] = trianglePoint[1] - 0.01;<br>
>> >> bounds[3] = trianglePoint[1] + 0.01;<br>
>> >> bounds[4] = trianglePoint[2] - 0.01;<br>
>> >> bounds[5] = trianglePoint[2] + 0.01;<br>
>> >><br>
>> >> cellLocator->FindCellsWithinBounds(bounds, foundCells);<br>
>> >><br>
>> >> int size = foundCells->GetNumberOfIds(); // is always two<br>
>> >> }<br>
>> >><br>
>> >><br>
>> >> Thx<br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> View this message in context:<br>
>> >><br>
>> <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html</a><br>
>> >> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> >><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 4<br>
>> >> Date: Mon, 8 Jul 2013 19:00:25 -0700<br>
>> >> From: Alex Malyushytskyy <<a href="mailto:alexmalvtk@gmail.com">alexmalvtk@gmail.com</a>><br>
>> >> Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
>> >> To: shinpei <<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>><br>
>> >> Cc: VTK <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> >> Message-ID:<br>
>> >> <<br>
>> >> <a href="mailto:CAHR9pJ0m4dYdghFRjZ5Y6YffT23dv3Q%2BScsu4JEK8yMLQZ7rbg@mail.gmail.com">CAHR9pJ0m4dYdghFRjZ5Y6YffT23dv3Q+Scsu4JEK8yMLQZ7rbg@mail.gmail.com</a>><br>
>> >> Content-Type: text/plain; charset="iso-8859-1"<br>
>> >><br>
>> >> It is not clear that attached picture corresponds to your claims.<br>
>> >> There is no visible relation between trianglePoint and<br>
>> >> geometry->GetNumberOfPoints().<br>
>> >> Also for (vtkIdType ptId = 0; ptId < geometry->GetNumberOfPoints();<br>
>> >> ++ptId)<br>
>> >> loop does not make any sense cause nothing changes in the loop.<br>
>> >><br>
>> >> So I guess your trianglePoint is not what you think it is.<br>
>> >> For example if this point is shared by 2 triangles you will have the<br>
>> same<br>
>> >> effect.<br>
>> >> Another possible problem might be absolute value 0.1 used.<br>
>> >> For example your triangle may have size smaller than it, which will be<br>
>> a<br>
>> >> source of such effect too.<br>
>> >><br>
>> >> Your example is not complete , you could create much better example<br>
>> >> initializing all available variables so the behavior can be reproduced.<br>
>> >><br>
>> >> Alex<br>
>> >><br>
>> >><br>
>> >><br>
>> >> On Mon, Jul 8, 2013 at 3:44 PM, shinpei <<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>> wrote:<br>
>> >><br>
>> >> > Hi,<br>
>> >> ><br>
>> >> > I have two triangle cells in my vtkCellLocator and I create a little<br>
>> bb<br>
>> >> > around a point of one triangle (see picture). Now I use FindCell(bb,<br>
>> >> > idList)<br>
>> >> > and I should get one id, but I get two. Is this a bug, or must I<br>
>> change<br>
>> >> > something?<br>
>> >> ><br>
>> >> > <<a href="http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png</a>><br>
>> >> > - two trinagles (red)<br>
>> >> > - bb (blue)<br>
>> >> ><br>
>> >> > My code:<br>
>> >> ><br>
>> >> > for (vtkIdType ptId = 0; ptId < geometry->GetNumberOfPoints();<br>
>> >> ++ptId)<br>
>> >> > {<br>
>> >> > bounds[0] = trianglePoint[0] - 0.01;<br>
>> >> > bounds[1] = trianglePoint[0] + 0.01;<br>
>> >> > bounds[2] = trianglePoint[1] - 0.01;<br>
>> >> > bounds[3] = trianglePoint[1] + 0.01;<br>
>> >> > bounds[4] = trianglePoint[2] - 0.01;<br>
>> >> > bounds[5] = trianglePoint[2] + 0.01;<br>
>> >> ><br>
>> >> > cellLocator->FindCellsWithinBounds(bounds, foundCells);<br>
>> >> ><br>
>> >> > int size = foundCells->GetNumberOfIds(); // is always two<br>
>> >> > }<br>
>> >> ><br>
>> >> ><br>
>> >> > Thx<br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > --<br>
>> >> > View this message in context:<br>
>> >> ><br>
>> >><br>
>> <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html</a><br>
>> >> > Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> >> > _______________________________________________<br>
>> >> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >> ><br>
>> >> > Visit other Kitware open-source projects at<br>
>> >> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >> ><br>
>> >> > Please keep messages on-topic and check the VTK FAQ at:<br>
>> >> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> >> ><br>
>> >> > Follow this link to subscribe/unsubscribe:<br>
>> >> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> >> ><br>
>> >> -------------- next part --------------<br>
>> >> An HTML attachment was scrubbed...<br>
>> >> URL: <<br>
>> >><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/533f4d72/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/533f4d72/attachment-0001.htm</a><br>
>> >> ><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 5<br>
>> >> Date: Mon, 8 Jul 2013 22:09:00 -0700 (PDT)<br>
>> >> From: mailagentrus <<a href="mailto:mailagentrus@mail.ru">mailagentrus@mail.ru</a>><br>
>> >> Subject: [vtkusers] VTK Stereo Rendering<br>
>> >> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> >> Message-ID: <<a href="mailto:1373346540408-5721833.post@n5.nabble.com">1373346540408-5721833.post@n5.nabble.com</a>><br>
>> >> Content-Type: text/plain; charset=us-ascii<br>
>> >><br>
>> >> Hi! I want to add a stereo mode to my program. Program wil be show<br>
>> pairs<br>
>> >> of<br>
>> >> images image in stereo mode (with Nvidia 3d vision). I set up NVidia<br>
>> Qudro<br>
>> >> 410 and saw stereo mode with Polydata object with using Paraview.<br>
>> >> But, when I try to make own program i see inly the firs pair images in<br>
>> >> stereo mode, after that image in right eye does not update... Updates<br>
>> inly<br>
>> >> the left eye image.<br>
>> >> Help me, please!<br>
>> >><br>
>> >> Code:<br>
>> >><br>
>> >> #include <vtkPolyDataReader.h><br>
>> >> #include <vtkSmartPointer.h><br>
>> >> #include <vtkDataSetMapper.h><br>
>> >> #include <vtkActor.h><br>
>> >> #include <vtkRenderWindow.h><br>
>> >> #include <vtkRenderer.h><br>
>> >> #include <vtkRenderWindowInteractor.h><br>
>> >> #include <vtkCamera.h><br>
>> >> #include "vtkCommand.h"<br>
>> >> #include "vtkImageData.h"<br>
>> >> #include <vtkBMPReader.h><br>
>> >> #include <vtkImageViewer2.h><br>
>> >> #include <vtkImageActor.h><br>
>> >><br>
>> >> vtkSmartPointer<vtkBMPReader> readerR;<br>
>> >> vtkSmartPointer<vtkBMPReader> readerL;<br>
>> >> vtkSmartPointer<vtkImageViewer2> imageViewer;<br>
>> >><br>
>> >> class vtkTimerCallback : public vtkCommand<br>
>> >> {<br>
>> >> public:<br>
>> >> static vtkTimerCallback *New()<br>
>> >> {<br>
>> >> vtkTimerCallback *cb = new vtkTimerCallback;<br>
>> >> cb->TimerCount = 0;<br>
>> >> return cb;<br>
>> >> }<br>
>> >><br>
>> >> virtual void Execute(vtkObject *vtkNotUsed(caller), unsigned long<br>
>> >> eventId,<br>
>> >> void *vtkNotUsed(callData))<br>
>> >> {<br>
>> >> if (vtkCommand::TimerEvent == eventId)<br>
>> >> {<br>
>> >><br>
>> >> // for example name for left eye image is<br>
>> >> readerL->SetFileName ( "D:/1234/-40.bmp");<br>
>> >> readerL->Update();<br>
>> >><br>
>> >> // for example name for right eye image is<br>
>> >> readerR->SetFileName ( "D:/1234/40.bmp");<br>
>> >> readerR->Update();<br>
>> >><br>
>> >> imageViewer->SetInput(readerL->GetOutput());<br>
>> >> imageViewer->GetRenderWindow()->SetStereoTypeToLeft();<br>
>> >> imageViewer->GetRenderWindow()->Render();<br>
>> >> imageViewer->GetRenderer()->ResetCamera();<br>
>> >> imageViewer->GetRenderWindow()->Render();<br>
>> >><br>
>> >> imageViewer->GetRenderWindow()->StereoUpdate();<br>
>> >><br>
>> >> imageViewer->SetInput(readerL->GetOutput());<br>
>> >> imageViewer->GetRenderWindow()->SetStereoTypeToRight();<br>
>> >> imageViewer->GetRenderWindow()->Render();<br>
>> >> imageViewer->GetRenderer()->ResetCamera();<br>
>> >> imageViewer->GetRenderWindow()->Render();<br>
>> >><br>
>> >> imageViewer->GetRenderWindow()->StereoUpdate();<br>
>> >><br>
>> >> ++this->TimerCount;<br>
>> >> }<br>
>> >> cout << this->TimerCount << endl;<br>
>> >> }<br>
>> >><br>
>> >> private:<br>
>> >> int TimerCount;<br>
>> >><br>
>> >> };<br>
>> >><br>
>> >><br>
>> >> int main ( int argc, char *argv[] )<br>
>> >> {<br>
>> >> //Read the image<br>
>> >> readerL =<br>
>> >> vtkSmartPointer<vtkBMPReader>::New();<br>
>> >> readerL->SetFileName ( "D:/1234/-5.bmp");<br>
>> >> readerL->Update();<br>
>> >><br>
>> >> readerR =<br>
>> >> vtkSmartPointer<vtkBMPReader>::New();<br>
>> >> readerR->SetFileName ( "D:/1234/5.bmp");<br>
>> >> readerR->Update();<br>
>> >><br>
>> >> // Visualize<br>
>> >> imageViewer =<br>
>> >> vtkSmartPointer<vtkImageViewer2>::New();<br>
>> >><br>
>> >> vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor =<br>
>> >> vtkSmartPointer<vtkRenderWindowInteractor>::New();<br>
>> >> imageViewer->SetupInteractor(renderWindowInteractor);<br>
>> >><br>
>> >> imageViewer->GetRenderWindow()->SetSize( 800, 600 );<br>
>> >><br>
>> >> imageViewer->GetRenderWindow()->StereoCapableWindowOn();<br>
>> >> imageViewer->GetRenderWindow()->SetStereoTypeToCrystalEyes();<br>
>> >> imageViewer->GetRenderWindow()->SetStereoRender(1);<br>
>> >> imageViewer->GetRenderWindow()->StereoUpdate();<br>
>> >><br>
>> >> renderWindowInteractor->Initialize();<br>
>> >><br>
>> >> imageViewer->SetInput(readerBase->GetOutput());<br>
>> >> imageViewer->GetRenderWindow()->Render();<br>
>> >> imageViewer->GetRenderer()->ResetCamera();<br>
>> >> imageViewer->GetRenderWindow()->Render();<br>
>> >><br>
>> >> // Sign up to receive TimerEvent<br>
>> >> vtkSmartPointer<vtkTimerCallback> cb =<br>
>> >> vtkSmartPointer<vtkTimerCallback>::New();<br>
>> >> renderWindowInteractor->AddObserver(vtkCommand::TimerEvent, cb);<br>
>> >><br>
>> >> int timerId = renderWindowInteractor->CreateRepeatingTimer(100);<br>
>> >> std::cout << "timerId: " << timerId << std::endl;<br>
>> >><br>
>> >> renderWindowInteractor->Start();<br>
>> >><br>
>> >> return EXIT_SUCCESS;<br>
>> >> }<br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> View this message in context:<br>
>> >> <a href="http://vtk.1045678.n5.nabble.com/VTK-Stereo-Rendering-tp5721833.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Stereo-Rendering-tp5721833.html</a><br>
>> >> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> >><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 6<br>
>> >> Date: Tue, 9 Jul 2013 14:08:36 +0800<br>
>> >> From: "hongsongyang" <<a href="mailto:hongsongyang@163.com">hongsongyang@163.com</a>><br>
>> >> Subject: [vtkusers] [vtkUsers] About Different RenderWindowInteractor<br>
>> >> To: <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> >> Message-ID: <D36F8CD489D643279CDEF9B7802D2D8F@WlfPC><br>
>> >> Content-Type: text/plain; charset="us-ascii"<br>
>> >><br>
>> >> Dear All:<br>
>> >><br>
>> >> I have several renders (e.g 4 render), and we could use<br>
>> SetViewport<br>
>> >> to<br>
>> >> display all of them in one RenderWindow.<br>
>> >><br>
>> >> My question is that could I set different interactor for each of the<br>
>> >> render?<br>
>> >><br>
>> >> For example, for render1, I only need zoom and ww/wl operation, but for<br>
>> >> render2, I need zoom, pan and rotate operation.<br>
>> >><br>
>> >><br>
>> >><br>
>> >> Thanks a lot.<br>
>> >><br>
>> >> Hongsongyang<br>
>> >><br>
>> >> -------------- next part --------------<br>
>> >> An HTML attachment was scrubbed...<br>
>> >> URL: <<br>
>> >><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/73d6e3a8/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/73d6e3a8/attachment-0001.htm</a><br>
>> >> ><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 7<br>
>> >> Date: Mon, 8 Jul 2013 23:34:35 -0700<br>
>> >> From: Gideon Valch <<a href="mailto:gvalch1237@gmail.com">gvalch1237@gmail.com</a>><br>
>> >> Subject: [vtkusers] using vtkGL2PSExporter in python [ under<br>
>> >> pythonXY() ]<br>
>> >> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> >> Message-ID:<br>
>> >> <<br>
>> >> <a href="mailto:CAEEGk3YCKrV6gQCtRoPXZZQXQ%2BQr7J%2BKPgK%2BzLAAeF2e6%2BKpgw@mail.gmail.com">CAEEGk3YCKrV6gQCtRoPXZZQXQ+Qr7J+KPgK+zLAAeF2e6+Kpgw@mail.gmail.com</a>><br>
>> >> Content-Type: text/plain; charset="iso-8859-1"<br>
>> >><br>
>> >> Hello,<br>
>> >><br>
>> >> I use pythonxy() as my platform for python supported vtk.<br>
>> Currently,<br>
>> >> I'm trying to export a vtk render window to post script using the<br>
>> sample<br>
>> >> code (at bottom) but I'm getting an error (see below). I suspect this<br>
>> >> relates to how pythonxy() is compiled. Can anyone suggest a<br>
>> workaround?<br>
>> >><br>
>> >> Thanks,<br>
>> >> GV<br>
>> >><br>
>> >> exporter = vtk.vtkGL2PSExporter()<br>
>> >> AttributeError: 'module' object has no attribute 'vtkGL2PSExporter'<br>
>> >><br>
>> >> ----------------------------<br>
>> >><br>
>> >> prefix="c:\\temp\\foo444"<br>
>> >> exporter = vtk.vtkGL2PSExporter()<br>
>> >> exporter.SetFilePrefix(prefix)<br>
>> >> exporter.SetFileFormatToSVG()<br>
>> >> exporter.SetRenderWindow(renWin)<br>
>> >> exporter.CompressOff()<br>
>> >> exporter.SetSortToOff()<br>
>> >> #exporter.DrawBackgroundOn()<br>
>> >> #exporter.Write3DPropsAsRasterImageOn()<br>
>> >> exporter.Write()<br>
>> >> -------------- next part --------------<br>
>> >> An HTML attachment was scrubbed...<br>
>> >> URL: <<br>
>> >><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/2dfee622/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/2dfee622/attachment-0001.htm</a><br>
>> >> ><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 8<br>
>> >> Date: Tue, 9 Jul 2013 00:44:38 -0700 (PDT)<br>
>> >> From: Ruff <<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>><br>
>> >> Subject: Re: [vtkusers] Help with image planes example<br>
>> >> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> >> Message-ID: <<a href="mailto:1373355878399-5721836.post@n5.nabble.com">1373355878399-5721836.post@n5.nabble.com</a>><br>
>> >> Content-Type: text/plain; charset=us-ascii<br>
>> >><br>
>> >> Thank you!<br>
>> >> The problem is that when I tried with ImageData as input in<br>
>> >> volume16reader I<br>
>> >> got the error "Attempt to connect input port index 0 for an algorithm<br>
>> >> with 0<br>
>> >> input ports"<br>
>> >> Using ImageData as input directly to vtkImagePlaneWidget worked fine<br>
>> >> though,<br>
>> >> so I guess that solves it.<br>
>> >> (My VTK-programming right now is mostly trial and error along with<br>
>> trying<br>
>> >> to<br>
>> >> understand the different data structures and the pipeline)<br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> View this message in context:<br>
>> >><br>
>> <a href="http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813p5721836.html" target="_blank">http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813p5721836.html</a><br>
>> >> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> >><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 9<br>
>> >> Date: Tue, 09 Jul 2013 11:23:11 +0200<br>
>> >> From: Umer Rafi <<a href="mailto:umer.rafi@rwth-aachen.de">umer.rafi@rwth-aachen.de</a>><br>
>> >> Subject: [vtkusers] adding texture to a wavefront .obj file in vtk<br>
>> >> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> >> Message-ID: <<a href="mailto:fb959ae41b00e3.51dbf29f@rwth-aachen.de">fb959ae41b00e3.51dbf29f@rwth-aachen.de</a>><br>
>> >> Content-Type: text/plain; CHARSET=US-ASCII<br>
>> >><br>
>> >> Hello everyone,<br>
>> >><br>
>> >> I am new to vtk. I am having a wavefront file of a 3d human model.<br>
>> >> What I want to do is to render it using vtk and apply different<br>
>> textures to<br>
>> >> different parts of the 3d human model. For example I have a texture<br>
>> image<br>
>> >> containing a shirt that I want to apply to torso and arms only.<br>
>> Another<br>
>> >> one for jeans that I want to apply to legs and thighs only. I will<br>
>> really<br>
>> >> appreciate if anyone can provide a sample code snippet to get me<br>
>> started.<br>
>> >><br>
>> >><br>
>> >> thanks in advance.<br>
>> >><br>
>> >> Regards<br>
>> >> Umer<br>
>> >><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 10<br>
>> >> Date: Tue, 9 Jul 2013 16:53:12 +0530<br>
>> >> From: "divya" <<a href="mailto:divya@triassicsolutions.com">divya@triassicsolutions.com</a>><br>
>> >> Subject: [vtkusers] Unexpected actor orientation results<br>
>> >> To: "Vtk Users" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> >> Message-ID: <004201ce7c96$b5c358a0$214a09e0$@<a href="http://triassicsolutions.com" target="_blank">triassicsolutions.com</a>><br>
>> >> Content-Type: text/plain; charset="us-ascii"<br>
>> >><br>
>> >><br>
>> >><br>
>> >> Dear vtkUsers,<br>
>> >><br>
>> >> I am trying to find the orientation of an actor while I'm rotating it,<br>
>> >> the z<br>
>> >> and y are correct, but the value range for the x axis is [-90, 90],<br>
>> >> whereas<br>
>> >> the value range for z and y axis is [-180, 180].<br>
>> >><br>
>> >><br>
>> >><br>
>> >> Also the rotation doesn't happen in the chosen axis, for example when I<br>
>> >> chose to rotate the actor by 15 degrees on y-axis, the value of the<br>
>> z-axis<br>
>> >> increases.<br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >> -------------- next part --------------<br>
>> >> An HTML attachment was scrubbed...<br>
>> >> URL: <<br>
>> >><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0001.htm</a><br>
>> >> ><br>
>> >> -------------- next part --------------<br>
>> >> A non-text attachment was scrubbed...<br>
>> >> Name: not available<br>
>> >> Type: image/jpeg<br>
>> >> Size: 10515 bytes<br>
>> >> Desc: not available<br>
>> >> URL: <<br>
>> >><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0002.jpeg" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0002.jpeg</a><br>
>> >> ><br>
>> >> -------------- next part --------------<br>
>> >> A non-text attachment was scrubbed...<br>
>> >> Name: not available<br>
>> >> Type: image/jpeg<br>
>> >> Size: 13048 bytes<br>
>> >> Desc: not available<br>
>> >> URL: <<br>
>> >><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0003.jpeg" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0003.jpeg</a><br>
>> >> ><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 11<br>
>> >> Date: Tue, 9 Jul 2013 05:23:41 -0700 (PDT)<br>
>> >> From: shinpei <<a href="mailto:noro_shinpei@web.de">noro_shinpei@web.de</a>><br>
>> >> Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
>> >> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> >> Message-ID: <<a href="mailto:1373372621955-5721840.post@n5.nabble.com">1373372621955-5721840.post@n5.nabble.com</a>><br>
>> >> Content-Type: text/plain; charset=us-ascii<br>
>> >><br>
>> >> Sry... I thought it would be clear what I mean.<br>
>> >><br>
>> >> The geometry contains two triangles:<br>
>> >> Points are:<br>
>> >> (0 0 0)<br>
>> >> (0 10 0)<br>
>> >> (10 0 0)<br>
>> >> (10 10 0)<br>
>> >><br>
>> >> with connection:<br>
>> >> (0 1 2)<br>
>> >> (1 2 3)<br>
>> >><br>
>> >> for (vtkIdType ptId = 0; ptId < geometry->GetNumberOfPoints();<br>
>> >> ++ptId)<br>
>> >> {<br>
>> >> geometry->getPoints()->GetPoint(ptId, trianglePoint);<br>
>> >><br>
>> >> bounds[0] = trianglePoint[0] - 0.01;<br>
>> >> bounds[1] = trianglePoint[0] + 0.01;<br>
>> >> bounds[2] = trianglePoint[1] - 0.01;<br>
>> >> bounds[3] = trianglePoint[1] + 0.01;<br>
>> >> bounds[4] = trianglePoint[2] - 0.01;<br>
>> >> bounds[5] = trianglePoint[2] + 0.01;<br>
>> >><br>
>> >> cellLocator->FindCellsWithinBounds(bounds, foundCells);<br>
>> >><br>
>> >> int size = foundCells->GetNumberOfIds(); // is always two<br>
>> >> }<br>
>> >><br>
>> >> The trianglePoint is e.g. (0 0 0) (first iteration of the loop) so I<br>
>> >> should<br>
>> >> get only one triangle, but I get always two triangles. The bb is small<br>
>> >> enough and there is a point which correspons to only one triangle.<br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> View this message in context:<br>
>> >><br>
>> <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html</a><br>
>> >> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> >><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 12<br>
>> >> Date: Tue, 9 Jul 2013 15:43:23 +0300<br>
>> >> From: Haroon Showgan <<a href="mailto:haroon.showgan@gmail.com">haroon.showgan@gmail.com</a>><br>
>> >> Subject: [vtkusers] VTK application running on Linux loads VNC server<br>
>> >> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> >> Message-ID:<br>
>> >> <CAJ=<br>
>> >> <a href="mailto:gTgXfT44oBK1Qz5idLBRDt0kdiZuLh0iA%2BmrtAChwR_-Pkw@mail.gmail.com">gTgXfT44oBK1Qz5idLBRDt0kdiZuLh0iA+mrtAChwR_-Pkw@mail.gmail.com</a>><br>
>> >> Content-Type: text/plain; charset="iso-8859-1"<br>
>> >><br>
>> >> Hi,<br>
>> >><br>
>> >> I'm implementing a VTK application for visualizing geometrical 3D<br>
>> objects.<br>
>> >> Most of the code is written in C++, and I use TCL-TK widgets for the<br>
>> GUI<br>
>> >> (I<br>
>> >> use *vtkTkRenderWidget* for the main canvas).<br>
>> >><br>
>> >> Most of my objects are *vtkVoxel* objects inserted into a *<br>
>> >> vtkUnstructuredGrid*.<br>
>> >><br>
>> >> I run this application on a Linux server and I connect to this server<br>
>> from<br>
>> >> Windows using VNC. I noticed that when I load a very large data set<br>
>> into<br>
>> >> the application then the *VNC server* (on the Linux machine) consumes a<br>
>> >> lot<br>
>> >> of memory and uses 100% CPU. I didn't realize that the memory and CPU<br>
>> >> usages of a VNC server would be affected so much like this.<br>
>> >><br>
>> >> Note that my VTK application is also consuming a lot of memory and<br>
>> CPU,<br>
>> >> but what I find strange is that the VNC server is also affected (the<br>
>> >> process is called *Xvnc_core*).<br>
>> >><br>
>> >> Does anyone know how this is caused and do you have any suggestion how<br>
>> to<br>
>> >> mitigate the problem?<br>
>> >><br>
>> >> Regards,<br>
>> >> Haroon<br>
>> >> -------------- next part --------------<br>
>> >> An HTML attachment was scrubbed...<br>
>> >> URL: <<br>
>> >><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/621fefc2/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/621fefc2/attachment-0001.htm</a><br>
>> >> ><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 13<br>
>> >> Date: Tue, 9 Jul 2013 07:25:46 -0700 (PDT)<br>
>> >> From: Massinissa Bandou <Massinissa.Bandou@USherbrooke.ca><br>
>> >> Subject: [vtkusers] .RAW file<br>
>> >> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> >> Message-ID: <<a href="mailto:1373379946181-5721842.post@n5.nabble.com">1373379946181-5721842.post@n5.nabble.com</a>><br>
>> >> Content-Type: text/plain; charset=us-ascii<br>
>> >><br>
>> >> Hello everyone,<br>
>> >><br>
>> >> I tried to read a (.raw) file with the following code but it displays a<br>
>> >> RED<br>
>> >> CUBE. Here is some information about my file dataInfo.txt<br>
>> >> <<a href="http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt</a>> . Is<br>
>> there<br>
>> >> something wrong in my code?<br>
>> >><br>
>> >> thx for your time and help!<br>
>> >><br>
>> >> sorry my file is too large to be send.<br>
>> >><br>
>> >> #include <vtkSmartPointer.h><br>
>> >> #include <vtkRenderWindow.h><br>
>> >> #include <vtkRenderWindowInteractor.h><br>
>> >> #include <vtkRenderer.h><br>
>> >> #include <vtkActor><br>
>> >> #include <vtkImageReader><br>
>> >> #include <vtkDataSetMapper><br>
>> >><br>
>> >> int main(int argc, char *argv[])<br>
>> >> {<br>
>> >> vtkImageReader *reader = vtkImageReader::New();<br>
>> >> reader->SetFileName(file.c_str());<br>
>> >> reader->SetFileDimensionality(3);<br>
>> >> reader->SetNumberOfScalarComponents(1);<br>
>> >> reader->SetDataExtent(0,512,0,512,0,512);<br>
>> >> reader->SetDataSpacing(0.145, 0.145, 0.145);<br>
>> >> reader->SetDataByteOrderToBigEndian();<br>
>> >> reader->SetDataScalarTypeToChar();<br>
>> >> reader->Update();<br>
>> >><br>
>> >> vtkSmartPointer<vtkDataSetMapper> map =<br>
>> >> vtkSmartPointer<vtkDataSetMapper>::New();<br>
>> >> map->SetInputConnection(reader->GetOutputPort());<br>
>> >><br>
>> >><br>
>> >> vtkSmartPointer<vtkActor> actor =<br>
>> >> vtkSmartPointer<vtkActor>::New();<br>
>> >> actor->SetMapper(map);<br>
>> >><br>
>> >> vtkSmartPointer<vtkRenderWindowInteractor> interactor =<br>
>> >> vtkSmartPointer<vtkRenderWindowInteractor>::New();<br>
>> >><br>
>> >> vtkSmartPointer<vtkRenderWindow> renderWindow =<br>
>> >> vtkSmartPointer<vtkRenderWindow>::New();<br>
>> >> interactor->SetRenderWindow(renderWindow);<br>
>> >> vtkSmartPointer<vtkRenderer> renderer =<br>
>> >> vtkSmartPointer<vtkRenderer>::New();<br>
>> >> renderWindow->AddRenderer(renderer);<br>
>> >> renderer->AddActor(actor);<br>
>> >><br>
>> >> renderWindow->Render();<br>
>> >> interactor->Start();<br>
>> >> }<br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> View this message in context:<br>
>> >> <a href="http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html" target="_blank">http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html</a><br>
>> >> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> >><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 14<br>
>> >> Date: Tue, 9 Jul 2013 11:38:50 -0400<br>
>> >> From: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> >> Subject: Re: [vtkusers] .RAW file<br>
>> >> To: Massinissa Bandou <<a href="mailto:Massinissa.Bandou@usherbrooke.ca">Massinissa.Bandou@usherbrooke.ca</a>><br>
>> >> Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
>> >> Message-ID:<br>
>> >> <<br>
>> >> <a href="mailto:CADZJ4hNXVuS_7L9ocCzex3XHpqyg5dpdKJ2NmxfQn_DnaSDp_Q@mail.gmail.com">CADZJ4hNXVuS_7L9ocCzex3XHpqyg5dpdKJ2NmxfQn_DnaSDp_Q@mail.gmail.com</a>><br>
>> >> Content-Type: text/plain; charset="iso-8859-1"<br>
>> >><br>
>> >> If your data is 512x512x512 then<br>
>> >> reader->SetDataExtent(0,512,0,512,0,512);<br>
>> >> should be:<br>
>> >> reader->SetDataExtent(0,511,0,511,0,511);<br>
>> >><br>
>> >> Also be certain you are setting the correct endianness.<br>
>> >><br>
>> >><br>
>> >> On Tue, Jul 9, 2013 at 10:25 AM, Massinissa Bandou <<br>
>> >> <a href="mailto:Massinissa.Bandou@usherbrooke.ca">Massinissa.Bandou@usherbrooke.ca</a>> wrote:<br>
>> >><br>
>> >> > Hello everyone,<br>
>> >> ><br>
>> >> > I tried to read a (.raw) file with the following code but it<br>
>> displays a<br>
>> >> RED<br>
>> >> > CUBE. Here is some information about my file dataInfo.txt<br>
>> >> > <<a href="http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt</a>> . Is<br>
>> >> there<br>
>> >> > something wrong in my code?<br>
>> >> ><br>
>> >> > thx for your time and help!<br>
>> >> ><br>
>> >> > sorry my file is too large to be send.<br>
>> >> ><br>
>> >> > #include <vtkSmartPointer.h><br>
>> >> > #include <vtkRenderWindow.h><br>
>> >> > #include <vtkRenderWindowInteractor.h><br>
>> >> > #include <vtkRenderer.h><br>
>> >> > #include <vtkActor><br>
>> >> > #include <vtkImageReader><br>
>> >> > #include <vtkDataSetMapper><br>
>> >> ><br>
>> >> > int main(int argc, char *argv[])<br>
>> >> > {<br>
>> >> > vtkImageReader *reader = vtkImageReader::New();<br>
>> >> > reader->SetFileName(file.c_str());<br>
>> >> > reader->SetFileDimensionality(3);<br>
>> >> > reader->SetNumberOfScalarComponents(1);<br>
>> >> > reader->SetDataExtent(0,512,0,512,0,512);<br>
>> >> > reader->SetDataSpacing(0.145, 0.145, 0.145);<br>
>> >> > reader->SetDataByteOrderToBigEndian();<br>
>> >> > reader->SetDataScalarTypeToChar();<br>
>> >> > reader->Update();<br>
>> >> ><br>
>> >> > vtkSmartPointer<vtkDataSetMapper> map =<br>
>> >> > vtkSmartPointer<vtkDataSetMapper>::New();<br>
>> >> > map->SetInputConnection(reader->GetOutputPort());<br>
>> >> ><br>
>> >> ><br>
>> >> > vtkSmartPointer<vtkActor> actor =<br>
>> >> vtkSmartPointer<vtkActor>::New();<br>
>> >> > actor->SetMapper(map);<br>
>> >> ><br>
>> >> > vtkSmartPointer<vtkRenderWindowInteractor> interactor =<br>
>> >> > vtkSmartPointer<vtkRenderWindowInteractor>::New();<br>
>> >> ><br>
>> >> > vtkSmartPointer<vtkRenderWindow> renderWindow =<br>
>> >> > vtkSmartPointer<vtkRenderWindow>::New();<br>
>> >> > interactor->SetRenderWindow(renderWindow);<br>
>> >> > vtkSmartPointer<vtkRenderer> renderer =<br>
>> >> > vtkSmartPointer<vtkRenderer>::New();<br>
>> >> > renderWindow->AddRenderer(renderer);<br>
>> >> > renderer->AddActor(actor);<br>
>> >> ><br>
>> >> > renderWindow->Render();<br>
>> >> > interactor->Start();<br>
>> >> > }<br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > --<br>
>> >> > View this message in context:<br>
>> >> > <a href="http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html" target="_blank">http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html</a><br>
>> >> > Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> >> > _______________________________________________<br>
>> >> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >> ><br>
>> >> > Visit other Kitware open-source projects at<br>
>> >> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >> ><br>
>> >> > Please keep messages on-topic and check the VTK FAQ at:<br>
>> >> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> >> ><br>
>> >> > Follow this link to subscribe/unsubscribe:<br>
>> >> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> >> ><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Unpaid intern in BillsBasement at noware dot com<br>
>> >> -------------- next part --------------<br>
>> >> An HTML attachment was scrubbed...<br>
>> >> URL: <<br>
>> >><br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/b188c2b1/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/b188c2b1/attachment-0001.htm</a><br>
>> >> ><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> Message: 15<br>
>> >> Date: Tue, 9 Jul 2013 08:46:33 -0700 (PDT)<br>
>> >> From: Ruff <<a href="mailto:albin.nilsson@gmail.com">albin.nilsson@gmail.com</a>><br>
>> >> Subject: [vtkusers] My point cloud data won't display in the renderer.<br>
>> >> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> >> Message-ID: <<a href="mailto:1373384793963-5721844.post@n5.nabble.com">1373384793963-5721844.post@n5.nabble.com</a>><br>
>> >> Content-Type: text/plain; charset=us-ascii<br>
>> >><br>
>> >> All i get is an empty renderWindow. I get no errors, but no data is<br>
>> >> rendered<br>
>> >> either. What am I doing wrong?<br>
>> >><br>
>> >> What I do is pretty much this:<br>
>> >><br>
>> >> AtomGrid=vtk.vtkUnstructuredGrid()<br>
>> >> AtomGrid.SetPoints( vtkPoints with [index,x,y,z] )<br>
>> >> AtomGrid.GetPointData().SetScalars( vtkFloatArray with [index,<br>
>> scalar]<br>
>> >> )<br>
>> >><br>
>> >> volMapper = vtk.vtkUnstructuredGridVolumeRayCastMapper()<br>
>> >> volMapper.SetBlendModeToComposite()<br>
>> >> volMapper.SetInput(AtomGrid)<br>
>> >><br>
>> >><br>
>> >> I tried volMapper.SetScalarModeToUsePointFieldData(), but then it<br>
>> claims<br>
>> >> that I have no scalar values to use(!!)<br>
>> >><br>
>> >> (I cheated before, and was satisfied using ImageData for this, but now<br>
>> I<br>
>> >> really need to get this to work with UnstructuredGrid)<br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> View this message in context:<br>
>> >><br>
>> <a href="http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html</a><br>
>> >> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> >><br>
>> >><br>
>> >> ------------------------------<br>
>> >><br>
>> >> _______________________________________________<br>
>> >> vtkusers mailing list<br>
>> >> <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> >> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> >><br>
>> >><br>
>> >> End of vtkusers Digest, Vol 111, Issue 16<br>
>> >> *****************************************<br>
>> >><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > *Best Regards<br>
>> > Rahul Indoria<br>
>> > Mobile No: +49-157-35652212*<br>
>> ><br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Please keep messages on-topic and check the VTK FAQ at:<br>
>> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> ><br>
>> ><br>
>><br>
>><br>
>> --<br>
>> Unpaid intern in BillsBasement at noware dot com<br>
>> -------------- next part --------------<br>
>> An HTML attachment was scrubbed...<br>
>> URL: <<br>
>> <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/e6f9bcc4/attachment.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/e6f9bcc4/attachment.htm</a><br>
>> ><br>
>><br>
>> ------------------------------<br>
>><br>
>> _______________________________________________<br>
>> vtkusers mailing list<br>
>> <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>><br>
>><br>
>> End of vtkusers Digest, Vol 111, Issue 17<br>
>> *****************************************<br>
>><br>
><br>
><br>
><br>
> --<br>
> *Best Regards<br>
> Rahul Indoria<br>
> Mobile No: +49-157-35652212*<br>
><br>
<br>
<br>
<br>
--<br>
*Best Regards<br>
Rahul Indoria<br>
Mobile No: +49-157-35652212*<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130711/e0ea122d/attachment.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130711/e0ea122d/attachment.htm</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
vtkusers mailing list<br>
<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
End of vtkusers Digest, Vol 111, Issue 20<br>
*****************************************<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(0,0,255)"><b>Best Regards<br>Rahul Indoria<br>Mobile No: +49-157-35652212</b></span><br></div>
</div></div></div>