From wulihouxiaoshuai at 163.com Mon Jun 1 03:33:56 2015 From: wulihouxiaoshuai at 163.com (Emptystack) Date: Mon, 1 Jun 2015 00:33:56 -0700 (MST) Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver Message-ID: <1433144036658-5732070.post@n5.nabble.com> Hello everyone, I have write a dynamic web project based on Browser/Server architecture. On the server side, I using the vtkFixedPointVolumeRaycastMapper(software raycaster on the CPU) and vtkGPUVolumeRaycastMapper(performs ray casting on the GPU) to implement the rendering pipeline. The vtkFixedPointVolumeRaycastMapper works well when the client's request arrives. But when I using the vtkGPUVolumeRaycastMapper , something unspected happended: When I send the first request (from our developed HTML5 web-based medical image viewer) to the web server, everything works well and we can also get the rendering image. But when I send a request(such as rotate) to the web server again, my web server stopped. In a word, In a java servlet environment, the first request to this method works very well, but the second request failed. The GPU accelerated mode cannot worked in the web server, I dont't know why this happened? Have anyone can give me some advice? Many thanks! -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070.html Sent from the VTK - Users mailing list archive at Nabble.com. From sebastien.jourdain at kitware.com Mon Jun 1 08:32:52 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 1 Jun 2015 14:32:52 +0200 Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: <1433144036658-5732070.post@n5.nabble.com> References: <1433144036658-5732070.post@n5.nabble.com> Message-ID: Did you try to use VTK-Web? I suspect some concurrency issue that make the server crash with Java. Seb On Mon, Jun 1, 2015 at 9:33 AM, Emptystack wrote: > Hello everyone, > > I have write a dynamic web project based on Browser/Server architecture. On > the server side, I using the vtkFixedPointVolumeRaycastMapper(software > raycaster on the CPU) and vtkGPUVolumeRaycastMapper(performs ray casting on > the GPU) to implement the rendering pipeline. The > vtkFixedPointVolumeRaycastMapper works well when the client's request > arrives. But when I using the vtkGPUVolumeRaycastMapper , something > unspected happended: When I send the first request (from our developed > HTML5 > web-based medical image viewer) to the web server, everything works well > and > we can also get the rendering image. But when I send a request(such as > rotate) to the web server again, my web server stopped. In a word, In a > java > servlet environment, the first request to this method works very well, but > the second request failed. > > The GPU accelerated mode cannot worked in the web server, I dont't know why > this happened? Have anyone can give me some advice? > > Many thanks! > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Duperthuy at bioclinica.com Mon Jun 1 08:35:01 2015 From: Christophe.Duperthuy at bioclinica.com (Christophe DUPERTHUY) Date: Mon, 1 Jun 2015 05:35:01 -0700 (MST) Subject: [vtkusers] ActiViz 5.8.0 recurring random AccessViolationException In-Reply-To: <1414551576904-5729273.post@n5.nabble.com> References: <1414551576904-5729273.post@n5.nabble.com> Message-ID: <1433162101874-5732072.post@n5.nabble.com> Sorry for the late follow up on this one. That means at least that current solution holds. In terms of solution, we have not identified any clear issue in our code or way of using VTK. There seemed to be a latent concern on the way objects were de-allocated in the C# wrapping within a multi-threaded application. Such concern appears to be fixed with VTK-6.2.0 (we worked with Kitware from 6.1 to get some in house fixes integrated and these came out with VTK 6.2). As of now, the code we published in this thread was fixed with the new VTK version. We had of course to migrate our code from 5.8 to 6.2, with associated non regression tests and pending fixes; in the end, the impact has rather been limited and we were able to deliver a new version to production in a reasonable time frame. With the satisfaction of getting rid of those "random" crashes of course! -- View this message in context: http://vtk.1045678.n5.nabble.com/ActiViz-5-8-0-recurring-random-AccessViolationException-tp5728668p5732072.html Sent from the VTK - Users mailing list archive at Nabble.com. From wulihouxiaoshuai at 163.com Mon Jun 1 08:38:50 2015 From: wulihouxiaoshuai at 163.com (Emptystack) Date: Mon, 1 Jun 2015 05:38:50 -0700 (MST) Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: References: <1433144036658-5732070.post@n5.nabble.com> Message-ID: <1433162330783-5732074.post@n5.nabble.com> Hi Seb! I don't know much about the VTK-web. It seemly that the VTK-web need the WebGL to render on the client side. Is there some demo or example on the internet to display how to use the VTK-web? Many thanks! -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732074.html Sent from the VTK - Users mailing list archive at Nabble.com. From sebastien.jourdain at kitware.com Mon Jun 1 08:44:02 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 1 Jun 2015 14:44:02 +0200 Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: <1433162330783-5732074.post@n5.nabble.com> References: <1433144036658-5732070.post@n5.nabble.com> <1433162330783-5732074.post@n5.nabble.com> Message-ID: VTK-Web and ParaViewWeb support both image delivery and geometry (WebGL). Unfortunately most of the documentation is on ParaViewWeb but should apply to VTK as well (~mostly ;-). http://pvw.kitware.com I'm not going to be very responsive, since I'm in vacation in Europe, but you never know... Seb On Mon, Jun 1, 2015 at 2:38 PM, Emptystack wrote: > Hi Seb! > I don't know much about the VTK-web. It seemly that the VTK-web need > the WebGL to render on the client side. Is there some demo or example on > the > internet to display how to use the VTK-web? > > Many thanks! > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732074.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Mon Jun 1 08:46:06 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 1 Jun 2015 14:46:06 +0200 Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: References: <1433144036658-5732070.post@n5.nabble.com> <1433162330783-5732074.post@n5.nabble.com> Message-ID: The latest (auto-generated) documentation is available here: http://www.paraview.org/ParaView/Doc/Nightly/www/js-doc/index.html On Mon, Jun 1, 2015 at 2:44 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > VTK-Web and ParaViewWeb support both image delivery and geometry (WebGL). > > Unfortunately most of the documentation is on ParaViewWeb but should apply > to VTK as well (~mostly ;-). > > http://pvw.kitware.com > > I'm not going to be very responsive, since I'm in vacation in Europe, but > you never know... > > Seb > > On Mon, Jun 1, 2015 at 2:38 PM, Emptystack > wrote: > >> Hi Seb! >> I don't know much about the VTK-web. It seemly that the VTK-web need >> the WebGL to render on the client side. Is there some demo or example on >> the >> internet to display how to use the VTK-web? >> >> Many thanks! >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732074.html >> Sent from the VTK - Users mailing list archive at Nabble.com. >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at sumost.ca Mon Jun 1 09:39:24 2015 From: steve at sumost.ca (Steve M. Robbins) Date: Mon, 01 Jun 2015 08:39:24 -0500 Subject: [vtkusers] ActiViz 5.8.0 recurring random AccessViolationException In-Reply-To: <1433162101874-5732072.post@n5.nabble.com> References: <1414551576904-5729273.post@n5.nabble.com> <1433162101874-5732072.post@n5.nabble.com> Message-ID: <28103731.tbIjOqmy7H@riemann> On June 1, 2015 05:35:01 AM Christophe DUPERTHUY wrote: > There seemed to be a latent concern on the way objects were de-allocated in > the C# wrapping within a multi-threaded application. I'm having similar trouble with a C# application using mummy-wrapped VTK 5.8. The VTK part of the application essentially shows a robot manipulator (polydata surfaces) that we update with current joint positions to show the current configuration. That part worked well for months. Recently, I modified it to dynamically change the colour of some of the surfaces and we now experience memory corruption on the C++ side. It turns out that simply using VtkActor.GetProperty() [the actor is a vtkOpenGLActor] is enough to cause the crash -- even if I don't actually use the property to change the colour or anything else. So the problem appears to be triggered by creating and destroying a large number of C# VtkProperty objects. It's been tough to track down because the crash takes hours to days to appear. Surprisingly, adding the memory pressure thread from Christophe's September post did not make it crash more frequently. > Such concern appears to be fixed with VTK-6.2.0 (we worked with Kitware from > 6.1 to get some in house fixes integrated and these came out with VTK 6.2). > As of now, the code we published in this thread was fixed with the new VTK > version. It would be great to upgrade to VTK 6.2! But I thought that the mummy code doesn't work for anything past 5.8? What are you using for wrapping? Thanks, -Steve -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 811 bytes Desc: This is a digitally signed message part. URL: From aashish.chaudhary at kitware.com Mon Jun 1 09:48:58 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Mon, 1 Jun 2015 09:48:58 -0400 Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: References: <1433144036658-5732070.post@n5.nabble.com> <1433162330783-5732074.post@n5.nabble.com> Message-ID: Hi there, We have no report so far that suggests that the GPU accelerated mode cannot worked in the web server. Also, code wise, there is nothing preventing you to use GPU mapper. It could be a threading or locking issue with dealing with GPU. Can you run volume mapper in standalone mode without any trouble? Thanks, - Aashish On Mon, Jun 1, 2015 at 8:46 AM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > The latest (auto-generated) documentation is available here: > > http://www.paraview.org/ParaView/Doc/Nightly/www/js-doc/index.html > > > > On Mon, Jun 1, 2015 at 2:44 PM, Sebastien Jourdain < > sebastien.jourdain at kitware.com> wrote: > >> VTK-Web and ParaViewWeb support both image delivery and geometry (WebGL). >> >> Unfortunately most of the documentation is on ParaViewWeb but should >> apply to VTK as well (~mostly ;-). >> >> http://pvw.kitware.com >> >> I'm not going to be very responsive, since I'm in vacation in Europe, but >> you never know... >> >> Seb >> >> On Mon, Jun 1, 2015 at 2:38 PM, Emptystack >> wrote: >> >>> Hi Seb! >>> I don't know much about the VTK-web. It seemly that the VTK-web need >>> the WebGL to render on the client side. Is there some demo or example on >>> the >>> internet to display how to use the VTK-web? >>> >>> Many thanks! >>> >>> >>> >>> -- >>> View this message in context: >>> http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732074.html >>> Sent from the VTK - Users mailing list archive at Nabble.com. >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From wulihouxiaoshuai at 163.com Mon Jun 1 09:58:19 2015 From: wulihouxiaoshuai at 163.com (Emptystack) Date: Mon, 1 Jun 2015 06:58:19 -0700 (MST) Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: References: <1433144036658-5732070.post@n5.nabble.com> <1433162330783-5732074.post@n5.nabble.com> Message-ID: <1433167099528-5732080.post@n5.nabble.com> Yes, I can run the vtkGPUVolumeRaycastMapper outside the webserver. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732080.html Sent from the VTK - Users mailing list archive at Nabble.com. From wulihouxiaoshuai at 163.com Mon Jun 1 09:59:51 2015 From: wulihouxiaoshuai at 163.com (Emptystack) Date: Mon, 1 Jun 2015 06:59:51 -0700 (MST) Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: References: <1433144036658-5732070.post@n5.nabble.com> <1433162330783-5732074.post@n5.nabble.com> Message-ID: <1433167191414-5732081.post@n5.nabble.com> Can you give me some advices to solve the threading or locking issue with related to GPU? -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732081.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Mon Jun 1 10:01:33 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Mon, 1 Jun 2015 10:01:33 -0400 Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: <1433167099528-5732080.post@n5.nabble.com> References: <1433144036658-5732070.post@n5.nabble.com> <1433162330783-5732074.post@n5.nabble.com> <1433167099528-5732080.post@n5.nabble.com> Message-ID: Great. Then it is a web-server - backend communication issue. I would suggest you use VTKWeb. - Aashish On Mon, Jun 1, 2015 at 9:58 AM, Emptystack wrote: > Yes, I can run the vtkGPUVolumeRaycastMapper outside the webserver. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732080.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Mon Jun 1 10:05:16 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Mon, 1 Jun 2015 10:05:16 -0400 Subject: [vtkusers] Volume Rendering Update In-Reply-To: References: Message-ID: On Sat, May 30, 2015 at 4:59 PM, Mike Guttman wrote: > Hello Aashish, > > It seems you cannot enable ExternalVTKWidget with OpenGL2. Any idea when > this combination will be supported? > What SHA of git you are using? > > Thanks, > Mike > > *From: *Aashish Chaudhary > *To: *vtkusers , VTK Developers > *Date: *May 29, 2015 at 5:31:34 PM EDT > *Subject: **[vtkusers] Volume Rendering Update* > > > Folks, > > We made some recent improvements to VTK volume rendering including fixes > to related components. Here is a list of those changes: > > 1) Now new GPU Volume Mapper respect Interpolation Type (Linear or > Nearest). Default is Nearest as in the last GPU mapper. > > 2) Shading is now twice as fast as before. There will be another branch to > make it even faster. > > 3) Fixed lighting bug (number of lights kept on increasing with change in > volume property) > > 4) Saving and Restoring GL state properly for textures > > 5) Bias and Scale are now performed in Shader. > > 6) We changed some GL texture format information to support OpenGL 3 > context > > 7) Fixed extensions were not reported correctly on GL2 context > > 8) Fixed few failing tests specifically on Mesa > > 9) Removed VolumeOpenGLNew module as it was not as usable with OpenGL2 > getting ready for primetime > > 10) Added convenience API to SmartVolume Mapper > > 11) Cleaned up logic for dealing with context changes in Volume Mapper > > > Please let us know if you have any questions. > > Thanks, > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From wulihouxiaoshuai at 163.com Mon Jun 1 10:09:54 2015 From: wulihouxiaoshuai at 163.com (Emptystack) Date: Mon, 1 Jun 2015 07:09:54 -0700 (MST) Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: References: <1433144036658-5732070.post@n5.nabble.com> <1433162330783-5732074.post@n5.nabble.com> <1433167099528-5732080.post@n5.nabble.com> Message-ID: <1433167794554-5732084.post@n5.nabble.com> I cannot find much information about VTK-web on the internet! I wonder to know whether the VTK-web need the paraview? Or I just need to build the VTK-web then I can run the VTK-web examples? And I also want to know which version of the VTK supports the VTK-web? Many thanks! -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732084.html Sent from the VTK - Users mailing list archive at Nabble.com. From scott.wittenburg at kitware.com Mon Jun 1 11:45:51 2015 From: scott.wittenburg at kitware.com (Scott Wittenburg) Date: Mon, 1 Jun 2015 09:45:51 -0600 Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: <1433167794554-5732084.post@n5.nabble.com> References: <1433144036658-5732070.post@n5.nabble.com> <1433162330783-5732074.post@n5.nabble.com> <1433167099528-5732080.post@n5.nabble.com> <1433167794554-5732084.post@n5.nabble.com> Message-ID: You shouldn't need paraview in order to run the vtkweb examples, but it also won't hurt anything if you have built it already. I'm not exactly sure when vtkweb was introduced, but it has been there for over a year and half, so any fairly recent version should work. Cheers, Scott On Mon, Jun 1, 2015 at 8:09 AM, Emptystack wrote: > I cannot find much information about VTK-web on the internet! I wonder to > know whether the VTK-web need the paraview? Or I just need to build the > VTK-web then I can run the VTK-web examples? And I also want to know which > version of the VTK supports the VTK-web? > > Many thanks! > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732084.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Duperthuy at bioclinica.com Mon Jun 1 11:52:27 2015 From: Christophe.Duperthuy at bioclinica.com (Christophe DUPERTHUY) Date: Mon, 1 Jun 2015 08:52:27 -0700 (MST) Subject: [vtkusers] ActiViz 5.8.0 recurring random AccessViolationException In-Reply-To: <28103731.tbIjOqmy7H@riemann> References: <1414551576904-5729273.post@n5.nabble.com> <1433162101874-5732072.post@n5.nabble.com> <28103731.tbIjOqmy7H@riemann> Message-ID: <1433173947312-5732088.post@n5.nabble.com> So we got the mummy wrapped Dlls for 6.2 directly from Kitware: you may get in touch with them to discuss your issue and possibly see what can be done to this regard. Cheers. /chris -- View this message in context: http://vtk.1045678.n5.nabble.com/ActiViz-5-8-0-recurring-random-AccessViolationException-tp5728668p5732088.html Sent from the VTK - Users mailing list archive at Nabble.com. From dave.demarle at kitware.com Mon Jun 1 12:02:18 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Mon, 1 Jun 2015 12:02:18 -0400 Subject: [vtkusers] IEEE Supercomputing 2015 - Kitware wants your images and videos! Message-ID: Greetings VTK and ParaView communities, We at Kitware are searching for interesting images and videos to show in our booth at this year's Supercomputing conference . For a sample of what we demonstrated before, check out 2013 and 2014 highlights. In conjunction with SC15, and again with your permission, we would also like to add your visualizations to the galleries on paraview.org or vtk.org. So, if you've made some great looking visualizations recently with VTK and ParaView, are able to share them, and want us to show them off, please send me an email so I can discuss the details with you in person. Videos should ideally be 1920x1080 pixels for HD display, and still visualizations should be 150ppi when scaled to 100%. For the attribution, we will need at a minimum your name, a title or brief caption, and the acknowledgement as you would like it to appear. Finally, if you happen to be going to the conference and would like a forum to present your work at, please let me know so we can schedule your presentation in our booth. thanks, and I hope to see many of you at SuperComputing! David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Mon Jun 1 13:14:14 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Mon, 1 Jun 2015 13:14:14 -0400 Subject: [vtkusers] VTK 6 Migration - GetProducerPort in SetNthInputConnection replacement In-Reply-To: References: Message-ID: Is this call supposed make a pipeline connection? Note that SetNthInputConnection() makes a pipeline connection whereas SetInputData() and variants do not. Once you figure it out, if SetInputData() is still good, I can share a way of doing what you want. If not, this code will have to be refactored. You can simply pass data objects if you want to connect pipelines anymore. Best, -berk On Fri, May 29, 2015 at 9:47 AM, Nicole Kovacs wrote: > Hi guys, > > > I apologize if this is a basic question, I'm new to VTK and I'm trying > to port some VTK code from version 5.x to version 6.x > > > I'm facing various errors regarding GetProducerPort's removal from > vtkDataObject. I know that I should be replacing > someAlgorithm->SetInputConnection(someDataObject->GetProducerPort()); > by someAlgorithm->SetInputData(someDataObject); > > > but the code I have is a bit different, such as: > someAlgorithm->SetNthInputConnection(port, index, > someDataObject->GetProducerPort()); > > > I thought about looking for some SetNthInputData method that takes as > arguments a port and an index and could solve my problem, but haven't found > anything that useful. I did find a method called SetInputDataObject(int > port, vtkDataObject *data) that has the port, but not the index. > > > Is there a way that I can port this part of my code? Is there a reason > that SetInputData methods don't have indices as arguments? > > > I have talked to the author of the code I'm porting and I know that in > some cases I don't need to specify the port, only the input index. Is there > a method that does that? > > > Thank you for your attention! > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Mon Jun 1 13:15:47 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Mon, 1 Jun 2015 13:15:47 -0400 Subject: [vtkusers] MPI application writing PVTI In-Reply-To: <55675C6F.3070204@bsc.es> References: <55675C6F.3070204@bsc.es> Message-ID: The easiest thing is to use vtkXMLPImageDataWriter in parallel to write an example and then to follow that template. Best, -berk On Thu, May 28, 2015 at 2:20 PM, Alejandro Fern?ndez < alejandro.fernandez at bsc.es> wrote: > Hello everyone, > > I have a C++ MPI application that writes the results of a > domain-decomposed mesh in different VTI files. Each process writes its own > VTI file with the points corresponding to its domain. In order to group all > VTI files into a single 3D image in paraview, I want to produce a single > PVTI file using XMLPImageDataWriter. However, I have not found any example > and do not know how to achieve this result with just the raw class method > documentation. > > Please, can somebody provide me a C++ example or point me to the required > documentation? > > Thank you very much, your help will be much appreciated. > > -- > > Alejandro Fern?ndez Su?rez > Computer Science Dept. > K2M Building - Room 104 - (+34) 934 137 529 > Barcelona Supercomputing Center - CNS > www.bsc.es > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shawn.waldon at kitware.com Mon Jun 1 13:52:42 2015 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Mon, 1 Jun 2015 13:52:42 -0400 Subject: [vtkusers] MPI application writing PVTI In-Reply-To: References: <55675C6F.3070204@bsc.es> Message-ID: One of the key things to realize about the vtkXMLP*Writers is that the writer makes no assumptions when used in parallel. The P is for Piece not Parallel, so you have to tell it how many pieces total are being written. You also have to tell it the start and end piece numbers for each process (probably just the process id). Otherwise it defaults to one total piece and each process thinks it is writing piece 0 so the file gets clobbered when all the processes try to write it. See the vtkXMLPDataWriter documentation [1] for details on how to set these options. HTH, Shawn [1]: http://www.vtk.org/doc/nightly/html/classvtkXMLPDataWriter.html On Mon, Jun 1, 2015 at 1:15 PM, Berk Geveci wrote: > The easiest thing is to use vtkXMLPImageDataWriter in parallel to write an > example and then to follow that template. > > Best, > -berk > > On Thu, May 28, 2015 at 2:20 PM, Alejandro Fern?ndez < > alejandro.fernandez at bsc.es> wrote: > >> Hello everyone, >> >> I have a C++ MPI application that writes the results of a >> domain-decomposed mesh in different VTI files. Each process writes its own >> VTI file with the points corresponding to its domain. In order to group all >> VTI files into a single 3D image in paraview, I want to produce a single >> PVTI file using XMLPImageDataWriter. However, I have not found any example >> and do not know how to achieve this result with just the raw class method >> documentation. >> >> Please, can somebody provide me a C++ example or point me to the required >> documentation? >> >> Thank you very much, your help will be much appreciated. >> >> -- >> >> Alejandro Fern?ndez Su?rez >> Computer Science Dept. >> K2M Building - Room 104 - (+34) 934 137 529 >> Barcelona Supercomputing Center - CNS >> www.bsc.es >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Mon Jun 1 16:26:19 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Mon, 1 Jun 2015 16:26:19 -0400 Subject: [vtkusers] Volume Rendering Update In-Reply-To: <1276329673.2553350.1433170071073.JavaMail.yahoo@mail.yahoo.com> References: <1276329673.2553350.1433170071073.JavaMail.yahoo@mail.yahoo.com> Message-ID: On Mon, Jun 1, 2015 at 10:47 AM, Mike Guttman wrote: > Guess I wasn't tracking the permutations carefully. When backend is set > to OpenGL2, there's an error when I turn on > Module_vtkRenderingVolumeOpenGL. It seems okay with > Module_vtkRenderingExternal. > yes, you cannot use Module_vtkRenderingVolumeOpenGL with OpenGL2 as it was written for previous implementation. > > I use vtkOpenGLVolumeTextureMapper3D in my application. Perhaps this is > not available with OpenGL2 backend? > Yes, it is not. Since most of the platforms now support all of the features needed for Ray Casting (for OpenGL 2 version), we don't need this mapper anymore. > I believe this is not included with Module_vtkRenderingVolumeOpenGLNew. > Right. In current master, we remvoed that module as it was there to serve until we had a reasonable OpenGL2 mapper which we do now. Thanks, > > After your comment, I tried it again after pulling from the repo just now. > > Thanks, > Mike > > > > > > On Monday, June 1, 2015 10:05 AM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > > > On Sat, May 30, 2015 at 4:59 PM, Mike Guttman wrote: > > Hello Aashish, > > It seems you cannot enable ExternalVTKWidget with OpenGL2. Any idea when > this combination will be supported? > > > What SHA of git you are using? > > > Thanks, > Mike > > *From: *Aashish Chaudhary > *To: *vtkusers , VTK Developers > *Date: *May 29, 2015 at 5:31:34 PM EDT > *Subject: **[vtkusers] Volume Rendering Update* > > > Folks, > > We made some recent improvements to VTK volume rendering including fixes > to related components. Here is a list of those changes: > > 1) Now new GPU Volume Mapper respect Interpolation Type (Linear or > Nearest). Default is Nearest as in the last GPU mapper. > > 2) Shading is now twice as fast as before. There will be another branch to > make it even faster. > > 3) Fixed lighting bug (number of lights kept on increasing with change in > volume property) > > 4) Saving and Restoring GL state properly for textures > > 5) Bias and Scale are now performed in Shader. > > 6) We changed some GL texture format information to support OpenGL 3 > context > > 7) Fixed extensions were not reported correctly on GL2 context > > 8) Fixed few failing tests specifically on Mesa > > 9) Removed VolumeOpenGLNew module as it was not as usable with OpenGL2 > getting ready for primetime > > 10) Added convenience API to SmartVolume Mapper > > 11) Cleaned up logic for dealing with context changes in Volume Mapper > > > Please let us know if you have any questions. > > Thanks, > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Mon Jun 1 19:27:04 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Mon, 1 Jun 2015 19:27:04 -0400 Subject: [vtkusers] Volume Rendering Update In-Reply-To: References: <1276329673.2553350.1433170071073.JavaMail.yahoo@mail.yahoo.com> Message-ID: Hi Mike, On Mon, Jun 1, 2015 at 5:48 PM, Mike Guttman wrote: > Disappointing to hear that the current plan is to discontinue > vtkOpenGLVolumeTextureMapper3D. It was always a reliable tool and produced > good looking renderings with little tweaking. > Sorry to hear this. You can get same or better quality with GPUVolumeMapper. Most of the modern renderers use Ray Casting algorithm and for most part it is the most recent algorithm that gives most features, image quality, and performance. Have you tried using it? I would love to hear more on what you find out. > Perhaps this can be ported to work with the OpenGL2 backend? > There has to be a strong reason why we need to support it. We have FixedPoint (CPU) and RayCast (GPU). GPU Mapper now supports more features than CPU or any other mapper, flexibility (via custom shaders), and performance. In our testing, the new mapper out performs old mapper (w/o shading) and with my new branch it will out perform old mapper w/ shading. If you can identify reasons for vtkOpenGLVolumeTextureMapper3D, then we can see what we can on on our end. - aashish > > On Jun 1, 2015, at 4:26 PM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > > On Mon, Jun 1, 2015 at 10:47 AM, Mike Guttman wrote: > >> Guess I wasn't tracking the permutations carefully. When backend is set >> to OpenGL2, there's an error when I turn on >> Module_vtkRenderingVolumeOpenGL. It seems okay with >> Module_vtkRenderingExternal. >> > > yes, you cannot use Module_vtkRenderingVolumeOpenGL with OpenGL2 as it > was written for previous implementation. > >> >> I use vtkOpenGLVolumeTextureMapper3D in my application. Perhaps this is >> not available with OpenGL2 backend? >> > > Yes, it is not. Since most of the platforms now support all of the > features needed for Ray Casting (for OpenGL 2 version), we don't need this > mapper anymore. > > >> I believe this is not included with Module_vtkRenderingVolumeOpenGLNew. >> > > Right. In current master, we remvoed that module as it was there to serve > until we had a reasonable OpenGL2 mapper which we do now. > > Thanks, > > > > >> >> After your comment, I tried it again after pulling from the repo just now. >> >> Thanks, >> Mike >> >> >> >> >> >> On Monday, June 1, 2015 10:05 AM, Aashish Chaudhary < >> aashish.chaudhary at kitware.com> wrote: >> >> >> On Sat, May 30, 2015 at 4:59 PM, Mike Guttman wrote: >> >> Hello Aashish, >> >> It seems you cannot enable ExternalVTKWidget with OpenGL2. Any idea when >> this combination will be supported? >> >> >> What SHA of git you are using? >> >> >> Thanks, >> Mike >> >> *From: *Aashish Chaudhary >> *To: *vtkusers , VTK Developers > > >> *Date: *May 29, 2015 at 5:31:34 PM EDT >> *Subject: **[vtkusers] Volume Rendering Update* >> >> >> Folks, >> >> We made some recent improvements to VTK volume rendering including fixes >> to related components. Here is a list of those changes: >> >> 1) Now new GPU Volume Mapper respect Interpolation Type (Linear or >> Nearest). Default is Nearest as in the last GPU mapper. >> >> 2) Shading is now twice as fast as before. There will be another branch >> to make it even faster. >> >> 3) Fixed lighting bug (number of lights kept on increasing with change in >> volume property) >> >> 4) Saving and Restoring GL state properly for textures >> >> 5) Bias and Scale are now performed in Shader. >> >> 6) We changed some GL texture format information to support OpenGL 3 >> context >> >> 7) Fixed extensions were not reported correctly on GL2 context >> >> 8) Fixed few failing tests specifically on Mesa >> >> 9) Removed VolumeOpenGLNew module as it was not as usable with OpenGL2 >> getting ready for primetime >> >> 10) Added convenience API to SmartVolume Mapper >> >> 11) Cleaned up logic for dealing with context changes in Volume Mapper >> >> >> Please let us know if you have any questions. >> >> Thanks, >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> >> > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtkmatt at gmail.com Mon Jun 1 20:19:11 2015 From: vtkmatt at gmail.com (vtk matt) Date: Mon, 1 Jun 2015 17:19:11 -0700 Subject: [vtkusers] Fwd: Unsure how to use vtkDelaunay3D In-Reply-To: References: Message-ID: Hi David, Thanks for the clarification. I ran tets->GetOutput()->GetNumberOfElements(vtkDataObject::CELL) and got a value of 18 for my input which would make sense as the number of tetrahedrons. Do you know if I can expect these cells to in fact contain tetrahedrons then? --Matt On Wed, May 27, 2015 at 8:17 PM, David Gobbi wrote: > Hi Matt, > > You've been misled by VTK's rather terse documentation: > > Get the number of elements for a specific attribute type (POINT, CELL, > etc.). > > For a mesh, you can call GetNumberOfElements(vtkDataObject::POINT) or you > can call GetNumberOfElements(vtkDataObject::CELL). Those are the only two > choices. You can't ask for a particular type of cell, all you can do is > ask it to return the total number of cells. > > - David > > On Wed, May 27, 2015 at 5:41 PM, vtk matt wrote: > >> Hi all, >> >> I have spent the past few days trying to figure out how to use >> vtkDelaunay3D properly and decided I'd better seek out some help. My goal >> is relatively straight-forward: Given a set of points in 3D, generate a >> tetrahedral mesh, and use the results to determine which tetrahedron >> contains an arbitrary point. >> >> In its simplest form I am doing the following: >> >> vtkSmartPointer tets = >> vtkSmartPointer::New(); >> tets->SetInput(points); >> tets->Update(); >> printf("Number of tets: %d\n", >> tets->GetOutput()->GetNumberOfElements(VTK_TETRA)); >> >> The output claims there are zero tetrahedrons. However if I render an >> actor from tets->GetOutput(), I am able to visualize a wireframe surface >> mesh, so I know it's doing something. >> >> So I guess my questions are the following: Why does the output not >> contain any tetrahedrons? Why does the mesh only show surface triangles? >> Ultimately what is the proper way to construct a tetrahedral mesh such that >> I can query which tetrahedron contains an arbitrary point? >> >> Thanks. >> >> --Matt >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mguttman at yahoo.com Mon Jun 1 20:19:18 2015 From: mguttman at yahoo.com (Mike Guttman) Date: Mon, 1 Jun 2015 20:19:18 -0400 Subject: [vtkusers] Volume Rendering Update In-Reply-To: References: <1276329673.2553350.1433170071073.JavaMail.yahoo@mail.yahoo.com> Message-ID: <186C8CD6-B9E8-4AD7-8328-54E251E89919@yahoo.com> Ok, this old dog will attempt to bid a tearful goodbye to another old dog, and perhaps learn some new tricks. Mike Guttman Sent from my 'smart' phone > On Jun 1, 2015, at 7:27 PM, Aashish Chaudhary wrote: > > Hi Mike, > >> On Mon, Jun 1, 2015 at 5:48 PM, Mike Guttman wrote: > >> Disappointing to hear that the current plan is to discontinue vtkOpenGLVolumeTextureMapper3D. It was always a reliable tool and produced good looking renderings with little tweaking. > > Sorry to hear this. You can get same or better quality with GPUVolumeMapper. Most of the modern renderers use Ray Casting algorithm and for most part it is the most recent algorithm that gives most features, image quality, and performance. Have you tried using it? I would love to hear more on what you find out. > >> Perhaps this can be ported to work with the OpenGL2 backend? > > There has to be a strong reason why we need to support it. We have FixedPoint (CPU) and RayCast (GPU). GPU Mapper now supports more features than CPU or any other mapper, flexibility (via custom shaders), and performance. In our testing, the new mapper out performs old mapper (w/o shading) and with my new branch it will out perform old mapper w/ shading. If you can identify reasons for vtkOpenGLVolumeTextureMapper3D, then we can see what we can on on our end. > > - aashish > >> >>> On Jun 1, 2015, at 4:26 PM, Aashish Chaudhary wrote: >>> >>>> On Mon, Jun 1, 2015 at 10:47 AM, Mike Guttman wrote: >>>> Guess I wasn't tracking the permutations carefully. When backend is set to OpenGL2, there's an error when I turn on Module_vtkRenderingVolumeOpenGL. It seems okay with Module_vtkRenderingExternal. >>> >>> yes, you cannot use Module_vtkRenderingVolumeOpenGL with OpenGL2 as it was written for previous implementation. >>>> >>>> I use vtkOpenGLVolumeTextureMapper3D in my application. Perhaps this is not available with OpenGL2 backend? >>> >>> Yes, it is not. Since most of the platforms now support all of the features needed for Ray Casting (for OpenGL 2 version), we don't need this mapper anymore. >>> >>>> I believe this is not included with Module_vtkRenderingVolumeOpenGLNew. >>> >>> Right. In current master, we remvoed that module as it was there to serve until we had a reasonable OpenGL2 mapper which we do now. >>> >>> Thanks, >>> >>> >>> >>>> >>>> After your comment, I tried it again after pulling from the repo just now. >>>> >>>> Thanks, >>>> Mike >>>> >>>> >>>> >>>> >>>> >>>> On Monday, June 1, 2015 10:05 AM, Aashish Chaudhary wrote: >>>> >>>> >>>> On Sat, May 30, 2015 at 4:59 PM, Mike Guttman wrote: >>>> Hello Aashish, >>>> >>>> It seems you cannot enable ExternalVTKWidget with OpenGL2. Any idea when this combination will be supported? >>>> >>>> What SHA of git you are using? >>>> >>>> Thanks, >>>> Mike >>>> >>>>> From: Aashish Chaudhary >>>>> To: vtkusers , VTK Developers >>>>> Date: May 29, 2015 at 5:31:34 PM EDT >>>>> Subject: [vtkusers] Volume Rendering Update >>>>> >>>>> >>>>> Folks, >>>>> >>>>> We made some recent improvements to VTK volume rendering including fixes to related components. Here is a list of those changes: >>>>> >>>>> 1) Now new GPU Volume Mapper respect Interpolation Type (Linear or Nearest). Default is Nearest as in the last GPU mapper. >>>>> >>>>> 2) Shading is now twice as fast as before. There will be another branch to make it even faster. >>>>> >>>>> 3) Fixed lighting bug (number of lights kept on increasing with change in volume property) >>>>> >>>>> 4) Saving and Restoring GL state properly for textures >>>>> >>>>> 5) Bias and Scale are now performed in Shader. >>>>> >>>>> 6) We changed some GL texture format information to support OpenGL 3 context >>>>> >>>>> 7) Fixed extensions were not reported correctly on GL2 context >>>>> >>>>> 8) Fixed few failing tests specifically on Mesa >>>>> >>>>> 9) Removed VolumeOpenGLNew module as it was not as usable with OpenGL2 getting ready for primetime >>>>> >>>>> 10) Added convenience API to SmartVolume Mapper >>>>> >>>>> 11) Cleaned up logic for dealing with context changes in Volume Mapper >>>>> >>>>> >>>>> Please let us know if you have any questions. >>>>> >>>>> Thanks, >>>>> >>>>> >>>>> -- >>>>> | Aashish Chaudhary >>>>> | Technical Leader >>>>> | Kitware Inc. >>>>> | http://www.kitware.com/company/team/chaudhary.html >>>> >>>> >>>> >>>> >>>> -- >>>> | Aashish Chaudhary >>>> | Technical Leader >>>> | Kitware Inc. >>>> | http://www.kitware.com/company/team/chaudhary.html >>> >>> >>> >>> -- >>> | Aashish Chaudhary >>> | Technical Leader >>> | Kitware Inc. >>> | http://www.kitware.com/company/team/chaudhary.html > > > > -- > | Aashish Chaudhary > | Technical Leader > | Kitware Inc. > | http://www.kitware.com/company/team/chaudhary.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Jun 1 20:52:19 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 1 Jun 2015 18:52:19 -0600 Subject: [vtkusers] Fwd: Unsure how to use vtkDelaunay3D In-Reply-To: References: Message-ID: The documentation for vtkDelaunay3D says that it outputs only tetrahedrons unless you specifically set the "Alpha" value (I'm not 100% sure what "Alpha" is for, but since you aren't using it, I don't think you need to worry about it). - David On Mon, Jun 1, 2015 at 6:19 PM, vtk matt wrote: > Hi David, > > Thanks for the clarification. I > ran tets->GetOutput()->GetNumberOfElements(vtkDataObject::CELL) and got a > value of 18 for my input which would make sense as the number of > tetrahedrons. Do you know if I can expect these cells to in fact contain > tetrahedrons then? > > --Matt > > On Wed, May 27, 2015 at 8:17 PM, David Gobbi > wrote: > >> Hi Matt, >> >> You've been misled by VTK's rather terse documentation: >> >> Get the number of elements for a specific attribute type (POINT, CELL, >> etc.). >> >> For a mesh, you can call GetNumberOfElements(vtkDataObject::POINT) or you >> can call GetNumberOfElements(vtkDataObject::CELL). Those are the only two >> choices. You can't ask for a particular type of cell, all you can do is >> ask it to return the total number of cells. >> >> - David >> >> On Wed, May 27, 2015 at 5:41 PM, vtk matt wrote: >> >>> Hi all, >>> >>> I have spent the past few days trying to figure out how to use >>> vtkDelaunay3D properly and decided I'd better seek out some help. My goal >>> is relatively straight-forward: Given a set of points in 3D, generate a >>> tetrahedral mesh, and use the results to determine which tetrahedron >>> contains an arbitrary point. >>> >>> In its simplest form I am doing the following: >>> >>> vtkSmartPointer tets = >>> vtkSmartPointer::New(); >>> tets->SetInput(points); >>> tets->Update(); >>> printf("Number of tets: %d\n", >>> tets->GetOutput()->GetNumberOfElements(VTK_TETRA)); >>> >>> The output claims there are zero tetrahedrons. However if I render an >>> actor from tets->GetOutput(), I am able to visualize a wireframe surface >>> mesh, so I know it's doing something. >>> >>> So I guess my questions are the following: Why does the output not >>> contain any tetrahedrons? Why does the mesh only show surface triangles? >>> Ultimately what is the proper way to construct a tetrahedral mesh such that >>> I can query which tetrahedron contains an arbitrary point? >>> >>> Thanks. >>> >>> --Matt >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wulihouxiaoshuai at 163.com Mon Jun 1 20:57:41 2015 From: wulihouxiaoshuai at 163.com (Emptystack) Date: Mon, 1 Jun 2015 17:57:41 -0700 (MST) Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: References: <1433144036658-5732070.post@n5.nabble.com> <1433162330783-5732074.post@n5.nabble.com> <1433167099528-5732080.post@n5.nabble.com> <1433167794554-5732084.post@n5.nabble.com> Message-ID: <1433206661026-5732110.post@n5.nabble.com> OK,Thanks for your help! I will try the VTK-web. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732110.html Sent from the VTK - Users mailing list archive at Nabble.com. From vtkmatt at gmail.com Mon Jun 1 21:00:41 2015 From: vtkmatt at gmail.com (vtk matt) Date: Mon, 1 Jun 2015 18:00:41 -0700 Subject: [vtkusers] Fwd: Unsure how to use vtkDelaunay3D In-Reply-To: References: Message-ID: Yeah this was my understanding. Any idea then why I only see surface triangles when I render it? I set my actor to wireframe mode and I see no internal structure. Maybe this is just a visualization thing? With the info you provided I did iterate across all cells and cast them to type vtkTetra and they all have four faces which is good. It would be great to see this visualized though as a sanity check that I do in fact have tetrahedrons. Thanks again. On Mon, Jun 1, 2015 at 5:52 PM, David Gobbi wrote: > The documentation for vtkDelaunay3D says that it outputs only tetrahedrons > unless you specifically set the "Alpha" value (I'm not 100% sure what > "Alpha" is for, but since you aren't using it, I don't think you need to > worry about it). > > - David > > On Mon, Jun 1, 2015 at 6:19 PM, vtk matt wrote: > >> Hi David, >> >> Thanks for the clarification. I >> ran tets->GetOutput()->GetNumberOfElements(vtkDataObject::CELL) and got a >> value of 18 for my input which would make sense as the number of >> tetrahedrons. Do you know if I can expect these cells to in fact contain >> tetrahedrons then? >> >> --Matt >> >> On Wed, May 27, 2015 at 8:17 PM, David Gobbi >> wrote: >> >>> Hi Matt, >>> >>> You've been misled by VTK's rather terse documentation: >>> >>> Get the number of elements for a specific attribute type (POINT, CELL, >>> etc.). >>> >>> For a mesh, you can call GetNumberOfElements(vtkDataObject::POINT) or >>> you can call GetNumberOfElements(vtkDataObject::CELL). Those are the only >>> two choices. You can't ask for a particular type of cell, all you can do >>> is ask it to return the total number of cells. >>> >>> - David >>> >>> On Wed, May 27, 2015 at 5:41 PM, vtk matt wrote: >>> >>>> Hi all, >>>> >>>> I have spent the past few days trying to figure out how to use >>>> vtkDelaunay3D properly and decided I'd better seek out some help. My goal >>>> is relatively straight-forward: Given a set of points in 3D, generate a >>>> tetrahedral mesh, and use the results to determine which tetrahedron >>>> contains an arbitrary point. >>>> >>>> In its simplest form I am doing the following: >>>> >>>> vtkSmartPointer tets = >>>> vtkSmartPointer::New(); >>>> tets->SetInput(points); >>>> tets->Update(); >>>> printf("Number of tets: %d\n", >>>> tets->GetOutput()->GetNumberOfElements(VTK_TETRA)); >>>> >>>> The output claims there are zero tetrahedrons. However if I render an >>>> actor from tets->GetOutput(), I am able to visualize a wireframe surface >>>> mesh, so I know it's doing something. >>>> >>>> So I guess my questions are the following: Why does the output not >>>> contain any tetrahedrons? Why does the mesh only show surface triangles? >>>> Ultimately what is the proper way to construct a tetrahedral mesh such that >>>> I can query which tetrahedron contains an arbitrary point? >>>> >>>> Thanks. >>>> >>>> --Matt >>>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Jun 1 21:06:39 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 1 Jun 2015 19:06:39 -0600 Subject: [vtkusers] Fwd: Unsure how to use vtkDelaunay3D In-Reply-To: References: Message-ID: That's what the vtkDataSetMapper does when it renders: if it's input is a 3D mesh, then it just renders the surface. You'd probably need to use something like vtkExtractEdges to turn it into a space-filling wireframe. I don't do much mesh work with VTK, so hopefully someone else can chime in with different ways to render 3D meshes. - David On Mon, Jun 1, 2015 at 7:00 PM, vtk matt wrote: > Yeah this was my understanding. Any idea then why I only see surface > triangles when I render it? I set my actor to wireframe mode and I see no > internal structure. Maybe this is just a visualization thing? With the > info you provided I did iterate across all cells and cast them to type > vtkTetra and they all have four faces which is good. It would be great to > see this visualized though as a sanity check that I do in fact have > tetrahedrons. Thanks again. > > On Mon, Jun 1, 2015 at 5:52 PM, David Gobbi wrote: > >> The documentation for vtkDelaunay3D says that it outputs only >> tetrahedrons unless you specifically set the "Alpha" value (I'm not 100% >> sure what "Alpha" is for, but since you aren't using it, I don't think you >> need to worry about it). >> >> - David >> >> On Mon, Jun 1, 2015 at 6:19 PM, vtk matt wrote: >> >>> Hi David, >>> >>> Thanks for the clarification. I >>> ran tets->GetOutput()->GetNumberOfElements(vtkDataObject::CELL) and got a >>> value of 18 for my input which would make sense as the number of >>> tetrahedrons. Do you know if I can expect these cells to in fact contain >>> tetrahedrons then? >>> >>> --Matt >>> >>> On Wed, May 27, 2015 at 8:17 PM, David Gobbi >>> wrote: >>> >>>> Hi Matt, >>>> >>>> You've been misled by VTK's rather terse documentation: >>>> >>>> Get the number of elements for a specific attribute type (POINT, >>>> CELL, etc.). >>>> >>>> For a mesh, you can call GetNumberOfElements(vtkDataObject::POINT) or >>>> you can call GetNumberOfElements(vtkDataObject::CELL). Those are the only >>>> two choices. You can't ask for a particular type of cell, all you can do >>>> is ask it to return the total number of cells. >>>> >>>> - David >>>> >>>> On Wed, May 27, 2015 at 5:41 PM, vtk matt wrote: >>>> >>>>> Hi all, >>>>> >>>>> I have spent the past few days trying to figure out how to use >>>>> vtkDelaunay3D properly and decided I'd better seek out some help. My goal >>>>> is relatively straight-forward: Given a set of points in 3D, generate a >>>>> tetrahedral mesh, and use the results to determine which tetrahedron >>>>> contains an arbitrary point. >>>>> >>>>> In its simplest form I am doing the following: >>>>> >>>>> vtkSmartPointer tets = >>>>> vtkSmartPointer::New(); >>>>> tets->SetInput(points); >>>>> tets->Update(); >>>>> printf("Number of tets: %d\n", >>>>> tets->GetOutput()->GetNumberOfElements(VTK_TETRA)); >>>>> >>>>> The output claims there are zero tetrahedrons. However if I render an >>>>> actor from tets->GetOutput(), I am able to visualize a wireframe surface >>>>> mesh, so I know it's doing something. >>>>> >>>>> So I guess my questions are the following: Why does the output not >>>>> contain any tetrahedrons? Why does the mesh only show surface triangles? >>>>> Ultimately what is the proper way to construct a tetrahedral mesh such that >>>>> I can query which tetrahedron contains an arbitrary point? >>>>> >>>>> Thanks. >>>>> >>>>> --Matt >>>>> >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtkmatt at gmail.com Mon Jun 1 21:54:23 2015 From: vtkmatt at gmail.com (vtk matt) Date: Mon, 1 Jun 2015 18:54:23 -0700 Subject: [vtkusers] Fwd: Unsure how to use vtkDelaunay3D In-Reply-To: References: Message-ID: Alright well as long as that's the expected behavior then I guess I'm satisfied. I was able to work around it by creating a new vtkUnstructuredGrid for every tetrahedron and then creating actors from those... Not pretty but it got me the sanity check I was looking for. Thanks for the help. On Mon, Jun 1, 2015 at 6:06 PM, David Gobbi wrote: > That's what the vtkDataSetMapper does when it renders: if it's input is a > 3D mesh, then it just renders the surface. You'd probably need to use > something like vtkExtractEdges to turn it into a space-filling wireframe. > > I don't do much mesh work with VTK, so hopefully someone else can chime in > with different ways to render 3D meshes. > > - David > > On Mon, Jun 1, 2015 at 7:00 PM, vtk matt wrote: > >> Yeah this was my understanding. Any idea then why I only see surface >> triangles when I render it? I set my actor to wireframe mode and I see no >> internal structure. Maybe this is just a visualization thing? With the >> info you provided I did iterate across all cells and cast them to type >> vtkTetra and they all have four faces which is good. It would be great to >> see this visualized though as a sanity check that I do in fact have >> tetrahedrons. Thanks again. >> >> On Mon, Jun 1, 2015 at 5:52 PM, David Gobbi >> wrote: >> >>> The documentation for vtkDelaunay3D says that it outputs only >>> tetrahedrons unless you specifically set the "Alpha" value (I'm not 100% >>> sure what "Alpha" is for, but since you aren't using it, I don't think you >>> need to worry about it). >>> >>> - David >>> >>> On Mon, Jun 1, 2015 at 6:19 PM, vtk matt wrote: >>> >>>> Hi David, >>>> >>>> Thanks for the clarification. I >>>> ran tets->GetOutput()->GetNumberOfElements(vtkDataObject::CELL) and got a >>>> value of 18 for my input which would make sense as the number of >>>> tetrahedrons. Do you know if I can expect these cells to in fact contain >>>> tetrahedrons then? >>>> >>>> --Matt >>>> >>>> On Wed, May 27, 2015 at 8:17 PM, David Gobbi >>>> wrote: >>>> >>>>> Hi Matt, >>>>> >>>>> You've been misled by VTK's rather terse documentation: >>>>> >>>>> Get the number of elements for a specific attribute type (POINT, >>>>> CELL, etc.). >>>>> >>>>> For a mesh, you can call GetNumberOfElements(vtkDataObject::POINT) or >>>>> you can call GetNumberOfElements(vtkDataObject::CELL). Those are the only >>>>> two choices. You can't ask for a particular type of cell, all you can do >>>>> is ask it to return the total number of cells. >>>>> >>>>> - David >>>>> >>>>> On Wed, May 27, 2015 at 5:41 PM, vtk matt wrote: >>>>> >>>>>> Hi all, >>>>>> >>>>>> I have spent the past few days trying to figure out how to use >>>>>> vtkDelaunay3D properly and decided I'd better seek out some help. My goal >>>>>> is relatively straight-forward: Given a set of points in 3D, generate a >>>>>> tetrahedral mesh, and use the results to determine which tetrahedron >>>>>> contains an arbitrary point. >>>>>> >>>>>> In its simplest form I am doing the following: >>>>>> >>>>>> vtkSmartPointer tets = >>>>>> vtkSmartPointer::New(); >>>>>> tets->SetInput(points); >>>>>> tets->Update(); >>>>>> printf("Number of tets: %d\n", >>>>>> tets->GetOutput()->GetNumberOfElements(VTK_TETRA)); >>>>>> >>>>>> The output claims there are zero tetrahedrons. However if I render >>>>>> an actor from tets->GetOutput(), I am able to visualize a wireframe surface >>>>>> mesh, so I know it's doing something. >>>>>> >>>>>> So I guess my questions are the following: Why does the output not >>>>>> contain any tetrahedrons? Why does the mesh only show surface triangles? >>>>>> Ultimately what is the proper way to construct a tetrahedral mesh such that >>>>>> I can query which tetrahedron contains an arbitrary point? >>>>>> >>>>>> Thanks. >>>>>> >>>>>> --Matt >>>>>> >>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wulihouxiaoshuai at 163.com Mon Jun 1 22:39:37 2015 From: wulihouxiaoshuai at 163.com (Emptystack) Date: Mon, 1 Jun 2015 19:39:37 -0700 (MST) Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: References: <1433144036658-5732070.post@n5.nabble.com> <1433162330783-5732074.post@n5.nabble.com> <1433167099528-5732080.post@n5.nabble.com> <1433167794554-5732084.post@n5.nabble.com> Message-ID: <1433212777440-5732114.post@n5.nabble.com> Hi, Now I can run the VTK-web examples. I also write a simple volume rendering example and it also works. I wonder to know that whether the VTK-veb only support python grogramming? Does it support java programming? Many thanks! -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732114.html Sent from the VTK - Users mailing list archive at Nabble.com. From sebastien.jourdain at kitware.com Tue Jun 2 05:13:36 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 2 Jun 2015 11:13:36 +0200 Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: <1433212777440-5732114.post@n5.nabble.com> References: <1433144036658-5732070.post@n5.nabble.com> <1433162330783-5732074.post@n5.nabble.com> <1433167099528-5732080.post@n5.nabble.com> <1433167794554-5732084.post@n5.nabble.com> <1433212777440-5732114.post@n5.nabble.com> Message-ID: VTK-Web is based on Python and can not really be based on Java for the server side. In fact, there is no specific need on the server side. A simple Apache 2.4.7+ on the front to deliver the HTML and JS while dealing with some forwarding and that's it. This is specially true if you don't want to crash your web server by doing invalid access within VTK. Seb On Tue, Jun 2, 2015 at 4:39 AM, Emptystack wrote: > Hi, Now I can run the VTK-web examples. I also write a simple volume > rendering example and it also works. I wonder to know that whether the > VTK-veb only support python grogramming? Does it support java programming? > > > Many thanks! > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732114.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Tue Jun 2 07:18:23 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 2 Jun 2015 07:18:23 -0400 Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: <1433212777440-5732114.post@n5.nabble.com> References: <1433144036658-5732070.post@n5.nabble.com> <1433162330783-5732074.post@n5.nabble.com> <1433167099528-5732080.post@n5.nabble.com> <1433167794554-5732084.post@n5.nabble.com> <1433212777440-5732114.post@n5.nabble.com> Message-ID: On Mon, Jun 1, 2015 at 10:39 PM, Emptystack wrote: > Hi, Now I can run the VTK-web examples. I also write a simple volume > rendering example and it also works. Great! thanks for the update. > I wonder to know that whether the > VTK-veb only support python grogramming? Does it support java programming? > > > Many thanks! > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732114.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Tue Jun 2 09:07:06 2015 From: matimontg at gmail.com (Matias Montroull) Date: Tue, 02 Jun 2015 13:07:06 +0000 Subject: [vtkusers] 3D Volume Registration In-Reply-To: <1432738329306-5732023.post@n5.nabble.com> References: <1432571716007-5731990.post@n5.nabble.com> <1432738329306-5732023.post@n5.nabble.com> Message-ID: Konstantin, I can share an example that uses MattesMutualInformation and it is quite fast. You need to compile your project in Visual Studio in release mode so it can go faster. El mi?., 27 de may. de 2015 a la(s) 11:52 a. m., Konstantin < dmitrievko at gmail.com> escribi?: > Hi Matimont, > > I have already done it. I've also tried /ImageRegistration20.cxx/ example, > but it was running so slow, that I couldn't wait for it to finish. > > Konstantin > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/3D-Volume-Registration-tp5731990p5732023.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzenanz at gmail.com Tue Jun 2 09:59:08 2015 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Tue, 2 Jun 2015 09:59:08 -0400 Subject: [vtkusers] how to increase the isosurface's resolution In-Reply-To: <1431943542137-5731928.post@n5.nabble.com> References: <1431943542137-5731928.post@n5.nabble.com> Message-ID: The resolution of the marching cubes surface is dependent on the resolution of the voxel grid from which it is produced. You need higher resolution of your 3D image. On Mon, May 18, 2015 at 6:05 AM, Emptystack wrote: > Hello everyone, > I have a 3D contour constructed by the vtkMarching cubes. And I want > to calculate the volume surrounded using vtkMassProperties. After some > simple testing (using cone/cylinder), I found that this method is closely > related to the resolution of the surface. Higher resolution can bring > accurate result. So I want to increase the resolution of the contour? Does > anyone have any ideas? > > > many thanks! > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/how-to-increase-the-isosurface-s-resolution-tp5731928.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Tue Jun 2 10:47:22 2015 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Tue, 2 Jun 2015 10:47:22 -0400 Subject: [vtkusers] clean-up VTK_LEGACY code Message-ID: Dear VTK Users, This is a summary of an announcement and discussion on VTK Developers list. We are removing the VTK code marked as deprecated for versions 6.1 (this was released on 2014-01-21) and earlier. This means that any code marked as deprecated after that date is still in, so people will still have plenty of time to change their code. https://gitlab.kitware.com/vtk/vtk/merge_requests/235 Users who update VTK regularly are warned using the VTK_LEGACY_REPLACED_BODY mechanism if they call a deprecated function. If they want, users can turn on VTK_LEGACY_REMOVE to remove all deprecated code from VTK. This is the best way to test your use of deprecated code. Note that VTK_LEGACY_REMOVE is a CMake option that can be turned on when building VTK. Please let me know if you have any comments or concerns, Thank you, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Tue Jun 2 13:30:52 2015 From: matimontg at gmail.com (Matias Montroull) Date: Tue, 02 Jun 2015 17:30:52 +0000 Subject: [vtkusers] Download or Compile ActiViz 6.2? Message-ID: Hi, I contacted ActiViz to download the 6.2 version and it seems I need to purchase it? They suggested to compile rather than downloading the binaries. Are there instructions on how to compile for C#? Thank you, Matias. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.de.paula at live.com Tue Jun 2 14:41:56 2015 From: jose.de.paula at live.com (JoseBarretoT) Date: Tue, 2 Jun 2015 11:41:56 -0700 (MST) Subject: [vtkusers] Create .dir files with VTK Message-ID: <1433270516760-5732127.post@n5.nabble.com> Hello users, VTK has the option to create DICOM.dir (.dir extension)? They are usually generated by the equipment working with DICOM along with images. I need to create a file .dir this to separate parts of DICOM, could also save the SGDB the name of the images, only if it is possible to move the file to open in another computer must read the .dir and open the images that are contained it. It is to create this .dir by VTK? and vtkDICOMImageReader read .dir? So I found examples of open folders or files and specifying the name of the images. Thanks, Jose Barreto -- View this message in context: http://vtk.1045678.n5.nabble.com/Create-dir-files-with-VTK-tp5732127.html Sent from the VTK - Users mailing list archive at Nabble.com. From jose.de.paula at live.com Tue Jun 2 14:46:40 2015 From: jose.de.paula at live.com (JoseBarretoT) Date: Tue, 2 Jun 2015 11:46:40 -0700 (MST) Subject: [vtkusers] problems with vtkImageResliceMapper In-Reply-To: References: <1432759665285-5732027.post@n5.nabble.com> Message-ID: <1433270800178-5732128.post@n5.nabble.com> If serve to someone, I can show sagittal and axial setting the camera this way vtkCamera* UCConfigurarEstudo::ConfigurarCamera(vtkCamera* camera, int tipoVisao) { if (camera != nullptr) { double tamanho = 0; switch (tipoVisao) { case 1: //View axial camera->ParallelProjectionOn(); tamanho = GetDicom()->GetOutput()->GetExtent()[3] + 1; camera->SetParallelScale(0.5f*tamanho*GetDicom()->GetPixelSpacing()[1]); break; case 2: //View Sagital camera->ParallelProjectionOn(); camera->Azimuth(90); camera->Roll(90); tamanho = GetDicom()->GetOutput()->GetExtent()[5] + 1; camera->SetParallelScale(0.5f*tamanho*GetDicom()->GetPixelSpacing()[2]); break; case 3: break; } } return camera; } user... renderer->SetActiveCamera(ConfigurarCamera(renderer->GetActiveCamera(), 2)); while redimenciono the vision for the maximum size of the container. Thank you David for your help! -- View this message in context: http://vtk.1045678.n5.nabble.com/problems-with-vtkImageResliceMapper-tp5732027p5732128.html Sent from the VTK - Users mailing list archive at Nabble.com. From jose.de.paula at live.com Tue Jun 2 15:25:28 2015 From: jose.de.paula at live.com (Jose Barreto) Date: Tue, 2 Jun 2015 12:25:28 -0700 (MST) Subject: [vtkusers] Download or Compile ActiViz 6.2? In-Reply-To: References: Message-ID: <1433273128657-5732129.post@n5.nabble.com> Matias, I also thought of using the compiled version for C #, further invez that I chose to use c ++ / cli. It is more viable option than this compilation for C #, avoids errors and is easier to work with sources. -- View this message in context: http://vtk.1045678.n5.nabble.com/Download-or-Compile-ActiViz-6-2-tp5732126p5732129.html Sent from the VTK - Users mailing list archive at Nabble.com. From julien.jomier at kitware.com Tue Jun 2 15:31:41 2015 From: julien.jomier at kitware.com (Julien Jomier) Date: Tue, 2 Jun 2015 21:31:41 +0200 Subject: [vtkusers] Download or Compile ActiViz 6.2? In-Reply-To: References: Message-ID: <556E049D.5090502@kitware.com> Matias, The instructions on how to compile ActiViz are located here: http://www.kitware.com/opensource/avdownload.php Julien On 02/06/2015 19:30, Matias Montroull wrote: > Hi, > > I contacted ActiViz to download the 6.2 version and it seems I need to > purchase it? They suggested to compile rather than downloading the binaries. > > Are there instructions on how to compile for C#? > > Thank you, > > Matias. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From berk.geveci at kitware.com Tue Jun 2 15:46:49 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Tue, 2 Jun 2015 15:46:49 -0400 Subject: [vtkusers] Call For Papers: LDAV 2015, The 5th IEEE Symposium on Large Data Analysis and Visualization Message-ID: Subject: Call For Papers: LDAV 2015, The 5th IEEE Symposium on Large Data Analysis and Visualization LDAV 2015 The 5th IEEE Symposium on Large Data Analysis and Visualization, co-located with IEEE VIS 2015, October 25-26, 2015, Chicago, Illinois, USA http://www.ldav.org/ Contact: papers at ldav.org Modern large-scale scientific simulations, sensor networks, and experiments are generating enormous datasets, with some projects approaching the multiple exabyte range in the near term. Managing and analyzing large data in order to transform it into insight is critical for a variety of disciplines including climate science, nuclear physics, security, materials design, transportation, and urban planning. This is currently referred to as the Big Data Challenge. The tools and approaches needed to mine, analyze, and visualize data at extreme scales can be fully realized only if we have end-to-end solutions, which demands collective, interdisciplinary efforts. The 5th IEEE Large Scale Data Analysis and Visualization (LDAV) symposium, to be held in conjunction with IEEE VIS 2015, is specifically targeting possible end-to-end solutions. The LDAV symposium will bring together domain scientists, data analysts, visualization researchers, users, designers and artists, to foster common ground for solving both near- and long-term problems. Scope: We are looking for original research contributions on a broad-range of topics related to collection, analysis, manipulation or visualization of large-scale data. We also welcome position papers on these topics. Topics of interest include, but are not limited to: * Data collection, management and curation * Innovative approaches combining information visualization, visual analytics, and scientific visualization * Streaming methods for analysis, collection and visualization * Novel, extreme or innovative methods for understanding and interacting with data * Advanced hardware for data handling or visualization * Distributed, parallel or multi-threaded approaches * MapReduce-based and database-related methods, algorithms or approaches * Hierarchical data storage, retrieval or rendering * Collaboration or co-design of data analysis with domain scientists * Topics in cognitive issues specific to manipulating and understanding large data * Application case studies * Industry solutions for big data * End-to-end system solutions Submission Instructions: Submitted manuscripts may not exceed 8 pages. The manuscripts can be 4-8 pages, with the authors determining length based on the content. The manuscripts should be formatted according to guidelines from IEEE VGTC. Submission site note: Go to the submission site ( https://precisionconference.com/~vgtc), log in, go to 'new submissions', and select 'LDAV 2015 Papers'. Proceedings: The proceedings of the symposium will be published together with the VIS proceedings and via the IEEE Xplore Digital Library. Best Paper: The LDAV Program Committee will present a Best Paper award to the authors whose submission is deemed the strongest according to the reviewing criteria. This award will be announced in conjunction with VIS 2015. Important Dates: (Please note the abstract and paper deadlines are firm and no extensions will be granted). Abstract Deadline (firm): June 17, 2015 Paper Submission (firm): June 24, 2015 11:59 PM (AOE) Author Notification: August 13, 2015 Camera-Ready Deadline: August 21, 2015 -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Tue Jun 2 18:49:32 2015 From: matimontg at gmail.com (Matias Montroull) Date: Tue, 02 Jun 2015 22:49:32 +0000 Subject: [vtkusers] Download or Compile ActiViz 6.2? In-Reply-To: <1433273128657-5732129.post@n5.nabble.com> References: <1433273128657-5732129.post@n5.nabble.com> Message-ID: Jose, that sounds perfect but my whole project is built in C# and I use VTK to do 3D reconstruction and iterate through points to find closest match etc so I can't just switch to C++ unfortunately.. El mar., 2 de jun. de 2015 a la(s) 4:25 p. m., Jose Barreto < jose.de.paula at live.com> escribi?: > Matias, > I also thought of using the compiled version for C #, further invez that I > chose to use c ++ / cli. It is more viable option than this compilation for > C #, avoids errors and is easier to work with sources. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Download-or-Compile-ActiViz-6-2-tp5732126p5732129.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Tue Jun 2 18:49:54 2015 From: matimontg at gmail.com (Matias Montroull) Date: Tue, 02 Jun 2015 22:49:54 +0000 Subject: [vtkusers] Download or Compile ActiViz 6.2? In-Reply-To: References: <1433273128657-5732129.post@n5.nabble.com> Message-ID: Thanks Julien, I'll take a look at those instructions El mar., 2 de jun. de 2015 a la(s) 7:49 p. m., Matias Montroull < matimontg at gmail.com> escribi?: > Jose, that sounds perfect but my whole project is built in C# and I use > VTK to do 3D reconstruction and iterate through points to find closest > match etc so I can't just switch to C++ unfortunately.. > > El mar., 2 de jun. de 2015 a la(s) 4:25 p. m., Jose Barreto < > jose.de.paula at live.com> escribi?: > >> Matias, >> I also thought of using the compiled version for C #, further invez that I >> chose to use c ++ / cli. It is more viable option than this compilation >> for >> C #, avoids errors and is easier to work with sources. >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/Download-or-Compile-ActiViz-6-2-tp5732126p5732129.html >> Sent from the VTK - Users mailing list archive at Nabble.com. >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Tue Jun 2 22:06:54 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Tue, 2 Jun 2015 19:06:54 -0700 (MST) Subject: [vtkusers] 2D Delaunay mesh criteria Message-ID: <1433297214407-5732135.post@n5.nabble.com> Hello, Is it possible to VTK construct a 2D Delaunay mesh providing criterias like minimum angle and/or maximum edge length of the triangles? Thanks, Joao. -- View this message in context: http://vtk.1045678.n5.nabble.com/2D-Delaunay-mesh-criteria-tp5732135.html Sent from the VTK - Users mailing list archive at Nabble.com. From jose.de.paula at live.com Wed Jun 3 08:43:41 2015 From: jose.de.paula at live.com (Jose Barreto) Date: Wed, 3 Jun 2015 05:43:41 -0700 (MST) Subject: [vtkusers] Download or Compile ActiViz 6.2? In-Reply-To: References: <1433273128657-5732129.post@n5.nabble.com> Message-ID: <1433335421499-5732141.post@n5.nabble.com> Matias, since you only use a specific module, you can create this piece inside the c ++ / cli and integrate facilmnete in C #, since cli to support .NET. I had a whole system in C #, the more I want to achieve with vtk had to redo it completely in the new linguaguem. -- View this message in context: http://vtk.1045678.n5.nabble.com/Download-or-Compile-ActiViz-6-2-tp5732126p5732141.html Sent from the VTK - Users mailing list archive at Nabble.com. From franciscolopezdelafranca at gmail.com Wed Jun 3 08:48:04 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Wed, 3 Jun 2015 14:48:04 +0200 Subject: [vtkusers] 3D image as N cubes In-Reply-To: References: Message-ID: Hi. I've created an example (see below) but everything is OK except that the output image is not created. I'd be very pleased if someone can help me (maybe with an explanatory example or whatever). char* filename = new char[255]; strcpy(filename, "nifti_image.nii"); vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName(filename); reader->Update(); //Create the octree vtkSmartPointer octree = vtkSmartPointer::New(); octree->SetDataSet((vtkDataSet*) reader->GetOutput()); octree->BuildLocator(); std::cout << "Number of cells in tree: " << octree->GetDataSet()->GetNumberOfCells() << std::endl; std::cout << "Number of points in tree: " << octree->GetDataSet()->GetNumberOfPoints() << std::endl; char* outfile = new char[255]; strcpy(outfile, "OcTree.vtp"); vtkSmartPointer writer = vtkSmartPointer::New(); writer->SetInputData((vtkPolyData*) octree->GetDataSet()); writer->SetFileName(outfile); writer->Write(); 2015-05-29 12:40 GMT+02:00 Francisco Lopez de la Franca < franciscolopezdelafranca at gmail.com>: > Hi everybody, > I'd like to represent a 3D image as a fixed number of cubes, I mean, > something like a spatial occupancy matrix in 3D. > > Could you, please, recommend me a fast way to do it or does it exist a > data structure in VTK to achieve this? > > I've found the OcTree structure but I donot know if it is valid for this. > > Thank you very much. > My best regards. > /Francisco > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Wed Jun 3 09:36:46 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 3 Jun 2015 09:36:46 -0400 Subject: [vtkusers] 3D image as N cubes In-Reply-To: References: Message-ID: This example may help: http://www.vtk.org/Wiki/VTK/Examples/Cxx/DataStructures/OctreeVisualize On Wed, Jun 3, 2015 at 8:48 AM, Francisco Lopez de la Franca wrote: > Hi. > I've created an example (see below) but everything is OK except that the > output image is not created. I'd be very pleased if someone can help me > (maybe with an explanatory example or whatever). > > char* filename = new char[255]; > strcpy(filename, "nifti_image.nii"); > > vtkSmartPointer reader = > vtkSmartPointer::New(); > > reader->SetFileName(filename); > reader->Update(); > > //Create the octree > vtkSmartPointer octree = > vtkSmartPointer::New(); > octree->SetDataSet((vtkDataSet*) reader->GetOutput()); > octree->BuildLocator(); > > std::cout << "Number of cells in tree: " << > octree->GetDataSet()->GetNumberOfCells() << std::endl; > std::cout << "Number of points in tree: " << > octree->GetDataSet()->GetNumberOfPoints() << std::endl; > > char* outfile = new char[255]; > strcpy(outfile, "OcTree.vtp"); > > vtkSmartPointer writer = > vtkSmartPointer::New(); > writer->SetInputData((vtkPolyData*) octree->GetDataSet()); > writer->SetFileName(outfile); > writer->Write(); > > > 2015-05-29 12:40 GMT+02:00 Francisco Lopez de la Franca > : >> >> Hi everybody, >> I'd like to represent a 3D image as a fixed number of cubes, I mean, >> something like a spatial occupancy matrix in 3D. >> >> Could you, please, recommend me a fast way to do it or does it exist a >> data structure in VTK to achieve this? >> >> I've found the OcTree structure but I donot know if it is valid for this. >> >> Thank you very much. >> My best regards. >> /Francisco > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From berk.geveci at kitware.com Wed Jun 3 10:33:02 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Wed, 3 Jun 2015 10:33:02 -0400 Subject: [vtkusers] MPI application writing PVTI In-Reply-To: <556DD995.1080004@bsc.es> References: <55675C6F.3070204@bsc.es> <556DD995.1080004@bsc.es> Message-ID: Hi Alejandro, (I CCed the mailing list to share the knowledge) (Note that you need VTK 6.2 or later for what I am about to describe.) What you have is almost correct. You just need a way for the whole extent information to get to the writer. So do this: vtkNew tp; tp->SetOutput(imageData); tp->SetWholeExtent(0, msx-1, 0, msy-1, 0, msz-1); writer->SetInputConnection(tp->GetOutputPort()); By the way, SetInputData() does almost exactly this except that it has no way of setting the whole extent. Best, -berk On Tue, Jun 2, 2015 at 12:28 PM, Alejandro Fern?ndez < alejandro.fernandez at bsc.es> wrote: > Thanks for your answer! > > I used the vtkXMLPImageDataWriter to write my .pvti file only with MPI > process 0. However, I can not find a way to specify the whole extent of the > .pvti file separately from the extent of each piece. My domains are > patitioned along the Z axis (third) component. But the writer seems to > implicitly partition the Y axis and I do not know how to specify it > separately. Please, can you tell me if there is any way to do so? Here is > the structure of my code: > > vtkSmartPointer imageData = > vtkSmartPointer::New(); > imageData->SetExtent(0, msx-1, 0, msy-1, zstart, zend); // zstart and zend > vary depending on MPI process > imageData->SetSpacing(hx, hy, hz); > > vtkSmartPointer sf = vtkSmartPointer::New(); > sf->SetNumberOfComponents(nDims); > sf->SetNumberOfTuples(msx*msy*(zend-zstart+1)); > ... loop > sf->SetTuple(tupleCount++, field_data); > ... > > imageData->GetPointData()->AddArray(sf); > > vtkSmartPointer writer = > vtkSmartPointer::New(); > > // I would expect a way to specify the "whole extent" here > // This does not work > http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_SetWholeExtent > if (world->rank() != 0) writer->WriteSummaryFileOff(); > writer->SetNumberOfPieces(world->size()); > writer->SetEndPiece(world->rank()); > writer->SetStartPiece(world->rank()); > > writer->SetFileName("output.pvti"); > writer->SetInputData(imageData); > writer->Write(); > > Thanks a lot! > > -- > > Alejandro Fern?ndez Su?rez > Computer Science Dept. > K2M Building - Room 104 - (+34) 934 137 529 > Barcelona Supercomputing Center - CNSwww.bsc.es > > On 01/06/2015 19:52, Shawn Waldon wrote: > > One of the key things to realize about the vtkXMLP*Writers is that the > writer makes no assumptions when used in parallel. The P is for Piece not > Parallel, so you have to tell it how many pieces total are being written. > You also have to tell it the start and end piece numbers for each process > (probably just the process id). Otherwise it defaults to one total piece > and each process thinks it is writing piece 0 so the file gets clobbered > when all the processes try to write it. See the vtkXMLPDataWriter > documentation [1] for details on how to set these options. > > HTH, > Shawn > > [1]: http://www.vtk.org/doc/nightly/html/classvtkXMLPDataWriter.html > > On Mon, Jun 1, 2015 at 1:15 PM, Berk Geveci > wrote: > >> The easiest thing is to use vtkXMLPImageDataWriter in parallel to write >> an example and then to follow that template. >> >> Best, >> -berk >> >> On Thu, May 28, 2015 at 2:20 PM, Alejandro Fern?ndez < >> alejandro.fernandez at bsc.es> wrote: >> >>> Hello everyone, >>> >>> I have a C++ MPI application that writes the results of a >>> domain-decomposed mesh in different VTI files. Each process writes its own >>> VTI file with the points corresponding to its domain. In order to group all >>> VTI files into a single 3D image in paraview, I want to produce a single >>> PVTI file using XMLPImageDataWriter. However, I have not found any example >>> and do not know how to achieve this result with just the raw class method >>> documentation. >>> >>> Please, can somebody provide me a C++ example or point me to the >>> required documentation? >>> >>> Thank you very much, your help will be much appreciated. >>> >>> -- >>> >>> Alejandro Fern?ndez Su?rez >>> Computer Science Dept. >>> K2M Building - Room 104 - (+34) 934 137 529 >>> <%28%2B34%29%20934%20137%20529> >>> Barcelona Supercomputing Center - CNS >>> www.bsc.es >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wydesenej at gmail.com Wed Jun 3 11:04:57 2015 From: wydesenej at gmail.com (wydesenej) Date: Wed, 3 Jun 2015 17:04:57 +0200 Subject: [vtkusers] VTK6 with Qt - undefined reference to QVTKWidget Message-ID: Hello, My project combines VTK and Qt and it uses CMake build system. In older releases only code in my CMakeLists.txt was: find_package(VTK REQUIRED) include(${VTK_USE_FILE}) target_link_libraries(project ${VTK_LIBRARIES}) This code has errors in new versions of VTK when trying to link QVTKWidget. For successfully linking I must add: target_link_libraries(project ${VTK_LIBRARIES} -lvtkGUISupportQt-6.2) I dont like it because i want my CMakeList.txt to be independent of VTK version installed on target machine. Please tell me what I am doing wrong -------------- next part -------------- An HTML attachment was scrubbed... URL: From franciscolopezdelafranca at gmail.com Wed Jun 3 11:42:45 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Wed, 3 Jun 2015 17:42:45 +0200 Subject: [vtkusers] 3D image as N cubes In-Reply-To: References: Message-ID: Thanks a lot. And is there an example on how to traverse the whole octree? I mean, i would like to know how many points there are per octant. And finally, independently on the image, if i create an octree with a fixed level, will the representation be the same? I mean, the same number of octants with the same distribution independently on the image? Thank you very much. My best regards. El 03/06/2015 15:36, "Bill Lorensen" escribi?: > This example may help: > http://www.vtk.org/Wiki/VTK/Examples/Cxx/DataStructures/OctreeVisualize > > > On Wed, Jun 3, 2015 at 8:48 AM, Francisco Lopez de la Franca > wrote: > > Hi. > > I've created an example (see below) but everything is OK except that the > > output image is not created. I'd be very pleased if someone can help me > > (maybe with an explanatory example or whatever). > > > > char* filename = new char[255]; > > strcpy(filename, "nifti_image.nii"); > > > > vtkSmartPointer reader = > > vtkSmartPointer::New(); > > > > reader->SetFileName(filename); > > reader->Update(); > > > > //Create the octree > > vtkSmartPointer octree = > > vtkSmartPointer::New(); > > octree->SetDataSet((vtkDataSet*) reader->GetOutput()); > > octree->BuildLocator(); > > > > std::cout << "Number of cells in tree: " << > > octree->GetDataSet()->GetNumberOfCells() << std::endl; > > std::cout << "Number of points in tree: " << > > octree->GetDataSet()->GetNumberOfPoints() << std::endl; > > > > char* outfile = new char[255]; > > strcpy(outfile, "OcTree.vtp"); > > > > vtkSmartPointer writer = > > vtkSmartPointer::New(); > > writer->SetInputData((vtkPolyData*) octree->GetDataSet()); > > writer->SetFileName(outfile); > > writer->Write(); > > > > > > 2015-05-29 12:40 GMT+02:00 Francisco Lopez de la Franca > > : > >> > >> Hi everybody, > >> I'd like to represent a 3D image as a fixed number of cubes, I mean, > >> something like a spatial occupancy matrix in 3D. > >> > >> Could you, please, recommend me a fast way to do it or does it exist a > >> data structure in VTK to achieve this? > >> > >> I've found the OcTree structure but I donot know if it is valid for > this. > >> > >> Thank you very much. > >> My best regards. > >> /Francisco > > > > > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > -- > Unpaid intern in BillsBasement at noware dot com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From xanadu.michael at googlemail.com Wed Jun 3 11:43:46 2015 From: xanadu.michael at googlemail.com (Michael Xanadu) Date: Wed, 3 Jun 2015 17:43:46 +0200 Subject: [vtkusers] CMAKE_INSTALL_PREFIX with release/debug Message-ID: Hi, I use CMake 2.8, VisualStudio2010 and Windows8.1 to build VTK 5.6. In CMake I set the variable "CMAKE_INSTALL_PREFIX" to instruct the build process to copy the VTK libraries as well as the header files to a preferred directory (e.g. c:\MyLibs\MyVTKBuild) after the build process. In fact, this copy process will successfully be performed if I run the INSTALL project of the VTK solution in VisualStudio. Unfortunately, this process only copies either the release libaries or the debug libraries to the directory, dependent on the configuration type currently selected in VisualStudio. What I want is that both library types will be copied to the directory seperately in appropriate subfolders "release" and "debug". Does somebody know how to achieve this? With best regards, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From noeckera at gmail.com Wed Jun 3 14:00:41 2015 From: noeckera at gmail.com (Angela Noecker) Date: Wed, 3 Jun 2015 14:00:41 -0400 Subject: [vtkusers] display vtkImageData with no interpolation Message-ID: Can someone help me figure out how to display vtkImageData such that when I zoom way in I see sharp voxel corners and edges instead of blurry ones. Is this even possible? I understand that the display of vtkImageData is "point-based" and not "voxel-based." Thanks, Angela -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Jun 3 14:32:46 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 3 Jun 2015 12:32:46 -0600 Subject: [vtkusers] display vtkImageData with no interpolation In-Reply-To: References: Message-ID: If you display the images with nearest-neighbor interpolation, it should give you the results that you want. In my own pedantic interpretation (^_^), displaying an image with "no interpolation" would mean displaying each pixel as an infinitesimal point, which isn't really possible. For a vtkImageActor object or a vtkImageSlice object, the following method should work: actor->SetInterpolationTypeToNearest(); For vtkImageViewer2, viewer->GetImageActor()->GetProperty()->SetInterpolationTypeToNearest(); - David On Wed, Jun 3, 2015 at 12:00 PM, Angela Noecker wrote: > Can someone help me figure out how to display vtkImageData such that when > I zoom way in I see sharp voxel corners and edges instead of blurry ones. > Is this even possible? I understand that the display of vtkImageData is > "point-based" and not "voxel-based." > > Thanks, > > Angela > -------------- next part -------------- An HTML attachment was scrubbed... URL: From noeckera at gmail.com Wed Jun 3 16:51:13 2015 From: noeckera at gmail.com (Angela Noecker) Date: Wed, 3 Jun 2015 16:51:13 -0400 Subject: [vtkusers] display vtkImageData with no interpolation In-Reply-To: References: Message-ID: What if I don't use ImageViewer, but manage vtkImageActors "manually"? On Wed, Jun 3, 2015 at 2:32 PM, David Gobbi wrote: > If you display the images with nearest-neighbor interpolation, it should > give you the results that you want. In my own pedantic interpretation > (^_^), displaying an image with "no interpolation" would mean displaying > each pixel as an infinitesimal point, which isn't really possible. > > For a vtkImageActor object or a vtkImageSlice object, the following method > should work: > > actor->SetInterpolationTypeToNearest(); > > For vtkImageViewer2, > > > viewer->GetImageActor()->GetProperty()->SetInterpolationTypeToNearest(); > > - David > > > On Wed, Jun 3, 2015 at 12:00 PM, Angela Noecker > wrote: > >> Can someone help me figure out how to display vtkImageData such that when >> I zoom way in I see sharp voxel corners and edges instead of blurry ones. >> Is this even possible? I understand that the display of vtkImageData is >> "point-based" and not "voxel-based." >> >> Thanks, >> >> Angela >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Jun 3 16:55:03 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 3 Jun 2015 14:55:03 -0600 Subject: [vtkusers] display vtkImageData with no interpolation In-Reply-To: References: Message-ID: On Wed, Jun 3, 2015 at 2:51 PM, Angela Noecker wrote: > What if I don't use ImageViewer, but manage vtkImageActors "manually"? > That was the example I gave first, though I accidentally missed one part: actor->GetProperty()->SetInterpolationTypeToNearest(); This assumes you are using VTK 5.10 or later (VTK 6 works too). - David > On Wed, Jun 3, 2015 at 2:32 PM, David Gobbi wrote: > >> If you display the images with nearest-neighbor interpolation, it should >> give you the results that you want. In my own pedantic interpretation >> (^_^), displaying an image with "no interpolation" would mean displaying >> each pixel as an infinitesimal point, which isn't really possible. >> >> For a vtkImageActor object or a vtkImageSlice object, the following >> method should work: >> >> actor->SetInterpolationTypeToNearest(); >> >> For vtkImageViewer2, >> >> >> viewer->GetImageActor()->GetProperty()->SetInterpolationTypeToNearest(); >> >> - David >> >> >> On Wed, Jun 3, 2015 at 12:00 PM, Angela Noecker >> wrote: >> >>> Can someone help me figure out how to display vtkImageData such that >>> when I zoom way in I see sharp voxel corners and edges instead of blurry >>> ones. Is this even possible? I understand that the display of >>> vtkImageData is "point-based" and not "voxel-based." >>> >>> Thanks, >>> >>> Angela >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wulihouxiaoshuai at 163.com Wed Jun 3 21:45:30 2015 From: wulihouxiaoshuai at 163.com (Emptystack) Date: Wed, 3 Jun 2015 18:45:30 -0700 (MST) Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: References: <1433162330783-5732074.post@n5.nabble.com> <1433167099528-5732080.post@n5.nabble.com> <1433167794554-5732084.post@n5.nabble.com> <1433212777440-5732114.post@n5.nabble.com> Message-ID: <1433382330938-5732158.post@n5.nabble.com> Hi Seb, Thanks for all your help! I have used the vtkWeb in the local area network for several days and it worked well. Then I run the vtkWeb on the wide area network. But something unexpected happened.(Please see the attached image). Does the VTK-web support working in wide area network? If so, which point I should notice? Many thanks! -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732158.html Sent from the VTK - Users mailing list archive at Nabble.com. From joaorobertojr88 at gmail.com Thu Jun 4 01:06:44 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Wed, 3 Jun 2015 22:06:44 -0700 (MST) Subject: [vtkusers] PointInPolygon works strange In-Reply-To: <1373458055144-5721866.post@n5.nabble.com> References: <1373416068888-5721855.post@n5.nabble.com> <1373458055144-5721866.post@n5.nabble.com> Message-ID: <1433394404494-5732159.post@n5.nabble.com> Hello, Did you have any luck on this? Thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/PointInPolygon-works-strange-tp5721855p5732159.html Sent from the VTK - Users mailing list archive at Nabble.com. From f_magician at mac.com Thu Jun 4 01:18:51 2015 From: f_magician at mac.com (Magician) Date: Thu, 04 Jun 2015 14:18:51 +0900 Subject: [vtkusers] RMS Distance between Two Pointclouds Message-ID: <3323B368-75F1-4C8E-B9BA-5E6E126AADEC@mac.com> Hi all, I?m trying vtkIterativeClosestPointTransform on VTK 6.2.0. That works correctly, and I want to get final RMS distance between the pointclouds. According to the class reference, there is GetMeanDistance() method, but that takes the mean distance 'between the last two iterations?. Of course I can calculate it by myself, but is there an easy way to get the RMS distance between two clouds with VTK? Magician From joaorobertojr88 at gmail.com Thu Jun 4 08:12:33 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Thu, 4 Jun 2015 05:12:33 -0700 (MST) Subject: [vtkusers] Point in Polygon does not return correct value as expected Message-ID: <1433419953232-5732164.post@n5.nabble.com> Hello, I have a 2D polygon and I'm trying to use the vtkPolygon::PointInPolygon function as follow: bool pointInPolygon(double *point) { double *dataPointer = static_cast(filteredPolygon->GetPoints()->GetData()->GetVoidPointer(0)); int numberOfPoints = filteredPolygon->GetPoints()->GetNumberOfPoints(); double p[3] = { point[0], point[1], point[2] }; double bounds[6]; double normal[3]; filteredPolygon->ComputeNormal(filteredPolygon->GetPoints(), normal); filteredPolygon->GetPoints()->GetBounds(bounds); return filteredPolygon->PointInPolygon(p, numberOfPoints, dataPointer, bounds, normal); } It happens that the above function returns true for every point inside the polygon bounds. I've read in this mailing list that the problem can be related to the normal. Actually, the normal value is [0, 0, 1] in this piece of code, so the true return makes sense regarding the space dimension (ray-castings will never intersect a 2D object on z axis). Then I set manually normal values such as [1, 0, 0], [0, 1, 0] and [1, 1, 0], but I still having no luck. If you guys can help me, I would like to know what is going wrong on my implementation. Thanks a lot. Joao. -- View this message in context: http://vtk.1045678.n5.nabble.com/Point-in-Polygon-does-not-return-correct-value-as-expected-tp5732164.html Sent from the VTK - Users mailing list archive at Nabble.com. From sebastien.jourdain at kitware.com Thu Jun 4 08:33:36 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Thu, 4 Jun 2015 14:33:36 +0200 Subject: [vtkusers] vtkGPUVolumeRaycastMapper in the webserver In-Reply-To: <1433382330938-5732158.post@n5.nabble.com> References: <1433162330783-5732074.post@n5.nabble.com> <1433167099528-5732080.post@n5.nabble.com> <1433167794554-5732084.post@n5.nabble.com> <1433212777440-5732114.post@n5.nabble.com> <1433382330938-5732158.post@n5.nabble.com> Message-ID: Your process timeout which is expected. For more information, the client should request a new process per connexion using the launcher. Look at the documentation here: http://www.paraview.org/ParaView/Doc/Nightly/www/js-doc/index.html#!/guide/python_launcher Seb On Thu, Jun 4, 2015 at 3:45 AM, Emptystack wrote: > Hi Seb, > Thanks for all your help! I have used the vtkWeb in the local area > network for several days and it worked well. Then I run the vtkWeb on the > wide area network. But something unexpected happened.(Please see the > attached image). Does the VTK-web support working in wide area network? If > so, which point I should notice? > > Many thanks! > > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRaycastMapper-in-the-webserver-tp5732070p5732158.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Thu Jun 4 08:39:07 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Thu, 4 Jun 2015 08:39:07 -0400 Subject: [vtkusers] Point in Polygon does not return correct value as expected In-Reply-To: <1433419953232-5732164.post@n5.nabble.com> References: <1433419953232-5732164.post@n5.nabble.com> Message-ID: Please post small compilable program that illustrates the issue. On Jun 4, 2015 8:12 AM, "joaoroberto88" wrote: > Hello, > > I have a 2D polygon and I'm trying to use the vtkPolygon::PointInPolygon > function as follow: > > bool pointInPolygon(double *point) { > double *dataPointer = > > static_cast(filteredPolygon->GetPoints()->GetData()->GetVoidPointer(0)); > int numberOfPoints = filteredPolygon->GetPoints()->GetNumberOfPoints(); > double p[3] = { point[0], point[1], point[2] }; > double bounds[6]; > double normal[3]; > > filteredPolygon->ComputeNormal(filteredPolygon->GetPoints(), normal); > filteredPolygon->GetPoints()->GetBounds(bounds); > > return filteredPolygon->PointInPolygon(p, numberOfPoints, dataPointer, > bounds, normal); > } > > It happens that the above function returns true for every point inside the > polygon bounds. I've read in this mailing list that the problem can be > related to the normal. Actually, the normal value is [0, 0, 1] in this > piece > of code, so the true return makes sense regarding the space dimension > (ray-castings will never intersect a 2D object on z axis). Then I set > manually normal values such as [1, 0, 0], [0, 1, 0] and [1, 1, 0], but I > still having no luck. > > If you guys can help me, I would like to know what is going wrong on my > implementation. > > Thanks a lot. > > Joao. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Point-in-Polygon-does-not-return-correct-value-as-expected-tp5732164.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Thu Jun 4 09:01:13 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Thu, 4 Jun 2015 06:01:13 -0700 (MST) Subject: [vtkusers] Point in Polygon does not return correct value as expected In-Reply-To: References: <1433419953232-5732164.post@n5.nabble.com> Message-ID: <1433422873397-5732168.post@n5.nabble.com> Hi, I just got it working! The issue was that I was inserting a point twice (at the beginning and ending) in polygonFiltered->GetPoints() list. So, I think the polygon was not well defined for PointInPolygon calculation. Thanks anyway! Joao. -- View this message in context: http://vtk.1045678.n5.nabble.com/Point-in-Polygon-does-not-return-correct-value-as-expected-tp5732164p5732168.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Thu Jun 4 12:05:27 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Thu, 4 Jun 2015 12:05:27 -0400 Subject: [vtkusers] Volume Rendering Update In-Reply-To: References: Message-ID: Hi All, Just wanted to let you know that we merged another branch earlier this morning and that should improve volume rendering shading performance by upto 300% (results may vary depending on the OS, datatype, and what features are used and enabled). If you run into slowness or any other bottleneck, please feel free to contact us. Thanks, Aashish On Fri, May 29, 2015 at 5:31 PM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > Folks, > > We made some recent improvements to VTK volume rendering including fixes > to related components. Here is a list of those changes: > > 1) Now new GPU Volume Mapper respect Interpolation Type (Linear or > Nearest). Default is Nearest as in the last GPU mapper. > > 2) Shading is now twice as fast as before. There will be another branch to > make it even faster. > > 3) Fixed lighting bug (number of lights kept on increasing with change in > volume property) > > 4) Saving and Restoring GL state properly for textures > > 5) Bias and Scale are now performed in Shader. > > 6) We changed some GL texture format information to support OpenGL 3 > context > > 7) Fixed extensions were not reported correctly on GL2 context > > 8) Fixed few failing tests specifically on Mesa > > 9) Removed VolumeOpenGLNew module as it was not as usable with OpenGL2 > getting ready for primetime > > 10) Added convenience API to SmartVolume Mapper > > 11) Cleaned up logic for dealing with context changes in Volume Mapper > > > Please let us know if you have any questions. > > Thanks, > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From nkovac2 at uwo.ca Thu Jun 4 17:32:27 2015 From: nkovac2 at uwo.ca (Nicole Kovacs) Date: Thu, 4 Jun 2015 21:32:27 +0000 Subject: [vtkusers] VTK 6 and Python Message-ID: Hi all, I'm trying to build VTK with Python (and PyQt as well). After some time I was able to do it successfully on VTK5.10, but the same procedure does not work for VTK6.2 (as I couldn't find the setup.py script). The error I'm getting is when running python from Command Prompt and typing "import vtk". I get an error saying: ImportError: DLL load failed: The specified module could not be found which is probably caused by not running setup.py or some other detail that I missed. It may be important to note that I'm working in a Windows 7 with Visual Studio 2012, PyQt4, and Qt4. Also, running vtkpython works. I do realize there are binaries for doing this, but I want to build VTK from source. So what I would like to ask is: Is there a tutorial or a set of instructions on how to build VTK6 with Python properly (in Windows)? If not, what are the differences between building Python with VTK5.10 and VTK6? Regards, Nicole -------------- next part -------------- An HTML attachment was scrubbed... URL: From francois.lasson at institutmaupertuis.fr Fri Jun 5 05:20:28 2015 From: francois.lasson at institutmaupertuis.fr (Francois Lasson) Date: Fri, 05 Jun 2015 11:20:28 +0200 Subject: [vtkusers] How to reorganized a VtkStripper? Message-ID: <557169DC.6040108@institutmaupertuis.fr> Hello, I'm trying to reorganize a vtkstripper , in other words modify index of lines. I have a vtkStripper, I get his cells, reorganize them and I try to put back cells in my vtkStripper. Does anyone have a solution? Thanks, Fran?ois. My function : bool Routing::compareByIndex(vtkSmartPointer &stripper){ //Pair vector with cells (lines) and index std::vector > > lines; //Get lines vtkIdType numberOfLines = stripper->GetOutput()->GetNumberOfLines(); vtkPoints *points = stripper->GetOutput()->GetPoints(); vtkCellArray *cells = stripper->GetOutput()->GetLines(); vtkIdType *indices; vtkIdType numberOfPoints; unsigned int lineCount = 0; //For all lines for (cells->InitTraversal(); cells->GetNextCell(numberOfPoints, indices); lineCount++) // Next line { //Get index (distance with a dot product) double start_point[3]; points->GetPoint(indices[0],start_point); Eigen::Vector3f vector_point(start_point[0],start_point[1],start_point[2]); float dist = this->vector_dir_.dot(vector_point); //In order to get distance between (0,0,0) and first point of each lines //Get cell vtkSmartPointer cell = vtkSmartPointer::New(); cells->GetCell(lineCount,cell); //Push back to vector lines.push_back(std::make_pair(dist,cell)); } // Sort the array std::sort(lines.begin(), lines.end(), sortFunction); //modify stripper vtkSmartPointer cellArray = vtkSmartPointer::New(); for(int i=0; iInsertNextCell(lines[i].second); vtkSmartPointer stripper_temp = vtkSmartPointer::New(); stripper_temp->GetOutput()->SetLines(cellArray); std::cout<<" Number of lines in stripper : "<GetOutput()->GetNumberOfLines()<Update(); stripper->GetOutput()->ShallowCopy(stripper_temp->GetOutput()); stripper->Update(); return true; } From 2130220212 at email.szu.edu.cn Fri Jun 5 07:04:03 2015 From: 2130220212 at email.szu.edu.cn (Jason) Date: Fri, 5 Jun 2015 04:04:03 -0700 (MST) Subject: [vtkusers] Image blending using two or three corresponding points Message-ID: <1433502243850-5732177.post@n5.nabble.com> Hey everybody, I'm trying to create a image fusion using the vtkImageBlend class. But the two images' origin are not corresponding, what I know is it has a corresponding point set: p1,p2,p3 in image1 and p1', p2' p3' in image2. I'm wondering if there someway in VTK to fuse the two images fast (not registration or resample things). Thanks in advance and best regards, Jason -- View this message in context: http://vtk.1045678.n5.nabble.com/Image-blending-using-two-or-three-corresponding-points-tp5732177.html Sent from the VTK - Users mailing list archive at Nabble.com. From 2130220212 at email.szu.edu.cn Fri Jun 5 07:12:48 2015 From: 2130220212 at email.szu.edu.cn (Jason) Date: Fri, 5 Jun 2015 04:12:48 -0700 (MST) Subject: [vtkusers] VTK6 with Qt - undefined reference to QVTKWidget In-Reply-To: References: Message-ID: <1433502768191-5732178.post@n5.nabble.com> It is weird. But maybe you can just add QVTK or QVTKWidgetPlugin to target_link_libraries instead of -lvtkGUISupportQt-6.2. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK6-with-Qt-undefined-reference-to-QVTKWidget-tp5732148p5732178.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Fri Jun 5 08:21:10 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 5 Jun 2015 06:21:10 -0600 Subject: [vtkusers] VTK 6 and Python In-Reply-To: References: Message-ID: Hi Nicole, What is VTK_INSTALL_PYTHON_MODULE_DIR set to in your cmake cache? It should be python's site-packages directory, e.g. C:/Python27/Lib/site-packages. Alternatively, you can manually copy lib/*.pyd and Wrapping/Python/vtk from your build directory into python's site-packages directory. There might be a tutorial, but I haven't seen one. - David On Thu, Jun 4, 2015 at 3:32 PM, Nicole Kovacs wrote: > Hi all, > > > I'm trying to build VTK with Python (and PyQt as well). After some time > I was able to do it successfully on VTK5.10, but the same procedure does > not work for VTK6.2 (as I couldn't find the setup.py script). > > > The error I'm getting is when running python from Command Prompt and > typing "import vtk". I get an error saying: > > > ImportError: DLL load failed: The specified module could not be found > > > which is probably caused by not running setup.py or some other detail > that I missed. > > > It may be important to note that I'm working in a Windows 7 with Visual > Studio 2012, PyQt4, and Qt4. Also, running vtkpython works. > > > I do realize there are binaries for doing this, but I want to build VTK > from source. So what I would like to ask is: > > *Is there a tutorial or a set of instructions on how to build VTK6 with > Python properly (in Windows)? If not, what are the differences between > building Python with VTK5.10 and VTK6?* > > > Regards, > > Nicole > -------------- next part -------------- An HTML attachment was scrubbed... URL: From 2130220212 at email.szu.edu.cn Fri Jun 5 09:35:35 2015 From: 2130220212 at email.szu.edu.cn (Jason) Date: Fri, 5 Jun 2015 06:35:35 -0700 (MST) Subject: [vtkusers] VTK6 with QT Message-ID: <1433511335588-5732180.post@n5.nabble.com> I found that it will make error when interacting at QVTKWidget with the mouse left button down and drag to change the ColorWindow and ColorLevel, the whole image will turn to be white and it cannot turn back to original with button Shift+r. But the vtk version 5.8.0 is OK for this. Any idea about this? Thanks, Jason -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK6-with-QT-tp5732180.html Sent from the VTK - Users mailing list archive at Nabble.com. From pavelkalinnikov at gmail.com Fri Jun 5 10:46:33 2015 From: pavelkalinnikov at gmail.com (Pavel Kalinnikov) Date: Fri, 5 Jun 2015 17:46:33 +0300 Subject: [vtkusers] Using QVTKWidget with QT5 on Linux In-Reply-To: References: <20150508214524.GB15229@megas.kitware.com> <20150511150451.GA10573@megas.kitware.com> Message-ID: Hi, Have Marcus looked at the issue? 2015-05-18 14:14 GMT+03:00 Pavel Kalinnikov : > Hi guys, > > Any updates? > > 2015-05-11 18:04 GMT+03:00 Ben Boeckel : > >> On Sat, May 09, 2015 at 01:03:08 +0300, Pavel Kalinnikov wrote: >> > As I said before, I've build and run the "Examples/GUI/Qt/Events" >> example >> > from the VTK-6.2.0 distribution. But I think we can find even simpler >> test >> > which reproduces the problem. >> >> I've reproduced the problem with the old OpenGL backend; it crashes with >> OpenGL2. It seems to be related to depth peeling (something we >> apparently don't test all that well) not working properly with the >> context Qt5 is using. I've asked Marcus to look at it (since he's much >> more familiar with the Qt/OpenGL codepaths than I). >> >> Thanks for the report. >> >> --Ben >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Fri Jun 5 11:55:00 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Fri, 5 Jun 2015 11:55:00 -0400 Subject: [vtkusers] Using QVTKWidget with QT5 on Linux In-Reply-To: References: <20150508214524.GB15229@megas.kitware.com> <20150511150451.GA10573@megas.kitware.com> Message-ID: I have not yet, time has been a scarce resource. I need it to work, but am being pulled in a few directions right now... On Fri, Jun 5, 2015 at 10:46 AM, Pavel Kalinnikov wrote: > Hi, > > Have Marcus looked at the issue? > > 2015-05-18 14:14 GMT+03:00 Pavel Kalinnikov : >> >> Hi guys, >> >> Any updates? >> >> 2015-05-11 18:04 GMT+03:00 Ben Boeckel : >>> >>> On Sat, May 09, 2015 at 01:03:08 +0300, Pavel Kalinnikov wrote: >>> > As I said before, I've build and run the "Examples/GUI/Qt/Events" >>> > example >>> > from the VTK-6.2.0 distribution. But I think we can find even simpler >>> > test >>> > which reproduces the problem. >>> >>> I've reproduced the problem with the old OpenGL backend; it crashes with >>> OpenGL2. It seems to be related to depth peeling (something we >>> apparently don't test all that well) not working properly with the >>> context Qt5 is using. I've asked Marcus to look at it (since he's much >>> more familiar with the Qt/OpenGL codepaths than I). >>> >>> Thanks for the report. >>> >>> --Ben >> >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From nkovac2 at uwo.ca Fri Jun 5 14:33:10 2015 From: nkovac2 at uwo.ca (Nicole Kovacs) Date: Fri, 5 Jun 2015 18:33:10 +0000 Subject: [vtkusers] VTK 6 Migration - GetProducerPort in SetNthInputConnection replacement In-Reply-To: References: , Message-ID: It is actually supposed to make a pipeline connection. You're right, my mistake to think SetInputData() would work. What do you mean by "you can simply pass data objects if you want to connect pipelines anymore"? I tried doing: someAlgorithm->SetNthInputConnection(port, index, *someDataObject); but it didn't work. Also, by "refactored" do you mean using just SetInputConnection? Nicole ________________________________ From: Berk Geveci Sent: Monday, June 1, 2015 1:14 PM To: Nicole Kovacs Cc: vtkusers at vtk.org Subject: Re: [vtkusers] VTK 6 Migration - GetProducerPort in SetNthInputConnection replacement Is this call supposed make a pipeline connection? Note that SetNthInputConnection() makes a pipeline connection whereas SetInputData() and variants do not. Once you figure it out, if SetInputData() is still good, I can share a way of doing what you want. If not, this code will have to be refactored. You can simply pass data objects if you want to connect pipelines anymore. Best, -berk On Fri, May 29, 2015 at 9:47 AM, Nicole Kovacs > wrote: Hi guys, I apologize if this is a basic question, I'm new to VTK and I'm trying to port some VTK code from version 5.x to version 6.x I'm facing various errors regarding GetProducerPort's removal from vtkDataObject. I know that I should be replacing someAlgorithm->SetInputConnection(someDataObject->GetProducerPort()); by someAlgorithm->SetInputData(someDataObject); but the code I have is a bit different, such as: someAlgorithm->SetNthInputConnection(port, index, someDataObject->GetProducerPort()); I thought about looking for some SetNthInputData method that takes as arguments a port and an index and could solve my problem, but haven't found anything that useful. I did find a method called SetInputDataObject(int port, vtkDataObject *data) that has the port, but not the index. Is there a way that I can port this part of my code? Is there a reason that SetInputData methods don't have indices as arguments? I have talked to the author of the code I'm porting and I know that in some cases I don't need to specify the port, only the input index. Is there a method that does that? Thank you for your attention! _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From terry.price at gmail.com Fri Jun 5 15:50:26 2015 From: terry.price at gmail.com (Terry Price) Date: Fri, 5 Jun 2015 15:50:26 -0400 Subject: [vtkusers] Simple Operation with Activiz to change camera position and update window Message-ID: Hello, I have (hopefully) a pretty simple question with Activiz and c#: I followed the instructions here: http://www.vtk.org/Wiki/VTK/CSharp/ActiViz.NET and got the sphere rendering. Now, I'd like to add a winforms button that changes the position of the camera. I added a winforms button and made the vtkRender object class-level so that the button click handler can see it. here's my button code: private void button1_Click(object sender, EventArgs e) { Renderer.GetActiveCamera().SetPosition(5.0d, 2.0d, 3.0d); } The issue is the render port doesn't update untill I click on how. How can I force it to update? -- -Terry J. Price 905-706-5371 -------------- next part -------------- An HTML attachment was scrubbed... URL: From zchenandy at gmail.com Fri Jun 5 18:29:37 2015 From: zchenandy at gmail.com (Andy Chen) Date: Fri, 5 Jun 2015 18:29:37 -0400 Subject: [vtkusers] How to set up CMAKE parameters to create the header include directory in VTK build for visual studio 2010/13 c++ Message-ID: Hello, I would like to build a vtk 5.10.1 or the latest using cmake. I can build dll version libraries but do not know how to configure the cmake so that the header file include directory can be generated by cmake for my build. I did it using cmake 2.8 and vtk 5.10.1 and forget how I did it, could you please advice? I have tried cmake 2.8 and 3.2.2. I am using visual studio 2010 and 13, c++. Any suggestion on unicode support build is also appreciated. Thanks, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From prashanth.dumpuri at gmail.com Sat Jun 6 09:07:39 2015 From: prashanth.dumpuri at gmail.com (Prashanth) Date: Sat, 6 Jun 2015 06:07:39 -0700 Subject: [vtkusers] VTK+Python on Mac OS X - no module named vtk error in Python Message-ID: All, I'm trying to use Python Wrapping for VTK on Mac OS. I'm running Mac OS X 10.10.3 and used cmake 3.2.2, XCode 6.3.2, Python 2.7, VTK-6.2 to build VTK. (I made sure Shared libraries and Python wrapping were turned on during cmake process). Everything built fine but I get '*No module named vtk*' error when I try to 'import vtk' in a python shell. Below are my .bash_profile variables --------------------------------------------------------- export PATH= ~/MyPrograms/VTK-6.2.0-Build/lib/:~/MyPrograms/VTK-6.2.0-Build/bin:$PATH export PYTHONPATH=~/MyPrograms/VTK-6.2.0/Wrapping/Python:~/MyPrograms/VTK-6.2.0-Build/bin export LD_LIBRARY_PATH=~/MyPrograms/VTK-6.2.0-Build/lib/ export DYLD_FALLBACK_LIBRARY_PATH=~/MyPrograms/VTK-6.2.0-Build/bin/ --------------------------------------------------------- Can someone please help me fix this error? Prashanth -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Sat Jun 6 09:56:28 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Sat, 6 Jun 2015 07:56:28 -0600 Subject: [vtkusers] VTK+Python on Mac OS X - no module named vtk error in Python In-Reply-To: References: Message-ID: Hi Prashanth, The LD_LIBRARY_PATH variable is ignored on OS X, use DYLD_LIBRARY_PATH instead. This is how the variables are set on my system: export PATH=/Volumes/Work/Kitware/vtk-build/bin:$PATH export DYLD_LIBRARY_PATH=/Volumes/Work/Kitware/vtk-build/bin export PYTHONPATH=/Volumes/Work/Kitware/vtk-build/Wrapping/Python:/Volumes/Work/Kitware/vtk-build/lib export TCLLIBPATH=/Volumes/Work/Kitware/vtk-build/Wrapping/Tcl/ - David On Sat, Jun 6, 2015 at 7:07 AM, Prashanth wrote: > All, > > I'm trying to use Python Wrapping for VTK on Mac OS. I'm running Mac OS X > 10.10.3 and used cmake 3.2.2, XCode 6.3.2, Python 2.7, VTK-6.2 to build > VTK. (I made sure Shared libraries and Python wrapping were turned on > during cmake process). > > Everything built fine but I get '*No module named vtk*' error when I try > to 'import vtk' in a python shell. Below are my .bash_profile variables > > --------------------------------------------------------- > export PATH= > ~/MyPrograms/VTK-6.2.0-Build/lib/:~/MyPrograms/VTK-6.2.0-Build/bin:$PATH > > export > PYTHONPATH=~/MyPrograms/VTK-6.2.0/Wrapping/Python:~/MyPrograms/VTK-6.2.0-Build/bin > > export LD_LIBRARY_PATH=~/MyPrograms/VTK-6.2.0-Build/lib/ > > export DYLD_FALLBACK_LIBRARY_PATH=~/MyPrograms/VTK-6.2.0-Build/bin/ > > --------------------------------------------------------- > > Can someone please help me fix this error? > > Prashanth > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Sat Jun 6 10:20:43 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Sat, 6 Jun 2015 08:20:43 -0600 Subject: [vtkusers] VTK+Python on Mac OS X - no module named vtk error in Python In-Reply-To: References: Message-ID: Follow up: I had an obvious error in my DYLD_LIBRARY_PATH, it should be the "lib" directory in VTK 6 (it used to be "bin" in VTK 5). I must rely on the rpath too much these days... export DYLD_LIBRARY_PATH=/Volumes/Work/Kitware/vtk-build/lib - David On Sat, Jun 6, 2015 at 7:56 AM, David Gobbi wrote: > Hi Prashanth, > > The LD_LIBRARY_PATH variable is ignored on OS X, use DYLD_LIBRARY_PATH > instead. This is how the variables are set on my system: > > export PATH=/Volumes/Work/Kitware/vtk-build/bin:$PATH > export DYLD_LIBRARY_PATH=/Volumes/Work/Kitware/vtk-build/bin > export > PYTHONPATH=/Volumes/Work/Kitware/vtk-build/Wrapping/Python:/Volumes/Work/Kitware/vtk-build/lib > export TCLLIBPATH=/Volumes/Work/Kitware/vtk-build/Wrapping/Tcl/ > > - David > > > On Sat, Jun 6, 2015 at 7:07 AM, Prashanth > wrote: > >> All, >> >> I'm trying to use Python Wrapping for VTK on Mac OS. I'm running Mac OS X >> 10.10.3 and used cmake 3.2.2, XCode 6.3.2, Python 2.7, VTK-6.2 to build >> VTK. (I made sure Shared libraries and Python wrapping were turned on >> during cmake process). >> >> Everything built fine but I get '*No module named vtk*' error when I try >> to 'import vtk' in a python shell. Below are my .bash_profile variables >> >> --------------------------------------------------------- >> export PATH= >> ~/MyPrograms/VTK-6.2.0-Build/lib/:~/MyPrograms/VTK-6.2.0-Build/bin:$PATH >> >> export >> PYTHONPATH=~/MyPrograms/VTK-6.2.0/Wrapping/Python:~/MyPrograms/VTK-6.2.0-Build/bin >> >> export LD_LIBRARY_PATH=~/MyPrograms/VTK-6.2.0-Build/lib/ >> >> export DYLD_FALLBACK_LIBRARY_PATH=~/MyPrograms/VTK-6.2.0-Build/bin/ >> >> --------------------------------------------------------- >> >> Can someone please help me fix this error? >> >> Prashanth >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From prashanth.dumpuri at gmail.com Sat Jun 6 11:32:47 2015 From: prashanth.dumpuri at gmail.com (Prashanth) Date: Sat, 6 Jun 2015 08:32:47 -0700 Subject: [vtkusers] VTK+Python on Mac OS X - no module named vtk error in Python In-Reply-To: References: Message-ID: Thanks, David. I now get this error - "No module named vtkCommonCorePython". Below is the complete error message Traceback (most recent call last): File "", line 1, in File "/MyPrograms/VTK-6.2.0-Build/Wrapping/Python/vtk/__init__.py", line 39, in from vtkCommonCore import * File "/Users/prashanthdumpuri/MyPrograms/VTK-6.2.0-Build/Wrapping/Python/vtk/vtkCommonCore.py", line 1, in from vtkCommonCorePython import * ImportError: No module named vtkCommonCorePython And, for the record here's a list of my .bash_profile variables PYTHONPATH /MyPrograms/VTK-6.2.0-Build/Wrapping/Python:/MyPrograms/VTK-6.2.0-Build/bin/Debug:/MyPrograms/VTK-6.2.0-Build/bin/Release DYLD_LIBRARY_PATH /MyPrograms/VTK-6.2.0-Build/lib/Debug:/MyPrograms/VTK-6.2.0-Build/lib/Release PATH (relevant to VTK) /MyPrograms/VTK-6.2.0-Build/lib/Debug:/MyPrograms/VTK-6.2.0-Build/lib/Release:/MyPrograms/VTK-6.2.0-Build/lib/Debug:/MyPrograms/VTK-6.2.0-Build/bin/Release:/MyPrograms/VTK-6.2.0-Build/lib/Debug:/MyPrograms/VTK-6.2.0-Build/bin/Debug Prashanth On Sat, Jun 6, 2015 at 7:20 AM, David Gobbi wrote: > Follow up: I had an obvious error in my DYLD_LIBRARY_PATH, it should be > the "lib" directory in VTK 6 (it used to be "bin" in VTK 5). I must rely > on the rpath too much these days... > > export DYLD_LIBRARY_PATH=/Volumes/Work/Kitware/vtk-build/lib > > - David > > On Sat, Jun 6, 2015 at 7:56 AM, David Gobbi wrote: > >> Hi Prashanth, >> >> The LD_LIBRARY_PATH variable is ignored on OS X, use DYLD_LIBRARY_PATH >> instead. This is how the variables are set on my system: >> >> export PATH=/Volumes/Work/Kitware/vtk-build/bin:$PATH >> export DYLD_LIBRARY_PATH=/Volumes/Work/Kitware/vtk-build/bin >> export >> PYTHONPATH=/Volumes/Work/Kitware/vtk-build/Wrapping/Python:/Volumes/Work/Kitware/vtk-build/lib >> export TCLLIBPATH=/Volumes/Work/Kitware/vtk-build/Wrapping/Tcl/ >> >> - David >> >> >> On Sat, Jun 6, 2015 at 7:07 AM, Prashanth >> wrote: >> >>> All, >>> >>> I'm trying to use Python Wrapping for VTK on Mac OS. I'm running Mac OS >>> X 10.10.3 and used cmake 3.2.2, XCode 6.3.2, Python 2.7, VTK-6.2 to build >>> VTK. (I made sure Shared libraries and Python wrapping were turned on >>> during cmake process). >>> >>> Everything built fine but I get '*No module named vtk*' error when I >>> try to 'import vtk' in a python shell. Below are my .bash_profile variables >>> >>> --------------------------------------------------------- >>> export PATH= >>> ~/MyPrograms/VTK-6.2.0-Build/lib/:~/MyPrograms/VTK-6.2.0-Build/bin:$PATH >>> >>> export >>> PYTHONPATH=~/MyPrograms/VTK-6.2.0/Wrapping/Python:~/MyPrograms/VTK-6.2.0-Build/bin >>> >>> export LD_LIBRARY_PATH=~/MyPrograms/VTK-6.2.0-Build/lib/ >>> >>> export DYLD_FALLBACK_LIBRARY_PATH=~/MyPrograms/VTK-6.2.0-Build/bin/ >>> >>> --------------------------------------------------------- >>> >>> Can someone please help me fix this error? >>> >>> Prashanth >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From liyihai2009 at qq.com Sat Jun 6 22:30:08 2015 From: liyihai2009 at qq.com (=?gb18030?B?ste6o9K7y9o=?=) Date: Sun, 7 Jun 2015 10:30:08 +0800 Subject: [vtkusers] Why doesn't VTK6.2.0 contain vtkPolyLineWidget.h Message-ID: vtkPolyLineWidgetTest1(https://github.com/Kitware/VTK/blob/master/Interaction/Widgets/Testing/Cxx/vtkPolyLineWidgetTest1.cxx) include header file vtkPolyLineWidget.h, but I can't find this header file in VTK-6.2.0, Why ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From robertgreen at gigacomp.co.za Sun Jun 7 04:01:08 2015 From: robertgreen at gigacomp.co.za (robert09) Date: Sun, 7 Jun 2015 01:01:08 -0700 (MST) Subject: [vtkusers] Color each object independantly with vtkProgrammableGlyphFilter Message-ID: <1433664068741-5732192.post@n5.nabble.com> Hi, I would like to use VTk for the visualisation of an Octree containing both occupancy and NDT data. The main problem that I am having is that I cannot seem to get each voxel (cuboid) coloured independently. All cuboids are shown at the correct position and is the correct size. My Code is structured as follows. cubedata = [] points = vtk.vtkPoints() colors = vtk.vtkUnsignedCharArray() colors.SetNumberOfComponents(3) colors.SetName("Colors") index = 0 for k, node in enumerate(tree): if (node.occupancy > 0) and node.isLeaf: node.get_cube_display_data(minHeight, maxHeigth,index,points,colors,cubedata) index+=1 def Glyph(): ptId = glypher.GetPointId() xyz = glypher.GetPoint() cube.SetCenter(xyz) cube.SetXLength(cubedata[ptId][0]) cube.SetYLength(cubedata[ptId][1]) cube.SetZLength(cubedata[ptId][2]) polydata = vtk.vtkPolyData() polydata.SetPoints(points) colors.SetNumberOfTuples(polydata.GetNumberOfPoints()) polydata.GetPointData().SetScalars(colors) cube = vtk.vtkCubeSource() glypher = vtk.vtkProgrammableGlyphFilter() glypher.SetColorModeToColorByInput() glypher.SetInput(polydata) glypher.SetSource(cube.GetOutput()) glypher.SetGlyphMethod(Glyph) glyphMapper = vtk.vtkPolyDataMapper() glyphMapper.SetInputConnection(glypher.GetOutputPort()) glyphActor = vtk.vtkActor() glyphActor.SetMapper(glyphMapper) # Create the rendering stuff ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) ren1.AddActor(glyphActor) ren1.SetBackground(1, 1, 1) renWin.SetSize(450, 450) renWin.Render() In the code given above the "get_cube_display_data function looks" like this: def get_cube_display_data(self, _minHeight, _maxHeigth, _index, _points, _colors, _cube_data): h = (float(self.position[2]-_minHeight) / (_maxHeigth-_minHeight)) r,g,b = colorsys.hsv_to_rgb(h, 1., 1.) col = (int(r*255),int(g*255),int(b*255)) _points.InsertNextPoint(self.position[0], self.position[1], self.position[2]) _colors.InsertNextTupleValue(col) _cube_data.append((self.size,self.size,self.size)) So basically for each leaf node in the octree I add its position to the points and its colour (determined by height) to the color char array. Even if I set to "col" variable in the get_cube_display_data to (0,255,0), I still get random coloured cuboids. Any help would be greatly appreciated. Regards -- View this message in context: http://vtk.1045678.n5.nabble.com/Color-each-object-independantly-with-vtkProgrammableGlyphFilter-tp5732192.html Sent from the VTK - Users mailing list archive at Nabble.com. From prashanth.dumpuri at gmail.com Sun Jun 7 10:13:55 2015 From: prashanth.dumpuri at gmail.com (Prashanth) Date: Sun, 7 Jun 2015 07:13:55 -0700 Subject: [vtkusers] "zoom in" in VTK Image viewer when displaying CT images Message-ID: All, I recently discovered ITK-SNAP and have noticed that ITK-SNAP produces a pixelated image (poor quality image) when zooming in the 2D image views. I'm just doing a 2x zoom in ITK-SNAP but the image looks really pixelated after zooming in. In my opinion VTK Image viewer produces better looking images. My CT image is of size 832 x 832 x 265 (0.8mm slice thickness). So, it's not lack of data in the input image that's causing pixelated displays. I don't know how VTK handles zooming but as I understand it, glScalef is the function in ITK-SNAP handling zoom. How does VTK handle 'zoom in' ? Is there something I can do to improve the quality in ITK-SNAP? P.S. I have asked ITK-SNAP a similar question about 'zooming in' and glScalef. I'm posting here because I would like to know how VTK handles 'zooming in' and also in my limited experience with ITK-SNAP, the response time in VTK users mailing list is quicker. Thanks Prashanth -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Sun Jun 7 10:55:57 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Sun, 7 Jun 2015 08:55:57 -0600 Subject: [vtkusers] "zoom in" in VTK Image viewer when displaying CT images In-Reply-To: References: Message-ID: Hi Prashanth, VTK uses glLoadMatrix and glMultMatrix to load the view transforms, but whether these are used, versus glScale, has no impact on image quality. Instead, image display quality is a result of what filtering is used when drawing the image. When image interpolation is turned on in VTK (which is the default) the following OpenGL calls are made as part of the texture display pipeline: glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); If ITK-SNAP uses textures to display images, these functions should also work there. - David * Note: VTK is rapidly moving to a new OpenGL implementation where shader programs are used, rather than calls to glLoadMatrix and glTexParameter. On Sun, Jun 7, 2015 at 8:13 AM, Prashanth wrote: > All, > > I recently discovered ITK-SNAP and have noticed that ITK-SNAP produces a > pixelated image (poor quality image) when zooming in the 2D image views. > I'm just doing a 2x zoom in ITK-SNAP but the image looks really pixelated > after zooming in. > > In my opinion VTK Image viewer produces better looking images. My CT image > is of size 832 x 832 x 265 (0.8mm slice thickness). So, it's not lack of > data in the input image that's causing pixelated displays. I don't know how > VTK handles zooming but as I understand it, glScalef is the function in > ITK-SNAP handling zoom. > > How does VTK handle 'zoom in' ? Is there something I can do to improve the > quality in ITK-SNAP? > > P.S. I have asked ITK-SNAP a similar question about 'zooming in' and > glScalef. I'm posting here because I would like to know how VTK handles > 'zooming in' and also in my limited experience with ITK-SNAP, the response > time in VTK users mailing list is quicker. > > Thanks > Prashanth > -------------- next part -------------- An HTML attachment was scrubbed... URL: From prashanth.dumpuri at gmail.com Sun Jun 7 12:05:50 2015 From: prashanth.dumpuri at gmail.com (Prashanth) Date: Sun, 7 Jun 2015 09:05:50 -0700 Subject: [vtkusers] "zoom in" in VTK Image viewer when displaying CT images In-Reply-To: References: Message-ID: David, Thanks for the immediate response. Your suggestion works. I stopped debugging ITK-SNAP at glScalef and assumed that it was the command responsible for displaying texture. After I read your email, I looked further and ITK-SNAP does use texture mapping and the default is set to 'nearest neighbor'. I changed that to 'Linear' and the display (after zooming in) is similar to VTK. Thanks again Prashanth On Sun, Jun 7, 2015 at 7:55 AM, David Gobbi wrote: > Hi Prashanth, > > VTK uses glLoadMatrix and glMultMatrix to load the view transforms, but > whether these are used, versus glScale, has no impact on image quality. > > Instead, image display quality is a result of what filtering is used when > drawing the image. When image interpolation is turned on in VTK (which is > the default) the following OpenGL calls are made as part of the texture > display pipeline: > > glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); > glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); > > If ITK-SNAP uses textures to display images, these functions should also > work there. > > - David > > * Note: VTK is rapidly moving to a new OpenGL implementation where shader > programs are used, rather than calls to glLoadMatrix and glTexParameter. > > On Sun, Jun 7, 2015 at 8:13 AM, Prashanth > wrote: > >> All, >> >> I recently discovered ITK-SNAP and have noticed that ITK-SNAP produces a >> pixelated image (poor quality image) when zooming in the 2D image views. >> I'm just doing a 2x zoom in ITK-SNAP but the image looks really pixelated >> after zooming in. >> >> In my opinion VTK Image viewer produces better looking images. My CT >> image is of size 832 x 832 x 265 (0.8mm slice thickness). So, it's not lack >> of data in the input image that's causing pixelated displays. I don't know >> how VTK handles zooming but as I understand it, glScalef is the function in >> ITK-SNAP handling zoom. >> >> How does VTK handle 'zoom in' ? Is there something I can do to improve >> the quality in ITK-SNAP? >> >> P.S. I have asked ITK-SNAP a similar question about 'zooming in' and >> glScalef. I'm posting here because I would like to know how VTK handles >> 'zooming in' and also in my limited experience with ITK-SNAP, the response >> time in VTK users mailing list is quicker. >> >> Thanks >> Prashanth >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zchenandy at gmail.com Sun Jun 7 14:14:04 2015 From: zchenandy at gmail.com (Andy Chen) Date: Sun, 7 Jun 2015 14:14:04 -0400 Subject: [vtkusers] Can VTK be built for UNICODE in visual studio 2013 C++? Message-ID: Hello, Can anyone please let me know the answer? I mean compile and build as it is. Thanks for your help in advance. Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Sun Jun 7 15:59:58 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Sun, 7 Jun 2015 13:59:58 -0600 Subject: [vtkusers] Can VTK be built for UNICODE in visual studio 2013 C++? In-Reply-To: References: Message-ID: In general, no. To be more specific: 1) The vtk examples all use "main" instead of "wmain", therefore the program arguments use the Windows 8-bit codepage rather than unicode. 2) When VTK does system calls (opening/closing files etc) it does one of three things, depending on exactly what VTK class is using the file: a) some classes use the non-"wide" system calls, i.e. 8-bit all the way through b) some classes use kwsys, which for the most part converts 8-bit strings to Windows unicode and then calls the "wide" system methods c) some classes open files with a third-party library, e.g. libjpeg jpeg files or libpng for png files, and I'm not sure what those third-party libraries do under-the-hood. I think it would be nice if VTK, as a rule, always used either utf-8 strings or vtkUnicodeString internally, and always used "wide" system calls on Windows, with automatic conversion between utf-8 and Windows unicode whenever necessary. That's still a ways off, though. It would be a sizeable job for anyone to implement and test this. - David On Sun, Jun 7, 2015 at 12:14 PM, Andy Chen wrote: > Hello, > > Can anyone please let me know the answer? I mean compile and build as it > is. > > Thanks for your help in advance. > > Andy > -------------- next part -------------- An HTML attachment was scrubbed... URL: From liyihai2009 at qq.com Mon Jun 8 03:56:58 2015 From: liyihai2009 at qq.com (=?gb18030?B?ste6o9K7y9o=?=) Date: Mon, 8 Jun 2015 15:56:58 +0800 Subject: [vtkusers] How to get vtkSplineWidget's handle index ? Message-ID: I use vtkSplineWidget to create curve interactively. I know that vtkSplineWidget has a Attribute "CurrentHanleIndex", but we can't use it as it's protected. How can I get the index of the selected spline handle, when clicking on it ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Liyihai2009 at qq.com Mon Jun 8 04:10:22 2015 From: Liyihai2009 at qq.com (Yihai Li) Date: Mon, 8 Jun 2015 01:10:22 -0700 (MST) Subject: [vtkusers] combining vtkSplineWidget with vtkSeedWidget In-Reply-To: References: Message-ID: <1433751022218-5732204.post@n5.nabble.com> Have you ever tried the functions as show below ? vtkSplineWidget Public Member Functions: void SetHandlePosition (int handle, double x, double y, double z) void SetHandlePosition (int handle, double xyz[3]) void GetHandlePosition (int handle, double xyz[3]) double * GetHandlePosition (int handle) -- View this message in context: http://vtk.1045678.n5.nabble.com/combining-vtkSplineWidget-with-vtkSeedWidget-tp1240095p5732204.html Sent from the VTK - Users mailing list archive at Nabble.com. From davidc at enthought.com Mon Jun 8 08:26:37 2015 From: davidc at enthought.com (David Cournapeau) Date: Mon, 8 Jun 2015 21:26:37 +0900 Subject: [vtkusers] How to disable rpath stripping at install time ? Message-ID: Hi, While looking into the new VTK 6.2.0, I got some trouble in our build scripts as I can't disable cmake "stripping rpath at install time" behaviour on OS X. I am using cmake 3.1.1, and my understanding was that using -DCMAKE_INSTALL_RPATH:STRING=/some/instal/path would do what I want, but to no avail. What option should I use ? thank you, David -- blog: http://cournape.wordpress.com code: https://github.com/cournape twitter: @cournape -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeav1 at hotmail.com Mon Jun 8 14:23:32 2015 From: zeav1 at hotmail.com (Grabriel) Date: Mon, 8 Jun 2015 11:23:32 -0700 (MST) Subject: [vtkusers] Error MSB6006 while building VTK. In-Reply-To: References: Message-ID: <1433787812767-5732206.post@n5.nabble.com> Hi! I' trying to build vtk 6.2, but I get two errors when compiling in visual studio 2013 mode debug 64 bits, on windows 8.1, Error 28 error MSB6006: "cmd.exe" exited with 2. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets VTKJavaClasses and Error 29 error MSB6006: "cmd.exe" exited with code 2. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets VTKJavaJar. I'm trying to build whith wraping java. someone can help me solve this problem please. thaks in advanced -- View this message in context: http://vtk.1045678.n5.nabble.com/Error-MSB6006-while-building-VTK-tp5730308p5732206.html Sent from the VTK - Users mailing list archive at Nabble.com. From bhathaw1 at nycap.rr.com Mon Jun 8 20:05:56 2015 From: bhathaw1 at nycap.rr.com (Barry Hathaway) Date: Mon, 08 Jun 2015 20:05:56 -0400 Subject: [vtkusers] vtkDistanceWidget and surface placement Message-ID: <55762DE4.20305@nycap.rr.com> I'm trying to measure a wound area where the skin surface is represented by a 3D point cloud. When I place the endpoints of the vtkDistanceWidget and then rotate the object the endpoints are place somewhere in the air. Any ideas how to make the endpoints of the widget snap to the closest surface point? Thanks in advance. Barry Hathaway From liyihai2009 at qq.com Mon Jun 8 22:24:46 2015 From: liyihai2009 at qq.com (=?gb18030?B?ste6o9K7y9o=?=) Date: Tue, 9 Jun 2015 10:24:46 +0800 Subject: [vtkusers] How to get length of contour in vtkContourWidget ? Message-ID: I used vtkContourWidget to draw a contour, and tried to get length of it. I noticed that vtkSplineWidget has a public member function GetSummedLength (), but vtkContourWidget doesn't. How can I achieve this goal(get the length of contour)? -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Jun 9 00:13:47 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 8 Jun 2015 22:13:47 -0600 Subject: [vtkusers] How to disable rpath stripping at install time ? In-Reply-To: References: Message-ID: I don't have an answer, but I suspect that these links tell part of the story: https://gitlab.kitware.com/vtk/vtk/commit/cd0b6e688c http://www.cmake.org/Wiki/CMake_RPATH_handling - David On Mon, Jun 8, 2015 at 6:26 AM, David Cournapeau wrote: > Hi, > > While looking into the new VTK 6.2.0, I got some trouble in our build > scripts as I can't disable cmake "stripping rpath at install time" > behaviour on OS X. > > I am using cmake 3.1.1, and my understanding was that using > -DCMAKE_INSTALL_RPATH:STRING=/some/instal/path would do what I want, but > to no avail. > > What option should I use ? > > thank you, > David > > -- > blog: http://cournape.wordpress.com > code: https://github.com/cournape > twitter: @cournape > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Tue Jun 9 09:36:34 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Tue, 9 Jun 2015 09:36:34 -0400 Subject: [vtkusers] Removing support for VS 8 and GCC < 4.1 Message-ID: Hi folks, Sean graciously created a branch that removes support for Visual Studio 8 and GCC < 4.1: https://gitlab.kitware.com/vtk/vtk/merge_requests/38 GCC 4.1 was released in 2006 and VS 9 was released in 2008 (actually late 2007). I believe that this is very reasonable. We removed support for VS 7 and GCC < 3 in 2013 and doing this regularly makes it easier to maintain VTK. Are there any major use cases for keeping these compilers? Unless I hear a good argument against merging this change in the next few weeks, I will go ahead and approve it. Moving forward, we will likely be more aggressive removing support for older compilers. The VTK developer community really wants to leverage new C++ features (C++ 11) and newer library/compiler features (e.g. TBB, OpenMP 3 and 4) etc. We want to get there relatively fast and this will require dropping old compilers more quickly than before. Thanks, -berk -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Tue Jun 9 09:58:50 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 09 Jun 2015 13:58:50 +0000 Subject: [vtkusers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: Message-ID: +1. People using those compiler can stick with previous versions of VTK. On Tue, Jun 9, 2015 at 9:37 AM Berk Geveci wrote: > Hi folks, > > Sean graciously created a branch that removes support for Visual Studio 8 > and GCC < 4.1: > > https://gitlab.kitware.com/vtk/vtk/merge_requests/38 > > GCC 4.1 was released in 2006 and VS 9 was released in 2008 (actually late > 2007). I believe that this is very reasonable. We removed support for VS 7 > and GCC < 3 in 2013 and doing this regularly makes it easier to maintain > VTK. > > Are there any major use cases for keeping these compilers? Unless I hear a > good argument against merging this change in the next few weeks, I will go > ahead and approve it. > > Moving forward, we will likely be more aggressive removing support for > older compilers. The VTK developer community really wants to leverage new > C++ features (C++ 11) and newer library/compiler features (e.g. TBB, OpenMP > 3 and 4) etc. We want to get there relatively fast and this will require > dropping old compilers more quickly than before. > > Thanks, > -berk > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Tue Jun 9 10:18:57 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Tue, 9 Jun 2015 07:18:57 -0700 (MST) Subject: [vtkusers] Actor color gradient Message-ID: <1433859537618-5732214.post@n5.nabble.com> Hi VTK Users, I would like to apply a color gradient on a vtkActor. I've defined scalar values to each vtkCell (by following this example http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCellsWithRGB ). However, the color transition isn't as I want. Please take a look in the attached screenshot. Also below is a piece of code responsible for rendering the image. What can I do to have it done? Thanks, Joao. // Mesh rendering vtkSmartPointer gridPolyData = mesh->getGrid(); vtkSmartPointer gridMapper = vtkSmartPointer::New(); // gridMapper->InterpolateScalarsBeforeMappingOff(); // Didn't take effect on color gradient gridMapper->SetInputData(gridPolyData); vtkSmartPointer actor = vtkSmartPointer::New(); actor->SetMapper(gridMapper); // actor->GetProperty()->SetColor(1, 1, 1); actor->GetProperty()->EdgeVisibilityOff(); renderer = vtkSmartPointer::New(); renderer->SetBackground(1, 1, 1); // White renderer->AddActor(actor); renderWindow->AddRenderer(renderer); // QVTKWidget class method this->SetRenderWindow(renderWindow); renderWindow->Render(); -- View this message in context: http://vtk.1045678.n5.nabble.com/Actor-color-gradient-tp5732214.html Sent from the VTK - Users mailing list archive at Nabble.com. From frejon at gmail.com Tue Jun 9 11:02:31 2015 From: frejon at gmail.com (Fredrik) Date: Tue, 9 Jun 2015 17:02:31 +0200 Subject: [vtkusers] vtkWindowToImageFilter - black image Message-ID: Hello. There are several threads on this topic, and the few I see, the proposed solutions are not enough or the thread is left unresolved. see this: http://public.kitware.com/pipermail/vtkusers/2014-October/085358.html http://public.kitware.com/pipermail/vtkusers/2014-October/085294.html I still am unable to generate anything else than a black image. I'm on the latest VTK, under Mac OS X 10.10. I also tried offscreen rendering, but no luck. Hours of googling and testing solutions have proven unsuccessful, I'd really appreciate if anyone could help me. here's a snippet of my code if you think it'll help tempFile = "xyz.bmp"; // write to temporary bmp file vtkBMPWriter writer = new vtkBMPWriter(); vtkWindowToImageFilter windowToImageFilter = new vtkWindowToImageFilter(); windowToImageFilter.ReadFrontBufferOff(); windowToImageFilter.SetMagnification(1); windowToImageFilter.SetInput(renderWindow); windowToImageFilter.SetInputBufferTypeToRGBA(); windowToImageFilter.ReadFrontBufferOff(); windowToImageFilter.Update(); windowToImageFilter.ReadFrontBufferOff(); writer.SetInputConnection(windowToImageFilter.GetOutputPort()); writer.SetFileName(tempFile); writer.Write(); Kind Regards, Fredrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Tue Jun 9 11:33:23 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 09 Jun 2015 15:33:23 +0000 Subject: [vtkusers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: Message-ID: > > I would go so far as to say it's reasonable that the dev/trunk/master > branch of a project should only support the two most recent stable > compiler releases on any given platform. Even less for > dev/trunk/master if there is compelling reason to use a feature only > available in the most recent stable release. > +1. At the very least, we should drop OSes and compilers that the OS/compiler provides themselves no longer support e.g. XP, Snow Leopard, etc. Utkarsh -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott.wittenburg at kitware.com Tue Jun 9 11:33:41 2015 From: scott.wittenburg at kitware.com (Scott Wittenburg) Date: Tue, 9 Jun 2015 09:33:41 -0600 Subject: [vtkusers] vtkWindowToImageFilter - black image In-Reply-To: References: Message-ID: Hi Frederik, I believe I have encountered this before. What solved it for me was turning on the "ShouldRerender" flag in addition to what you have set. Something like: windowToImageFilter.ShouldRerenderOn(); could possibly help. Cheers, Scott On Tue, Jun 9, 2015 at 9:02 AM, Fredrik wrote: > Hello. There are several threads on this topic, and the few I see, the > proposed solutions are not enough or the thread is left unresolved. see > this: > > http://public.kitware.com/pipermail/vtkusers/2014-October/085358.html > http://public.kitware.com/pipermail/vtkusers/2014-October/085294.html > > I still am unable to generate anything else than a black image. > I'm on the latest VTK, under Mac OS X 10.10. I also tried offscreen > rendering, but no luck. > > Hours of googling and testing solutions have proven unsuccessful, I'd > really appreciate if anyone could help me. > > here's a snippet of my code if you think it'll help > > tempFile = "xyz.bmp"; > // write to temporary bmp file > vtkBMPWriter writer = new vtkBMPWriter(); > vtkWindowToImageFilter windowToImageFilter = new > vtkWindowToImageFilter(); > windowToImageFilter.ReadFrontBufferOff(); > windowToImageFilter.SetMagnification(1); > windowToImageFilter.SetInput(renderWindow); > windowToImageFilter.SetInputBufferTypeToRGBA(); > windowToImageFilter.ReadFrontBufferOff(); > > windowToImageFilter.Update(); > > windowToImageFilter.ReadFrontBufferOff(); > writer.SetInputConnection(windowToImageFilter.GetOutputPort()); > writer.SetFileName(tempFile); > writer.Write(); > > > > Kind Regards, Fredrik > > > > > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From DLRdave at aol.com Tue Jun 9 11:30:48 2015 From: DLRdave at aol.com (David Cole) Date: Tue, 9 Jun 2015 11:30:48 -0400 Subject: [vtkusers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: Message-ID: Definitely +1. Agree with what Utkarsh said, plus: people writing code should be using modern tools for all sorts of good reasons: performance, security, the tools themselves are just better... I would go so far as to say it's reasonable that the dev/trunk/master branch of a project should only support the two most recent stable compiler releases on any given platform. Even less for dev/trunk/master if there is compelling reason to use a feature only available in the most recent stable release. Cheers for marching forward! David C. On Tue, Jun 9, 2015 at 9:58 AM, Utkarsh Ayachit wrote: > +1. People using those compiler can stick with previous versions of VTK. > > On Tue, Jun 9, 2015 at 9:37 AM Berk Geveci wrote: >> >> Hi folks, >> >> Sean graciously created a branch that removes support for Visual Studio 8 >> and GCC < 4.1: >> >> https://gitlab.kitware.com/vtk/vtk/merge_requests/38 >> >> GCC 4.1 was released in 2006 and VS 9 was released in 2008 (actually late >> 2007). I believe that this is very reasonable. We removed support for VS 7 >> and GCC < 3 in 2013 and doing this regularly makes it easier to maintain >> VTK. >> >> Are there any major use cases for keeping these compilers? Unless I hear a >> good argument against merging this change in the next few weeks, I will go >> ahead and approve it. >> >> Moving forward, we will likely be more aggressive removing support for >> older compilers. The VTK developer community really wants to leverage new >> C++ features (C++ 11) and newer library/compiler features (e.g. TBB, OpenMP >> 3 and 4) etc. We want to get there relatively fast and this will require >> dropping old compilers more quickly than before. >> >> Thanks, >> -berk >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From sean at rogue-research.com Tue Jun 9 11:48:10 2015 From: sean at rogue-research.com (Sean McBride) Date: Tue, 9 Jun 2015 11:48:10 -0400 Subject: [vtkusers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: Message-ID: <20150609154810.842558582@mail.rogue-research.com> On Tue, 9 Jun 2015 11:30:48 -0400, David Cole via vtkusers said: >I would go so far as to say it's reasonable that the dev/trunk/master >branch of a project should only support the two most recent stable >compiler releases on any given platform. Once my conservative patch is merged, I'll do another pass looking at what remaining workarounds exist for old compilers/OSes and post it for review/discussion. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From frejon at gmail.com Tue Jun 9 11:55:32 2015 From: frejon at gmail.com (Fredrik) Date: Tue, 9 Jun 2015 17:55:32 +0200 Subject: [vtkusers] vtkWindowToImageFilter - black image In-Reply-To: References: Message-ID: Hi Scott, thanks for the reply. Unfortunately it didn't help. I think I remember some other thread with the "ShouldRerender" flag, but I think that mentioned it should be windowToImageFilter.ShouldRerenderOff(); , not on. I tried both anyway, but no change All the best, Fredrik 2015-06-09 17:33 GMT+02:00 Scott Wittenburg : > Hi Frederik, > > I believe I have encountered this before. What solved it for me was > turning on the "ShouldRerender" flag in addition to what you have set. > Something like: > > windowToImageFilter.ShouldRerenderOn(); > > could possibly help. > > Cheers, > Scott > > > > On Tue, Jun 9, 2015 at 9:02 AM, Fredrik wrote: > >> Hello. There are several threads on this topic, and the few I see, the >> proposed solutions are not enough or the thread is left unresolved. see >> this: >> >> http://public.kitware.com/pipermail/vtkusers/2014-October/085358.html >> http://public.kitware.com/pipermail/vtkusers/2014-October/085294.html >> >> I still am unable to generate anything else than a black image. >> I'm on the latest VTK, under Mac OS X 10.10. I also tried offscreen >> rendering, but no luck. >> >> Hours of googling and testing solutions have proven unsuccessful, I'd >> really appreciate if anyone could help me. >> >> here's a snippet of my code if you think it'll help >> >> tempFile = "xyz.bmp"; >> // write to temporary bmp file >> vtkBMPWriter writer = new vtkBMPWriter(); >> vtkWindowToImageFilter windowToImageFilter = new >> vtkWindowToImageFilter(); >> windowToImageFilter.ReadFrontBufferOff(); >> windowToImageFilter.SetMagnification(1); >> windowToImageFilter.SetInput(renderWindow); >> windowToImageFilter.SetInputBufferTypeToRGBA(); >> windowToImageFilter.ReadFrontBufferOff(); >> >> windowToImageFilter.Update(); >> >> windowToImageFilter.ReadFrontBufferOff(); >> writer.SetInputConnection(windowToImageFilter.GetOutputPort()); >> writer.SetFileName(tempFile); >> writer.Write(); >> >> >> >> Kind Regards, Fredrik >> >> >> >> >> >> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Tue Jun 9 13:03:58 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 9 Jun 2015 13:03:58 -0400 Subject: [vtkusers] vtkWindowToImageFilter - black image In-Reply-To: References: Message-ID: This example works: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot On Tue, Jun 9, 2015 at 11:55 AM, Fredrik wrote: > Hi Scott, thanks for the reply. Unfortunately it didn't help. I think I > remember some other thread with the "ShouldRerender" flag, but I think that > mentioned it should be windowToImageFilter.ShouldRerenderOff(); > , not on. I tried both anyway, but no change > > All the best, > Fredrik > > 2015-06-09 17:33 GMT+02:00 Scott Wittenburg : >> >> Hi Frederik, >> >> I believe I have encountered this before. What solved it for me was >> turning on the "ShouldRerender" flag in addition to what you have set. >> Something like: >> >> windowToImageFilter.ShouldRerenderOn(); >> >> could possibly help. >> >> Cheers, >> Scott >> >> >> >> On Tue, Jun 9, 2015 at 9:02 AM, Fredrik wrote: >>> >>> Hello. There are several threads on this topic, and the few I see, the >>> proposed solutions are not enough or the thread is left unresolved. see >>> this: >>> >>> http://public.kitware.com/pipermail/vtkusers/2014-October/085358.html >>> http://public.kitware.com/pipermail/vtkusers/2014-October/085294.html >>> >>> I still am unable to generate anything else than a black image. >>> I'm on the latest VTK, under Mac OS X 10.10. I also tried offscreen >>> rendering, but no luck. >>> >>> Hours of googling and testing solutions have proven unsuccessful, I'd >>> really appreciate if anyone could help me. >>> >>> here's a snippet of my code if you think it'll help >>> >>> tempFile = "xyz.bmp"; >>> // write to temporary bmp file >>> vtkBMPWriter writer = new vtkBMPWriter(); >>> vtkWindowToImageFilter windowToImageFilter = new >>> vtkWindowToImageFilter(); >>> windowToImageFilter.ReadFrontBufferOff(); >>> windowToImageFilter.SetMagnification(1); >>> windowToImageFilter.SetInput(renderWindow); >>> windowToImageFilter.SetInputBufferTypeToRGBA(); >>> windowToImageFilter.ReadFrontBufferOff(); >>> >>> windowToImageFilter.Update(); >>> >>> windowToImageFilter.ReadFrontBufferOff(); >>> writer.SetInputConnection(windowToImageFilter.GetOutputPort()); >>> writer.SetFileName(tempFile); >>> writer.Write(); >>> >>> >>> >>> Kind Regards, Fredrik >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From mdrahos at thinksurgical.com Tue Jun 9 13:43:33 2015 From: mdrahos at thinksurgical.com (Miroslav Drahos) Date: Tue, 9 Jun 2015 10:43:33 -0700 Subject: [vtkusers] vtkWindowToImageFilter - black image In-Reply-To: References: , Message-ID: Frederik, you should call vtkRenderWindow::Render() before updating the pipeline. This is what has worked for me reliably: VTK_CREATE(vtkWindowToImageFilter, w2i); w2i->SetInput(rw); w2i->ReadFrontBufferOff(); rw->Render(); w2i->Modified(); // See doc http://www.vtk.org/doc/nightly/html/classvtkWindowToImageFilter.html#details VTK_CREATE(vtkPNGWriter, writer); writer->SetFileName(fname.c_str()); writer->SetInputConnection(w2i->GetOutputPort()); writer->Write(); where VTK_CREATE is a widely used macro: #define VTK_CREATE(type, name) vtkSmartPointer name = vtkSmartPointer::New(); HTH, Miro ________________________________________ From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of Fredrik [frejon at gmail.com] Sent: Tuesday, June 09, 2015 8:55 AM To: Scott Wittenburg Cc: vtkusers at public.kitware.com Subject: Re: [vtkusers] vtkWindowToImageFilter - black image Hi Scott, thanks for the reply. Unfortunately it didn't help. I think I remember some other thread with the "ShouldRerender" flag, but I think that mentioned it should be windowToImageFilter.ShouldRerenderOff(); , not on. I tried both anyway, but no change All the best, Fredrik 2015-06-09 17:33 GMT+02:00 Scott Wittenburg >: Hi Frederik, I believe I have encountered this before. What solved it for me was turning on the "ShouldRerender" flag in addition to what you have set. Something like: windowToImageFilter.ShouldRerenderOn(); could possibly help. Cheers, Scott On Tue, Jun 9, 2015 at 9:02 AM, Fredrik > wrote: Hello. There are several threads on this topic, and the few I see, the proposed solutions are not enough or the thread is left unresolved. see this: http://public.kitware.com/pipermail/vtkusers/2014-October/085358.html http://public.kitware.com/pipermail/vtkusers/2014-October/085294.html I still am unable to generate anything else than a black image. I'm on the latest VTK, under Mac OS X 10.10. I also tried offscreen rendering, but no luck. Hours of googling and testing solutions have proven unsuccessful, I'd really appreciate if anyone could help me. here's a snippet of my code if you think it'll help tempFile = "xyz.bmp"; // write to temporary bmp file vtkBMPWriter writer = new vtkBMPWriter(); vtkWindowToImageFilter windowToImageFilter = new vtkWindowToImageFilter(); windowToImageFilter.ReadFrontBufferOff(); windowToImageFilter.SetMagnification(1); windowToImageFilter.SetInput(renderWindow); windowToImageFilter.SetInputBufferTypeToRGBA(); windowToImageFilter.ReadFrontBufferOff(); windowToImageFilter.Update(); windowToImageFilter.ReadFrontBufferOff(); writer.SetInputConnection(windowToImageFilter.GetOutputPort()); writer.SetFileName(tempFile); writer.Write(); Kind Regards, Fredrik _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From berk.geveci at kitware.com Tue Jun 9 14:20:39 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Tue, 9 Jun 2015 14:20:39 -0400 Subject: [vtkusers] VTK 6 Migration - GetProducerPort in SetNthInputConnection replacement In-Reply-To: References: Message-ID: Sorry my bad. A typo. You _can't_ pass data objects around if your intent is to connect pipelines anymore. Instead, you need to pass the (algorithm, output port) pair for the producer of the data around now. You could use something simple like struct { vtkSmartPointer Algorithm; int OutputPort; }; Here the (Algorithm, OutputPort) represent the port the data come from. Best, -berk On Fri, Jun 5, 2015 at 2:33 PM, Nicole Kovacs wrote: > It is actually supposed to make a pipeline connection. You're right, my > mistake to think SetInputData() would work. > > > What do you mean by "you can simply pass data objects if you want to > connect pipelines anymore"? I tried doing: > > someAlgorithm->SetNthInputConnection(port, index, *someDataObject); > > but it didn't work. > > > Also, by "refactored" do you mean using just SetInputConnection? > > > Nicole > ------------------------------ > *From:* Berk Geveci > *Sent:* Monday, June 1, 2015 1:14 PM > *To:* Nicole Kovacs > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] VTK 6 Migration - GetProducerPort in > SetNthInputConnection replacement > > Is this call supposed make a pipeline connection? Note that > SetNthInputConnection() makes a pipeline connection whereas SetInputData() > and variants do not. Once you figure it out, if SetInputData() is still > good, I can share a way of doing what you want. If not, this code will have > to be refactored. You can simply pass data objects if you want to connect > pipelines anymore. > > Best, > -berk > > On Fri, May 29, 2015 at 9:47 AM, Nicole Kovacs wrote: > >> Hi guys, >> >> >> I apologize if this is a basic question, I'm new to VTK and I'm trying >> to port some VTK code from version 5.x to version 6.x >> >> >> I'm facing various errors regarding GetProducerPort's removal from >> vtkDataObject. I know that I should be replacing >> someAlgorithm->SetInputConnection(someDataObject->GetProducerPort()); >> by someAlgorithm->SetInputData(someDataObject); >> >> >> but the code I have is a bit different, such as: >> someAlgorithm->SetNthInputConnection(port, index, >> someDataObject->GetProducerPort()); >> >> >> I thought about looking for some SetNthInputData method that takes as >> arguments a port and an index and could solve my problem, but haven't found >> anything that useful. I did find a method called SetInputDataObject(int >> port, vtkDataObject *data) that has the port, but not the index. >> >> >> Is there a way that I can port this part of my code? Is there a reason >> that SetInputData methods don't have indices as arguments? >> >> >> I have talked to the author of the code I'm porting and I know that in >> some cases I don't need to specify the port, only the input index. Is there >> a method that does that? >> >> >> Thank you for your attention! >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From franciscolopezdelafranca at gmail.com Tue Jun 9 17:49:52 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Tue, 9 Jun 2015 23:49:52 +0200 Subject: [vtkusers] 3D image as N cubes In-Reply-To: References: Message-ID: Hi again, Could anybody tell what is the difference between vtkoctreepointlocator and vtkhyperoctree? I am using the former for ceating an octree from an image, but i donot know which one is the best. My intention is mainly to know how many points there are per octant. Thank you very much. My best regards. El mi?rcoles, 3 de junio de 2015, Francisco Lopez de la Franca < franciscolopezdelafranca at gmail.com> escribi?: > Thanks a lot. > And is there an example on how to traverse the whole octree? I mean, i > would like to know how many points there are per octant. > And finally, independently on the image, if i create an octree with a > fixed level, will the representation be the same? I mean, the same number > of octants with the same distribution independently on the image? > Thank you very much. > My best regards. > El 03/06/2015 15:36, "Bill Lorensen" > escribi?: > >> This example may help: >> http://www.vtk.org/Wiki/VTK/Examples/Cxx/DataStructures/OctreeVisualize >> >> >> On Wed, Jun 3, 2015 at 8:48 AM, Francisco Lopez de la Franca >> > > >> wrote: >> > Hi. >> > I've created an example (see below) but everything is OK except that the >> > output image is not created. I'd be very pleased if someone can help me >> > (maybe with an explanatory example or whatever). >> > >> > char* filename = new char[255]; >> > strcpy(filename, "nifti_image.nii"); >> > >> > vtkSmartPointer reader = >> > vtkSmartPointer::New(); >> > >> > reader->SetFileName(filename); >> > reader->Update(); >> > >> > //Create the octree >> > vtkSmartPointer octree = >> > vtkSmartPointer::New(); >> > octree->SetDataSet((vtkDataSet*) reader->GetOutput()); >> > octree->BuildLocator(); >> > >> > std::cout << "Number of cells in tree: " << >> > octree->GetDataSet()->GetNumberOfCells() << std::endl; >> > std::cout << "Number of points in tree: " << >> > octree->GetDataSet()->GetNumberOfPoints() << std::endl; >> > >> > char* outfile = new char[255]; >> > strcpy(outfile, "OcTree.vtp"); >> > >> > vtkSmartPointer writer = >> > vtkSmartPointer::New(); >> > writer->SetInputData((vtkPolyData*) octree->GetDataSet()); >> > writer->SetFileName(outfile); >> > writer->Write(); >> > >> > >> > 2015-05-29 12:40 GMT+02:00 Francisco Lopez de la Franca >> > > >: >> >> >> >> Hi everybody, >> >> I'd like to represent a 3D image as a fixed number of cubes, I mean, >> >> something like a spatial occupancy matrix in 3D. >> >> >> >> Could you, please, recommend me a fast way to do it or does it exist a >> >> data structure in VTK to achieve this? >> >> >> >> I've found the OcTree structure but I donot know if it is valid for >> this. >> >> >> >> Thank you very much. >> >> My best regards. >> >> /Francisco >> > >> > >> > >> > _______________________________________________ >> > Powered by www.kitware.com >> > >> > Visit other Kitware open-source projects at >> > http://www.kitware.com/opensource/opensource.html >> > >> > Please keep messages on-topic and check the VTK FAQ at: >> > http://www.vtk.org/Wiki/VTK_FAQ >> > >> > Search the list archives at: http://markmail.org/search/?q=vtkusers >> > >> > Follow this link to subscribe/unsubscribe: >> > http://public.kitware.com/mailman/listinfo/vtkusers >> > >> >> >> >> -- >> Unpaid intern in BillsBasement at noware dot com >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From frejon at gmail.com Tue Jun 9 18:27:02 2015 From: frejon at gmail.com (Fredrik) Date: Wed, 10 Jun 2015 00:27:02 +0200 Subject: [vtkusers] vtkWindowToImageFilter - black image In-Reply-To: References: Message-ID: Thanks for the reply Miroslav. I get an immediate Fatal Crash when I add a renderWindow.render() line. # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x000000012f4b8979, pid=42597, tid=54087 # # JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build 1.8.0_45-b14) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [libvtkRenderingOpenGL.jnilib+0x179979] vtkUpload3D::Upload(void*, unsigned char*, unsigned int*, int, long long*, int, int*)+0x149 full crash report here: http://pastebin.com/bvfxB3er Which is interesting, I can ask the JOGLVisPanel itself to render flawlessly, but not the vtkRenderWindow contained therein. I can't really make sense of the error report. If anyone could take pity on my plight and help me I'd be most appreciative. I'm suspecting some kind of JOGL/VTK/Mac problem. If it's any help, I'm debugging code that used to work years ago under JDK 6 and older versions of VTK. // Fredrik 2015-06-09 19:43 GMT+02:00 Miroslav Drahos : > Frederik, > you should call vtkRenderWindow::Render() before updating the pipeline. > This is what has worked for me reliably: > > VTK_CREATE(vtkWindowToImageFilter, w2i); > w2i->SetInput(rw); > w2i->ReadFrontBufferOff(); > rw->Render(); > w2i->Modified(); // See doc > http://www.vtk.org/doc/nightly/html/classvtkWindowToImageFilter.html#details > > VTK_CREATE(vtkPNGWriter, writer); > writer->SetFileName(fname.c_str()); > writer->SetInputConnection(w2i->GetOutputPort()); > writer->Write(); > > where VTK_CREATE is a widely used macro: > > #define VTK_CREATE(type, name) vtkSmartPointer name = > vtkSmartPointer::New(); > > HTH, > Miro > > ________________________________________ > From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of Fredrik [ > frejon at gmail.com] > Sent: Tuesday, June 09, 2015 8:55 AM > To: Scott Wittenburg > Cc: vtkusers at public.kitware.com > Subject: Re: [vtkusers] vtkWindowToImageFilter - black image > > Hi Scott, thanks for the reply. Unfortunately it didn't help. I think I > remember some other thread with the "ShouldRerender" flag, but I think that > mentioned it should be windowToImageFilter.ShouldRerenderOff(); > , not on. I tried both anyway, but no change > > All the best, > Fredrik > > 2015-06-09 17:33 GMT+02:00 Scott Wittenburg >: > Hi Frederik, > > I believe I have encountered this before. What solved it for me was > turning on the "ShouldRerender" flag in addition to what you have set. > Something like: > > windowToImageFilter.ShouldRerenderOn(); > > could possibly help. > > Cheers, > Scott > > > > On Tue, Jun 9, 2015 at 9:02 AM, Fredrik frejon at gmail.com>> wrote: > Hello. There are several threads on this topic, and the few I see, the > proposed solutions are not enough or the thread is left unresolved. see > this: > > http://public.kitware.com/pipermail/vtkusers/2014-October/085358.html > http://public.kitware.com/pipermail/vtkusers/2014-October/085294.html > > I still am unable to generate anything else than a black image. > I'm on the latest VTK, under Mac OS X 10.10. I also tried offscreen > rendering, but no luck. > > Hours of googling and testing solutions have proven unsuccessful, I'd > really appreciate if anyone could help me. > > here's a snippet of my code if you think it'll help > > tempFile = "xyz.bmp"; > // write to temporary bmp file > vtkBMPWriter writer = new vtkBMPWriter(); > vtkWindowToImageFilter windowToImageFilter = new > vtkWindowToImageFilter(); > windowToImageFilter.ReadFrontBufferOff(); > windowToImageFilter.SetMagnification(1); > windowToImageFilter.SetInput(renderWindow); > windowToImageFilter.SetInputBufferTypeToRGBA(); > windowToImageFilter.ReadFrontBufferOff(); > > windowToImageFilter.Update(); > > windowToImageFilter.ReadFrontBufferOff(); > writer.SetInputConnection(windowToImageFilter.GetOutputPort()); > writer.SetFileName(tempFile); > writer.Write(); > > > > Kind Regards, Fredrik > > > > > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kindemekuria at gmail.com Wed Jun 10 06:43:09 2015 From: kindemekuria at gmail.com (Kinde Mekuria) Date: Wed, 10 Jun 2015 19:43:09 +0900 Subject: [vtkusers] vtkWindowToImageFilter - black image In-Reply-To: References: Message-ID: I have used this code and worked form me (VTK 6.1, in Visual Studio 2010 MFC single dialog project) Resetting camera may bring hidden sane to visible range... vtkSmartPointer renderWindow; vtkSmartPointer renderWindowInteractor; ....... vtkTest->firstRenderer->ResetCameraClippingRange(); vtkTest->secondRenderer->ResetCamera(); vtkTest->renderWindowInteractor->Render(); ...... vtkSmartPointer windowToImageFilter; windowToImageFilter=vtkSmartPointer::New(); windowToImageFilter->SetInput(renderWindow); windowToImageFilter->ReadFrontBufferOff(); windowToImageFilter->SetViewport(0.0, 0.0, 0.5, 1.0); //Because I have used 2 renderers per rendering window windowToImageFilter->Update(); vtkImageData* image=windowToImageFilter->GetOutput(); On Wed, Jun 10, 2015 at 7:27 AM, Fredrik wrote: > Thanks for the reply Miroslav. I get an immediate Fatal Crash when I add a > renderWindow.render() line. > > > # A fatal error has been detected by the Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0x000000012f4b8979, pid=42597, tid=54087 > # > # JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build > 1.8.0_45-b14) > # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode > bsd-amd64 compressed oops) > # Problematic frame: > # C [libvtkRenderingOpenGL.jnilib+0x179979] vtkUpload3D char>::Upload(void*, unsigned char*, unsigned int*, int, long long*, int, > int*)+0x149 > > full crash report here: http://pastebin.com/bvfxB3er > > Which is interesting, I can ask the JOGLVisPanel itself to render > flawlessly, but not the vtkRenderWindow contained therein. > I can't really make sense of the error report. If anyone could take pity > on my plight and help me I'd be most appreciative. I'm suspecting some kind > of JOGL/VTK/Mac problem. If it's any help, I'm debugging code that used to > work years ago under JDK 6 and older versions of VTK. > > // Fredrik > > > 2015-06-09 19:43 GMT+02:00 Miroslav Drahos : > >> Frederik, >> you should call vtkRenderWindow::Render() before updating the pipeline. >> This is what has worked for me reliably: >> >> VTK_CREATE(vtkWindowToImageFilter, w2i); >> w2i->SetInput(rw); >> w2i->ReadFrontBufferOff(); >> rw->Render(); >> w2i->Modified(); // See doc >> http://www.vtk.org/doc/nightly/html/classvtkWindowToImageFilter.html#details >> >> VTK_CREATE(vtkPNGWriter, writer); >> writer->SetFileName(fname.c_str()); >> writer->SetInputConnection(w2i->GetOutputPort()); >> writer->Write(); >> >> where VTK_CREATE is a widely used macro: >> >> #define VTK_CREATE(type, name) vtkSmartPointer name = >> vtkSmartPointer::New(); >> >> HTH, >> Miro >> >> ________________________________________ >> From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of Fredrik [ >> frejon at gmail.com] >> Sent: Tuesday, June 09, 2015 8:55 AM >> To: Scott Wittenburg >> Cc: vtkusers at public.kitware.com >> Subject: Re: [vtkusers] vtkWindowToImageFilter - black image >> >> Hi Scott, thanks for the reply. Unfortunately it didn't help. I think I >> remember some other thread with the "ShouldRerender" flag, but I think that >> mentioned it should be windowToImageFilter.ShouldRerenderOff(); >> , not on. I tried both anyway, but no change >> >> All the best, >> Fredrik >> >> 2015-06-09 17:33 GMT+02:00 Scott Wittenburg > >: >> Hi Frederik, >> >> I believe I have encountered this before. What solved it for me was >> turning on the "ShouldRerender" flag in addition to what you have set. >> Something like: >> >> windowToImageFilter.ShouldRerenderOn(); >> >> could possibly help. >> >> Cheers, >> Scott >> >> >> >> On Tue, Jun 9, 2015 at 9:02 AM, Fredrik > frejon at gmail.com>> wrote: >> Hello. There are several threads on this topic, and the few I see, the >> proposed solutions are not enough or the thread is left unresolved. see >> this: >> >> http://public.kitware.com/pipermail/vtkusers/2014-October/085358.html >> http://public.kitware.com/pipermail/vtkusers/2014-October/085294.html >> >> I still am unable to generate anything else than a black image. >> I'm on the latest VTK, under Mac OS X 10.10. I also tried offscreen >> rendering, but no luck. >> >> Hours of googling and testing solutions have proven unsuccessful, I'd >> really appreciate if anyone could help me. >> >> here's a snippet of my code if you think it'll help >> >> tempFile = "xyz.bmp"; >> // write to temporary bmp file >> vtkBMPWriter writer = new vtkBMPWriter(); >> vtkWindowToImageFilter windowToImageFilter = new >> vtkWindowToImageFilter(); >> windowToImageFilter.ReadFrontBufferOff(); >> windowToImageFilter.SetMagnification(1); >> windowToImageFilter.SetInput(renderWindow); >> windowToImageFilter.SetInputBufferTypeToRGBA(); >> windowToImageFilter.ReadFrontBufferOff(); >> >> windowToImageFilter.Update(); >> >> windowToImageFilter.ReadFrontBufferOff(); >> writer.SetInputConnection(windowToImageFilter.GetOutputPort()); >> writer.SetFileName(tempFile); >> writer.Write(); >> >> >> >> Kind Regards, Fredrik >> >> >> >> >> >> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- kinde mekuria -------------- next part -------------- An HTML attachment was scrubbed... URL: From franciscolopezdelafranca at gmail.com Wed Jun 10 07:25:04 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Wed, 10 Jun 2015 13:25:04 +0200 Subject: [vtkusers] 3D image as N cubes In-Reply-To: References: Message-ID: Hi everybody, Once I retrieve the list of points (IDs) in an octree region/octant, by coding vtkIdTypeArray* points = octree->GetPointsInRegion(i); I'd like to know the scalar voxel value (0 or 1 since the image is binary) of every point in the "points" array. I've tried with "points->GetValue(iterator)" and with "points->GetTuple1()" but the result is not the expected. Please, does someone know what I should I do or what am I doing wrong? Sincerely, thank you very much. Regards 2015-06-09 23:49 GMT+02:00 Francisco Lopez de la Franca < franciscolopezdelafranca at gmail.com>: > Hi again, > Could anybody tell what is the difference between vtkoctreepointlocator > and vtkhyperoctree? I am using the former for ceating an octree from an > image, but i donot know which one is the best. My intention is mainly to > know how many points there are per octant. > Thank you very much. > My best regards. > > El mi?rcoles, 3 de junio de 2015, Francisco Lopez de la Franca < > franciscolopezdelafranca at gmail.com> escribi?: > >> Thanks a lot. >> And is there an example on how to traverse the whole octree? I mean, i >> would like to know how many points there are per octant. >> And finally, independently on the image, if i create an octree with a >> fixed level, will the representation be the same? I mean, the same number >> of octants with the same distribution independently on the image? >> Thank you very much. >> My best regards. >> El 03/06/2015 15:36, "Bill Lorensen" escribi?: >> >>> This example may help: >>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/DataStructures/OctreeVisualize >>> >>> >>> On Wed, Jun 3, 2015 at 8:48 AM, Francisco Lopez de la Franca >>> wrote: >>> > Hi. >>> > I've created an example (see below) but everything is OK except that >>> the >>> > output image is not created. I'd be very pleased if someone can help me >>> > (maybe with an explanatory example or whatever). >>> > >>> > char* filename = new char[255]; >>> > strcpy(filename, "nifti_image.nii"); >>> > >>> > vtkSmartPointer reader = >>> > vtkSmartPointer::New(); >>> > >>> > reader->SetFileName(filename); >>> > reader->Update(); >>> > >>> > //Create the octree >>> > vtkSmartPointer octree = >>> > vtkSmartPointer::New(); >>> > octree->SetDataSet((vtkDataSet*) reader->GetOutput()); >>> > octree->BuildLocator(); >>> > >>> > std::cout << "Number of cells in tree: " << >>> > octree->GetDataSet()->GetNumberOfCells() << std::endl; >>> > std::cout << "Number of points in tree: " << >>> > octree->GetDataSet()->GetNumberOfPoints() << std::endl; >>> > >>> > char* outfile = new char[255]; >>> > strcpy(outfile, "OcTree.vtp"); >>> > >>> > vtkSmartPointer writer = >>> > vtkSmartPointer::New(); >>> > writer->SetInputData((vtkPolyData*) octree->GetDataSet()); >>> > writer->SetFileName(outfile); >>> > writer->Write(); >>> > >>> > >>> > 2015-05-29 12:40 GMT+02:00 Francisco Lopez de la Franca >>> > : >>> >> >>> >> Hi everybody, >>> >> I'd like to represent a 3D image as a fixed number of cubes, I mean, >>> >> something like a spatial occupancy matrix in 3D. >>> >> >>> >> Could you, please, recommend me a fast way to do it or does it exist >>> a >>> >> data structure in VTK to achieve this? >>> >> >>> >> I've found the OcTree structure but I donot know if it is valid for >>> this. >>> >> >>> >> Thank you very much. >>> >> My best regards. >>> >> /Francisco >>> > >>> > >>> > >>> > _______________________________________________ >>> > Powered by www.kitware.com >>> > >>> > Visit other Kitware open-source projects at >>> > http://www.kitware.com/opensource/opensource.html >>> > >>> > Please keep messages on-topic and check the VTK FAQ at: >>> > http://www.vtk.org/Wiki/VTK_FAQ >>> > >>> > Search the list archives at: http://markmail.org/search/?q=vtkusers >>> > >>> > Follow this link to subscribe/unsubscribe: >>> > http://public.kitware.com/mailman/listinfo/vtkusers >>> > >>> >>> >>> >>> -- >>> Unpaid intern in BillsBasement at noware dot com >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From sur.chiranjib at gmail.com Wed Jun 10 07:44:03 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Wed, 10 Jun 2015 17:14:03 +0530 Subject: [vtkusers] Deleting "chunk of points" from Polydata Message-ID: Hi All, I want to delete some points from a polydata. Going through the user group and various other discussion forum, I realised that there is no direct utility to delete points from polydata. Using the VTk example page ( http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DeletePoint) I am able to delete vtkpoints from the polydata. The code snippet is here // polydata : defined earlier // vtkSmartPointer polydata = vtkSmartPointer::New() vtkSmartPointer newPoints = vtkSmartPointer::New(); vtkSmartPointer newPolydata = vtkSmartPointer::New(); newPolydata->SetPoints( newPoints ); for(vtkIdType i = 0; i < polydata->GetNumberOfPoints(); i++) { if(i != 10 && i!=20 ) // deleting point 10 and 20 { double p[3]; polydata->GetPoint(i,p); newPoints->InsertNextPoint(p); } } polydata->ShallowCopy(newPolydata); My question is : If I want to delete a chunk of data, how do I go ? Checking each points in the "if" condition is not the wise way of doing things I believe. Is there any alternate solution ? Thanks, Chiranjib -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.dev.open at gmail.com Wed Jun 10 07:50:08 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Wed, 10 Jun 2015 16:20:08 +0430 Subject: [vtkusers] vtkMPEG2Encode Message-ID: Hi Dears, How can i build vtkMPEG2Encode in vtk with cmake or any way ? Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From frejon at gmail.com Wed Jun 10 07:55:06 2015 From: frejon at gmail.com (Fredrik) Date: Wed, 10 Jun 2015 13:55:06 +0200 Subject: [vtkusers] vtkWindowToImageFilter - black image Message-ID: Hi all. I realise now that my problem is at heart a problem with Java 8 + VTK 6 + JOGL, where vtkJoglCanvasComponent is no longer working as it did with JAVA 6, VTK 4 / 5, JOGL 2.0.2. With JAVA 8, I've been able to port (at least such that everything compiles) vtkJoglCanvasComponent, vtkAbstractJoglComponent & vtkJoglPanelComponent to JOGL 2.3.1. That is an improvement in comparison to these abandoned threads: http://public.kitware.com/pipermail/vtkusers/2014-April/083707.html http://public.kitware.com/pipermail/vtkusers/2015-March/090337.html Everything looks good and behaves well with vtkJoglCanvasComponent (and terrible with vtkJoglPanelComponent) but I'm unable to use vtkWindowToImageFilter and I get fatal crashes if I ask vtkRenderWindow to render by itself, instead of asking the JoglCanvasComponent or the vtkRenderer to render. I believe that is sufficient information to reproduce the problem. If anyone in the future is interested on how to get JOGL to work with VTK, these are the steps I've made: ?update to JOGL 2.3.1. ?change import library names from javax.media.opengl* to com.jogamp.opengl* in all three .java files found under /java/vtk/rendering/jogl/ ?also change line 49 in vtkAbstractJoglComponent.java to accommodate the method name change from getWidth() to getSurfaceWidth() and getHeight() to getSurfaceHeight() Sincerely, Fredrik On Wed, Jun 10, 2015 at 7:27 AM, Fredrik wrote: > >> Thanks for the reply Miroslav. I get an immediate Fatal Crash when I add >> a renderWindow.render() line. >> >> >> # A fatal error has been detected by the Java Runtime Environment: >> # >> # SIGSEGV (0xb) at pc=0x000000012f4b8979, pid=42597, tid=54087 >> # >> # JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build >> 1.8.0_45-b14) >> # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode >> bsd-amd64 compressed oops) >> # Problematic frame: >> # C [libvtkRenderingOpenGL.jnilib+0x179979] vtkUpload3D> char>::Upload(void*, unsigned char*, unsigned int*, int, long long*, int, >> int*)+0x149 >> >> full crash report here: http://pastebin.com/bvfxB3er >> >> Which is interesting, I can ask the JOGLVisPanel itself to render >> flawlessly, but not the vtkRenderWindow contained therein. >> I can't really make sense of the error report. If anyone could take pity >> on my plight and help me I'd be most appreciative. I'm suspecting some kind >> of JOGL/VTK/Mac problem. If it's any help, I'm debugging code that used to >> work years ago under JDK 6 and older versions of VTK. >> >> // Fredrik >> >> >> 2015-06-09 19:43 GMT+02:00 Miroslav Drahos : >> >>> Frederik, >>> you should call vtkRenderWindow::Render() before updating the pipeline. >>> This is what has worked for me reliably: >>> >>> VTK_CREATE(vtkWindowToImageFilter, w2i); >>> w2i->SetInput(rw); >>> w2i->ReadFrontBufferOff(); >>> rw->Render(); >>> w2i->Modified(); // See doc >>> http://www.vtk.org/doc/nightly/html/classvtkWindowToImageFilter.html#details >>> >>> VTK_CREATE(vtkPNGWriter, writer); >>> writer->SetFileName(fname.c_str()); >>> writer->SetInputConnection(w2i->GetOutputPort()); >>> writer->Write(); >>> >>> where VTK_CREATE is a widely used macro: >>> >>> #define VTK_CREATE(type, name) vtkSmartPointer name = >>> vtkSmartPointer::New(); >>> >>> HTH, >>> Miro >>> >>> ________________________________________ >>> From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of Fredrik [ >>> frejon at gmail.com] >>> Sent: Tuesday, June 09, 2015 8:55 AM >>> To: Scott Wittenburg >>> Cc: vtkusers at public.kitware.com >>> Subject: Re: [vtkusers] vtkWindowToImageFilter - black image >>> >>> Hi Scott, thanks for the reply. Unfortunately it didn't help. I think I >>> remember some other thread with the "ShouldRerender" flag, but I think that >>> mentioned it should be windowToImageFilter.ShouldRerenderOff(); >>> , not on. I tried both anyway, but no change >>> >>> All the best, >>> Fredrik >>> >>> 2015-06-09 17:33 GMT+02:00 Scott Wittenburg < >>> scott.wittenburg at kitware.com>: >>> Hi Frederik, >>> >>> I believe I have encountered this before. What solved it for me was >>> turning on the "ShouldRerender" flag in addition to what you have set. >>> Something like: >>> >>> windowToImageFilter.ShouldRerenderOn(); >>> >>> could possibly help. >>> >>> Cheers, >>> Scott >>> >>> >>> >>> On Tue, Jun 9, 2015 at 9:02 AM, Fredrik >> frejon at gmail.com>> wrote: >>> Hello. There are several threads on this topic, and the few I see, the >>> proposed solutions are not enough or the thread is left unresolved. see >>> this: >>> >>> http://public.kitware.com/pipermail/vtkusers/2014-October/085358.html >>> http://public.kitware.com/pipermail/vtkusers/2014-October/085294.html >>> >>> I still am unable to generate anything else than a black image. >>> I'm on the latest VTK, under Mac OS X 10.10. I also tried offscreen >>> rendering, but no luck. >>> >>> Hours of googling and testing solutions have proven unsuccessful, I'd >>> really appreciate if anyone could help me. >>> >>> here's a snippet of my code if you think it'll help >>> >>> tempFile = "xyz.bmp"; >>> // write to temporary bmp file >>> vtkBMPWriter writer = new vtkBMPWriter(); >>> vtkWindowToImageFilter windowToImageFilter = new >>> vtkWindowToImageFilter(); >>> windowToImageFilter.ReadFrontBufferOff(); >>> windowToImageFilter.SetMagnification(1); >>> windowToImageFilter.SetInput(renderWindow); >>> windowToImageFilter.SetInputBufferTypeToRGBA(); >>> windowToImageFilter.ReadFrontBufferOff(); >>> >>> windowToImageFilter.Update(); >>> >>> windowToImageFilter.ReadFrontBufferOff(); >>> writer.SetInputConnection(windowToImageFilter.GetOutputPort()); >>> writer.SetFileName(tempFile); >>> writer.Write(); >>> >>> >>> >>> Kind Regards, Fredrik >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >>> >>> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > kinde mekuria > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.melis at surfsara.nl Wed Jun 10 08:30:53 2015 From: paul.melis at surfsara.nl (Paul Melis) Date: Wed, 10 Jun 2015 14:30:53 +0200 Subject: [vtkusers] vtkExternalOpenGLRenderer with OpenGL2 backend? Message-ID: <55782DFD.1040703@surfsara.nl> Hello, The blog post http://www.kitware.com/blog/home/post/688 nicely describes additions to VTK to more precisely control a VTK camera's perspective matrices. But when building VTK 6.2.0 it seems that you can't enable both Module_vtkRenderingExternal and use the OpenGL2 backend. Is this indeed expected at the moment? If so, will the external OpenGL camera stuff be added to the OpenGL2 backend? Thanks, Paul -- Paul Melis | Visualization group leader & developer | SURFsara | | Science Park 140 | 1098 XG Amsterdam | | T 020 800 1312 | paul.melis at surfsara.nl | www.surfsara.nl | From f_magician at mac.com Wed Jun 10 08:49:27 2015 From: f_magician at mac.com (Magician) Date: Wed, 10 Jun 2015 21:49:27 +0900 Subject: [vtkusers] vtkHierarchicalBoxDataSet Message-ID: Hi all, I'd like to define vtkHierarchicalBoxDataSet objects on VTK 6.2.0. But there are few informations to do it. Can I get any complete sample codes written in Python or C++? Magician From berk.geveci at kitware.com Wed Jun 10 09:24:06 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Wed, 10 Jun 2015 09:24:06 -0400 Subject: [vtkusers] [vtk-developers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: <20150609154810.842558582@mail.rogue-research.com> Message-ID: We could add a logic to check for unsupported or supported compilers. Which do you folks think would be best? As far as I know, when we drop support for a particular compiler, it doesn't mean that the compiler can no longer be used to compile VTK. So if we put a list of supported compilers, we would say that other compilers may work but are not actively supported and tested. If we put a list of unsupported compilers, those should be ones we know do not work... Otherwise the list can get out of hand quickly. On Wed, Jun 10, 2015 at 9:16 AM, Casey Goodlett wrote: > I have recently used visual studio 2005 which would be dropped by this. > > Is it possible to add a check in the CMakeLists.txt to provide a warning > or error if I try to use an unsupported MSVC with VTK 6.3? That way, if I > forget about this change, there will be a clear error message instead of > something broken due to the removed workarounds. > > Apologies if thats already in the patch, and I missed it. > > Thank you > > On Tue, Jun 9, 2015 at 11:48 AM, Sean McBride > wrote: > >> On Tue, 9 Jun 2015 11:30:48 -0400, David Cole via vtkusers said: >> >> >I would go so far as to say it's reasonable that the dev/trunk/master >> >branch of a project should only support the two most recent stable >> >compiler releases on any given platform. >> >> Once my conservative patch is merged, I'll do another pass looking at >> what remaining workarounds exist for old compilers/OSes and post it for >> review/discussion. >> >> Cheers, >> >> -- >> ____________________________________________________________ >> Sean McBride, B. Eng sean at rogue-research.com >> Rogue Research www.rogue-research.com >> Mac Software Developer Montr?al, Qu?bec, Canada >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> > > > -- > Casey B Goodlett, PhD > Technical Leader > Kitware, Inc. - North Carolina Office > http://www.kitware.com > (919) 969-6990 x310 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karasevpa at gmail.com Wed Jun 10 10:07:33 2015 From: karasevpa at gmail.com (Peter Karasev) Date: Wed, 10 Jun 2015 07:07:33 -0700 Subject: [vtkusers] [vtk-developers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: Message-ID: +1 for the aggressive point of view. C++11 makes life so much easier it's practically criminal to make VTK users suffer due to legacy support. Peter Karasev On Jun 9, 2015 11:30 AM, "David Cole via vtk-developers" < vtk-developers at vtk.org> wrote: > Definitely +1. > > Agree with what Utkarsh said, plus: people writing code should be > using modern tools for all sorts of good reasons: performance, > security, the tools themselves are just better... > > I would go so far as to say it's reasonable that the dev/trunk/master > branch of a project should only support the two most recent stable > compiler releases on any given platform. Even less for > dev/trunk/master if there is compelling reason to use a feature only > available in the most recent stable release. > > > Cheers for marching forward! > David C. > > > > On Tue, Jun 9, 2015 at 9:58 AM, Utkarsh Ayachit > wrote: > > +1. People using those compiler can stick with previous versions of VTK. > > > > On Tue, Jun 9, 2015 at 9:37 AM Berk Geveci > wrote: > >> > >> Hi folks, > >> > >> Sean graciously created a branch that removes support for Visual Studio > 8 > >> and GCC < 4.1: > >> > >> https://gitlab.kitware.com/vtk/vtk/merge_requests/38 > >> > >> GCC 4.1 was released in 2006 and VS 9 was released in 2008 (actually > late > >> 2007). I believe that this is very reasonable. We removed support for > VS 7 > >> and GCC < 3 in 2013 and doing this regularly makes it easier to maintain > >> VTK. > >> > >> Are there any major use cases for keeping these compilers? Unless I > hear a > >> good argument against merging this change in the next few weeks, I will > go > >> ahead and approve it. > >> > >> Moving forward, we will likely be more aggressive removing support for > >> older compilers. The VTK developer community really wants to leverage > new > >> C++ features (C++ 11) and newer library/compiler features (e.g. TBB, > OpenMP > >> 3 and 4) etc. We want to get there relatively fast and this will require > >> dropping old compilers more quickly than before. > >> > >> Thanks, > >> -berk > >> > >> _______________________________________________ > >> Powered by www.kitware.com > >> > >> Visit other Kitware open-source projects at > >> http://www.kitware.com/opensource/opensource.html > >> > >> Please keep messages on-topic and check the VTK FAQ at: > >> http://www.vtk.org/Wiki/VTK_FAQ > >> > >> Search the list archives at: http://markmail.org/search/?q=vtkusers > >> > >> Follow this link to subscribe/unsubscribe: > >> http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Wed Jun 10 10:30:43 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 10 Jun 2015 10:30:43 -0400 Subject: [vtkusers] [vtk-developers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: Message-ID: There may be customers that have products relying on older compilers. Switching compilers is not always an easy process since they must port their own code to the new compilers. I think we should be conservative and only remove compilers when they get in the way of progress of the vtk code base. My 2 cents. On Wed, Jun 10, 2015 at 10:07 AM, Peter Karasev wrote: > +1 for the aggressive point of view. C++11 makes life so much easier it's > practically criminal to make VTK users suffer due to legacy support. > > Peter Karasev > > On Jun 9, 2015 11:30 AM, "David Cole via vtk-developers" > wrote: >> >> Definitely +1. >> >> Agree with what Utkarsh said, plus: people writing code should be >> using modern tools for all sorts of good reasons: performance, >> security, the tools themselves are just better... >> >> I would go so far as to say it's reasonable that the dev/trunk/master >> branch of a project should only support the two most recent stable >> compiler releases on any given platform. Even less for >> dev/trunk/master if there is compelling reason to use a feature only >> available in the most recent stable release. >> >> >> Cheers for marching forward! >> David C. >> >> >> >> On Tue, Jun 9, 2015 at 9:58 AM, Utkarsh Ayachit >> wrote: >> > +1. People using those compiler can stick with previous versions of VTK. >> > >> > On Tue, Jun 9, 2015 at 9:37 AM Berk Geveci >> > wrote: >> >> >> >> Hi folks, >> >> >> >> Sean graciously created a branch that removes support for Visual Studio >> >> 8 >> >> and GCC < 4.1: >> >> >> >> https://gitlab.kitware.com/vtk/vtk/merge_requests/38 >> >> >> >> GCC 4.1 was released in 2006 and VS 9 was released in 2008 (actually >> >> late >> >> 2007). I believe that this is very reasonable. We removed support for >> >> VS 7 >> >> and GCC < 3 in 2013 and doing this regularly makes it easier to >> >> maintain >> >> VTK. >> >> >> >> Are there any major use cases for keeping these compilers? Unless I >> >> hear a >> >> good argument against merging this change in the next few weeks, I will >> >> go >> >> ahead and approve it. >> >> >> >> Moving forward, we will likely be more aggressive removing support for >> >> older compilers. The VTK developer community really wants to leverage >> >> new >> >> C++ features (C++ 11) and newer library/compiler features (e.g. TBB, >> >> OpenMP >> >> 3 and 4) etc. We want to get there relatively fast and this will >> >> require >> >> dropping old compilers more quickly than before. >> >> >> >> Thanks, >> >> -berk >> >> >> >> _______________________________________________ >> >> Powered by www.kitware.com >> >> >> >> Visit other Kitware open-source projects at >> >> http://www.kitware.com/opensource/opensource.html >> >> >> >> Please keep messages on-topic and check the VTK FAQ at: >> >> http://www.vtk.org/Wiki/VTK_FAQ >> >> >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> >> >> Follow this link to subscribe/unsubscribe: >> >> http://public.kitware.com/mailman/listinfo/vtkusers >> > >> > >> > _______________________________________________ >> > Powered by www.kitware.com >> > >> > Visit other Kitware open-source projects at >> > http://www.kitware.com/opensource/opensource.html >> > >> > Please keep messages on-topic and check the VTK FAQ at: >> > http://www.vtk.org/Wiki/VTK_FAQ >> > >> > Search the list archives at: http://markmail.org/search/?q=vtkusers >> > >> > Follow this link to subscribe/unsubscribe: >> > http://public.kitware.com/mailman/listinfo/vtkusers >> > >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -- Unpaid intern in BillsBasement at noware dot com From l.onofri at outlook.com Wed Jun 10 10:33:54 2015 From: l.onofri at outlook.com (Leonardo Onofri) Date: Wed, 10 Jun 2015 16:33:54 +0200 Subject: [vtkusers] QVTKWidget+vtkImageViewer2 Message-ID: With the following code I can succesfully draw polydata on image on a windows platform, but not on a linux one.The polydata is actually there becuase I can see it if I change color level. But why is it hidden behind the image and, above all, why that happens on linux only? The code: Widget = new QVTKWidget; viewer = vtkSmartPointer::New(); vtkSmartPointer style = vtkSmartPointer::New(); Widget->GetInteractor()->GetInteractorStyle()->EnabledOff(); Widget->GetInteractor()->Disable(); viewer->SetInputData(vtkImporter->GetOutput()); viewer->SetColorLevel(128); viewer->SetColorWindow(256); viewer->UpdateDisplayExtent(); Widget->SetRenderWindow(viewer->GetRenderWindow()); viewer->SetupInteractor(Widget->GetRenderWindow()->GetInteractor()); style->SetMyRenderWindow(viewer->GetRenderWindow()); Widget->GetRenderWindow()->GetInteractor()->SetInteractorStyle(style); Widget->GetRenderWindow()->GetInteractor()->Initialize(); // create polydata and put it on vtkactor sourceActor...// viewer->GetRenderer()->AddActor(sourceActor); viewer->Render(); -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Wed Jun 10 10:51:55 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 10 Jun 2015 10:51:55 -0400 Subject: [vtkusers] [vtk-developers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: Message-ID: That took longer than expected Bill. :) Thanks for bringing up the counter argument Bill. Casey's pain demonstrates your point. Despite that my vote is for getting rid of old compilers sooner rather than later. Old compilers are a drag on both innovation and maintenance. Whatever we do I think the we need to clearly communicate what compilers we really are trying to support. This discussion and earlier ones on the mailing list help. The cmake macros people have discussed will help too. In practice the dashboards submitters define the set of compilers that people can expect to "just work". That set should be introspected and published automatically and expanded. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Wed Jun 10 10:59:37 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 10 Jun 2015 10:59:37 -0400 Subject: [vtkusers] [vtk-developers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: Message-ID: We could also start putting a "tested against ?" statement in the release notes for posterity. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Wed, Jun 10, 2015 at 10:51 AM, David E DeMarle wrote: > That took longer than expected Bill. :) > > Thanks for bringing up the counter argument Bill. Casey's pain > demonstrates your point. > > Despite that my vote is for getting rid of old compilers sooner rather > than later. Old compilers are a drag on both innovation and maintenance. > > Whatever we do I think the we need to clearly communicate what compilers > we really are trying to support. This discussion and earlier ones on the > mailing list help. The cmake macros people have discussed will help too. In > practice the dashboards submitters define the set of compilers that people > can expect to "just work". That set should be introspected and published > automatically and expanded. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Wed Jun 10 11:01:02 2015 From: sean at rogue-research.com (Sean McBride) Date: Wed, 10 Jun 2015 11:01:02 -0400 Subject: [vtkusers] [vtk-developers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: Message-ID: <20150610150102.1362641435@mail.rogue-research.com> On Wed, 10 Jun 2015 10:30:43 -0400, Bill Lorensen said: >There may be customers that have products relying on older compilers. >Switching compilers is not always an easy process since they must port >their own code to the new compilers. > >I think we should be conservative and only remove compilers when they >get in the way of progress of the vtk code base. I fully agree. It's just a question of degree. What's 'conservative'? With my patch VTK's minimums will be: - GCC 4.1 - released in 2006 - VS 9 - released in late 2007 To me, that's conservative. Do you agree? Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From berk.geveci at kitware.com Wed Jun 10 11:31:37 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Wed, 10 Jun 2015 11:31:37 -0400 Subject: [vtkusers] [vtk-developers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: Message-ID: Maybe one way of addressing this issue would be to keep two versions maintained for a longer period? For example, we could commit to maintaining (minor bug fixes and limited testing only) VTK 6 for 3 years after we release VTK 7... That way customer that are stuck on old compiler can benefit from bug fixes and testing longer. If they want newer features, they would have to update. Given that we are likely to move to VTK 7 and then 8 pretty quickly, even longer than 3 years may be warranted. I would argue for aiming for (mostly) C++ 11 by VTK 8, probably around late 2016. -berk On Wed, Jun 10, 2015 at 10:30 AM, Bill Lorensen wrote: > There may be customers that have products relying on older compilers. > Switching compilers is not always an easy process since they must port > their own code to the new compilers. > > I think we should be conservative and only remove compilers when they > get in the way of progress of the vtk code base. > > My 2 cents. > > On Wed, Jun 10, 2015 at 10:07 AM, Peter Karasev > wrote: > > +1 for the aggressive point of view. C++11 makes life so much easier it's > > practically criminal to make VTK users suffer due to legacy support. > > > > Peter Karasev > > > > On Jun 9, 2015 11:30 AM, "David Cole via vtk-developers" > > wrote: > >> > >> Definitely +1. > >> > >> Agree with what Utkarsh said, plus: people writing code should be > >> using modern tools for all sorts of good reasons: performance, > >> security, the tools themselves are just better... > >> > >> I would go so far as to say it's reasonable that the dev/trunk/master > >> branch of a project should only support the two most recent stable > >> compiler releases on any given platform. Even less for > >> dev/trunk/master if there is compelling reason to use a feature only > >> available in the most recent stable release. > >> > >> > >> Cheers for marching forward! > >> David C. > >> > >> > >> > >> On Tue, Jun 9, 2015 at 9:58 AM, Utkarsh Ayachit > >> wrote: > >> > +1. People using those compiler can stick with previous versions of > VTK. > >> > > >> > On Tue, Jun 9, 2015 at 9:37 AM Berk Geveci > >> > wrote: > >> >> > >> >> Hi folks, > >> >> > >> >> Sean graciously created a branch that removes support for Visual > Studio > >> >> 8 > >> >> and GCC < 4.1: > >> >> > >> >> https://gitlab.kitware.com/vtk/vtk/merge_requests/38 > >> >> > >> >> GCC 4.1 was released in 2006 and VS 9 was released in 2008 (actually > >> >> late > >> >> 2007). I believe that this is very reasonable. We removed support for > >> >> VS 7 > >> >> and GCC < 3 in 2013 and doing this regularly makes it easier to > >> >> maintain > >> >> VTK. > >> >> > >> >> Are there any major use cases for keeping these compilers? Unless I > >> >> hear a > >> >> good argument against merging this change in the next few weeks, I > will > >> >> go > >> >> ahead and approve it. > >> >> > >> >> Moving forward, we will likely be more aggressive removing support > for > >> >> older compilers. The VTK developer community really wants to leverage > >> >> new > >> >> C++ features (C++ 11) and newer library/compiler features (e.g. TBB, > >> >> OpenMP > >> >> 3 and 4) etc. We want to get there relatively fast and this will > >> >> require > >> >> dropping old compilers more quickly than before. > >> >> > >> >> Thanks, > >> >> -berk > >> >> > >> >> _______________________________________________ > >> >> Powered by www.kitware.com > >> >> > >> >> Visit other Kitware open-source projects at > >> >> http://www.kitware.com/opensource/opensource.html > >> >> > >> >> Please keep messages on-topic and check the VTK FAQ at: > >> >> http://www.vtk.org/Wiki/VTK_FAQ > >> >> > >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers > >> >> > >> >> Follow this link to subscribe/unsubscribe: > >> >> http://public.kitware.com/mailman/listinfo/vtkusers > >> > > >> > > >> > _______________________________________________ > >> > Powered by www.kitware.com > >> > > >> > Visit other Kitware open-source projects at > >> > http://www.kitware.com/opensource/opensource.html > >> > > >> > Please keep messages on-topic and check the VTK FAQ at: > >> > http://www.vtk.org/Wiki/VTK_FAQ > >> > > >> > Search the list archives at: http://markmail.org/search/?q=vtkusers > >> > > >> > Follow this link to subscribe/unsubscribe: > >> > http://public.kitware.com/mailman/listinfo/vtkusers > >> > > >> _______________________________________________ > >> Powered by www.kitware.com > >> > >> Visit other Kitware open-source projects at > >> http://www.kitware.com/opensource/opensource.html > >> > >> Search the list archives at: > http://markmail.org/search/?q=vtk-developers > >> > >> Follow this link to subscribe/unsubscribe: > >> http://public.kitware.com/mailman/listinfo/vtk-developers > >> > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Search the list archives at: > http://markmail.org/search/?q=vtk-developers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtk-developers > > > > > > > > -- > Unpaid intern in BillsBasement at noware dot com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From DLRdave at aol.com Wed Jun 10 11:40:07 2015 From: DLRdave at aol.com (David Cole) Date: Wed, 10 Jun 2015 11:40:07 -0400 Subject: [vtkusers] [vtk-developers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: <20150609154810.842558582@mail.rogue-research.com> Message-ID: I think both an official list of supported compilers, and an official list of "known problems with" compilers, perhaps even explicitly encoded into the CMakeLists.txt file, would be a fantastic addition to VTK. You still ought to be able to TRY to compile it with any compiler you want. After all, you may have a fork on github (or wherever) that maintains active support of your own on the side.... But having official lists of both known supported compilers and known problem compilers would be an excellent resource to have. D On Wed, Jun 10, 2015 at 9:24 AM, Berk Geveci wrote: > We could add a logic to check for unsupported or supported compilers. Which > do you folks think would be best? As far as I know, when we drop support for > a particular compiler, it doesn't mean that the compiler can no longer be > used to compile VTK. So if we put a list of supported compilers, we would > say that other compilers may work but are not actively supported and tested. > If we put a list of unsupported compilers, those should be ones we know do > not work... Otherwise the list can get out of hand quickly. > > > On Wed, Jun 10, 2015 at 9:16 AM, Casey Goodlett > wrote: >> >> I have recently used visual studio 2005 which would be dropped by this. >> >> Is it possible to add a check in the CMakeLists.txt to provide a warning >> or error if I try to use an unsupported MSVC with VTK 6.3? That way, if I >> forget about this change, there will be a clear error message instead of >> something broken due to the removed workarounds. >> >> Apologies if thats already in the patch, and I missed it. >> >> Thank you >> >> On Tue, Jun 9, 2015 at 11:48 AM, Sean McBride >> wrote: >>> >>> On Tue, 9 Jun 2015 11:30:48 -0400, David Cole via vtkusers said: >>> >>> >I would go so far as to say it's reasonable that the dev/trunk/master >>> >branch of a project should only support the two most recent stable >>> >compiler releases on any given platform. >>> >>> Once my conservative patch is merged, I'll do another pass looking at >>> what remaining workarounds exist for old compilers/OSes and post it for >>> review/discussion. >>> >>> Cheers, >>> >>> -- >>> ____________________________________________________________ >>> Sean McBride, B. Eng sean at rogue-research.com >>> Rogue Research www.rogue-research.com >>> Mac Software Developer Montr?al, Qu?bec, Canada >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Search the list archives at: http://markmail.org/search/?q=vtk-developers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtk-developers >>> >> >> >> >> -- >> Casey B Goodlett, PhD >> Technical Leader >> Kitware, Inc. - North Carolina Office >> http://www.kitware.com >> (919) 969-6990 x310 > > From DLRdave at aol.com Wed Jun 10 11:47:23 2015 From: DLRdave at aol.com (David Cole) Date: Wed, 10 Jun 2015 11:47:23 -0400 Subject: [vtkusers] [vtk-developers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: Message-ID: I agree, that did take longer than expected, Bill... Golfing good already up there this year...? ;-) Customers having products relying on older compilers should probably also be relying on older VTK versions. Just sayin'... As to Casey's pain, I'm curious whether it's a hobby project, or a real live academic/business/government project. Whatever it is, I know I personally don't want software built by VS 2005 on my 2015 machine. Surprised that anybody else does either. (Having said that, I probably already do have software like that installed and don't even know it....) ;-) Good discussion -- I like this thread.... D On Wed, Jun 10, 2015 at 10:51 AM, David E DeMarle wrote: > That took longer than expected Bill. :) > > Thanks for bringing up the counter argument Bill. Casey's pain demonstrates > your point. > > Despite that my vote is for getting rid of old compilers sooner rather than > later. Old compilers are a drag on both innovation and maintenance. > > Whatever we do I think the we need to clearly communicate what compilers we > really are trying to support. This discussion and earlier ones on the > mailing list help. The cmake macros people have discussed will help too. In > practice the dashboards submitters define the set of compilers that people > can expect to "just work". That set should be introspected and published > automatically and expanded. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From david.gobbi at gmail.com Wed Jun 10 12:14:40 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 10 Jun 2015 10:14:40 -0600 Subject: [vtkusers] Long-term support for previous VTK release Message-ID: Hi Berk, I'd love to see long-term support for older versions of VTK. It could be done without placing any burden on anyone but the people who need it, if a couple simple rules are followed: 1) When we move to VTK 7, an LTS branch should be created for VTK 6, and this branch should remain open for X years. Merge requests etc. for this branch should be handled exactly as for the master branch. We could have a list of developers willing to review patches for this branch on the wiki (I'd certainly be willing to do so). 2) There should be no expectation of binary releases from an LTS branch, that would just create extra work for Kitware and would probably end up slowing down the whole process. 3) There would have to be a section of the dashboard available for each LTS branch for nightly testing at least. Merges into the LTS branch should be rare enough that @home testing would be unnecessary. I realize that this might entail some gitlab customization. I was not happy with how fast VTK 5 was dropped. If there had been some way that I could have helped to support it, then I would have. Here in academia, it's very common for projects to be put on hold for two or three years due to temporary lack of funding, or because a lab goes for a couple years without a grad student who has the necessary expertise. So if a grad student gets stuck with a project that requires a version of VTK that won't work on a modern system, it becomes very difficult to even get started. - David On Wed, Jun 10, 2015 at 9:31 AM, Berk Geveci wrote: > Maybe one way of addressing this issue would be to keep two versions > maintained for a longer period? For example, we could commit to maintaining > (minor bug fixes and limited testing only) VTK 6 for 3 years after we > release VTK 7... That way customer that are stuck on old compiler can > benefit from bug fixes and testing longer. If they want newer features, > they would have to update. Given that we are likely to move to VTK 7 and > then 8 pretty quickly, even longer than 3 years may be warranted. > > I would argue for aiming for (mostly) C++ 11 by VTK 8, probably around > late 2016. > > -berk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Wed Jun 10 13:09:00 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Wed, 10 Jun 2015 10:09:00 -0700 (MST) Subject: [vtkusers] Actor color gradient Message-ID: <1433956140009-5732273.post@n5.nabble.com> Hello, I've posted this topic in VTK Users list, but I think this one is more active from the first (sorry for the duplicity of subjects). Here is my problem: I would like to apply a color gradient on a vtkActor. I've defined scalar values to each vtkCell (by following this example http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCellsWithRGB). However, the color transition isn't as I want. Please take a look in the attached screenshot. Also below is a piece of code responsible for rendering the image. What can I do to have it done? Thanks, Joao. // Mesh rendering vtkSmartPointer gridPolyData = mesh->getGrid(); vtkSmartPointer gridMapper = vtkSmartPointer::New(); // gridMapper->InterpolateScalarsBeforeMappingOff(); // Didn't take effect on color gradient gridMapper->SetInputData(gridPolyData); vtkSmartPointer actor = vtkSmartPointer::New(); actor->SetMapper(gridMapper); // actor->GetProperty()->SetColor(1, 1, 1); actor->GetProperty()->EdgeVisibilityOff(); renderer = vtkSmartPointer::New(); renderer->SetBackground(1, 1, 1); // White renderer->AddActor(actor); renderWindow->AddRenderer(renderer); // QVTKWidget class method this->SetRenderWindow(renderWindow); renderWindow->Render(); -- View this message in context: http://vtk.1045678.n5.nabble.com/Actor-color-gradient-tp5732273.html Sent from the VTK - Users mailing list archive at Nabble.com. From Clinton.Stamper at genetesis.com Wed Jun 10 16:55:14 2015 From: Clinton.Stamper at genetesis.com (Clinton Stamper) Date: Wed, 10 Jun 2015 16:55:14 -0400 Subject: [vtkusers] Fwd: java.lang.UnsatisfiedLinkError In-Reply-To: References: Message-ID: Dear All, I need some help figuring out what is wrong with my application. I am getting this error: http://pastebin.com/EEAG1BYY It looks like my path includes the dlls, files, etc. and they should be able to be located. The problem is the computer just can't seem to locate them. Thanks to whoever can help. -- -Clinton -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephenshamilton at gmail.com Wed Jun 10 18:15:36 2015 From: stephenshamilton at gmail.com (Stephen Hamilton) Date: Wed, 10 Jun 2015 18:15:36 -0400 Subject: [vtkusers] Compute vorticity from imagedata Message-ID: Hi, I'm fairly new to VTK, but I've been stuck for over a day on trying to figure out a fairly simple task. I have a numpy array that I'm trying to convert to image data (structured grid), compute the vorticity, and use the cellderivatives to create an array of vorticity magnitude. I can do this easily in Paraview, but in python the cell derivatives never seem to compute. Here is what I have so far: vtkdata = numpy_support.numpy_to_vtk(h5file[i][:,:,:,:].ravel(), deep=True, array_type=vtk.VTK_FLOAT) vtkdata.SetNumberOfComponents(3) image = vtk.vtkImageData() image.SetDimensions(xl, yl, zl) #This is set above and matches the numpy array image.GetPointData().AddArray(vtkdata) At this point, if I write the vti file using vtkXMLImageDataWriter(), I get what I expect in Paraview when I load it. Here is where I have problems: vorticity = vtk.vtkCellDerivatives() vorticity.SetVectorModeToComputeVorticity() vorticity.SetInputData(image) vorticity.Update() vwriter = vtk.vtkXMLImageDataWriter() vwriter.SetInputData(vorticity.GetOutput()) vwriter.SetFileName("vorticity.vti") When I check the vorticity file, it is basically the same as if I never applied the cell derivative filter. I've tried using the imagestreamer, and basically still get the same results. I can't seem to find a good vtk6 example on the web that is close enough to what I'm trying. I also tried the threshold function, and got the same thing, so I think I'm applying the filter incorrectly (not at all in the case). Any help would be much appreciated! Thanks. Stephen PhD Student, Johns Hopkins University -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephenshamilton at gmail.com Wed Jun 10 18:24:26 2015 From: stephenshamilton at gmail.com (Stephen Hamilton) Date: Wed, 10 Jun 2015 18:24:26 -0400 Subject: [vtkusers] Compute vorticity from imagedata Message-ID: I just figured out the missing line to make the vorticity work. In order for the arrays to appear on the filter, you have to define the input array on the imagedata filter as a vector set, which makes sense. I guess Murphy was waiting for me to send the previous message to the list to reveal that solution... Adding this line to the code made everything work: image.GetPointData().SetActiveVectors("Data") Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Wed Jun 10 18:24:33 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 10 Jun 2015 18:24:33 -0400 Subject: [vtkusers] Compute vorticity from imagedata In-Reply-To: References: Message-ID: Use a writer to write out the input data set to a different file. Are the two files the same size? In paraview, how many arrays are there in each file? David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Wed, Jun 10, 2015 at 6:15 PM, Stephen Hamilton < stephenshamilton at gmail.com> wrote: > Hi, > > I'm fairly new to VTK, but I've been stuck for over a day on trying to > figure out a fairly simple task. > > I have a numpy array that I'm trying to convert to image data (structured > grid), compute the vorticity, and use the cellderivatives to create an > array of vorticity magnitude. I can do this easily in Paraview, but in > python the cell derivatives never seem to compute. > > Here is what I have so far: > vtkdata = numpy_support.numpy_to_vtk(h5file[i][:,:,:,:].ravel(), > deep=True, array_type=vtk.VTK_FLOAT) > vtkdata.SetNumberOfComponents(3) > image = vtk.vtkImageData() > image.SetDimensions(xl, yl, zl) #This is set above and matches the numpy > array > image.GetPointData().AddArray(vtkdata) > > At this point, if I write the vti file using vtkXMLImageDataWriter(), I > get what I expect in Paraview when I load it. > > Here is where I have problems: > > vorticity = vtk.vtkCellDerivatives() > vorticity.SetVectorModeToComputeVorticity() > vorticity.SetInputData(image) > vorticity.Update() > vwriter = vtk.vtkXMLImageDataWriter() > vwriter.SetInputData(vorticity.GetOutput()) > vwriter.SetFileName("vorticity.vti") > > When I check the vorticity file, it is basically the same as if I never > applied the cell derivative filter. I've tried using the imagestreamer, > and basically still get the same results. I can't seem to find a good vtk6 > example on the web that is close enough to what I'm trying. I also tried > the threshold function, and got the same thing, so I think I'm applying the > filter incorrectly (not at all in the case). > > Any help would be much appreciated! > > Thanks. > Stephen > PhD Student, Johns Hopkins University > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Jun 10 18:42:26 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 10 Jun 2015 16:42:26 -0600 Subject: [vtkusers] Compute vorticity from imagedata In-Reply-To: References: Message-ID: Hi Stephen, You can also associate your array with a particular data set attribute like this: image.GetPointData().SetVectors(vtkdata) or image.GetPointData().SetScalars(vtkdata) These can be used instead of the AddArray() method. - David On Wed, Jun 10, 2015 at 4:24 PM, Stephen Hamilton < stephenshamilton at gmail.com> wrote: > I just figured out the missing line to make the vorticity work. In order > for the arrays to appear on the filter, you have to define the input array > on the imagedata filter as a vector set, which makes sense. > > I guess Murphy was waiting for me to send the previous message to the list > to reveal that solution... > > Adding this line to the code made everything work: > image.GetPointData().SetActiveVectors("Data") > > > Stephen > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zchenandy at gmail.com Wed Jun 10 19:25:53 2015 From: zchenandy at gmail.com (Andy Chen) Date: Wed, 10 Jun 2015 19:25:53 -0400 Subject: [vtkusers] Can VTK be built for UNICODE in visual studio 2013 C++? In-Reply-To: References: Message-ID: Hi, David, Just want to let you know I have compiled the vtk 6.2.0 for unicode. It took me a while to change my old code which is for vtk version 5 to work with vtk version 6. I am disappointed to see the version 6 performance in term of speed is much poor than version 5. My code is similar and only changed as required by version 6. I thought it should be an improvement but.... Anyhow, thank you for your time to answer my question. I only made up my mind to go forward to change the source code. My source code can be shared if anyone needs it, Andy On Sun, Jun 7, 2015 at 3:59 PM, David Gobbi wrote: > In general, no. To be more specific: > > 1) The vtk examples all use "main" instead of "wmain", therefore the > program arguments use the Windows 8-bit codepage rather than unicode. > > 2) When VTK does system calls (opening/closing files etc) it does one of > three things, depending on exactly what VTK class is using the file: > a) some classes use the non-"wide" system calls, i.e. 8-bit all the way > through > b) some classes use kwsys, which for the most part converts 8-bit strings > to Windows unicode and then calls the "wide" system methods > c) some classes open files with a third-party library, e.g. libjpeg jpeg > files or libpng for png files, and I'm not sure what those third-party > libraries do under-the-hood. > > > I think it would be nice if VTK, as a rule, always used either utf-8 > strings or vtkUnicodeString internally, and always used "wide" system calls > on Windows, with automatic conversion between utf-8 and Windows unicode > whenever necessary. That's still a ways off, though. It would be a > sizeable job for anyone to implement and test this. > > - David > > > On Sun, Jun 7, 2015 at 12:14 PM, Andy Chen wrote: > >> Hello, >> >> Can anyone please let me know the answer? I mean compile and build as it >> is. >> >> Thanks for your help in advance. >> >> Andy >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Wed Jun 10 20:16:46 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Wed, 10 Jun 2015 20:16:46 -0400 Subject: [vtkusers] Long-term support for previous VTK release In-Reply-To: References: Message-ID: Hi David, Sounds good. We had a discussion about testing at Kitware. With the new infrastructure we have in place, we won't need nightly testing. We can just test when changes are made to master. CDash now supports showing latest dashboard results every day, no matter how long ago they were run. This will allow us to throw as many dashboard systems as we use on the latest version to older versions, since changes will happen rarely... We need to figure out the details of how we will do this. It is likely VTK 8 and 9 will come fairly quickly after 7 and they are very likely to bring fairly big changes both in terms of API as well as supported compilers. So my current thinking is to have VTK 6 live for several years (3-5?) while 7, 8 and 9 would come and go fairly quickly. So anyone who doesn't want to ride this new wave of changes could stick to 6 but those that jump on 7 or later will have to be willing to move forward... Does this make sense? Alternative suggestions are welcome. With the caveat that maintaining multiple versions of several years would be challenging for the community. Best, -berk On Wed, Jun 10, 2015 at 12:14 PM, David Gobbi wrote: > Hi Berk, > > I'd love to see long-term support for older versions of VTK. It could be > done without placing any burden on anyone but the people who need it, if a > couple simple rules are followed: > > 1) When we move to VTK 7, an LTS branch should be created for VTK 6, and > this branch should remain open for X years. Merge requests etc. for this > branch should be handled exactly as for the master branch. We could have a > list of developers willing to review patches for this branch on the wiki > (I'd certainly be willing to do so). > > 2) There should be no expectation of binary releases from an LTS branch, > that would just create extra work for Kitware and would probably end up > slowing down the whole process. > > 3) There would have to be a section of the dashboard available for each > LTS branch for nightly testing at least. Merges into the LTS branch should > be rare enough that @home testing would be unnecessary. I realize that > this might entail some gitlab customization. > > I was not happy with how fast VTK 5 was dropped. If there had been some > way that I could have helped to support it, then I would have. > > Here in academia, it's very common for projects to be put on hold for two > or three years due to temporary lack of funding, or because a lab goes for > a couple years without a grad student who has the necessary expertise. So > if a grad student gets stuck with a project that requires a version of VTK > that won't work on a modern system, it becomes very difficult to even get > started. > > - David > > > On Wed, Jun 10, 2015 at 9:31 AM, Berk Geveci > wrote: > >> Maybe one way of addressing this issue would be to keep two versions >> maintained for a longer period? For example, we could commit to maintaining >> (minor bug fixes and limited testing only) VTK 6 for 3 years after we >> release VTK 7... That way customer that are stuck on old compiler can >> benefit from bug fixes and testing longer. If they want newer features, >> they would have to update. Given that we are likely to move to VTK 7 and >> then 8 pretty quickly, even longer than 3 years may be warranted. >> >> I would argue for aiming for (mostly) C++ 11 by VTK 8, probably around >> late 2016. >> >> -berk >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From l.onofri at outlook.com Thu Jun 11 04:25:11 2015 From: l.onofri at outlook.com (Leonardo Onofri) Date: Thu, 11 Jun 2015 10:25:11 +0200 Subject: [vtkusers] QVTKWidget+vtkImageViewer2 In-Reply-To: References: Message-ID: Update: If I modify the z coordinates of the polydata, so that I am sure it is actually in front of the image, nothing changes.If I rotate the image I can see that polydata are in front of the image, but when they are aligned in front of the camera, only the image is visible. Further details:Qt 5.4.1VTK 6.2It works well on Windows 7.It does not work on Ubuntu 14.04 From: l.onofri at outlook.com To: vtkusers at vtk.org Date: Wed, 10 Jun 2015 16:33:54 +0200 Subject: [vtkusers] QVTKWidget+vtkImageViewer2 With the following code I can succesfully draw polydata on image on a windows platform, but not on a linux one.The polydata is actually there becuase I can see it if I change color level. But why is it hidden behind the image and, above all, why that happens on linux only? The code: Widget = new QVTKWidget; viewer = vtkSmartPointer::New(); vtkSmartPointer style = vtkSmartPointer::New(); Widget->GetInteractor()->GetInteractorStyle()->EnabledOff(); Widget->GetInteractor()->Disable(); viewer->SetInputData(vtkImporter->GetOutput()); viewer->SetColorLevel(128); viewer->SetColorWindow(256); viewer->UpdateDisplayExtent(); Widget->SetRenderWindow(viewer->GetRenderWindow()); viewer->SetupInteractor(Widget->GetRenderWindow()->GetInteractor()); style->SetMyRenderWindow(viewer->GetRenderWindow()); Widget->GetRenderWindow()->GetInteractor()->SetInteractorStyle(style); Widget->GetRenderWindow()->GetInteractor()->Initialize(); // create polydata and put it on vtkactor sourceActor...// viewer->GetRenderer()->AddActor(sourceActor); viewer->Render(); _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From liyihai2009 at qq.com Thu Jun 11 04:32:21 2015 From: liyihai2009 at qq.com (=?gb18030?B?ste6o9K7y9o=?=) Date: Thu, 11 Jun 2015 16:32:21 +0800 Subject: [vtkusers] How to get slice's white regions centroid ? Message-ID: I have used vtkImagePlaneWidget to extract slice from 3D image (figure 1). Now, I want to get the centroid coordinates(3D world coordinates) of figures 1's white regions, how can I do it ? figure 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: A9C8A6E7 at 9A372936.95477955.jpg Type: image/jpeg Size: 1782 bytes Desc: not available URL: From liyihai2009 at qq.com Thu Jun 11 06:18:32 2015 From: liyihai2009 at qq.com (=?gb18030?B?ste6o9K7y9o=?=) Date: Thu, 11 Jun 2015 18:18:32 +0800 Subject: [vtkusers] How to get vtkImagePlaneWidget's 3D coordinates ? Message-ID: I used vtkImagePlaneWidget to extract 2D slice from 3D image, and got coordinates of 2D pixel. Now, I want to get the corresponding voxel coordinates of 3D image. How can I implement it ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Jun 11 10:57:38 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 11 Jun 2015 10:57:38 -0400 Subject: [vtkusers] Long-term support for previous VTK release In-Reply-To: References: Message-ID: 5.10 was the first time we attempted any kind of long term support ( http://public.kitware.com/pipermail/vtk-developers/2013-October/029905.html) eh? Curiously, we just turned off the 5.10 branch dashboard testers last week. We did so to streamline the dashboard presentation and to repurpose the underused hardware cycles for buildbot tests. My thoughts on that first attempt: 1) Despite annoying people who wanted bug fixes and improvements merged, I personally agreed with the rule of only allowing os/compiler update fixes. 2) It was wasteful to dedicate machines to testing (poorly since there were few of them) the branch nightly - Buildbot and CDash updates should improve testing (2) this time around. 3) I did not like how opaque the contributions process for new patches was. 4) I did not like the one person bottleneck to getting contributions merged (the lumbering troll guarding the branch) 5) I did not like manually keeping track of topics to merge and ensuring that were clean - gitlab should should help with improving the contribution process (3,4,5). In summary, once we set up buildbot, cdash and gitlab to allow it, I think we'll be much more successful this time around. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Wed, Jun 10, 2015 at 8:16 PM, Berk Geveci wrote: > Hi David, > > Sounds good. We had a discussion about testing at Kitware. With the new > infrastructure we have in place, we won't need nightly testing. We can just > test when changes are made to master. CDash now supports showing latest > dashboard results every day, no matter how long ago they were run. This > will allow us to throw as many dashboard systems as we use on the latest > version to older versions, since changes will happen rarely... > > We need to figure out the details of how we will do this. It is likely VTK > 8 and 9 will come fairly quickly after 7 and they are very likely to bring > fairly big changes both in terms of API as well as supported compilers. So > my current thinking is to have VTK 6 live for several years (3-5?) while 7, > 8 and 9 would come and go fairly quickly. So anyone who doesn't want to > ride this new wave of changes could stick to 6 but those that jump on 7 or > later will have to be willing to move forward... Does this make sense? > Alternative suggestions are welcome. With the caveat that maintaining > multiple versions of several years would be challenging for the community. > > Best, > -berk > > On Wed, Jun 10, 2015 at 12:14 PM, David Gobbi > wrote: > >> Hi Berk, >> >> I'd love to see long-term support for older versions of VTK. It could be >> done without placing any burden on anyone but the people who need it, if a >> couple simple rules are followed: >> >> 1) When we move to VTK 7, an LTS branch should be created for VTK 6, and >> this branch should remain open for X years. Merge requests etc. for this >> branch should be handled exactly as for the master branch. We could have a >> list of developers willing to review patches for this branch on the wiki >> (I'd certainly be willing to do so). >> >> 2) There should be no expectation of binary releases from an LTS branch, >> that would just create extra work for Kitware and would probably end up >> slowing down the whole process. >> >> 3) There would have to be a section of the dashboard available for each >> LTS branch for nightly testing at least. Merges into the LTS branch should >> be rare enough that @home testing would be unnecessary. I realize that >> this might entail some gitlab customization. >> >> I was not happy with how fast VTK 5 was dropped. If there had been some >> way that I could have helped to support it, then I would have. >> >> Here in academia, it's very common for projects to be put on hold for two >> or three years due to temporary lack of funding, or because a lab goes for >> a couple years without a grad student who has the necessary expertise. So >> if a grad student gets stuck with a project that requires a version of VTK >> that won't work on a modern system, it becomes very difficult to even get >> started. >> >> - David >> >> >> On Wed, Jun 10, 2015 at 9:31 AM, Berk Geveci >> wrote: >> >>> Maybe one way of addressing this issue would be to keep two versions >>> maintained for a longer period? For example, we could commit to maintaining >>> (minor bug fixes and limited testing only) VTK 6 for 3 years after we >>> release VTK 7... That way customer that are stuck on old compiler can >>> benefit from bug fixes and testing longer. If they want newer features, >>> they would have to update. Given that we are likely to move to VTK 7 and >>> then 8 pretty quickly, even longer than 3 years may be warranted. >>> >>> I would argue for aiming for (mostly) C++ 11 by VTK 8, probably around >>> late 2016. >>> >>> -berk >>> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Thu Jun 11 11:05:09 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Thu, 11 Jun 2015 11:05:09 -0400 Subject: [vtkusers] Long-term support for previous VTK release In-Reply-To: References: Message-ID: Thanks for the feedback Dave. I think that we would allow for more than os/compiler fixes if we will maintain VTK 6 for several years. We would allow for general bug fixes also. My hope would be that those in the community that need VTK 6 would help out significantly. It sounds like David is volunteering to help maintain such a version. I am sure that there would be others also. The main challenge I can think of is how we will keep track of what was merged into VTK 6. Maybe we need to ++ our processes to integrate the issue tracker more tightly, the way ParaView does. This would enable us to keep track of things better... I'd like to hear some feedback and suggestions on this. -berk On Thu, Jun 11, 2015 at 10:57 AM, David E DeMarle wrote: > 5.10 was the first time we attempted any kind of long term support ( > http://public.kitware.com/pipermail/vtk-developers/2013-October/029905.html) > eh? Curiously, we just turned off the 5.10 branch dashboard testers last > week. We did so to streamline the dashboard presentation and to repurpose > the underused hardware cycles for buildbot tests. > > My thoughts on that first attempt: > 1) Despite annoying people who wanted bug fixes and improvements merged, I > personally agreed with the rule of only allowing os/compiler update fixes. > > 2) It was wasteful to dedicate machines to testing (poorly since there > were few of them) the branch nightly > - Buildbot and CDash updates should improve testing (2) this time around. > > 3) I did not like how opaque the contributions process for new patches was. > 4) I did not like the one person bottleneck to getting contributions > merged (the lumbering troll guarding the branch) > 5) I did not like manually keeping track of topics to merge and ensuring > that were clean > - gitlab should should help with improving the contribution process > (3,4,5). > > In summary, once we set up buildbot, cdash and gitlab to allow it, I think > we'll be much more successful this time around. > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Wed, Jun 10, 2015 at 8:16 PM, Berk Geveci > wrote: > >> Hi David, >> >> Sounds good. We had a discussion about testing at Kitware. With the new >> infrastructure we have in place, we won't need nightly testing. We can just >> test when changes are made to master. CDash now supports showing latest >> dashboard results every day, no matter how long ago they were run. This >> will allow us to throw as many dashboard systems as we use on the latest >> version to older versions, since changes will happen rarely... >> >> We need to figure out the details of how we will do this. It is likely >> VTK 8 and 9 will come fairly quickly after 7 and they are very likely to >> bring fairly big changes both in terms of API as well as supported >> compilers. So my current thinking is to have VTK 6 live for several years >> (3-5?) while 7, 8 and 9 would come and go fairly quickly. So anyone who >> doesn't want to ride this new wave of changes could stick to 6 but those >> that jump on 7 or later will have to be willing to move forward... Does >> this make sense? Alternative suggestions are welcome. With the caveat that >> maintaining multiple versions of several years would be challenging for the >> community. >> >> Best, >> -berk >> >> On Wed, Jun 10, 2015 at 12:14 PM, David Gobbi >> wrote: >> >>> Hi Berk, >>> >>> I'd love to see long-term support for older versions of VTK. It could >>> be done without placing any burden on anyone but the people who need it, if >>> a couple simple rules are followed: >>> >>> 1) When we move to VTK 7, an LTS branch should be created for VTK 6, and >>> this branch should remain open for X years. Merge requests etc. for this >>> branch should be handled exactly as for the master branch. We could have a >>> list of developers willing to review patches for this branch on the wiki >>> (I'd certainly be willing to do so). >>> >>> 2) There should be no expectation of binary releases from an LTS branch, >>> that would just create extra work for Kitware and would probably end up >>> slowing down the whole process. >>> >>> 3) There would have to be a section of the dashboard available for each >>> LTS branch for nightly testing at least. Merges into the LTS branch should >>> be rare enough that @home testing would be unnecessary. I realize that >>> this might entail some gitlab customization. >>> >>> I was not happy with how fast VTK 5 was dropped. If there had been some >>> way that I could have helped to support it, then I would have. >>> >>> Here in academia, it's very common for projects to be put on hold for >>> two or three years due to temporary lack of funding, or because a lab goes >>> for a couple years without a grad student who has the necessary expertise. >>> So if a grad student gets stuck with a project that requires a version of >>> VTK that won't work on a modern system, it becomes very difficult to even >>> get started. >>> >>> - David >>> >>> >>> On Wed, Jun 10, 2015 at 9:31 AM, Berk Geveci >>> wrote: >>> >>>> Maybe one way of addressing this issue would be to keep two versions >>>> maintained for a longer period? For example, we could commit to maintaining >>>> (minor bug fixes and limited testing only) VTK 6 for 3 years after we >>>> release VTK 7... That way customer that are stuck on old compiler can >>>> benefit from bug fixes and testing longer. If they want newer features, >>>> they would have to update. Given that we are likely to move to VTK 7 and >>>> then 8 pretty quickly, even longer than 3 years may be warranted. >>>> >>>> I would argue for aiming for (mostly) C++ 11 by VTK 8, probably around >>>> late 2016. >>>> >>>> -berk >>>> >>> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Jun 11 11:46:36 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 11 Jun 2015 09:46:36 -0600 Subject: [vtkusers] Long-term support for previous VTK release In-Reply-To: References: Message-ID: On Thu, Jun 11, 2015 at 8:57 AM, David E DeMarle wrote: > 5.10 was the first time we attempted any kind of long term support ( > http://public.kitware.com/pipermail/vtk-developers/2013-October/029905.html) > eh? > For VTK 4, there was no long-term support, but neither were their any restrictions on developers continuing to push fixes to the old branch. I continued to push fixes for VTK 4 for a couple years, at least. So there really was a bit of long-term support going on for VTK 4, just not from Kitware ;) - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbraeunlein at gmail.com Thu Jun 11 12:07:11 2015 From: mbraeunlein at gmail.com (osch) Date: Thu, 11 Jun 2015 09:07:11 -0700 (MST) Subject: [vtkusers] subclassing vtkInteractorStyleTrackballCamera Message-ID: <1434038831058-5732294.post@n5.nabble.com> Hi, i am working on a project based on vtk and qt. So far i am able to render my 3d model. Next step is to interact with it. I want to use a custom vtkInteractor for this and found an example on how to subclass vtkInteractorStyleTrackballCamera. http://www.vtk.org/Wiki/VTK/Examples/Interaction/MouseEvents So i copied the MouseInteractorStyle4 class into MouseInteractorStyle4.cxx, leaving out the main method. I imported MouseInteractorStyle4.cxx into my project and tried the following code vtkSmartPointer customStyle = vtkSmartPointer::New(); I get this error message /home/michael/Documents/project/src/MainApp.cpp:-1: error: multiple definition of `MouseInteractorStyle4::New()' What am i doing wrong? Any help is appreciated. Thanks, Michael -- View this message in context: http://vtk.1045678.n5.nabble.com/subclassing-vtkInteractorStyleTrackballCamera-tp5732294.html Sent from the VTK - Users mailing list archive at Nabble.com. From berk.geveci at kitware.com Thu Jun 11 12:22:24 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Thu, 11 Jun 2015 12:22:24 -0400 Subject: [vtkusers] Long-term support for previous VTK release In-Reply-To: References: Message-ID: This is good to know. With Gitlab in place, everyone who can merge to master should be able to merge to a VTK 6 branch once we create it. If there are no objections to this, we should go ahead and make a branch for VTK 6.2. Unless I hear a good reason why not, let's shoot for Monday. On Thu, Jun 11, 2015 at 11:46 AM, David Gobbi wrote: > On Thu, Jun 11, 2015 at 8:57 AM, David E DeMarle > wrote: > >> 5.10 was the first time we attempted any kind of long term support ( >> http://public.kitware.com/pipermail/vtk-developers/2013-October/029905.html) >> eh? >> > > For VTK 4, there was no long-term support, but neither were their any > restrictions on developers continuing to push fixes to the old branch. I > continued to push fixes for VTK 4 for a couple years, at least. > > So there really was a bit of long-term support going on for VTK 4, just > not from Kitware ;) > > - David > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Thu Jun 11 15:41:47 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Thu, 11 Jun 2015 15:41:47 -0400 Subject: [vtkusers] vtkHierarchicalBoxDataSet In-Reply-To: References: Message-ID: Hi Magician, Did you look at the examples in Examples/AMR/Cxx? Best, -berk On Wed, Jun 10, 2015 at 8:49 AM, Magician wrote: > Hi all, > > > I'd like to define vtkHierarchicalBoxDataSet objects on VTK 6.2.0. > But there are few informations to do it. > > Can I get any complete sample codes written in Python or C++? > > > Magician > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Thu Jun 11 16:45:06 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Thu, 11 Jun 2015 16:45:06 -0400 Subject: [vtkusers] MPI application writing PVTI In-Reply-To: <557039F0.5080300@bsc.es> References: <55675C6F.3070204@bsc.es> <556DD995.1080004@bsc.es> <557039F0.5080300@bsc.es> Message-ID: Hi Alejandro, I will check this out soon. To make sure that I understand, when you write out the data stored in the trivial producer using vtkXMLPImageDataWriter, the extent in the pvti file is wrong. Did I get that right? Best, -berk On Thu, Jun 4, 2015 at 7:43 AM, Alejandro Fern?ndez < alejandro.fernandez at bsc.es> wrote: > Hi Berk, > > Thanks a lot for your help. Now the whole extent in the .pvti file is > correct. > > However, since I upgraded from VTK 6.0 to VTK 6.2, the extent information > in the PVTI file contains only the extent information of the piece 0 (since > only process 0 writes the .pvti file). If I add them manually in the PVTI > file, paraview opens it perfectly (although the extents have to overlap in > one point, even if the information in the pieces is completely disjoint, > otherwise paraview complains). > > Here I attach my original .pvti file and the one manually fixed, as well > as the piece VTI files. > > Thank you very much for your time and attention, > > -- > > Alejandro Fern?ndez Su?rez > Computer Science Dept. > K2M Building - Room 104 - (+34) 934 137 529 > Barcelona Supercomputing Center - CNSwww.bsc.es > > On 03/06/2015 16:33, Berk Geveci wrote: > > Hi Alejandro, > > (I CCed the mailing list to share the knowledge) > > (Note that you need VTK 6.2 or later for what I am about to describe.) > > What you have is almost correct. You just need a way for the whole > extent information to get to the writer. So do this: > > vtkNew tp; > tp->SetOutput(imageData); > tp->SetWholeExtent(0, msx-1, 0, msy-1, 0, msz-1); > > writer->SetInputConnection(tp->GetOutputPort()); > > By the way, SetInputData() does almost exactly this except that it has > no way of setting the whole extent. > > Best, > -berk > > On Tue, Jun 2, 2015 at 12:28 PM, Alejandro Fern?ndez < > alejandro.fernandez at bsc.es> wrote: > >> Thanks for your answer! >> >> I used the vtkXMLPImageDataWriter to write my .pvti file only with MPI >> process 0. However, I can not find a way to specify the whole extent of the >> .pvti file separately from the extent of each piece. My domains are >> patitioned along the Z axis (third) component. But the writer seems to >> implicitly partition the Y axis and I do not know how to specify it >> separately. Please, can you tell me if there is any way to do so? Here is >> the structure of my code: >> >> vtkSmartPointer imageData = >> vtkSmartPointer::New(); >> imageData->SetExtent(0, msx-1, 0, msy-1, zstart, zend); // zstart and >> zend vary depending on MPI process >> imageData->SetSpacing(hx, hy, hz); >> >> vtkSmartPointer sf = vtkSmartPointer::New(); >> sf->SetNumberOfComponents(nDims); >> sf->SetNumberOfTuples(msx*msy*(zend-zstart+1)); >> ... loop >> sf->SetTuple(tupleCount++, field_data); >> ... >> >> imageData->GetPointData()->AddArray(sf); >> >> vtkSmartPointer writer = >> vtkSmartPointer::New(); >> >> // I would expect a way to specify the "whole extent" here >> // This does not work >> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_SetWholeExtent >> if (world->rank() != 0) writer->WriteSummaryFileOff(); >> writer->SetNumberOfPieces(world->size()); >> writer->SetEndPiece(world->rank()); >> writer->SetStartPiece(world->rank()); >> >> writer->SetFileName("output.pvti"); >> writer->SetInputData(imageData); >> writer->Write(); >> >> Thanks a lot! >> >> -- >> >> Alejandro Fern?ndez Su?rez >> Computer Science Dept. >> K2M Building - Room 104 - (+34) 934 137 529 >> Barcelona Supercomputing Center - CNSwww.bsc.es >> >> On 01/06/2015 19:52, Shawn Waldon wrote: >> >> One of the key things to realize about the vtkXMLP*Writers is that the >> writer makes no assumptions when used in parallel. The P is for Piece not >> Parallel, so you have to tell it how many pieces total are being written. >> You also have to tell it the start and end piece numbers for each process >> (probably just the process id). Otherwise it defaults to one total piece >> and each process thinks it is writing piece 0 so the file gets clobbered >> when all the processes try to write it. See the vtkXMLPDataWriter >> documentation [1] for details on how to set these options. >> >> HTH, >> Shawn >> >> [1]: http://www.vtk.org/doc/nightly/html/classvtkXMLPDataWriter.html >> >> On Mon, Jun 1, 2015 at 1:15 PM, Berk Geveci >> wrote: >> >>> The easiest thing is to use vtkXMLPImageDataWriter in parallel to write >>> an example and then to follow that template. >>> >>> Best, >>> -berk >>> >>> On Thu, May 28, 2015 at 2:20 PM, Alejandro Fern?ndez < >>> alejandro.fernandez at bsc.es> wrote: >>> >>>> Hello everyone, >>>> >>>> I have a C++ MPI application that writes the results of a >>>> domain-decomposed mesh in different VTI files. Each process writes its own >>>> VTI file with the points corresponding to its domain. In order to group all >>>> VTI files into a single 3D image in paraview, I want to produce a single >>>> PVTI file using XMLPImageDataWriter. However, I have not found any example >>>> and do not know how to achieve this result with just the raw class method >>>> documentation. >>>> >>>> Please, can somebody provide me a C++ example or point me to the >>>> required documentation? >>>> >>>> Thank you very much, your help will be much appreciated. >>>> >>>> -- >>>> >>>> Alejandro Fern?ndez Su?rez >>>> Computer Science Dept. >>>> K2M Building - Room 104 - (+34) 934 137 529 >>>> Barcelona Supercomputing Center - CNS >>>> www.bsc.es >>>> >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the VTK FAQ at: >>>> http://www.vtk.org/Wiki/VTK_FAQ >>>> >>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfavre at cscs.ch Fri Jun 12 02:36:00 2015 From: jfavre at cscs.ch (Favre Jean) Date: Fri, 12 Jun 2015 06:36:00 +0000 Subject: [vtkusers] MPI application writing PVTI In-Reply-To: References: <55675C6F.3070204@bsc.es> <556DD995.1080004@bsc.es> <557039F0.5080300@bsc.es>, Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F6841EF22DE@MBX111.d.ethz.ch> I personally prefer to dump distributed data with MPI-IO into a single file of raw data, and then I use the Xdmf wrapper to read the raw data. I find it much simpler to specify extents, etc. The other advantage of using Xdmf is that I can read it with at least two different open-source viz applications. My Xdmf lightweight data is the following, for a single attribute, written in parallel by an app running on 32 MPI tasks partitioned in an 8x4 cartesian MPI grid, each task writing its 64^3 block Please note the Format="Binary" 0. 0. 0. 1. 1. 1. bench_raw.0000 Give Xdmf a try. ParaView will read it in parallel without any problem (Xdmf2) ----------------- Jean M. Favre Swiss National Supercomputing Center CH-6900 Lugano Switzerland -------------- next part -------------- An HTML attachment was scrubbed... URL: From ali.hadimogullari at netcad.com.tr Fri Jun 12 04:31:53 2015 From: ali.hadimogullari at netcad.com.tr (alihadim) Date: Fri, 12 Jun 2015 01:31:53 -0700 (MST) Subject: [vtkusers] VTK reading LAS File Message-ID: <1434097913367-5732301.post@n5.nabble.com> Hi All, Is there a way to read the LAS, LAZ vb file? -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-reading-LAS-File-tp5732301.html Sent from the VTK - Users mailing list archive at Nabble.com. From paul.melis at surfsara.nl Fri Jun 12 04:30:59 2015 From: paul.melis at surfsara.nl (Paul Melis) Date: Fri, 12 Jun 2015 10:30:59 +0200 Subject: [vtkusers] vtkExternalOpenGLRenderer with OpenGL2 backend? In-Reply-To: <55782DFD.1040703@surfsara.nl> References: <55782DFD.1040703@surfsara.nl> Message-ID: <557A98C3.8050609@surfsara.nl> Replying to myself :) It seems that in git master enabling the combination OpenGL2 + external rendering module is now possible, thanks to commit 58e34140ab5c8f3cd9b8461fb021f4f6dae57aac. However, it does mention a runtime issue wrt VBOs that apparently needs to be solved. Paul On 06/10/2015 02:30 PM, Paul Melis wrote: > Hello, > > The blog post http://www.kitware.com/blog/home/post/688 nicely > describes additions to VTK to more precisely control a VTK camera's > perspective matrices. But when building VTK 6.2.0 it seems that you > can't enable both Module_vtkRenderingExternal and use the OpenGL2 > backend. Is this indeed expected at the moment? If so, will the > external OpenGL camera stuff be added to the OpenGL2 backend? > > Thanks, > Paul > From franciscolopezdelafranca at gmail.com Fri Jun 12 05:51:56 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Fri, 12 Jun 2015 11:51:56 +0200 Subject: [vtkusers] 3D image as N cubes In-Reply-To: References: Message-ID: Sorry for so many questions, but I need to get on my project. I've got an Octree where its DataSet contains voxels with scalar values to 0 or 1 (it comes from a binary image). If I traverse the dataset the following way dataset = octree->GetDataSet(); for (int z = 0; z < dims[2]; z++) { for (int y = 0; y < dims[1]; y++) { for (int x = 0; x < dims[0]; x++) { double* pixel = static_cast(dataset->GetScalarPointer(x,y,z)); if ( pixel[0] != 0 ) count++; } } } then it works OK, that is, I detect how many voxels are 1's and how many are 0's. However, when I go through region by region, getting the vtkIds and then the scalar value from it: for(int j=0; j < octree->GetNumberOfLeafNodes(); j++) { vtkIdTypeArray* points = octree->GetPointsInRegion(j); for(vtkIdType idx=0; idx < points->GetSize(); idx++) { dataset->GetPoint(idx, p); // Get the idx coordinates x = p[0]; y = p[1]; z = p[2]; voxelValue = static_cast(dataset->GetScalarPointer(x, y, z)); if ( voxelValue[0] != 0 ) count++; } } Thank you very much for your support and patience. then: 1. I donot know why the x, y, z coordinates are returned as double values, e.g. instead of (1,0,0) it returns (1.07234, 0,0). 2. I donot understand why all voxel values are now 0's. 2015-06-10 13:25 GMT+02:00 Francisco Lopez de la Franca < franciscolopezdelafranca at gmail.com>: > Hi everybody, > Once I retrieve the list of points (IDs) in an octree region/octant, by > coding > > vtkIdTypeArray* points = octree->GetPointsInRegion(i); > > I'd like to know the scalar voxel value (0 or 1 since the image is binary) > of every point in the "points" array. > I've tried with "points->GetValue(iterator)" and with > "points->GetTuple1()" but the result is not the expected. > > Please, does someone know what I should I do or what am I doing wrong? > > Sincerely, thank you very much. > Regards > > 2015-06-09 23:49 GMT+02:00 Francisco Lopez de la Franca < > franciscolopezdelafranca at gmail.com>: > >> Hi again, >> Could anybody tell what is the difference between vtkoctreepointlocator >> and vtkhyperoctree? I am using the former for ceating an octree from an >> image, but i donot know which one is the best. My intention is mainly to >> know how many points there are per octant. >> Thank you very much. >> My best regards. >> >> El mi?rcoles, 3 de junio de 2015, Francisco Lopez de la Franca < >> franciscolopezdelafranca at gmail.com> escribi?: >> >>> Thanks a lot. >>> And is there an example on how to traverse the whole octree? I mean, i >>> would like to know how many points there are per octant. >>> And finally, independently on the image, if i create an octree with a >>> fixed level, will the representation be the same? I mean, the same number >>> of octants with the same distribution independently on the image? >>> Thank you very much. >>> My best regards. >>> El 03/06/2015 15:36, "Bill Lorensen" escribi?: >>> >>>> This example may help: >>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/DataStructures/OctreeVisualize >>>> >>>> >>>> On Wed, Jun 3, 2015 at 8:48 AM, Francisco Lopez de la Franca >>>> wrote: >>>> > Hi. >>>> > I've created an example (see below) but everything is OK except that >>>> the >>>> > output image is not created. I'd be very pleased if someone can help >>>> me >>>> > (maybe with an explanatory example or whatever). >>>> > >>>> > char* filename = new char[255]; >>>> > strcpy(filename, "nifti_image.nii"); >>>> > >>>> > vtkSmartPointer reader = >>>> > vtkSmartPointer::New(); >>>> > >>>> > reader->SetFileName(filename); >>>> > reader->Update(); >>>> > >>>> > //Create the octree >>>> > vtkSmartPointer octree = >>>> > vtkSmartPointer::New(); >>>> > octree->SetDataSet((vtkDataSet*) reader->GetOutput()); >>>> > octree->BuildLocator(); >>>> > >>>> > std::cout << "Number of cells in tree: " << >>>> > octree->GetDataSet()->GetNumberOfCells() << std::endl; >>>> > std::cout << "Number of points in tree: " << >>>> > octree->GetDataSet()->GetNumberOfPoints() << std::endl; >>>> > >>>> > char* outfile = new char[255]; >>>> > strcpy(outfile, "OcTree.vtp"); >>>> > >>>> > vtkSmartPointer writer = >>>> > vtkSmartPointer::New(); >>>> > writer->SetInputData((vtkPolyData*) octree->GetDataSet()); >>>> > writer->SetFileName(outfile); >>>> > writer->Write(); >>>> > >>>> > >>>> > 2015-05-29 12:40 GMT+02:00 Francisco Lopez de la Franca >>>> > : >>>> >> >>>> >> Hi everybody, >>>> >> I'd like to represent a 3D image as a fixed number of cubes, I mean, >>>> >> something like a spatial occupancy matrix in 3D. >>>> >> >>>> >> Could you, please, recommend me a fast way to do it or does it >>>> exist a >>>> >> data structure in VTK to achieve this? >>>> >> >>>> >> I've found the OcTree structure but I donot know if it is valid for >>>> this. >>>> >> >>>> >> Thank you very much. >>>> >> My best regards. >>>> >> /Francisco >>>> > >>>> > >>>> > >>>> > _______________________________________________ >>>> > Powered by www.kitware.com >>>> > >>>> > Visit other Kitware open-source projects at >>>> > http://www.kitware.com/opensource/opensource.html >>>> > >>>> > Please keep messages on-topic and check the VTK FAQ at: >>>> > http://www.vtk.org/Wiki/VTK_FAQ >>>> > >>>> > Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> > >>>> > Follow this link to subscribe/unsubscribe: >>>> > http://public.kitware.com/mailman/listinfo/vtkusers >>>> > >>>> >>>> >>>> >>>> -- >>>> Unpaid intern in BillsBasement at noware dot com >>>> >>> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vianamp at gmail.com Fri Jun 12 06:17:39 2015 From: vianamp at gmail.com (matheus_viana) Date: Fri, 12 Jun 2015 03:17:39 -0700 (MST) Subject: [vtkusers] Cell Picking -> Deletion -> Updating... Problem with new id's Message-ID: <1434104259131-5732305.post@n5.nabble.com> Hi guys. I am writing a little piece of code to edit a network stored as a PolyData. For now I want to be able of selecting a bunch of cells, delete them and update the network on screen. To do so, I adapted the code shown in this example http://www.vtk.org/Wiki/VTK/Examples/Cxx/Picking/CellPicking. Everything is working great so far except for one thing. After deleting the first batch of cells, I can't figure out how to update the cells id's so that next time I select new cells, I will have the new id's. If you want to download the code+CMakeList+DataFile, please do that using the following link: https://www.dropbox.com/s/uyqx07jiy7540vp/CellPicking.zip?dl=0 After running the code, please use left click to select a cell and press "d" to mark the cell for deletion. After selecting all the cells you want, press "p" to delete them. If you repeat the process, you will see my problem: the cells that are going to be deleted are not the same you selected. Thanks a lot, #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vtkPolyData *PolyData; vtkIdType _selected_cell; double _selected_coordinate[3]; std::vector CellsToDelete; std::vector CellsToBreak; std::vector CoordinatesToBreak; void KeypressCallbackFunction (vtkObject* caller, long unsigned int eventId, void* clientData, void* callData); // Catch mouse events class MouseInteractorStyle : public vtkInteractorStyleTrackballCamera { public: static MouseInteractorStyle* New(); MouseInteractorStyle() { selectedMapper = vtkSmartPointer::New(); selectedActor = vtkSmartPointer::New(); } virtual void OnLeftButtonDown() { // Get the location of the click (in window coordinates) int* pos = this->GetInteractor()->GetEventPosition(); vtkSmartPointer picker = vtkSmartPointer::New(); picker->SetTolerance(0.01); // Pick from this location. picker->Pick(pos[0], pos[1], 0, this->GetDefaultRenderer()); // Scale factor pos[0] *= 0.056; pos[1] *= 0.056; pos[2] *= 0.200; double* worldPosition = picker->GetPickPosition(); std::cout << "Cell id is: " << picker->GetCellId() << std::endl; if(picker->GetCellId() != -1) { _selected_cell = picker->GetCellId(); _selected_coordinate[0] = pos[0]; _selected_coordinate[1] = pos[1]; _selected_coordinate[2] = pos[2]; std::cout << "Pick position is: " << worldPosition[0] << " " << worldPosition[1] << " " << worldPosition[2] << endl; vtkSmartPointer ids = vtkSmartPointer::New(); ids->SetNumberOfComponents(1); ids->InsertNextValue(picker->GetCellId()); vtkSmartPointer selectionNode = vtkSmartPointer::New(); selectionNode->SetFieldType(vtkSelectionNode::CELL); selectionNode->SetContentType(vtkSelectionNode::INDICES); selectionNode->SetSelectionList(ids); vtkSmartPointer selection = vtkSmartPointer::New(); selection->AddNode(selectionNode); vtkSmartPointer extractSelection = vtkSmartPointer::New(); extractSelection->SetInputData(0, this->Data); extractSelection->SetInputData(1, selection); extractSelection->Update(); // In selection vtkSmartPointer selected = vtkSmartPointer::New(); selected->ShallowCopy(extractSelection->GetOutput()); std::cout << "There are " << selected->GetNumberOfPoints() << " points in the selection." << std::endl; std::cout << "There are " << selected->GetNumberOfCells() << " cells in the selection." << std::endl; selectedMapper->SetInputData(selected); selectedActor->SetMapper(selectedMapper); selectedActor->GetProperty()->EdgeVisibilityOn(); selectedActor->GetProperty()->SetEdgeColor(1,0,0); selectedActor->GetProperty()->SetLineWidth(3); this->Interactor->GetRenderWindow()->GetRenderers()->GetFirstRenderer()->AddActor(selectedActor); } // Forward events vtkInteractorStyleTrackballCamera::OnLeftButtonDown(); } vtkSmartPointer Data; vtkSmartPointer selectedMapper; vtkSmartPointer selectedActor; }; vtkStandardNewMacro(MouseInteractorStyle); int main (int, char *[]) { vtkSmartPointer Reader = vtkSmartPointer::New(); Reader -> SetFileName("../Skell.vtk"); Reader -> Update(); PolyData = Reader -> GetOutput(); vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputData(PolyData); mapper->ScalarVisibilityOff(); vtkSmartPointer actor = vtkSmartPointer::New(); actor->GetProperty()->SetColor(0,1,0); actor->SetMapper(mapper); vtkSmartPointer renderer = vtkSmartPointer::New(); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->AddRenderer(renderer); vtkSmartPointer renderWindowInteractor = vtkSmartPointer::New(); renderWindowInteractor->SetRenderWindow(renderWindow); renderWindowInteractor->Initialize(); // Set the custom stype to use for interaction. vtkSmartPointer style = vtkSmartPointer::New(); style->SetDefaultRenderer(renderer); style->Data = PolyData; vtkSmartPointer keypressCallback = vtkSmartPointer::New(); keypressCallback->SetCallback ( KeypressCallbackFunction ); renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->AddObserver ( vtkCommand::KeyPressEvent, keypressCallback ); renderer->AddActor(actor); renderer->ResetCamera(); renderer->SetBackground(0,0,0); renderWindow->Render(); renderWindowInteractor->Start(); return EXIT_SUCCESS; } void KeypressCallbackFunction ( vtkObject* caller, long unsigned int vtkNotUsed(eventId), void* vtkNotUsed(clientData), void* vtkNotUsed(callData) ) { std::cout << "Keypress callback" << std::endl; vtkRenderWindowInteractor *iren = static_cast(caller); std::cout << "Pressed: " << iren->GetKeySym() << std::endl; // Key "d": adds the selected cell to the deletion list if (!strcmp("d",iren->GetKeySym())) { CellsToDelete.push_back(_selected_cell); } // KEY [p]: deletes the cells stored in the deletion list if (!strcmp("p",iren->GetKeySym())) { printf("Delete these cells:\n"); for (int c = 0; c < CellsToDelete.size(); c++) { printf("\t%d\n",(int)CellsToDelete[c]); PolyData -> BuildLinks(); PolyData -> DeleteCell(CellsToDelete[c]); PolyData -> RemoveDeletedCells(); PolyData -> Modified(); } } } -- View this message in context: http://vtk.1045678.n5.nabble.com/Cell-Picking-Deletion-Updating-Problem-with-new-id-s-tp5732305.html Sent from the VTK - Users mailing list archive at Nabble.com. From vianamp at gmail.com Fri Jun 12 06:24:19 2015 From: vianamp at gmail.com (matheus_viana) Date: Fri, 12 Jun 2015 03:24:19 -0700 (MST) Subject: [vtkusers] Cell Picking -> Deletion -> Updating... Problem with new id's In-Reply-To: <1434104259131-5732305.post@n5.nabble.com> References: <1434104259131-5732305.post@n5.nabble.com> Message-ID: <1434104659308-5732306.post@n5.nabble.com> Hi guys, I found the problem. Actually I was deleting the correct cells and bunch of others just because I forgot to clean the vector CellsToDelete after deleting the cells. Correct code: ... for (int c = 0; c < CellsToDelete.size(); c++) { printf("\t%d\n",(int)CellsToDelete[c]); PolyData -> BuildLinks(); PolyData -> DeleteCell(CellsToDelete[c]); PolyData -> RemoveDeletedCells(); PolyData -> Modified(); } * CellsToDelete.clear();* ... -- View this message in context: http://vtk.1045678.n5.nabble.com/Cell-Picking-Deletion-Updating-Problem-with-new-id-s-tp5732305p5732306.html Sent from the VTK - Users mailing list archive at Nabble.com. From vianamp at gmail.com Fri Jun 12 06:47:27 2015 From: vianamp at gmail.com (matheus_viana) Date: Fri, 12 Jun 2015 03:47:27 -0700 (MST) Subject: [vtkusers] Cell Picking -> Deletion -> Updating... Problem with new id's In-Reply-To: <1434104659308-5732306.post@n5.nabble.com> References: <1434104259131-5732305.post@n5.nabble.com> <1434104659308-5732306.post@n5.nabble.com> Message-ID: <1434106047073-5732307.post@n5.nabble.com> One more correction... PolyData -> BuildLinks(); for (int c = 0; c < CellsToDelete.size(); c++) { printf("\t%d\n",(int)CellsToDelete[c]); PolyData -> DeleteCell(CellsToDelete[c]); } PolyData -> RemoveDeletedCells(); PolyData -> Modified(); CellsToDelete.clear(); -- View this message in context: http://vtk.1045678.n5.nabble.com/Cell-Picking-Deletion-Updating-Problem-with-new-id-s-tp5732305p5732307.html Sent from the VTK - Users mailing list archive at Nabble.com. From coyarzunlaura at googlemail.com Fri Jun 12 07:53:20 2015 From: coyarzunlaura at googlemail.com (Cristina Oyarzun) Date: Fri, 12 Jun 2015 13:53:20 +0200 Subject: [vtkusers] CFP: MICCAI CLIP 2015. Deadline approaching! Message-ID: CALL FOR PAPERS MICCAI 2015 Workshop on Clinical Image-based Procedures: Translational Research in Medical Imaging October 5, 2015 Munich, Germany Website:http://miccai-clip.org/ ============================== ========================================== SCOPE The outstanding proliferation of medical image applications has created a need for greater study and scrutiny of the clinical application and validation of such methods. New strategies are essential to ensure a smooth and effective translation of computational image-based techniques into the clinic. For these reasons CLIP 2015?s major focus is on *translational research *filling the gaps between basic science and clinical applications. A highlight of the workshop is the subject of *strategies for personalized medicine *to enhance diagnosis, treatment and interventions. Authors are encouraged to submit work centered on specific clinical applications, including techniques and procedures based on comprehensive clinical image data. Submissions related to applications already in use and evaluated by clinical users are particularly encouraged. The event will bring together world-class specialists to present ways to strengthen links between computer scientists and engineers, and clinicians. TOPICS *Strategies for patient-specific and anatomical modeling to support planning and interventions *Clinical studies employing advanced image-guided methods *Clinical translation and validation of image-guided systems *Current challenges and emerging techniques in image-based procedures *Identification of parameters and error analysis in image-based procedures *Multimodal image integration for modeling, planning and guidance *Clinical applications in open and minimally invasive procedures PAPER SUBMISSION Papers will be limited to eight pages following the MICCAI submission guidelines. Prospective authors should refer to the Paper Submission section on the workshop website for details on how to submit papers to be presented at the workshop. All submissions will be peer-reviewed by at least 2 members of the program committee. The selection of the papers will be based on the significance of results, novelty, technical merit, relevance and clarity of presentation. Papers will be presented in a day long single track workshop starting with plenary sessions. Accepted papers will be published as a post-proceedings volume in the Springer Lecture Notes in Computer Science (LNCS) series after the workshop. WORKSHOP FORMAT Accepted papers will be presented in a day long single track workshop. The final program will consist of invited speakers and original papers with time allocated for discussions. Electronic proceedings will be arranged for all of the papers presented at the workshop. IMPORTANT DATES * June 19, 2015: Paper submission due date * July 17, 2015: Notification of acceptance CONTACT Inquires about the workshop should be sent to the Information Desk (info@ miccai-clip.org). ORGANIZERS (in alphabetical order) Klaus Drechsler (Fraunhofer IGD, Germany) Marius Erdt (Fraunhofer IDM at NTU, Singapore) Miguel Gonz?lez Ballester (ICREA - Universitat Pompeu Fabra, Spain) Marius George Linguraru (Children's National Medical Center, USA) Cristina Oyarzun Laura (Fraunhofer IGD, Germany) Yoshinobu Sato (Nara Institute of Science and Technology, Japan) Raj Shekhar (Children's National Medical Center, USA) Stefan Wesarg (Fraunhofer IGD, Germany) ======================================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Fri Jun 12 08:17:03 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Fri, 12 Jun 2015 08:17:03 -0400 Subject: [vtkusers] vtkExternalOpenGLRenderer with OpenGL2 backend? In-Reply-To: <557A98C3.8050609@surfsara.nl> References: <55782DFD.1040703@surfsara.nl> <557A98C3.8050609@surfsara.nl> Message-ID: Paul, the current master (and one pending branch that solves the stereo rendering issue) should solve your problem. Can you try master as of this morning? Thanks, On Fri, Jun 12, 2015 at 4:30 AM, Paul Melis wrote: > Replying to myself :) > > It seems that in git master enabling the combination OpenGL2 + external > rendering module is now possible, thanks to commit > 58e34140ab5c8f3cd9b8461fb021f4f6dae57aac. However, it does mention a > runtime issue wrt VBOs that apparently needs to be solved. > > Paul > > On 06/10/2015 02:30 PM, Paul Melis wrote: > >> Hello, >> >> The blog post http://www.kitware.com/blog/home/post/688 nicely describes >> additions to VTK to more precisely control a VTK camera's perspective >> matrices. But when building VTK 6.2.0 it seems that you can't enable both >> Module_vtkRenderingExternal and use the OpenGL2 backend. Is this indeed >> expected at the moment? If so, will the external OpenGL camera stuff be >> added to the OpenGL2 backend? >> >> Thanks, >> Paul >> >> > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From franciscolopezdelafranca at gmail.com Fri Jun 12 11:58:52 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Fri, 12 Jun 2015 17:58:52 +0200 Subject: [vtkusers] Region path in Octrees Message-ID: Hi, Given a region ID, how is it known its path from the root region, hierarchically speaking? I donot see any method in vtkOctreePointLocator returning this. I mean, for example, let's have an octree with 24 regions, if I want to know which are the parents of region 14, how do I know it? Thanks a lot. My best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From f_magician at mac.com Fri Jun 12 12:18:08 2015 From: f_magician at mac.com (Magician) Date: Sat, 13 Jun 2015 01:18:08 +0900 Subject: [vtkusers] vtkHierarchicalBoxDataSet In-Reply-To: References: Message-ID: <9D0A616B-A8E4-448F-9BA9-B1B200020BC5@mac.com> Hi Berk, Thanks for your advice. I missed the examples. I'm now tracing Generate3DAMRDataSetWithPulse.cxx with Python. And now I have other questions. - The example includes vtkAMRBox class, but I can't find it in vtk or any other submodule on Python. How can I use it? - Some methods are provided by AMRCommon.h. Can I use these methods with Python? Magician > On Jun 12, 2015, at 04:41, Berk Geveci wrote: > > Hi Magician, > > Did you look at the examples in Examples/AMR/Cxx? > > Best, > -berk > > On Wed, Jun 10, 2015 at 8:49 AM, Magician > wrote: > Hi all, > > > I'd like to define vtkHierarchicalBoxDataSet objects on VTK 6.2.0. > But there are few informations to do it. > > Can I get any complete sample codes written in Python or C++? > > > Magician > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From agatakrason at gmail.com Fri Jun 12 13:47:55 2015 From: agatakrason at gmail.com (agatte) Date: Fri, 12 Jun 2015 10:47:55 -0700 (MST) Subject: [vtkusers] mesh animation Message-ID: <1434131275308-5732314.post@n5.nabble.com> Hello, I have a problem with animation. I would like to make an animation display two meshed : 1 fixed mesh and second "moving mesh". I created a loop for to read data from mhd files and display. But I can't do it automaticaly ... ;/ I try to add timer .. But It doesn't work well. Could You help me please ? I would be appreciate for any help please. Here is my code : class vtkTimerCallback : public vtkCommand { public: static vtkTimerCallback *New() { vtkTimerCallback *cb = new vtkTimerCallback; cb->TimerCount = 0; return cb; } virtual void Execute(vtkObject *vtkNotUsed(caller), unsigned long eventId, void *vtkNotUsed(callData)) { if(vtkCommand::TimerEvent == eventId) { ++this->TimerCount; } cout << this->TimerCount << endl; } private: int TimerCount; }; int main (int argc, char *argv[]) { if( argc < 3) { std::cerr << "Usage: " < refReader = vtkSmartPointer::New(); refReader->SetFileName(argv[1]); refReader->Update(); vtkSmartPointer refVolume = vtkSmartPointer::New(); refVolume = refReader->GetOutput(); vtkSmartPointer refContour = vtkSmartPointer::New(); refContour->SetInput(refVolume); refContour->Update(); refContour->SetValue(0,1); vtkSmartPointer refPolydata = vtkSmartPointer::New(); refPolydata= refContour->GetOutput(); vtkSmartPointer refPoints = refPolydata->GetPoints(); vtkSmartPointer refPolys = refPolydata->GetPolys(); refPolydata->SetPoints(refPoints); vtkSmartPointer refMapper = vtkSmartPointer::New(); refMapper->SetInputConnection(refContour->GetOutputPort()); refMapper->ScalarVisibilityOn(); vtkSmartPointer refActor = vtkSmartPointer::New(); refActor->SetMapper(refMapper); // refActor->GetProperty()->SetColor(1.0, 2.0, 3.0); vtkSmartPointer renderer = vtkSmartPointer::New(); renderer->SetBackground(0, 0, 0); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->AddRenderer(renderer); vtkSmartPointer interactor = vtkSmartPointer::New(); interactor->SetRenderWindow(renderWindow); renderer->AddActor(refActor); int numberOfFiles = atoi(argv[2]); std::cout<<"numberOfFiles : "<< std::endl; interactor->Start(); interactor->SetRepeatCount(numberOfFiles); for(int i=1; i< numberOfFiles; i++) { // Sign up to receive TimerEvent vtkSmartPointer cb = vtkSmartPointer::New(); interactor->AddObserver(vtkCommand::TimerEvent, cb); interactor->CreateRepeatingTimer(10); string end = static_cast( &(ostringstream() << i) )->str(); std::cout <<" "< moveReader= vtkSmartPointer::New(); moveReader->SetFileName(currentFileName.c_str()); moveReader->Update(); vtkSmartPointer moveVolume = vtkSmartPointer::New(); moveVolume = moveReader->GetOutput(); vtkSmartPointer moveContour = vtkSmartPointer::New(); moveContour->SetInput(moveVolume); moveContour->Update(); moveContour->SetValue(0,1); vtkSmartPointer movePolydata = vtkSmartPointer::New(); movePolydata = moveContour->GetOutput(); vtkSmartPointer movePoints = movePolydata->GetPoints(); vtkSmartPointer movePolys = movePolydata->GetPolys(); movePolydata->SetPoints(movePoints); vtkSmartPointer moveMapper = vtkSmartPointer::New(); moveMapper->SetInputConnection(moveContour->GetOutputPort()); moveMapper->ScalarVisibilityOff(); vtkSmartPointer moveActor = vtkSmartPointer::New(); moveActor->SetMapper(moveMapper); std::cout<< "i = "<GetProperty()->SetColor(1.0, 2.0, 0.0); renderer->AddActor(moveActor); renderer->Render(); renderWindow->Render(); interactor->Start(); moveActor->SetVisibility(0); } system("Pause"); return EXIT_SUCCESS; } -- View this message in context: http://vtk.1045678.n5.nabble.com/mesh-animation-tp5732314.html Sent from the VTK - Users mailing list archive at Nabble.com. From gregthom992 at gmail.com Fri Jun 12 15:05:46 2015 From: gregthom992 at gmail.com (gregthom992) Date: Fri, 12 Jun 2015 12:05:46 -0700 (MST) Subject: [vtkusers] vtk image from itk Message-ID: <1434135946506-5732315.post@n5.nabble.com> Hi, I am reading an image from SimpleITK but I get these results in vtk any help ? #### CODE def sitk2vtk(img): size = list(img.GetSize()) origin = list(img.GetOrigin()) spacing = list(img.GetSpacing()) sitktype = img.GetPixelID() vtktype = pixelmap[sitktype] ncomp = img.GetNumberOfComponentsPerPixel() # there doesn't seem to be a way to specify the image orientation in VTK # convert the SimpleITK image to a numpy array i2 = sitk.GetArrayFromImage(img) #import pylab #i2 = reshape(i2, size) i2_string = i2.tostring() # send the numpy array to VTK with a vtkImageImport object dataImporter = vtk.vtkImageImport() dataImporter.CopyImportVoidPointer( i2_string, len(i2_string) ) dataImporter.SetDataScalarType(vtktype) dataImporter.SetNumberOfScalarComponents(ncomp) # VTK expects 3-dimensional parameters if len(size) == 2: size.append(1) if len(origin) == 2: origin.append(0.0) if len(spacing) == 2: spacing.append(spacing[0]) # Set the new VTK image's parameters # dataImporter.SetDataExtent (0, size[0]-1, 0, size[1]-1, 0, size[2]-1) dataImporter.SetWholeExtent(0, size[0]-1, 0, size[1]-1, 0, size[2]-1) dataImporter.SetDataOrigin(origin) dataImporter.SetDataSpacing(spacing) dataImporter.Update() vtk_image = dataImporter.GetOutput() return vtk_image ### END CODE -- View this message in context: http://vtk.1045678.n5.nabble.com/vtk-image-from-itk-tp5732315.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Fri Jun 12 16:12:50 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 12 Jun 2015 14:12:50 -0600 Subject: [vtkusers] vtk image from itk In-Reply-To: <1434135946506-5732315.post@n5.nabble.com> References: <1434135946506-5732315.post@n5.nabble.com> Message-ID: Hi Greg, Part of the problem is this line of code: dataImporter.SetDataOrigin(origin) The VTK image origin and the ITK image origin are not the same. They have the same name, but they have different definitions. Numerically, they will have the same value only if the ITK orientation matrix is the identity matrix. My approach to dealing with oriented images in VTK is to store both the orientation and the offset in a 4x4 matrix (a vtkMatrix4x4), since the orientation cannot be stored in the vtkImageData itself. Because I store the offset (i.e. the ITK origin) in the 4x4 matrix, I must set the VTK image origin to zero. In general, when moving images between ITK and VTK, I suggest always setting the VTK image origin to zero unless you are certain that all of your images have no orientation (i.e. identity orientation matrix). - David On Fri, Jun 12, 2015 at 1:05 PM, gregthom992 wrote: > > > Hi, I am reading an image from SimpleITK but I get these results in vtk any > help ? > > #### > CODE > def sitk2vtk(img): > > size = list(img.GetSize()) > origin = list(img.GetOrigin()) > spacing = list(img.GetSpacing()) > sitktype = img.GetPixelID() > vtktype = pixelmap[sitktype] > ncomp = img.GetNumberOfComponentsPerPixel() > > # there doesn't seem to be a way to specify the image orientation in > VTK > > # convert the SimpleITK image to a numpy array > i2 = sitk.GetArrayFromImage(img) > #import pylab > #i2 = reshape(i2, size) > > i2_string = i2.tostring() > > # send the numpy array to VTK with a vtkImageImport object > dataImporter = vtk.vtkImageImport() > > dataImporter.CopyImportVoidPointer( i2_string, len(i2_string) ) > > dataImporter.SetDataScalarType(vtktype) > > dataImporter.SetNumberOfScalarComponents(ncomp) > > # VTK expects 3-dimensional parameters > if len(size) == 2: > size.append(1) > > if len(origin) == 2: > origin.append(0.0) > > if len(spacing) == 2: > spacing.append(spacing[0]) > > # Set the new VTK image's parameters > # > dataImporter.SetDataExtent (0, size[0]-1, 0, size[1]-1, 0, size[2]-1) > dataImporter.SetWholeExtent(0, size[0]-1, 0, size[1]-1, 0, size[2]-1) > > dataImporter.SetDataOrigin(origin) > dataImporter.SetDataSpacing(spacing) > > dataImporter.Update() > > vtk_image = dataImporter.GetOutput() > return vtk_image > ### > END CODE > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Liyihai2009 at qq.com Fri Jun 12 20:49:44 2015 From: Liyihai2009 at qq.com (Yihai Li) Date: Fri, 12 Jun 2015 17:49:44 -0700 (MST) Subject: [vtkusers] vtkTIFFReader, vtkImageData, vtkImagePlaneWidget In-Reply-To: References: Message-ID: <1434156584721-5732318.post@n5.nabble.com> The answer of you question is OK. vtkTIFFReader can read series images (which compose 3D image ) with setting as show bellow: tiffReader->SetFileDimensionality(2); tiffReader->SetFileNameSliceSpacing(1); tiffReader->SetDataExtent(0, 511, 0, 511, 0, 100); tiffReader->SetFilePrefix("D:\\slice_"); // FilePrefix composes of directory(e.g. D:\\) and file name prefix(e.g. slice_) tiffReader->SetFilePattern("%s%d.png"); // %s will be filled with FilePrefix, %d will be filled with DataExtent's Z range. tiffReader->SetDataSpacing (1, 1, 1); tiffReader->SetDataOrigin(0.0, 0.0, 0.0); -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkTIFFReader-vtkImageData-vtkImagePlaneWidget-tp1245371p5732318.html Sent from the VTK - Users mailing list archive at Nabble.com. From liyihai2009 at qq.com Fri Jun 12 23:28:33 2015 From: liyihai2009 at qq.com (=?gb18030?B?ste6o9K7y9o=?=) Date: Sat, 13 Jun 2015 11:28:33 +0800 Subject: [vtkusers] Why is vtkImagePlaneWidget outputDimensionality setting invalid ? Message-ID: I set the output dimension of imagePlaneWidget as show below: imagePlaneWidget->GetReslice()->SetOutputDimensionality(3); // set the output data to be 3D When I tried to get 3D image as show below, I found that the value of dim was 2 ( expected value was 3) ! vtkImageData * data = imagePlaneWidget->GetResliceOutput(); int dim = data->GetDataDimension(); // after test , I found the value of dim is 2 ! My question is that why the setting of dimensionality was invalid ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From liyihai2009 at qq.com Sat Jun 13 04:43:04 2015 From: liyihai2009 at qq.com (=?gb18030?B?ste6o9K7y9o=?=) Date: Sat, 13 Jun 2015 16:43:04 +0800 Subject: [vtkusers] How to get all coordinates inside vtkQuad ? Message-ID: If we knew the vertexs's coordinates of vtkQuad, how should we get all the coordinates inside the quad ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From chimaeraqm at yahoo.com Sat Jun 13 08:21:39 2015 From: chimaeraqm at yahoo.com (Ming Qi) Date: Sat, 13 Jun 2015 12:21:39 +0000 (UTC) Subject: [vtkusers] Help: How to generate active view from series .vtu files? Message-ID: <55111067.2668890.1434198099237.JavaMail.yahoo@mail.yahoo.com> Hello! I have a problem in programme vtk project with vs2010.Now I have a series .vtu files in a folder with the name like PART001, PART002, PART003 and so on. If I open this bunch of files in paraview, it shows a active view. Now with the class of ?vtuXMLUnstructuredGridReader, i am able to open a .vtu file in this folder and a static graphic shown in a window. But if i made a loop to read .vtu files files. it will read one .vtu at a time, generating one window with static graphic and then close this window, and open a new window to show the next graphic read from the next .vtu file. I want to know which class i should use to read all the .vtu files as a whole and generate an active view just like shown in the ParaView. The code I read one .vtu file is listed as follows. How should I change the code if I want to achieve my target. >>vtkSmartPointer reader = vtkSmartPointer::New();>> char fileName[128];?>> sprintf(fileName,"G:/ParaviewFiles/ParaviewFiles/VTU/VTUinp.pvd");>> reader->SetFileName(fileName); >> vtkNew surfaces;>> surfaces->SetInputConnection(reader->GetOutputPort());>> vtkNew mapper;>> mapper->SetInputConnection(surfaces->GetOutputPort());>> vtkNew actor;>> actor->SetMapper(mapper.GetPointer());>> vtkNew renderer;>> renderer->AddActor(actor.GetPointer());>> renderer->SetBackground(0,0,0);>> vtkNew renwin;>> renwin->SetMultiSamples(0);>> renwin->AddRenderer(renderer.GetPointer());>>renwin->SetSize(500, 500);>> vtkNew iren;>> iren->SetRenderWindow(renwin.GetPointer());>> iren->Initialize();>> renderer->ResetCamera();>> vtkCamera *camera = renderer->GetActiveCamera();>> camera->Elevation(-90);>> camera->SetViewUp(0.0, 0.0, 0.0);>> camera->Azimuth(0);>> renwin->Render();>> int retVal = vtkRegressionTestImage( renwin.GetPointer() ); Thanks very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: From quentan at gmail.com Sat Jun 13 08:36:19 2015 From: quentan at gmail.com (Quentan Qi) Date: Sat, 13 Jun 2015 13:36:19 +0100 Subject: [vtkusers] How to convert vtkImageCast back to vtkImageData Message-ID: <0E09286E-881E-47BE-8F04-EF02C057B730@gmail.com> Hi there, After casting an image using vtkImageCast, it becomes a vtkImageCast object, but I want to use vtkImplicitVolume which requires vtkImageData type. How to convert vtkImageCast back to vtkImageData? ```Python reader = read_DICOM(path_dicom) # result is a vtkImageData cast = vtk.vtkImageCast() cast.SetInputData(reader) # vtkImageData ?> vtkImageCast cast.SetOutputScalarTypeToShort() # I need this type implicit_volume = vtk.vtkImplicitVolume() implicit_volume.SetVolume(reader) # It works but I need ?cast? instead # implicit_volume.SetVolume(cast) # It?s wrong because vtkImageData is required, but a vtkImageCast was given # other things ``` Thanks a lot! Cheers, Quentan From david.gobbi at gmail.com Sat Jun 13 09:06:35 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Sat, 13 Jun 2015 07:06:35 -0600 Subject: [vtkusers] How to convert vtkImageCast back to vtkImageData In-Reply-To: <0E09286E-881E-47BE-8F04-EF02C057B730@gmail.com> References: <0E09286E-881E-47BE-8F04-EF02C057B730@gmail.com> Message-ID: Hi Quental, The solution is as follows: cast.Update() implicit_volume.SetVolume(cast.GetOutput()) The VTK pipeline recognizes two very distinct kinds of objects: The vtkImageCast object is a vtk "algorithm" object (derived from vtkAlgorithm). The vtkImageData object is a vtk "data" object (derived from vtkDataObject). An algorithm can never be data. An algorithm _operates_ on data. So the algorithm's input is data, and its output is data. - David On Sat, Jun 13, 2015 at 6:36 AM, Quentan Qi wrote: > Hi there, > > After casting an image using vtkImageCast, it becomes a vtkImageCast > object, but I want to use vtkImplicitVolume which requires vtkImageData > type. How to convert vtkImageCast back to vtkImageData? > > ```Python > > reader = read_DICOM(path_dicom) # result is a vtkImageData > > cast = vtk.vtkImageCast() > cast.SetInputData(reader) # vtkImageData ?> vtkImageCast > cast.SetOutputScalarTypeToShort() # I need this type > > implicit_volume = vtk.vtkImplicitVolume() > implicit_volume.SetVolume(reader) # It works but I need ?cast? instead > # implicit_volume.SetVolume(cast) # It?s wrong because vtkImageData is > required, but a vtkImageCast was given > # other things > > ``` > > Thanks a lot! > > Cheers, > Quentan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From quentan at gmail.com Sat Jun 13 09:15:46 2015 From: quentan at gmail.com (Quentan Qi) Date: Sat, 13 Jun 2015 14:15:46 +0100 Subject: [vtkusers] How to convert vtkImageCast back to vtkImageData In-Reply-To: References: <0E09286E-881E-47BE-8F04-EF02C057B730@gmail.com> Message-ID: <6591118F-5667-4F05-8172-E24F02931924@gmail.com> Hi David, Thank you very much for your prompt reply. You solved this problem in seconds! I now understand the two different pipeline better. Cheers, Quentan > On 13 Jun 2015, at 14:06, David Gobbi wrote: > > Hi Quental, > > The solution is as follows: > > cast.Update() > implicit_volume.SetVolume(cast.GetOutput()) > > The VTK pipeline recognizes two very distinct kinds of objects: > > The vtkImageCast object is a vtk "algorithm" object (derived from vtkAlgorithm). > The vtkImageData object is a vtk "data" object (derived from vtkDataObject). > > An algorithm can never be data. An algorithm _operates_ on data. > So the algorithm's input is data, and its output is data. > > - David > > > On Sat, Jun 13, 2015 at 6:36 AM, Quentan Qi > wrote: > Hi there, > > After casting an image using vtkImageCast, it becomes a vtkImageCast object, but I want to use vtkImplicitVolume which requires vtkImageData type. How to convert vtkImageCast back to vtkImageData? > > ```Python > > reader = read_DICOM(path_dicom) # result is a vtkImageData > > cast = vtk.vtkImageCast() > cast.SetInputData(reader) # vtkImageData ?> vtkImageCast > cast.SetOutputScalarTypeToShort() # I need this type > > implicit_volume = vtk.vtkImplicitVolume() > implicit_volume.SetVolume(reader) # It works but I need ?cast? instead > # implicit_volume.SetVolume(cast) # It?s wrong because vtkImageData is required, but a vtkImageCast was given > # other things > > ``` > > Thanks a lot! > > Cheers, > Quentan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Sat Jun 13 12:00:53 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Sat, 13 Jun 2015 12:00:53 -0400 Subject: [vtkusers] vtkTiffWriter does not write 3d volume In-Reply-To: References: <1401890290576-5727324.post@n5.nabble.com> <1401898290877-5727325.post@n5.nabble.com> <818877DBC4894266BF41D5BBAB448C5C@HomePC2> <1402024501619-5727360.post@n5.nabble.com> Message-ID: This was a little more complex than expected, and involved rewriting a lot of the writer code, but the vtkTIFFWriter in VTK master now supports writing 3D volumes as multi-page/directory TIFFs. Marcus On Thu, Jun 12, 2014 at 10:58 AM, Marcus D. Hanwell < marcus.hanwell at kitware.com> wrote: > This sounds great, I was away from the office and offline quite a bit. I > would be happy to help where I can, and would love to bring the TIFF writer > to better parity. As David Gobbi said - we already use libtiiff for > reading/writing to the file. > > Marcus > > On Fri, Jun 6, 2014 at 4:01 AM, Richard Whitehead < > richard.whitehead at vivosight.com> wrote: > >> Matheus, >> Good work. Please let me know if I can help with the testing - I could >> make a simple test harness perhaps and gather some test images. >> Many thanks, >> Richard >> >> >> On 6 June 2014 04:15, matheus_viana [via VTK] <[hidden email] >> > wrote: >> >>> Definitely yes. I'm combining information from ImageJ and ITK to see >>> what could be added to the vtkTIFFWriter.cxx. It seems that VTK does not >>> have implemented the loop in which each page of the multi-page TIFF file is >>> written. I'm working on that. >>> >>> ------------------------------ >>> If you reply to this email, your message will be added to the >>> discussion below: >>> >>> http://vtk.1045678.n5.nabble.com/vtkTiffWriter-does-not-write-3d-volume-tp5727049p5727360.html >>> To unsubscribe from vtkTiffWriter does not write 3d volume, click here. >>> NAML >>> >>> >> >> >> >> -- >> >> Richard Whitehead *?* Senior Imaging Engineer >> >> *Michelson Diagnostics Ltd* >> >> *M:* +44 (0)7905 955276 *T:* +44 (0)20 8308 1695 >> >> *E: *[hidden email] >> *W:* >> www.vivosight.com >> >> >> >> >> >> Michelson Diagnostics Ltd, 1 Grays Farm Production Village, Grays Farm >> Road, Orpington, Kent BR5 3BD, UK >> >> Registered Office: 3 Shearwater, Maidstone, ME16 0DW. Registered in >> England No. 5732681 >> >> ------------------------------ >> View this message in context: Re: vtkTiffWriter does not write 3d volume >> >> >> Sent from the VTK - Users mailing list archive >> at Nabble.com. >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From agatakrason at gmail.com Sat Jun 13 15:59:55 2015 From: agatakrason at gmail.com (agatte) Date: Sat, 13 Jun 2015 12:59:55 -0700 (MST) Subject: [vtkusers] VTK animation in the loop Message-ID: <1434225595299-5732328.post@n5.nabble.com> Hi, I have a question concering animation in VTK toolkit. I would like to make an animation. I want to read image in the loop and visualize it. (I have image series. I have to see how it changes position, moves ect ...) I wrote a code but it doesn't work well. It builds and compiles well. But it doesn't change simultaneously ... It doesn't change loop .. I have to click on x in renderwindow.... Could anyone advice me something in VTK ? What I have to change/add to my code ? I would be appreciate for any help please. Here is my code : class vtkTimerCallback : public vtkCommand { public: static vtkTimerCallback *New() { vtkTimerCallback *cb = new vtkTimerCallback; cb->TimerCount = 0; return cb; } virtual void Execute(vtkObject *vtkNotUsed(caller), unsigned long eventId, void *vtkNotUsed(callData)) { if(vtkCommand::TimerEvent == eventId) { ++this->TimerCount; } cout << this->TimerCount << endl; } private: int TimerCount; }; int main (int argc, char *argv[]) { if( argc < 3) { std::cerr << "Usage: " < refReader = vtkSmartPointer::New(); refReader->SetFileName(argv[1]); refReader->Update(); vtkSmartPointer refVolume = vtkSmartPointer::New(); refVolume = refReader->GetOutput(); vtkSmartPointer refContour = vtkSmartPointer::New(); refContour->SetInput(refVolume); refContour->Update(); refContour->SetValue(0,1); vtkSmartPointer refPolydata = vtkSmartPointer::New(); refPolydata= refContour->GetOutput(); vtkSmartPointer refPoints = refPolydata->GetPoints(); vtkSmartPointer refPolys = refPolydata->GetPolys(); refPolydata->SetPoints(refPoints); vtkSmartPointer refMapper = vtkSmartPointer::New(); refMapper->SetInputConnection(refContour->GetOutputPort()); refMapper->ScalarVisibilityOn(); vtkSmartPointer refActor = vtkSmartPointer::New(); refActor->SetMapper(refMapper); // refActor->GetProperty()->SetColor(1.0, 2.0, 3.0); vtkSmartPointer renderer = vtkSmartPointer::New(); renderer->SetBackground(0, 0, 0); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->AddRenderer(renderer); vtkSmartPointer interactor = vtkSmartPointer::New(); interactor->SetRenderWindow(renderWindow); renderer->AddActor(refActor); int numberOfFiles = atoi(argv[2]); std::cout<<"numberOfFiles : "<< std::endl; renderer->Render(); renderWindow->Render(); interactor->Start(); renderer->UpdateLightsGeometryToFollowCamera(); renderer->Modified(); // Sign up to receive TimerEvent vtkSmartPointer cb = vtkSmartPointer::New(); interactor->AddObserver(vtkCommand::TimerEvent, cb); //interactor->CreateRepeatingTimer(10); interactor->SetDesiredUpdateRate(10); cb->AbortFlagOff(); for(int i=1; i< numberOfFiles; ++i) { string end = static_cast( &(ostringstream() << i) )->str(); std::cout <<" "< moveReader= vtkSmartPointer::New(); moveReader->SetFileName(currentFileName.c_str()); moveReader->Update(); vtkSmartPointer moveVolume = vtkSmartPointer::New(); moveVolume = moveReader->GetOutput(); vtkSmartPointer moveContour = vtkSmartPointer::New(); moveContour->SetInput(moveVolume); moveContour->Update(); moveContour->SetValue(0,1); vtkSmartPointer movePolydata = vtkSmartPointer::New(); movePolydata = moveContour->GetOutput(); vtkSmartPointer movePoints = movePolydata->GetPoints(); vtkSmartPointer movePolys = movePolydata->GetPolys(); movePolydata->SetPoints(movePoints); vtkSmartPointer moveMapper = vtkSmartPointer::New(); moveMapper->SetInputConnection(moveContour->GetOutputPort()); moveMapper->ScalarVisibilityOff(); vtkSmartPointer moveActor = vtkSmartPointer::New(); moveActor->SetMapper(moveMapper); std::cout<< "i = "<GetProperty()->SetColor(1.0, 2.0, 0.0); renderer->AddActor(moveActor); renderer->Render(); renderWindow->Render(); interactor->Start(); moveActor->SetVisibility(0); } system("Pause"); return EXIT_SUCCESS; } -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-animation-in-the-loop-tp5732328.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Sat Jun 13 18:04:40 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Sat, 13 Jun 2015 16:04:40 -0600 Subject: [vtkusers] VTK animation in the loop In-Reply-To: <1434225595299-5732328.post@n5.nabble.com> References: <1434225595299-5732328.post@n5.nabble.com> Message-ID: Hi Agata, The trick with doing animation with a timer is this: there is no loop! The animation is done by the Execute method of the timer callback. Every time a TimerEvent is generated, the Execute method must draw one animation frame. It can use a counter to keep track of which frame to draw. - David On Sat, Jun 13, 2015 at 1:59 PM, agatte wrote: > Hi, > > I have a question concering animation in VTK toolkit. > I would like to make an animation. > I want to read image in the loop and visualize it. > (I have image series. I have to see how it changes position, moves ect ...) > I wrote a code but it doesn't work well. It builds and compiles well. > But it doesn't change simultaneously ... It doesn't change loop .. I have > to > click on x in renderwindow.... > > Could anyone advice me something in VTK ? What I have to change/add to my > code ? > > > I would be appreciate for any help please. > > Here is my code : > > > class vtkTimerCallback : public vtkCommand > { > public: > static vtkTimerCallback *New() > { > vtkTimerCallback *cb = new vtkTimerCallback; > cb->TimerCount = 0; > return cb; > } > > virtual void Execute(vtkObject *vtkNotUsed(caller), unsigned long > eventId, > void *vtkNotUsed(callData)) > { > if(vtkCommand::TimerEvent == eventId) > { > ++this->TimerCount; > } > > cout << this->TimerCount << endl; > } > > private: > int TimerCount; > > }; > > > int main (int argc, char *argv[]) > { > > if( argc < 3) > { > std::cerr << "Usage: " < numberOfFiles"<< std::endl; > return EXIT_FAILURE; > } > > //string dirName = "images"; > //argv[1]="\images\\image06.mhd"; > > vtkSmartPointer<vtkMetaImageReader> refReader = > vtkSmartPointer::New(); > refReader->SetFileName(argv[1]); > refReader->Update(); > > vtkSmartPointer refVolume = > vtkSmartPointer::New(); > refVolume = refReader->GetOutput(); > > vtkSmartPointer refContour = > vtkSmartPointer::New(); > refContour->SetInput(refVolume); > refContour->Update(); > refContour->SetValue(0,1); > > vtkSmartPointer refPolydata = > vtkSmartPointer::New(); > refPolydata= refContour->GetOutput(); > > vtkSmartPointer refPoints = refPolydata->GetPoints(); > vtkSmartPointer refPolys = refPolydata->GetPolys(); > refPolydata->SetPoints(refPoints); > > vtkSmartPointer refMapper = > vtkSmartPointer::New(); > refMapper->SetInputConnection(refContour->GetOutputPort()); > refMapper->ScalarVisibilityOn(); > > vtkSmartPointer refActor = > vtkSmartPointer::New(); > refActor->SetMapper(refMapper); > // refActor->GetProperty()->SetColor(1.0, 2.0, 3.0); > > vtkSmartPointer renderer = > vtkSmartPointer::New(); > renderer->SetBackground(0, 0, 0); > vtkSmartPointer renderWindow = > vtkSmartPointer::New(); > renderWindow->AddRenderer(renderer); > vtkSmartPointer interactor = > vtkSmartPointer::New(); > interactor->SetRenderWindow(renderWindow); > renderer->AddActor(refActor); > > int numberOfFiles = atoi(argv[2]); > std::cout<<"numberOfFiles : "<< std::endl; > > renderer->Render(); > renderWindow->Render(); > interactor->Start(); > > renderer->UpdateLightsGeometryToFollowCamera(); > renderer->Modified(); > > // Sign up to receive TimerEvent > vtkSmartPointer cb = > vtkSmartPointer::New(); > interactor->AddObserver(vtkCommand::TimerEvent, cb); > //interactor->CreateRepeatingTimer(10); > interactor->SetDesiredUpdateRate(10); > cb->AbortFlagOff(); > > > for(int i=1; i< numberOfFiles; ++i) > { > > string end = static_cast( &(ostringstream() << i) > )->str(); > std::cout <<" "< string currentFileName; > currentFileName = "image0" + end + ".mhd"; > std::cout<<" > "<<currentFileName<<std::endl; > vtkSmartPointer<vtkMetaImageReader> moveReader= > vtkSmartPointer::New(); > moveReader->SetFileName(currentFileName.c_str()); > moveReader->Update(); > > vtkSmartPointer moveVolume = > vtkSmartPointer::New(); > moveVolume = moveReader->GetOutput(); > > vtkSmartPointer moveContour = > vtkSmartPointer::New(); > moveContour->SetInput(moveVolume); > moveContour->Update(); > moveContour->SetValue(0,1); > > vtkSmartPointer movePolydata = > vtkSmartPointer::New(); > movePolydata = moveContour->GetOutput(); > > vtkSmartPointer movePoints = > movePolydata->GetPoints(); > vtkSmartPointer movePolys = > movePolydata->GetPolys(); > movePolydata->SetPoints(movePoints); > > vtkSmartPointer moveMapper = > vtkSmartPointer::New(); > moveMapper->SetInputConnection(moveContour->GetOutputPort()); > moveMapper->ScalarVisibilityOff(); > > vtkSmartPointer moveActor = > vtkSmartPointer::New(); > moveActor->SetMapper(moveMapper); > std::cout<< "i = "< moveActor->GetProperty()->SetColor(1.0, 2.0, 0.0); > > renderer->AddActor(moveActor); > renderer->Render(); > renderWindow->Render(); > interactor->Start(); > moveActor->SetVisibility(0); > } > > system("Pause"); > > > return EXIT_SUCCESS; > } > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From liyihai2009 at qq.com Sat Jun 13 20:44:32 2015 From: liyihai2009 at qq.com (=?gb18030?B?ste6o9K7y9o=?=) Date: Sun, 14 Jun 2015 08:44:32 +0800 Subject: [vtkusers] How to get all points in a rectangle. Message-ID: Now I know the vertex coordinates (3D) of a rectangle, and I want to get all the coordinates inside the rectangle. How can I achieve this goal ? Which class should I use ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashray.malhotra.1994 at gmail.com Sun Jun 14 13:43:49 2015 From: ashray.malhotra.1994 at gmail.com (Ashray Malhotra) Date: Sun, 14 Jun 2015 23:13:49 +0530 Subject: [vtkusers] Image RGBToHSV Conversion Example Clarification Message-ID: Hello, I found this example of converting an RGB input image to the HSV color domain. http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/RGBToHSV In the extractHue, saturation and value filters, input is the output of image reader whereas I believe it should be the output of the vtkImageRGBToHSV filter. I ran the above example on a test image and got this result https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/RGBDisplay-WikiCode.png I modified the code by giving the input as output of vtkImageRGBToHSV filter. My code is https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/RGBToHSV.cxx And the output image that I get is https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/HSVDisplay-GitHubCode.png which is completely different from the previous one. Can someone please tell me if I am making an error or is there an error in the example. Thanks a lot. Regards Ashray Malhotra -- Regards Ashray Malhotra -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clinton.Stamper at genetesis.com Sun Jun 14 17:38:22 2015 From: Clinton.Stamper at genetesis.com (Clinton Stamper) Date: Sun, 14 Jun 2015 17:38:22 -0400 Subject: [vtkusers] vtkStructuredPoints to vtkPolyData Message-ID: Hey everyone, I am currently reading a set of DiComs into a structured points file and then region growing a heart out of this file. Is there an easy way to get the surface of this structured points file into a mesh? I know poly data can be a mesh but I need help finding a way to convert the vtkStructuredPoints into a polydata file or using the vtkDataSetSurfaceFilter. Any guidance would be great. Thanks everyone, Clinton Stamper -------------- next part -------------- An HTML attachment was scrubbed... URL: From julien.jomier at kitware.com Mon Jun 15 03:34:45 2015 From: julien.jomier at kitware.com (Julien Jomier) Date: Mon, 15 Jun 2015 09:34:45 +0200 Subject: [vtkusers] ANN: Kitware is hiring in France Message-ID: <557E8015.9050401@kitware.com> We are looking to hire visualization developers to our Scientific Computing team in Lyon, France. If you are a talented visualization researcher and developer with strong C++ skills, please consider applying: http://www.kitware.fr/fr/societe/recrutement Julien From daviddoria at gmail.com Mon Jun 15 08:21:43 2015 From: daviddoria at gmail.com (David Doria) Date: Mon, 15 Jun 2015 08:21:43 -0400 Subject: [vtkusers] Image RGBToHSV Conversion Example Clarification In-Reply-To: References: Message-ID: On Sun, Jun 14, 2015 at 1:43 PM, Ashray Malhotra < ashray.malhotra.1994 at gmail.com> wrote: > Hello, > > I found this example of converting an RGB input image to the HSV color > domain. > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/RGBToHSV > > In the extractHue, saturation and value filters, input is the output of > image reader whereas I believe it should be the output of the vtkImageRGBToHSV > filter. I ran the above example on a test image and got this result > > https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/RGBDisplay-WikiCode.png > > I modified the code by giving the input as output of vtkImageRGBToHSV > filter. > My code is > > https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/RGBToHSV.cxx > > And the output image that I get is > > https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/HSVDisplay-GitHubCode.png > > which is completely different from the previous one. > > Can someone please tell me if I am making an error or is there an error in > the example. > > Thanks a lot. > > Regards > Ashray Malhotra > > You are correct - it was a typo. I've corrected it on the wiki. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Jun 15 08:37:41 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 15 Jun 2015 06:37:41 -0600 Subject: [vtkusers] vtkStructuredPoints to vtkPolyData In-Reply-To: References: Message-ID: Hi Clinton, This can be done with vtkContourFilter or vtkMarchingCubes. - David On Sun, Jun 14, 2015 at 3:38 PM, Clinton Stamper < Clinton.Stamper at genetesis.com> wrote: > Hey everyone, I am currently reading a set of DiComs into a structured > points file and then region growing a heart out of this file. > > Is there an easy way to get the surface of this structured points file > into a mesh? I know poly data can be a mesh but I need help finding a way > to convert the vtkStructuredPoints into a polydata file or using the > vtkDataSetSurfaceFilter. Any guidance would be great. > > Thanks everyone, > Clinton Stamper > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Mon Jun 15 09:00:32 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 15 Jun 2015 06:00:32 -0700 (MST) Subject: [vtkusers] Rotation of PolyData Message-ID: <1434373232248-5732340.post@n5.nabble.com> Hello everyone, I've been going through the examples in the wiki for quite a while now but for some reason I can't make the rotation/translation/scaling of a poly dataset to work. I would like to get some help from you as I'm completely lost on the reason why it doesn't work. So far my code is the following: void Drawing::scale(float k){ vtkSmartPointer transform =vtkSmartPointer::New(); transform->Scale(5,1,1); vtkSmartPointer transformFilter = vtkSmartPointer::New(); transformFilter->SetInputConnection(cone->GetOutputPort()); transformFilter->SetTransform(transform); mapper->SetInputConnection(transformFilter->GetOutputPort()); mainActor->SetMapper(mapper); } void Drawing::translate(float x, float y, float z){ cout << "Translate: " << x << " - " << " - " << y << " - " << z << endl ; vtkSmartPointer transform1a = vtkSmartPointer::New(); transform1a->Translate(x,y,z); mainActor->SetUserTransform(transform1a); transform->Update(); } void Drawing::rotate(float x, float y, float z){ cout << "Rotate: " << x << " - " << " - " << y << " - " << z << endl ; vtkSmartPointer transform1a = vtkSmartPointer::New(); transform1a->PostMultiply(); transform1a->RotateX(x); transform1a->RotateY(y); transform1a->RotateZ(z); mainActor->SetUserTransform(transform1a); } void Drawing::dummy (){ // Next we create an instance of vtkConeSource and set some of its // properties. The instance of vtkConeSource "cone" is part of a // visualization pipeline (it is a source process object); it produces data // (output type is vtkPolyData) which other filters may process. // cone = vtkConeSource::New(); cone->SetHeight( 3.0 ); cone->SetRadius( 1.0 ); cone->SetResolution( 10 ); // // In this example we terminate the pipeline with a mapper process object. // (Intermediate filters such as vtkShrinkPolyData could be inserted in // between the source and the mapper.) We create an instance of // vtkPolyDataMapper to map the polygonal data into graphics primitives. We // connect the output of the cone souece to the input of this mapper. // mapper = vtkPolyDataMapper::New(); mapper->SetInputConnection( cone->GetOutputPort() ); // // Create an actor to represent the cone. The actor orchestrates rendering // of the mapper's graphics primitives. An actor also refers to properties // via a vtkProperty instance, and includes an internal transformation // matrix. We set this actor's mapper to be coneMapper which we created // above. // mainActor = vtkActor::New(); mainActor->SetMapper( mapper ); // // Create the Renderer and assign actors to it. A renderer is like a // viewport. It is part or all of a window on the screen and it is // responsible for drawing the actors it has. We also set the background // color here. // ren = vtkRenderer::New(); ren->AddActor( mainActor ); ren->SetBackground( 0.1, 0.2, 0.4 ); // // Finally we create the render window which will show up on the screen. // We put our renderer into the render window using AddRenderer. We also // set the size to be 300 pixels by 300. // win = vtkRenderWindow::New(); win->AddRenderer( ren ); win->SetSize( 300, 300 ); // // The vtkRenderWindowInteractor class watches for events (e.g., keypress, // mouse) in the vtkRenderWindow. These events are translated into // event invocations that VTK understands (see VTK/Common/vtkCommand.h // for all events that VTK processes). Then observers of these VTK // events can process them as appropriate. vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(win); // // By default the vtkRenderWindowInteractor instantiates an instance // of vtkInteractorStyle. vtkInteractorStyle translates a set of events // it observes into operations on the camera, actors, and/or properties // in the vtkRenderWindow associated with the vtkRenderWinodwInteractor. // Here we specify a particular interactor style. vtkInteractorStyleMultiTouchCamera *style = vtkInteractorStyleMultiTouchCamera::New(); iren->SetInteractorStyle(style); iren->Initialize(); iren->Start(); // // Free up any objects we created. All instances in VTK are deleted by // using the Delete() method. // cone->Delete(); mapper->Delete(); mainActor->Delete(); ren->Delete(); win->Delete(); iren->Delete(); style->Delete(); } As you can see I've tried different methods so far in the rotate or scale or translate but none of them work and I'm completely puzzled since I don't understand the reason why. Any help will be greatly appreciated. Have a good day, -- View this message in context: http://vtk.1045678.n5.nabble.com/Rotation-of-PolyData-tp5732340.html Sent from the VTK - Users mailing list archive at Nabble.com. From gregthom992 at gmail.com Mon Jun 15 13:38:09 2015 From: gregthom992 at gmail.com (gregthom992) Date: Mon, 15 Jun 2015 10:38:09 -0700 (MST) Subject: [vtkusers] vtk image from itk In-Reply-To: <1434135946506-5732315.post@n5.nabble.com> References: <1434135946506-5732315.post@n5.nabble.com> Message-ID: <1434389889324-5732342.post@n5.nabble.com> Hi David , Thanks for your information. I ignored the origin and it didn't fix my images. I then made another attempt at a function to convert to vtk from SimpleITK. This still gave me the "mangled" image. I am seeing that my img_array.shape is [198 512 512] but my desired image Dimension should be [512 512 198] Do you think that is the problem ? I am not sure how SimpleITK GetArrayFromImage does with flipping dimensions. Any help will be appreciated. Greg ##CODE: # image = sitk image sitktype = image.GetPixelID() vtktype = pixelmap[sitktype] # Get ndarray from SimpleITK image img_array = sitk.GetArrayFromImage(sitk.Cast(image, sitk.sitkFloat32)) Dimension = image.GetDimension() OutputPixelType = itk.F OutputImageType = itk.Image[OutputPixelType, Dimension] #PyBuffer connector pyBufferConnector = itk.PyBuffer[OutputImageType] # Get ITK image from ndarray itkImage = pyBufferConnector.GetImageFromArray(img_array) # preserve ITK image information itkImage.SetSpacing(image.GetSpacing()) #itkImage.SetOrigin(image.GetOrigin()) #itkImage.SetDirection(image.GetDirection()) itk_vtk_converter = itk.ImageToVTKImageFilter[OutputImageType].New() itk_vtk_converter.SetInput(itkImage) itk_vtk_converter.Update() ##END CODE -- View this message in context: http://vtk.1045678.n5.nabble.com/vtk-image-from-itk-tp5732315p5732342.html Sent from the VTK - Users mailing list archive at Nabble.com. From berk.geveci at kitware.com Mon Jun 15 14:22:05 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Mon, 15 Jun 2015 14:22:05 -0400 Subject: [vtkusers] vtkHierarchicalBoxDataSet In-Reply-To: <9D0A616B-A8E4-448F-9BA9-B1B200020BC5@mac.com> References: <9D0A616B-A8E4-448F-9BA9-B1B200020BC5@mac.com> Message-ID: Dear Magician, Unfortunately, vtkAMRBox is not wrapped into Python. The right solution is to add a method to vtkOverlappingAMR that takes 6 int values and internally generates an AMR box. Maybe you can give that a shot. AMRCommon.h is a utility header written for that example. To duplicate it in Python, you have to rewrite it I am afraid. Best, -berk On Fri, Jun 12, 2015 at 12:18 PM, Magician wrote: > Hi Berk, > > > Thanks for your advice. I missed the examples. > I'm now tracing Generate3DAMRDataSetWithPulse.cxx with Python. > > And now I have other questions. > > - The example includes vtkAMRBox class, but I can't find it > in vtk or any other submodule on Python. > How can I use it? > > - Some methods are provided by AMRCommon.h. > Can I use these methods with Python? > > > Magician > > > On Jun 12, 2015, at 04:41, Berk Geveci wrote: > > Hi Magician, > > Did you look at the examples in Examples/AMR/Cxx? > > Best, > -berk > > On Wed, Jun 10, 2015 at 8:49 AM, Magician wrote: > >> Hi all, >> >> >> I'd like to define vtkHierarchicalBoxDataSet objects on VTK 6.2.0. >> But there are few informations to do it. >> >> Can I get any complete sample codes written in Python or C++? >> >> >> Magician >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Mon Jun 15 14:23:07 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Mon, 15 Jun 2015 14:23:07 -0400 Subject: [vtkusers] How to get all coordinates inside vtkQuad ? In-Reply-To: References: Message-ID: GetPoints() On Sat, Jun 13, 2015 at 4:43 AM, ???? wrote: > If we knew the vertexs's coordinates of vtkQuad, how should we get all the > coordinates inside the quad ? > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Mon Jun 15 14:25:23 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Mon, 15 Jun 2015 14:25:23 -0400 Subject: [vtkusers] Region path in Octrees In-Reply-To: References: Message-ID: I don't believe that this is possible. On Fri, Jun 12, 2015 at 11:58 AM, Francisco Lopez de la Franca < franciscolopezdelafranca at gmail.com> wrote: > Hi, > Given a region ID, how is it known its path from the root region, > hierarchically speaking? I donot see any method in vtkOctreePointLocator > returning this. > I mean, for example, let's have an octree with 24 regions, if I want to > know which are the parents of region 14, how do I know it? > > Thanks a lot. > My best regards. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blowekamp at mail.nih.gov Mon Jun 15 13:54:07 2015 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Mon, 15 Jun 2015 13:54:07 -0400 Subject: [vtkusers] vtk image from itk In-Reply-To: <1434389889324-5732342.post@n5.nabble.com> References: <1434135946506-5732315.post@n5.nabble.com> <1434389889324-5732342.post@n5.nabble.com> Message-ID: Hello, It looks like you are now mixing SimpleITK, WrapITK, and VTK for python. I am not sure adding WrapITK will make things any easier. There is a complication with transitioning between SimpleITK and numpy with the order of the indexes. In the SimpleITK image buffer x is the fast axis and z is the slowest. When you index a SimpleITK image you do: img.GetPixel(x,y,z) or img[x,y,z] similarly (sizeX, sizeY, sizeZ) = img.GetSize() Now, numpy arrays are indexed in the oppo site order: nda = sitk.GetArrayFromImage(img) nda[z,y,z] and (sizeZ, sizeY, sizeX) = nda.shape() There is also a IPython notebook which covers this issue [1]. HTH, Brad [1] http://simpleitk.github.io/SimpleITK-Notebooks/01_Image_Basics.html On Jun 15, 2015, at 1:38 PM, gregthom992 wrote: > Hi David , > > Thanks for your information. I ignored the origin and it didn't fix my > images. > I then made another attempt at a function to convert to vtk from SimpleITK. > This still gave me the "mangled" image. I am seeing that my img_array.shape > is [198 512 512] but my desired image Dimension should be [512 512 198] > Do you think that is the problem ? I am not sure how SimpleITK > GetArrayFromImage > does with flipping dimensions. Any help will be appreciated. > Greg > > > ##CODE: > > # image = sitk image > sitktype = image.GetPixelID() > vtktype = pixelmap[sitktype] > > # Get ndarray from SimpleITK image > img_array = sitk.GetArrayFromImage(sitk.Cast(image, sitk.sitkFloat32)) > > Dimension = image.GetDimension() > OutputPixelType = itk.F > OutputImageType = itk.Image[OutputPixelType, Dimension] > > #PyBuffer connector > pyBufferConnector = itk.PyBuffer[OutputImageType] > > # Get ITK image from ndarray > itkImage = pyBufferConnector.GetImageFromArray(img_array) > # preserve ITK image information > itkImage.SetSpacing(image.GetSpacing()) > #itkImage.SetOrigin(image.GetOrigin()) > #itkImage.SetDirection(image.GetDirection()) > > itk_vtk_converter = itk.ImageToVTKImageFilter[OutputImageType].New() > itk_vtk_converter.SetInput(itkImage) > itk_vtk_converter.Update() > > ##END CODE > > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/vtk-image-from-itk-tp5732315p5732342.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From nico.schloemer at gmail.com Mon Jun 15 14:52:32 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Mon, 15 Jun 2015 20:52:32 +0200 Subject: [vtkusers] loop over boundary vertices Message-ID: Hi everyone, I'd like to loop over all boundary vertices in a vtkDataSet. I see that feature edges have `BoundaryEdgesOn()`, but this seems a little wasteful since 2D I'd visit every boundary vertex twice, and even more times in 3D. Is there a better way for looping over the boundary nodes? Cheers, Nico From anushaba at buffalo.edu Mon Jun 15 15:25:33 2015 From: anushaba at buffalo.edu (Anusha Balasubramoniam) Date: Mon, 15 Jun 2015 15:25:33 -0400 Subject: [vtkusers] Running a program Message-ID: Dear All, I am new to VTK. I am not able to run any code. I keep getting the error " unable to start program c:\VTK-6.2.0\bin\*64\Debug\ALL_BUILD". I think I have to change the Include Directory path. I am not sure. Kindly let me know. Thank you, Anusha Is it something to do wiuth Anusha Balasubramoniam MS Biomedical Engineering University at Buffalo -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Mon Jun 15 15:28:17 2015 From: matimontg at gmail.com (Matias Montroull) Date: Mon, 15 Jun 2015 19:28:17 +0000 Subject: [vtkusers] Running a program In-Reply-To: References: Message-ID: Are you trying to run the examples? El lun., 15 de jun. de 2015 a la(s) 4:25 p. m., Anusha Balasubramoniam < anushaba at buffalo.edu> escribi?: > Dear All, > > I am new to VTK. I am not able to run any code. I keep getting the error " > unable to start program > > c:\VTK-6.2.0\bin\*64\Debug\ALL_BUILD". I think I have to change the > Include Directory path. I am not sure. > Kindly let me know. > > Thank you, > Anusha > > Is it something to do wiuth > Anusha Balasubramoniam > MS Biomedical Engineering > University at Buffalo > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From pabloarubi at gmail.com Mon Jun 15 15:39:14 2015 From: pabloarubi at gmail.com (Pablo Rubi) Date: Mon, 15 Jun 2015 16:39:14 -0300 Subject: [vtkusers] Can't build RenderingExternal module Message-ID: Hello everyone, I'm trying to integrate VTK into SFML2.0, using this test as a guide. I'm having problems while trying to include ExternalVTKWidget.h. I've found this blog post saying that the classes I need are in a module called vtkRenderingExternal. I've tried with no luck to build it, could you guide me through that process? I'm running CMake, already tried adding a variable Module_vtkRenderingExternal=ON, but that didn't work. I got that idea from this page in the wiki. Thanks for your help! If you need any other detail, let me know. Blito -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnour.ai at hotmail.com Mon Jun 15 16:01:15 2015 From: mnour.ai at hotmail.com (Muhammad Nour) Date: Mon, 15 Jun 2015 20:01:15 +0000 Subject: [vtkusers] Best vtkPolyData comparison approach Message-ID: Hi all, I am using MS visual studio 2008 and vtk 5.10 I want compare two vtkPolyData objects, so I have written below function:bool Matched(vtkPolyData* data1, vtkPolyData* data2, double tolerance) { if (data1 && data2) // Initial check { int pointCount1 = data1->GetNumberOfPoints(); // Get number of data1's point number int pointCount2 = data2->GetNumberOfPoints(); // Get number of data2's point number if (pointCount1 == pointCount2) // Check numbers { vtkPointLocator* locator = vtkPointLocator::New(); // Create new locator for data2 locator->SetDataSet(data2); locator->BuildLocator(); for (int i = 0; i < pointCount1; i++) // Loop each point from data1 and compare with closest point from data2 { int pointID; double point1[3], point2[3]; data1->GetPoint(i, point1); // Get point from data1 pointID = locator->FindClosestPoint(point1); // Get closest point ID from data2 data2->GetPoint(pointID, point2); if (abs(point1[0] - point2[0]) > tolerance || abs(point1[2] - point2[2]) > tolerance) // Check difference for x and z coordinates { locator->Delete(); // Free memory return false; // No need for check other points } } locator->Delete(); // Free memory return true; } } return false; } Please note that I ignore y coordinate. Any better suggestion will be appreciated. Thank you all -------------- next part -------------- An HTML attachment was scrubbed... URL: From mdrahos at thinksurgical.com Mon Jun 15 16:59:14 2015 From: mdrahos at thinksurgical.com (Miroslav Drahos) Date: Mon, 15 Jun 2015 13:59:14 -0700 Subject: [vtkusers] Best vtkPolyData comparison approach In-Reply-To: References: Message-ID: When you are comparing two sets of points, you might benefit from sorting them first. You might want to consider wrapping a 3D point in a custom struct, e.g. Pt3D so that you can define a strict ordering, e.g. compare z-values first, then y-, then x-. Then you would define a == functor (or operator) that would compare two points (here you would use the desired tolerance). With this prep you could use two std containers (e.g. std::vector), one for each set, run std::sort on them using the defined ordering and compare the two containers with std::equal using your custom == comparison. HTH, Miro ________________________________________ From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of Muhammad Nour [mnour.ai at hotmail.com] Sent: Monday, June 15, 2015 1:01 PM To: vtkusers at vtk.org Subject: [vtkusers] Best vtkPolyData comparison approach Hi all, I am using MS visual studio 2008 and vtk 5.10 I want compare two vtkPolyData objects, so I have written below function: bool Matched(vtkPolyData* data1, vtkPolyData* data2, double tolerance) { if (data1 && data2) // Initial check { int pointCount1 = data1->GetNumberOfPoints(); // Get number of data1's point number int pointCount2 = data2->GetNumberOfPoints(); // Get number of data2's point number if (pointCount1 == pointCount2) // Check numbers { vtkPointLocator* locator = vtkPointLocator::New(); // Create new locator for data2 locator->SetDataSet(data2); locator->BuildLocator(); for (int i = 0; i < pointCount1; i++) // Loop each point from data1 and compare with closest point from data2 { int pointID; double point1[3], point2[3]; data1->GetPoint(i, point1); // Get point from data1 pointID = locator->FindClosestPoint(point1); // Get closest point ID from data2 data2->GetPoint(pointID, point2); if (abs(point1[0] - point2[0]) > tolerance || abs(point1[2] - point2[2]) > tolerance) // Check difference for x and z coordinates { locator->Delete(); // Free memory return false; // No need for check other points } } locator->Delete(); // Free memory return true; } } return false; } Please note that I ignore y coordinate. Any better suggestion will be appreciated. Thank you all From sebastien.jourdain at kitware.com Mon Jun 15 17:27:50 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 15 Jun 2015 15:27:50 -0600 Subject: [vtkusers] Fwd: java.lang.UnsatisfiedLinkError In-Reply-To: References: Message-ID: Is all your VTK dll files inside your system PATH environment variable? How did you run your Java code? (Command line) Seb On Wed, Jun 10, 2015 at 2:55 PM, Clinton Stamper < Clinton.Stamper at genetesis.com> wrote: > Dear All, > > I need some help figuring out what is wrong with my application. I am > getting this error: http://pastebin.com/EEAG1BYY > > > It looks like my path includes the dlls, files, etc. and they should be > able to be located. The problem is the computer just can't seem to locate > them. Thanks to whoever can help. > > -- > -Clinton > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bwadd006 at odu.edu Mon Jun 15 20:49:01 2015 From: bwadd006 at odu.edu (Brandon Waddell) Date: Mon, 15 Jun 2015 20:49:01 -0400 Subject: [vtkusers] Visual Studio 2013 & VTK Message-ID: Dear All, I have been trying to compile my vtk code and receive an errors that say "'max' is not a member of 'std'." After some searching I believe the problem is that VS 2013 is incompatible with VTK? If anyone has any info it would be greatly appreciated. Thank you, Brandon -------------- next part -------------- An HTML attachment was scrubbed... URL: From daviddoria at gmail.com Mon Jun 15 21:34:46 2015 From: daviddoria at gmail.com (David Doria) Date: Mon, 15 Jun 2015 21:34:46 -0400 Subject: [vtkusers] Visual Studio 2013 & VTK In-Reply-To: References: Message-ID: On Mon, Jun 15, 2015 at 8:49 PM, Brandon Waddell wrote: > Dear All, > > I have been trying to compile my vtk code and receive an errors that say > "'max' is not a member of 'std'." After some searching I believe the > problem is that VS 2013 is incompatible with VTK? If anyone has any info it > would be greatly appreciated. > > Thank you, > Brandon > Is the error from one of your files or from a VTK file? If it's one of yours, did you #include ? David -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregthom992 at gmail.com Tue Jun 16 00:36:51 2015 From: gregthom992 at gmail.com (gregthom992) Date: Mon, 15 Jun 2015 21:36:51 -0700 (MST) Subject: [vtkusers] vtk image from itk In-Reply-To: References: <1434135946506-5732315.post@n5.nabble.com> <1434389889324-5732342.post@n5.nabble.com> Message-ID: <1434429411705-5732359.post@n5.nabble.com> I found the culprit ! I was passing a list of filenames computed outside of ImageSeriesReader to ImageSeriesReader. I had thought it will sort filenames for me but it doesn't. Now, I use dcm_series_filenames = reader.GetGDCMSeriesFileNames(dcm_dir, seriesUID) and then reader.SetFileNames(dcm_series_filenames) since I had already obtained the seriesUID and list of files Thanks for all you help. Also David thanks for the warning about the image orientation. I am now figuring out how to handle the Orientation of my VTK images. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtk-image-from-itk-tp5732315p5732359.html Sent from the VTK - Users mailing list archive at Nabble.com. From madaramh at gmail.com Tue Jun 16 05:30:08 2015 From: madaramh at gmail.com (madz) Date: Tue, 16 Jun 2015 02:30:08 -0700 (MST) Subject: [vtkusers] Find corresponding cell id Message-ID: <1434447008312-5732363.post@n5.nabble.com> I have two sets of vtkpolydata, polyA and polyB. PolyB is a smaller subset of polyA with different point and cell ids (the x,y,z values of the points are the same but if a point in polyA has an id of 124 then in polyB its 33). I want to get the corresponding cell id of polyA when the cell id of polyB is given. How do I achieve this. Any help would be appreciated. Thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/Find-corresponding-cell-id-tp5732363.html Sent from the VTK - Users mailing list archive at Nabble.com. From surov.m.o at gmail.com Tue Jun 16 06:26:02 2015 From: surov.m.o at gmail.com (Maksim Surov) Date: Tue, 16 Jun 2015 13:26:02 +0300 Subject: [vtkusers] Python VTK, how to record a video? Message-ID: Hello. I am trying to record a video of VTK 3D animation in Python. The example I found is a bit strange for me, because it does not create a render, so it is not clear how to attach actors to canvas. I write a simplified example: import vtk # draw a planeplane_source = vtk.vtkPlaneSource()plane_source.SetCenter(0, 0, 0)plane_source.SetNormal(0, 0, 1)plane_mapper = vtk.vtkPolyDataMapper()plane_mapper.SetInput(plane_source.GetOutput())plane_actor = vtk.vtkActor()plane_actor.SetMapper(plane_mapper) # create renderrender = vtk.vtkRenderer()renWin = vtk.vtkRenderWindow()renWin.AddRenderer(render)renWin.SetSize(800, 600)renInter = vtk.vtkRenderWindowInteractor()renInter.SetRenderWindow(renWin)render.AddActor(plane_actor)renWin.Render()renInter.Initialize() # set callbackdef cb(interactor, event): global plane_actor plane_actor.RotateZ(0.1) interactor.GetRenderWindow().Render() renInter.AddObserver('TimerEvent', cb)timerId = renInter.CreateRepeatingTimer(100); # put something here?writer = vtk.vtkFFMPEGWriter()# ??? writer.SetInputConnection(...)writer.SetFileName("test.avi")writer.Start() # runrenInter.Start() My question is *how to connect vtkRenderer to vtkFFMPEGWriter*? -- *Best regards, * *Maksim Surov* -------------- next part -------------- An HTML attachment was scrubbed... URL: From nico.schloemer at gmail.com Tue Jun 16 07:46:27 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Tue, 16 Jun 2015 13:46:27 +0200 Subject: [vtkusers] get unstructured grid from vtkXdmf3Reader Message-ID: Hi everyone, I have an XDMF file which I'm reading with vtk::vtkXdmf3Reader, ``` vtkXdmf3Reader *xreader = vtkXdmf3Reader::New(); xreader->SetFileName("data/brick-w-hole.xmf"); xreader->Update(); ``` and I would like to get the corresponding vtk::UnstructuredGrid from this. For some reason, however, ``` xreader->GetNumberOfGrids() ``` returns 0. Also, I wouldn't know how to retrieve the grid if there was one. Is there example code for this around? Cheers, Nico From grothausmann.roman at mh-hannover.de Tue Jun 16 08:14:13 2015 From: grothausmann.roman at mh-hannover.de (Grothausmann, Roman Dr.) Date: Tue, 16 Jun 2015 14:14:13 +0200 Subject: [vtkusers] MPI and vtkDiscreteMarchingCubes, vtkWindowedSincPolyDataFilter Message-ID: <55801315.4070901@mh-hannover.de> Dear mailing list members, I've created a small program to combine vtkDiscreteMarchingCubes, vtkWindowedSincPolyDataFilter and a check whether the result is closed and whether it has non-manifold edges: https://github.com/romangrothausmann/VTK-CLIs/blob/master/discrete_marching-cubes.cxx This works find and as expected but is very slow for our current 30GB input datasets. So I tried to parallelize it with MPI. However both tries do not work as expected. One is based on a VTK-workshop example ParallelCompositeTime/Parallel/parallel1_answer.cxx: https://github.com/romangrothausmann/VTK-CLIs/blob/dmc_MPI/discrete_marching-cubes_MPI.cxx which does not crash but apparently does not split the data even though SetUpdateExtent is used (written files all contain the whole data). The other based on VTK's ParallelIso.cxx example: https://github.com/romangrothausmann/VTK-CLIs/blob/dmc_MPI_t02/discrete_marching-cubes_MPI.cxx Seems to do the same but additionally segfauls on some sub-processes. What am I doing wrong? Where can I check whether a VTK-filter can stream, i.e. does vtkWindowedSincPolyDataFilter only need ghost levels or the whole data? Sadly, neither adding UpdateInformation() nor changing the reader (from vtkMetaImageReader (marching-cubes_MPI_01.cxx) to vtkPNrrdReader (marching-cubes_MPI_02.cxx)) solved the problem. I also reduced my exemplary try to just use vtkContourFilter, as in IO/MPIImage/Testing/Cxx/ParallelIso.cxx. Does vtkMetaImageReader not support MPI/piecewise extents? Why is there no call to UpdateInformation() nor SetUpdateExtent() in ParallelIso.cxx (I find it a quite complex example)? Thanks for any help or hints. Roman -- Dr. Roman Grothausmann Tomographie und Digitale Bildverarbeitung Tomography and Digital Image Analysis Institut f?r Funktionelle und Angewandte Anatomie, OE 4120 Medizinische Hochschule Hannover Carl-Neuberg-Str. 1 D-30625 Hannover Tel. +49 511 532-2900 From nico.schloemer at gmail.com Tue Jun 16 09:04:19 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Tue, 16 Jun 2015 15:04:19 +0200 Subject: [vtkusers] get unstructured grid from vtkXdmf3Reader In-Reply-To: References: Message-ID: Apparently, ``` xreader->GetNumberOfGrids() ``` doesn't say much. One can simply ``` vtkDataObject *rOutput = xreader->GetOutputDataObject(0); TEUCHOS_ASSERT(rOutput != nullptr); vtkUnstructuredGrid * m = dynamic_cast(rOutput); TEUCHOS_ASSERT(m != nullptr); ``` which gives you a pointer to the vtkUnstructuredGrid, if there is one. Cheers, Nico On Tue, Jun 16, 2015 at 1:46 PM, Nico Schl?mer wrote: > Hi everyone, > > I have an XDMF file which I'm reading with vtk::vtkXdmf3Reader, > ``` > vtkXdmf3Reader *xreader = vtkXdmf3Reader::New(); > xreader->SetFileName("data/brick-w-hole.xmf"); > xreader->Update(); > ``` > and I would like to get the corresponding vtk::UnstructuredGrid from > this. For some reason, however, > ``` > xreader->GetNumberOfGrids() > ``` > returns 0. Also, I wouldn't know how to retrieve the grid if there was one. > > Is there example code for this around? > > Cheers, > Nico From nico.schloemer at gmail.com Tue Jun 16 09:06:56 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Tue, 16 Jun 2015 15:06:56 +0200 Subject: [vtkusers] read XDMF in parallel Message-ID: >From [1], I find that parallel reading of XDMF files is as simple as ``` vtkMPIController *contr = vtkMPIController::New(); contr->Initialize(); int proc = contr->GetLocalProcessId(); int numprocs = contr->GetNumberOfProcesses(); contr->Barrier(); vtkXdmf3Reader *xreader = vtkXdmf3Reader::New(); xreader->SetFileName("data/pacman.xmf"); contr->Barrier(); xreader->SetUpdateExtent(proc, numprocs, 0); xreader->Update(); ``` How can I check if this really worked? After retrieving the output ``` vtkDataObject *rOutput = xreader->GetOutputDataObject(0); TEUCHOS_ASSERT(rOutput != nullptr); vtkUnstructuredGrid * m = dynamic_cast(rOutput); TEUCHOS_ASSERT(m != nullptr); std::cout << m->GetNumberOfCells() << " " << m->GetNumberOfPoints() << std::endl; ``` it seems that the all procs have all points and cells. Is there a way to only retrieve the locally owned cells/points? Cheers, Nico From l.paul at uclouvain.be Tue Jun 16 09:09:04 2015 From: l.paul at uclouvain.be (Laurent) Date: Tue, 16 Jun 2015 06:09:04 -0700 (MST) Subject: [vtkusers] Trouble comparing polydata with their ID Message-ID: <1434460144132-5732369.post@n5.nabble.com> Dear Users, I'd like to compare two polydata and check if they are the same. I got those polydata by running two times a vtkCOnnectivityFilter that extract region considering a point and the method SetExtractionModeToClosestPoint(). Hence, each of my two points are associated to an extracted region. I thought I could compare the ID of the two regions obtained to check if they are the same. But I can't find a simple way to get this ID. (I can see it through the print() method but can't access to it) Any idea? To get this ID? To check if the polydata are the same? -- View this message in context: http://vtk.1045678.n5.nabble.com/Trouble-comparing-polydata-with-their-ID-tp5732369.html Sent from the VTK - Users mailing list archive at Nabble.com. From ali.hadimogullari at netcad.com.tr Tue Jun 16 10:46:56 2015 From: ali.hadimogullari at netcad.com.tr (alihadim) Date: Tue, 16 Jun 2015 07:46:56 -0700 (MST) Subject: [vtkusers] VTK vtkClipPolyDatawith use tube algorithm Message-ID: <1434466016948-5732371.post@n5.nabble.com> I created vtkpolydata after I added tube algorithm. These are not problem. Then vtkClipPolyData update ise very waitng when I use to vtkClipPolyData with tube algorithm. Do you have any idea? Tanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-vtkClipPolyDatawith-use-tube-algorithm-tp5732371.html Sent from the VTK - Users mailing list archive at Nabble.com. From DLRdave at aol.com Tue Jun 16 10:47:43 2015 From: DLRdave at aol.com (David Cole) Date: Tue, 16 Jun 2015 10:47:43 -0400 Subject: [vtkusers] Running a program In-Reply-To: References: Message-ID: Sounds like you're using Visual Studio, and you don't know about how multiple projects work within Visual Studio. Right click on the project whose executable you want to run in the Solution Explorer window, and choose "Set as StartUp Project" ... and then try again. HTH, David C. On Mon, Jun 15, 2015 at 3:25 PM, Anusha Balasubramoniam wrote: > Dear All, > > I am new to VTK. I am not able to run any code. I keep getting the error " > unable to start program > > c:\VTK-6.2.0\bin\*64\Debug\ALL_BUILD". I think I have to change the Include > Directory path. I am not sure. > Kindly let me know. > > Thank you, > Anusha > > Is it something to do wiuth > Anusha Balasubramoniam > MS Biomedical Engineering > University at Buffalo > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From serge at infolytica.com Tue Jun 16 11:55:01 2015 From: serge at infolytica.com (Serge Lalonde) Date: Tue, 16 Jun 2015 11:55:01 -0400 Subject: [vtkusers] Visual Studio compiler support? Message-ID: <558046D5.6090303@infolytica.com> An HTML attachment was scrubbed... URL: From sean at rogue-research.com Tue Jun 16 12:07:45 2015 From: sean at rogue-research.com (Sean McBride) Date: Tue, 16 Jun 2015 12:07:45 -0400 Subject: [vtkusers] Visual Studio compiler support? In-Reply-To: <558046D5.6090303@infolytica.com> References: <558046D5.6090303@infolytica.com> Message-ID: <20150616160745.2005419417@mail.rogue-research.com> On Tue, 16 Jun 2015 11:55:01 -0400, Serge Lalonde said: >We're looking at upgrading from VS2010 to either VS2013 or VS2015. >Does anyone know if VTK 6.10 is compatible with either of these? Likely both. >I looked and couldn't find a "supported compiler" list for VTK anywhere. >If there is such a page, where is it? Don't think so, but we just recently upped the minimum to MSVC++ 9.0 aka Visual Studio 2008. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From surov.m.o at gmail.com Tue Jun 16 13:21:46 2015 From: surov.m.o at gmail.com (Maksim Surov) Date: Tue, 16 Jun 2015 20:21:46 +0300 Subject: [vtkusers] latex support Message-ID: Hi, everyone. Does anybody know how to enable latex text rendering? I write something like: axes = vtk.vtkAxesActor() axes.SetXAxisLabelText('$\\varphi$') doesn't work :( -- *Best regards, * *Maksim Surov* -------------- next part -------------- An HTML attachment was scrubbed... URL: From sankhesh.jhaveri at kitware.com Tue Jun 16 14:27:06 2015 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Tue, 16 Jun 2015 14:27:06 -0400 Subject: [vtkusers] Can't build RenderingExternal module In-Reply-To: References: Message-ID: Hello Pablo, The broken links used to point to my VTK fork that had the vtkRenderingExternal module under development. However, my branches have now been merged in VTK master. You should update your VTK source tree to latest master to get the latest changes. Make sure you check the flag for Module_vtkRenderingExternal in CMake before compiling VTK. It is an advanced option. I have updated the broken links on the Github page. Warm Regards, Sankhesh Jhaveri Research & Development Engineer Kitware, Inc. *Phone*: (518) 881 4417 *Fax*: (518) 371 4573 On Mon, Jun 15, 2015 at 3:39 PM, Pablo Rubi wrote: > Hello everyone, > > I'm trying to integrate VTK into SFML2.0, using this test > > as a guide. > > I'm having problems while trying to include ExternalVTKWidget.h. I've > found this blog post saying that > the classes I need are in a module called vtkRenderingExternal. I've tried > with no luck to build it, could you guide me through that process? > > I'm running CMake, already tried adding a variable > Module_vtkRenderingExternal=ON, but that didn't work. I got that idea from this > page > > in the wiki. > > Thanks for your help! > > If you need any other detail, let me know. > > Blito > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pabloarubi at gmail.com Tue Jun 16 15:30:35 2015 From: pabloarubi at gmail.com (Pablo Rubi) Date: Tue, 16 Jun 2015 16:30:35 -0300 Subject: [vtkusers] Can't build RenderingExternal module In-Reply-To: References: Message-ID: Thanks! I was trying to add Module_vtkRenderingExternal but it was already there. I had missed the [ ] Advanced option in the GUI. Running: cmake -DBUILD_TESTING:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_EXAMPLES:BOOL=OFF -DModule_vtkRenderingExternal:BOOL=ON also did the trick. 2015-06-16 15:27 GMT-03:00 Sankhesh Jhaveri : > Hello Pablo, > > The broken links used to point to my VTK fork that had the > vtkRenderingExternal module under development. However, my branches have > now been merged in VTK master. > > You should update your VTK source tree to latest master to get the latest > changes. Make sure you check the flag for Module_vtkRenderingExternal in > CMake before compiling VTK. It is an advanced option. > > I have updated the broken links on the Github page. > > > > Warm Regards, > > Sankhesh Jhaveri > Research & Development Engineer > Kitware, Inc. > *Phone*: (518) 881 4417 > *Fax*: (518) 371 4573 > > > > On Mon, Jun 15, 2015 at 3:39 PM, Pablo Rubi wrote: > >> Hello everyone, >> >> I'm trying to integrate VTK into SFML2.0, using this test >> >> as a guide. >> >> I'm having problems while trying to include ExternalVTKWidget.h. I've >> found this blog post saying that >> the classes I need are in a module called vtkRenderingExternal. I've tried >> with no luck to build it, could you guide me through that process? >> >> I'm running CMake, already tried adding a variable >> Module_vtkRenderingExternal=ON, but that didn't work. I got that idea from this >> page >> >> in the wiki. >> >> Thanks for your help! >> >> If you need any other detail, let me know. >> >> Blito >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mdrahos at thinksurgical.com Tue Jun 16 15:38:04 2015 From: mdrahos at thinksurgical.com (Miroslav Drahos) Date: Tue, 16 Jun 2015 12:38:04 -0700 Subject: [vtkusers] latex support In-Reply-To: References: Message-ID: I think what you need is vtkMatplotlibMathTextUtilities: http://www.vtk.org/doc/nightly/html/classvtkMatplotlibMathTextUtilities.html Cheers, Miro ________________________________________ From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of Maksim Surov [surov.m.o at gmail.com] Sent: Tuesday, June 16, 2015 10:21 AM To: vtkusers at vtk.org Subject: [vtkusers] latex support Hi, everyone. Does anybody know how to enable latex text rendering? I write something like: axes = vtk.vtkAxesActor() axes.SetXAxisLabelText('$\\varphi$') doesn't work :( -- Best regards, Maksim Surov From mdrahos at thinksurgical.com Tue Jun 16 15:36:15 2015 From: mdrahos at thinksurgical.com (Miroslav Drahos) Date: Tue, 16 Jun 2015 12:36:15 -0700 Subject: [vtkusers] Python VTK, how to record a video? In-Reply-To: References: Message-ID: vtkFFMPEGWriter is derived from vtkImageAlgorithm, so it's input is an image. So you should be able to use vtkWindowToImageFilter to pass your renderwindow output as an image into vtkFFMPEGWriter. Note the warning in the 'detail' section of vtkWindowToImageFilter: To force an update of the output image, call vtkWindowToImageFilter's Modified method after rendering to the window. HTH, Miro ________________________________________ From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of Maksim Surov [surov.m.o at gmail.com] Sent: Tuesday, June 16, 2015 3:26 AM To: vtkusers at vtk.org Subject: [vtkusers] Python VTK, how to record a video? Hello. I am trying to record a video of VTK 3D animation in Python. The example I found is a bit strange for me, because it does not create a render, so it is not clear how to attach actors to canvas. I write a simplified example: import vtk # draw a plane plane_source = vtk.vtkPlaneSource() plane_source.SetCenter(0, 0, 0) plane_source.SetNormal(0, 0, 1) plane_mapper = vtk.vtkPolyDataMapper() plane_mapper.SetInput(plane_source.GetOutput()) plane_actor = vtk.vtkActor() plane_actor.SetMapper(plane_mapper) # create render render = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(render) renWin.SetSize(800, 600) renInter = vtk.vtkRenderWindowInteractor() renInter.SetRenderWindow(renWin) render.AddActor(plane_actor) renWin.Render() renInter.Initialize() # set callback def cb(interactor, event): global plane_actor plane_actor.RotateZ(0.1) interactor.GetRenderWindow().Render() renInter.AddObserver('TimerEvent', cb) timerId = renInter.CreateRepeatingTimer(100); # put something here? writer = vtk.vtkFFMPEGWriter() # ??? writer.SetInputConnection(...) writer.SetFileName("test.avi") writer.Start() # run renInter.Start() My question is how to connect vtkRenderer to vtkFFMPEGWriter? -- Best regards, Maksim Surov From gregthom992 at gmail.com Tue Jun 16 16:45:59 2015 From: gregthom992 at gmail.com (gregthom992) Date: Tue, 16 Jun 2015 13:45:59 -0700 (MST) Subject: [vtkusers] Ruler / Viewport In-Reply-To: <5040A7BC.9070500@joher.com> References: <5040A7BC.9070500@joher.com> Message-ID: <1434487559215-5732393.post@n5.nabble.com> Hello, How did you solve this issue ? Please let me know GT -- View this message in context: http://vtk.1045678.n5.nabble.com/Ruler-Viewport-tp5715723p5732393.html Sent from the VTK - Users mailing list archive at Nabble.com. From prakeshofficial at gmail.com Wed Jun 17 02:33:58 2015 From: prakeshofficial at gmail.com (rakesh patil) Date: Wed, 17 Jun 2015 12:03:58 +0530 Subject: [vtkusers] Support of Positive & Negative Indefinite NAN in VTK? Message-ID: Hello, I would like to know whether VTK supports +/- Indefinite NAN? Kindly note that NaN is different from Indefinite Nan as explained here . I have seen IsNan() in vtkMath class. Does it cover Indefinite NaN also? Thanks Regards Rakesh Patil -------------- next part -------------- An HTML attachment was scrubbed... URL: From nico.schloemer at gmail.com Wed Jun 17 05:24:11 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Wed, 17 Jun 2015 09:24:11 +0000 Subject: [vtkusers] turn off netCDF support Message-ID: I have a software project that depends both on VTK (which in turn depends on netCDF-C++ < 4.2) and on Trilinos (which in turn depends on netCDF >= 4.3.3) -- version conflict! I don't specifically need the netCDF functionality in VTK, so I'd like to turn it off at configure time. Is it possible to do that? How so? Cheers, Nico -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Wed Jun 17 06:58:40 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Wed, 17 Jun 2015 03:58:40 -0700 (MST) Subject: [vtkusers] Rotation of PolyData In-Reply-To: <1434373232248-5732340.post@n5.nabble.com> References: <1434373232248-5732340.post@n5.nabble.com> Message-ID: <1434538720806-5732400.post@n5.nabble.com> Turns out I am now using the Actor directly to set rotation translation and scale. It does work fine except that I need to click on the window for the changes to appear. Would anyone know the reason why? Don't know if this is useful but here is my code now: void Drawing::translate(float x, float y, float z){ cout << "Translate: " << x << " - " << " - " << y << " - " << z << endl ; vtkSmartPointer transform1a = vtkSmartPointer::New(); //transform1a->Translate(x,y,z); //transformFilter->SetTransform(transform1a); //transformFilter->Update(); double* position = mainActor->GetPosition(); mainActor->SetPosition(position[0]+x,position[1]+y,position[2]+z); } void Drawing::read(){ std::string filename = BUNNY; // Read all the data from the file vtkSmartPointer reader =vtkSmartPointer::New(); reader->SetFileName(filename.c_str()); reader->Update(); inputPolyData = reader->GetOutput(); cout << "File Found and Loaded : " << filename << endl ; vtkSmartPointer translation = vtkSmartPointer::New(); translation->Translate(0.3, -0.05, 0); transformFilter = vtkSmartPointer::New(); //transformFilter->SetInputConnection(reader->GetOutputPort()); transformFilter->SetInputData(inputPolyData); transformFilter->SetTransform(translation); //transformFilter->Update(); vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputConnection(transformFilter->GetOutputPort()); mainActor = vtkSmartPointer::New(); mainActor->SetMapper(mapper); ren->AddActor(mainActor); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(win); vtkInteractorStyleMultiTouchCamera *style = vtkInteractorStyleMultiTouchCamera::New(); iren->SetInteractorStyle(style); //Start the event loop iren->Initialize(); iren->Start(); defineClipping(); win->PolygonSmoothingOn(); win->Render(); win->Start(); } -- View this message in context: http://vtk.1045678.n5.nabble.com/Rotation-of-PolyData-tp5732340p5732400.html Sent from the VTK - Users mailing list archive at Nabble.com. From pabloarubi at gmail.com Wed Jun 17 09:17:08 2015 From: pabloarubi at gmail.com (Pablo Rubi) Date: Wed, 17 Jun 2015 10:17:08 -0300 Subject: [vtkusers] Rotation of PolyData In-Reply-To: <1434538720806-5732400.post@n5.nabble.com> References: <1434373232248-5732340.post@n5.nabble.com> <1434538720806-5732400.post@n5.nabble.com> Message-ID: The only way I've found to do that is calling win->Render() again after the changes are done. Optimally, you want this to be called once per frame, after all changes have been done. You could set a bool flag like needsUpdating and set it to true if you call Drawing::translate() I'm not an expert at VTK though, and I also expected at first that the pipeline would know when it needed to be re-rendered. Maybe it has that functionality and I haven't been able to trigger it. If you find out, let us know. 2015-06-17 7:58 GMT-03:00 Lonni Besan?on : > Turns out I am now using the Actor directly to set rotation translation and > scale. It does work fine except that I need to click on the window for the > changes to appear. Would anyone know the reason why? > Don't know if this is useful but here is my code now: > > void Drawing::translate(float x, float y, float z){ > cout << "Translate: " << x << " - " << " - " << y << " - " << z << > endl ; > vtkSmartPointer transform1a = > vtkSmartPointer::New(); > //transform1a->Translate(x,y,z); > //transformFilter->SetTransform(transform1a); > //transformFilter->Update(); > double* position = mainActor->GetPosition(); > mainActor->SetPosition(position[0]+x,position[1]+y,position[2]+z); > } > > void Drawing::read(){ > > std::string filename = BUNNY; > // Read all the data from the file > vtkSmartPointer reader > =vtkSmartPointer::New(); > reader->SetFileName(filename.c_str()); > reader->Update(); > inputPolyData = reader->GetOutput(); > > cout << "File Found and Loaded : " << filename << endl ; > > vtkSmartPointer translation = > vtkSmartPointer::New(); > translation->Translate(0.3, -0.05, 0); > transformFilter = > vtkSmartPointer::New(); > //transformFilter->SetInputConnection(reader->GetOutputPort()); > transformFilter->SetInputData(inputPolyData); > transformFilter->SetTransform(translation); > //transformFilter->Update(); > > vtkSmartPointer mapper = > vtkSmartPointer::New(); > mapper->SetInputConnection(transformFilter->GetOutputPort()); > > mainActor = vtkSmartPointer::New(); > mainActor->SetMapper(mapper); > > ren->AddActor(mainActor); > > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(win); > vtkInteractorStyleMultiTouchCamera *style = > vtkInteractorStyleMultiTouchCamera::New(); > iren->SetInteractorStyle(style); > > //Start the event loop > iren->Initialize(); > iren->Start(); > > defineClipping(); > win->PolygonSmoothingOn(); > win->Render(); > win->Start(); > } > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Rotation-of-PolyData-tp5732340p5732400.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Wed Jun 17 09:22:26 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Wed, 17 Jun 2015 06:22:26 -0700 (MST) Subject: [vtkusers] Rotation of PolyData In-Reply-To: References: <1434373232248-5732340.post@n5.nabble.com> <1434538720806-5732400.post@n5.nabble.com> Message-ID: <1434547346747-5732405.post@n5.nabble.com> Thanks for your answer. I have actually already tried that, the problem is that when i'm trying to call win->Render() I get an ugly error stating that the ressource is already busy and a whole lot of invalid operations. Something more or less like this: Sans_titre.png -- View this message in context: http://vtk.1045678.n5.nabble.com/Rotation-of-PolyData-tp5732340p5732405.html Sent from the VTK - Users mailing list archive at Nabble.com. From pabloarubi at gmail.com Wed Jun 17 09:30:38 2015 From: pabloarubi at gmail.com (Pablo Rubi) Date: Wed, 17 Jun 2015 10:30:38 -0300 Subject: [vtkusers] Rotation of PolyData In-Reply-To: <1434547346747-5732405.post@n5.nabble.com> References: <1434373232248-5732340.post@n5.nabble.com> <1434538720806-5732400.post@n5.nabble.com> <1434547346747-5732405.post@n5.nabble.com> Message-ID: The main differences between your code and mine are that I'm not using a WindowInteractor, and I'm not calling win->Start(), only Render(). I remember having problems while trying to add an Interactor, and decided to do something else instead. 2015-06-17 10:22 GMT-03:00 Lonni Besan?on : > Thanks for your answer. > > I have actually already tried that, the problem is that when i'm trying to > call win->Render() I get an ugly error stating that the ressource is > already > busy and a whole lot of invalid operations. > Something more or less like this: > Sans_titre.png > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Rotation-of-PolyData-tp5732340p5732405.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Wed Jun 17 09:34:40 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Wed, 17 Jun 2015 06:34:40 -0700 (MST) Subject: [vtkusers] Rotation of PolyData In-Reply-To: References: <1434373232248-5732340.post@n5.nabble.com> <1434538720806-5732400.post@n5.nabble.com> <1434547346747-5732405.post@n5.nabble.com> Message-ID: <1434548080937-5732407.post@n5.nabble.com> I tried as you suggested but I still get the ugly errors. There is no way to call win->Render() without getting these errors. Are you sure it's the only difference between our code? -- View this message in context: http://vtk.1045678.n5.nabble.com/Rotation-of-PolyData-tp5732340p5732407.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Wed Jun 17 09:45:36 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Wed, 17 Jun 2015 06:45:36 -0700 (MST) Subject: [vtkusers] Rotation of PolyData In-Reply-To: <1434548080937-5732407.post@n5.nabble.com> References: <1434373232248-5732340.post@n5.nabble.com> <1434538720806-5732400.post@n5.nabble.com> <1434547346747-5732405.post@n5.nabble.com> <1434548080937-5732407.post@n5.nabble.com> Message-ID: <1434548736832-5732408.post@n5.nabble.com> I have also tried calling Render() simply on the renderer affected by the transformation but I still get these errors as an output. I'm quite lost as for the reason why I would get that in the first place. What is the point of the Render() function if I can't call it directly? -- View this message in context: http://vtk.1045678.n5.nabble.com/Rotation-of-PolyData-tp5732340p5732408.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Wed Jun 17 10:16:55 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Wed, 17 Jun 2015 07:16:55 -0700 (MST) Subject: [vtkusers] Mailing list or forum or SO? Message-ID: <1434550615008-5732413.post@n5.nabble.com> Hello all, I'm quite new to the VTK community and VTK in general. I have many questions and some of them have been answered here of course :). I saw an old thread on here however asking why the community doesn't switch to a forum form. I'm not a big fan of forums either but I think that we could use StackOverflow for that purpose. There is already a vtk tag even though less than 900 questions have been asked on there. I reckon it would be a good idea. All of us are coders and we all use stack overflow regularly. It is easier to post code there and the comment/answer system is great. Just wanted to know your opinion about it. -- View this message in context: http://vtk.1045678.n5.nabble.com/Mailing-list-or-forum-or-SO-tp5732413.html Sent from the VTK - Users mailing list archive at Nabble.com. From berk.geveci at kitware.com Wed Jun 17 10:57:26 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Wed, 17 Jun 2015 10:57:26 -0400 Subject: [vtkusers] [vtk-developers] Removing support for VS 8 and GCC < 4.1 In-Reply-To: References: Message-ID: For now, this shouldn't be a problem. However, if we aggressively pursue C++11 support, it will be a problem. See the chart in here: https://msdn.microsoft.com/en-us/library/hh567368.aspx I read that as we would have to require VS 2013 for this. My preferred timeline for this would be to require partial C++ 11 support in the compilers we support by early 2017. I also hope that we would have first class support for Python 3 way before then. Those that still want python 2.7 support in 2017 would have to depend on VTK 6 or 7 (assuming we have VTK 8). Does this make sense? Best, -berk On Wed, Jun 17, 2015 at 9:10 AM, Jean-Christophe Fillion-Robin < jchris.fillionr at kitware.com> wrote: > > On Wed, Jun 10, 2015 at 12:10 PM, Casey Goodlett < > casey.goodlett at kitware.com> wrote: > >> AFAIK official python binaries are still built with VS 2008 which is not >> that different (one iteration) > > > As Casey mentioned, since python 2.7.x official compiler is still VS 2008 > (VS9) and this version of python is still maintained, let's make sure to > keep its support. > > Thanks > Jc > > > -- > +1 919 869 8849 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Wed Jun 17 12:00:07 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Wed, 17 Jun 2015 12:00:07 -0400 Subject: [vtkusers] read XDMF in parallel In-Reply-To: References: Message-ID: Hi Nico, What happens if you call xreader->UpdateInformation(); before you call SetUpdateExtent() ? Best, -berk On Tue, Jun 16, 2015 at 9:06 AM, Nico Schl?mer wrote: > From [1], I find that parallel reading of XDMF files is as simple as > ``` > vtkMPIController *contr = vtkMPIController::New(); > contr->Initialize(); > int proc = contr->GetLocalProcessId(); > int numprocs = contr->GetNumberOfProcesses(); > contr->Barrier(); > vtkXdmf3Reader *xreader = vtkXdmf3Reader::New(); > xreader->SetFileName("data/pacman.xmf"); > contr->Barrier(); > xreader->SetUpdateExtent(proc, numprocs, 0); > xreader->Update(); > ``` > How can I check if this really worked? > After retrieving the output > ``` > vtkDataObject *rOutput = xreader->GetOutputDataObject(0); > TEUCHOS_ASSERT(rOutput != nullptr); > vtkUnstructuredGrid * m = dynamic_cast(rOutput); > TEUCHOS_ASSERT(m != nullptr); > > std::cout << m->GetNumberOfCells() << " " << m->GetNumberOfPoints() > << std::endl; > ``` > it seems that the all procs have all points and cells. > > Is there a way to only retrieve the locally owned cells/points? > > Cheers, > Nico > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Wed Jun 17 12:45:17 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Wed, 17 Jun 2015 09:45:17 -0700 (MST) Subject: [vtkusers] Unresolved external symbol QVTKWidget Message-ID: <1434559517045-5732422.post@n5.nabble.com> I'm trying to link VTK and Qt for my application. I have a very simple code just using a QWidget and when compiling I'm getting the " 1>Drawing.obj : error LNK2019: symbole externe non r?solu "__declspec(dllimport) public: __thiscall QVTKWidget::QVTKWidget(class QWidget *,class QFlags)" (__imp_??0QVTKWidget@@QAE at PAVQWidget@@V?$QFlags at W4WindowType@Qt@@@@@Z) r?f?renc? dans la fonction "public: __thiscall Drawing::Drawing(void)" (??0Drawing@@QAE at XZ) 1>Drawing.obj : error LNK2019: symbole externe non r?solu "__declspec(dllimport) public: virtual __thiscall QVTKWidget::~QVTKWidget(void)" (__imp_??1QVTKWidget@@UAE at XZ) r?f?renc? dans la fonction "public: __thiscall Drawing::~Drawing(void)" (??1Drawing@@QAE at XZ) " error. Would anyone happen to know wher ethis comes from. What I've done so far: Build VTK with Qt5 support. Create a project that works just fine without Qt and doesn't work when trying to add the qwidget. Copied QVTKWidgetPlugin.dll from C:\bin\VTK\bin\Debug to C:\Qt\5.4\plugins\designer (following the procedure here : http://www.vtk.org/Wiki/VTK/Tutorials/QtSetup ) but I could find the .lib. Maybe that's the reason why I get this error; is it? Have a nice day and thanks in advance. -- View this message in context: http://vtk.1045678.n5.nabble.com/Unresolved-external-symbol-QVTKWidget-tp5732422.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Wed Jun 17 12:52:35 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Wed, 17 Jun 2015 09:52:35 -0700 (MST) Subject: [vtkusers] Rotation of PolyData In-Reply-To: <1434548736832-5732408.post@n5.nabble.com> References: <1434373232248-5732340.post@n5.nabble.com> <1434538720806-5732400.post@n5.nabble.com> <1434547346747-5732405.post@n5.nabble.com> <1434548080937-5732407.post@n5.nabble.com> <1434548736832-5732408.post@n5.nabble.com> Message-ID: <1434559955454-5732423.post@n5.nabble.com> Does someone here have some suggestion for that error? The fact that nothing updates if I don't click on the window and that I cannot call the render() function without making the program crash ? -- View this message in context: http://vtk.1045678.n5.nabble.com/Rotation-of-PolyData-tp5732340p5732423.html Sent from the VTK - Users mailing list archive at Nabble.com. From dan.lipsa at kitware.com Wed Jun 17 15:09:00 2015 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Wed, 17 Jun 2015 19:09:00 +0000 Subject: [vtkusers] turn off netCDF support In-Reply-To: References: Message-ID: If you use the version of netcdf that comes with VTK that should be 'wrapped' (which means that the api names are prepended with vtk_) so you should not have any conflict. Make sure you have VTK_USE_SYSTEM_NETCDF off. On Wed, Jun 17, 2015 at 5:24 AM Nico Schl?mer wrote: > I have a software project that depends both on VTK (which in turn depends > on netCDF-C++ < 4.2) and on Trilinos (which in turn depends on netCDF >= > 4.3.3) -- version conflict! > I don't specifically need the netCDF functionality in VTK, so I'd like to > turn it off at configure time. Is it possible to do that? How so? > > Cheers, > Nico > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From liyihai2009 at qq.com Wed Jun 17 22:55:57 2015 From: liyihai2009 at qq.com (=?gb18030?B?ste6o9K7y9o=?=) Date: Thu, 18 Jun 2015 10:55:57 +0800 Subject: [vtkusers] How to set the center of vtkImagePlaneWidget ? Message-ID: In the VTK-6.2.0, I just found method GetCenter() of vtkImagePlaneWidget, but no SetCenter(). How should I set the center of vtkImagePlaneWidget ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From weihuayi at xtu.edu.cn Thu Jun 18 09:04:45 2015 From: weihuayi at xtu.edu.cn (Huayi Wei) Date: Thu, 18 Jun 2015 21:04:45 +0800 Subject: [vtkusers] How to get all the edges of a tet mesh? Message-ID: <5582C1ED.4060808@xtu.edu.cn> wHi, There, I read a tet mesh by vtkUnstructuredGridReader, like following: ```python imort vtk reader = vtk.vtkUnstructuredGridReader() reader.SetFileName("tet.vtk") reader.Update() tets = reader.GetOutput() ``` I want to get all the edges of this tet mesh. And given an edge, I also need to get all the cells which shared with this edge. vtkUnstructuredGridGeometryFilter maybe can do such things. But I didn't find any example which show such things. So I need your help, thanks very much. Best Huayi From coyarzunlaura at googlemail.com Thu Jun 18 10:02:17 2015 From: coyarzunlaura at googlemail.com (Cristina Oyarzun) Date: Thu, 18 Jun 2015 16:02:17 +0200 Subject: [vtkusers] MICCAI CLIP 2015: Deadline Extented!! Message-ID: CALL FOR PAPERS MICCAI 2015 Workshop on Clinical Image-based Procedures: Translational Research in Medical Imaging October 5, 2015 Munich, Germany Website:http://miccai-clip.org/ ============================== ========================================== SCOPE The outstanding proliferation of medical image applications has created a need for greater study and scrutiny of the clinical application and validation of such methods. New strategies are essential to ensure a smooth and effective translation of computational image-based techniques into the clinic. For these reasons CLIP 2015?s major focus is on *translational research *filling the gaps between basic science and clinical applications. A highlight of the workshop is the subject of *strategies for personalized medicine *to enhance diagnosis, treatment and interventions. Authors are encouraged to submit work centered on specific clinical applications, including techniques and procedures based on comprehensive clinical image data. Submissions related to applications already in use and evaluated by clinical users are particularly encouraged. The event will bring together world-class specialists to present ways to strengthen links between computer scientists and engineers, and clinicians. TOPICS *Strategies for patient-specific and anatomical modeling to support planning and interventions *Clinical studies employing advanced image-guided methods *Clinical translation and validation of image-guided systems *Current challenges and emerging techniques in image-based procedures *Identification of parameters and error analysis in image-based procedures *Multimodal image integration for modeling, planning and guidance *Clinical applications in open and minimally invasive procedures PAPER SUBMISSION Papers will be limited to eight pages following the MICCAI submission guidelines. Prospective authors should refer to the Paper Submission section on the workshop website for details on how to submit papers to be presented at the workshop. All submissions will be peer-reviewed by at least 2 members of the program committee. The selection of the papers will be based on the significance of results, novelty, technical merit, relevance and clarity of presentation. Papers will be presented in a day long single track workshop starting with plenary sessions. Accepted papers will be published as a post-proceedings volume in the Springer Lecture Notes in Computer Science (LNCS) series after the workshop. WORKSHOP FORMAT Accepted papers will be presented in a day long single track workshop. The final program will consist of invited speakers and original papers with time allocated for discussions. Electronic proceedings will be arranged for all of the papers presented at the workshop. IMPORTANT DATES * June 29, 2015: Paper submission due date * July 17, 2015: Notification of acceptance CONTACT Inquires about the workshop should be sent to the Information Desk (info@ miccai-clip.org). ORGANIZERS (in alphabetical order) Klaus Drechsler (Fraunhofer IGD, Germany) Marius Erdt (Fraunhofer IDM at NTU, Singapore) Miguel Gonz?lez Ballester (ICREA - Universitat Pompeu Fabra, Spain) Marius George Linguraru (Children's National Medical Center, USA) Cristina Oyarzun Laura (Fraunhofer IGD, Germany) Yoshinobu Sato (Nara Institute of Science and Technology, Japan) Raj Shekhar (Children's National Medical Center, USA) Stefan Wesarg (Fraunhofer IGD, Germany) ======================================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From giumas at yahoo.it Thu Jun 18 11:37:45 2015 From: giumas at yahoo.it (gmas) Date: Thu, 18 Jun 2015 08:37:45 -0700 (MST) Subject: [vtkusers] VTK Python3 support In-Reply-To: References: Message-ID: <1434641865006-5732433.post@n5.nabble.com> Hi David, Could you please give us some updates about the Python 3 efforts? IMPO the lack of support for Python 3 is becoming more and more a pity, and a block to adoption from new projects of such a wonderful framework. Thanks -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Python3-support-tp5730678p5732433.html Sent from the VTK - Users mailing list archive at Nabble.com. From anushaba at buffalo.edu Thu Jun 18 11:59:20 2015 From: anushaba at buffalo.edu (Anusha Balasubramoniam) Date: Thu, 18 Jun 2015 11:59:20 -0400 Subject: [vtkusers] Run a new project Message-ID: Hi All, I do not know how to run a completely new project with vtk code. I make a new Empty Project and add a C++ file to it. Write the code. But when I run it, it shows an error. I'm completely new to this. Kindly help. Thank you, Anusha -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Jun 18 12:04:13 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 18 Jun 2015 10:04:13 -0600 Subject: [vtkusers] VTK Python3 support In-Reply-To: <1434641865006-5732433.post@n5.nabble.com> References: <1434641865006-5732433.post@n5.nabble.com> Message-ID: On Thu, Jun 18, 2015 at 9:37 AM, gmas wrote: > Hi David, > > Could you please give us some updates about the Python 3 efforts? > I've started working on it. Right now I'm reworking PyVTKObject, because the current implementation relies on an old paradigm that simply won't work with the Python 3 C API. This first phase will take me until mid-July. The wrappers probably won't be fully python 3 compatible until the fall. > IMPO the lack of support for Python 3 is becoming more and more a pity, and > a block to adoption from new projects of such a wonderful framework. > The term you're looking for is PITA ;) - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From f_magician at mac.com Thu Jun 18 12:14:30 2015 From: f_magician at mac.com (Magician) Date: Fri, 19 Jun 2015 01:14:30 +0900 Subject: [vtkusers] vtkHierarchicalBoxDataSet In-Reply-To: References: <9D0A616B-A8E4-448F-9BA9-B1B200020BC5@mac.com> Message-ID: <31484EF0-679A-4F28-8115-05A3EDBAF728@mac.com> Hi Berk, I'm struggling for days to get the results, but it doesn't work yet. Maybe I should generate child cells without SetAMRBox() method, but I haven't find the alternatives. And I?m also facing another problem. ComputeCellCenter() will call vtkCell.EvaluateLocation() method, but the error is dumped: > TypeError: EvaluateLocation argument 4: expected a sequence of 0 values, got float Which value should I set at the 4th or other argument? The attached file is my Python code. Magician > On Jun 16, 2015, at 03:22, Berk Geveci wrote: > > Dear Magician, > > Unfortunately, vtkAMRBox is not wrapped into Python. The right solution is to add a method to vtkOverlappingAMR that takes 6 int values and internally generates an AMR box. Maybe you can give that a shot. > > AMRCommon.h is a utility header written for that example. To duplicate it in Python, you have to rewrite it I am afraid. > > Best, > -berk > > On Fri, Jun 12, 2015 at 12:18 PM, Magician > wrote: > Hi Berk, > > > Thanks for your advice. I missed the examples. > I'm now tracing Generate3DAMRDataSetWithPulse.cxx with Python. > > And now I have other questions. > > - The example includes vtkAMRBox class, but I can't find it > in vtk or any other submodule on Python. > How can I use it? > > - Some methods are provided by AMRCommon.h. > Can I use these methods with Python? > > > Magician > > >> On Jun 12, 2015, at 04:41, Berk Geveci > wrote: >> >> Hi Magician, >> >> Did you look at the examples in Examples/AMR/Cxx? >> >> Best, >> -berk >> >> On Wed, Jun 10, 2015 at 8:49 AM, Magician > wrote: >> Hi all, >> >> >> I'd like to define vtkHierarchicalBoxDataSet objects on VTK 6.2.0. >> But there are few informations to do it. >> >> Can I get any complete sample codes written in Python or C++? >> >> >> Magician >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ExamplesAMRCxxGenerate3D.py Type: text/x-python-script Size: 4886 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From nkovac2 at uwo.ca Thu Jun 18 12:45:14 2015 From: nkovac2 at uwo.ca (Nicole Kovacs) Date: Thu, 18 Jun 2015 16:45:14 +0000 Subject: [vtkusers] Run a new project In-Reply-To: References: Message-ID: Hi Anusha, Could you tell us more details? Perhaps showing your code and the error you're getting would be a good start. Also, are you using CMake before running the code? Regards, Nicole ________________________________ From: vtkusers on behalf of Anusha Balasubramoniam Sent: Thursday, June 18, 2015 11:59 AM To: vtkusers at vtk.org Subject: [vtkusers] Run a new project Hi All, I do not know how to run a completely new project with vtk code. I make a new Empty Project and add a C++ file to it. Write the code. But when I run it, it shows an error. I'm completely new to this. Kindly help. Thank you, Anusha -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregthom992 at gmail.com Thu Jun 18 13:49:37 2015 From: gregthom992 at gmail.com (gregthom992) Date: Thu, 18 Jun 2015 10:49:37 -0700 (MST) Subject: [vtkusers] Dicom Window/Level In-Reply-To: <20101014193153.GA25342@griensu.com> References: <20101014193153.GA25342@griensu.com> Message-ID: <1434649777709-5732438.post@n5.nabble.com> Did you or anyone ever figure out why this is ? I am trying to understand why too. Thanks -- View this message in context: http://vtk.1045678.n5.nabble.com/Dicom-Window-Level-tp3212699p5732438.html Sent from the VTK - Users mailing list archive at Nabble.com. From bill.lorensen at gmail.com Thu Jun 18 14:13:40 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Thu, 18 Jun 2015 14:13:40 -0400 Subject: [vtkusers] Dicom Window/Level In-Reply-To: <1434649777709-5732438.post@n5.nabble.com> References: <20101014193153.GA25342@griensu.com> <1434649777709-5732438.post@n5.nabble.com> Message-ID: dicom data is usually short, not unsigned short... try changing m_imageDataVTK->SetScalarTypeToUnsignedShort(); to m_imageDataVTK->SetScalarTypeToShort(); On Thu, Jun 18, 2015 at 1:49 PM, gregthom992 wrote: > Did you or anyone ever figure out why this is ? > > I am trying to understand why too. > > Thanks > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/Dicom-Window-Level-tp3212699p5732438.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- Unpaid intern in BillsBasement at noware dot com From anushaba at buffalo.edu Thu Jun 18 14:19:00 2015 From: anushaba at buffalo.edu (Anusha Balasubramoniam) Date: Thu, 18 Jun 2015 14:19:00 -0400 Subject: [vtkusers] Fwd: Run a new project In-Reply-To: References: Message-ID: Hi, I am attaching a screenshot of my program. Also, I have installed VTK on my computer. Do I need to run CMake again when I start a new project? I am completely new to this. So still trying to figure out how to run the programs. Thank you, Anusha Anusha Balasubramoniam MS Biomedical Engineering University at Buffalo On Thu, Jun 18, 2015 at 12:45 PM, Nicole Kovacs wrote: > Hi Anusha, > > > Could you tell us more details? Perhaps showing your code and the error > you're getting would be a good start. > > > Also, are you using CMake before running the code? > > > Regards, > Nicole > > > ------------------------------ > *From:* vtkusers on behalf of Anusha > Balasubramoniam > *Sent:* Thursday, June 18, 2015 11:59 AM > *To:* vtkusers at vtk.org > *Subject:* [vtkusers] Run a new project > > Hi All, > > I do not know how to run a completely new project with vtk code. > I make a new Empty Project and add a C++ file to it. Write the code. But > when I run it, it shows an error. > I'm completely new to this. Kindly help. > > Thank you, > Anusha > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error3.JPG Type: image/jpeg Size: 189765 bytes Desc: not available URL: From drescherjm at gmail.com Thu Jun 18 14:23:22 2015 From: drescherjm at gmail.com (John Drescher) Date: Thu, 18 Jun 2015 14:23:22 -0400 Subject: [vtkusers] Fwd: Run a new project In-Reply-To: References: Message-ID: > I am attaching a screenshot of my program. > Something seems to be broken with your project settings for the debugger. From the picture (which is hard to read) it seems like there is some text after the exe in the error dialog. John From nico.schloemer at gmail.com Thu Jun 18 14:37:41 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Thu, 18 Jun 2015 18:37:41 +0000 Subject: [vtkusers] read XDMF in parallel In-Reply-To: References: Message-ID: It's quite the same: All nodes are on all processes. (Or so it seems: `m->GetNumberOfPoints()` returns the number of all points on all nodes.) --Nico On Wed, Jun 17, 2015 at 6:00 PM Berk Geveci wrote: > Hi Nico, > > What happens if you call > > xreader->UpdateInformation(); > > before you call SetUpdateExtent() ? > > Best, > -berk > > On Tue, Jun 16, 2015 at 9:06 AM, Nico Schl?mer > wrote: > >> From [1], I find that parallel reading of XDMF files is as simple as >> ``` >> vtkMPIController *contr = vtkMPIController::New(); >> contr->Initialize(); >> int proc = contr->GetLocalProcessId(); >> int numprocs = contr->GetNumberOfProcesses(); >> contr->Barrier(); >> vtkXdmf3Reader *xreader = vtkXdmf3Reader::New(); >> xreader->SetFileName("data/pacman.xmf"); >> contr->Barrier(); >> xreader->SetUpdateExtent(proc, numprocs, 0); >> xreader->Update(); >> ``` >> How can I check if this really worked? >> After retrieving the output >> ``` >> vtkDataObject *rOutput = xreader->GetOutputDataObject(0); >> TEUCHOS_ASSERT(rOutput != nullptr); >> vtkUnstructuredGrid * m = dynamic_cast(rOutput); >> TEUCHOS_ASSERT(m != nullptr); >> >> std::cout << m->GetNumberOfCells() << " " << m->GetNumberOfPoints() >> << std::endl; >> ``` >> it seems that the all procs have all points and cells. >> >> Is there a way to only retrieve the locally owned cells/points? >> >> Cheers, >> Nico >> > _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nico.schloemer at gmail.com Thu Jun 18 15:15:22 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Thu, 18 Jun 2015 19:15:22 +0000 Subject: [vtkusers] read XDMF in parallel In-Reply-To: References: Message-ID: I've created a minimal working example that shows what's going wrong; find it attached. I'd be glad about any hints here. Cheers, Nico On Thu, Jun 18, 2015 at 8:37 PM Nico Schl?mer wrote: > It's quite the same: All nodes are on all processes. (Or so it seems: > `m->GetNumberOfPoints()` returns the number of all points on all nodes.) > > > --Nico > > On Wed, Jun 17, 2015 at 6:00 PM Berk Geveci > wrote: > >> Hi Nico, >> >> What happens if you call >> >> xreader->UpdateInformation(); >> >> before you call SetUpdateExtent() ? >> >> Best, >> -berk >> >> On Tue, Jun 16, 2015 at 9:06 AM, Nico Schl?mer >> wrote: >> >>> From [1], I find that parallel reading of XDMF files is as simple as >>> ``` >>> vtkMPIController *contr = vtkMPIController::New(); >>> contr->Initialize(); >>> int proc = contr->GetLocalProcessId(); >>> int numprocs = contr->GetNumberOfProcesses(); >>> contr->Barrier(); >>> vtkXdmf3Reader *xreader = vtkXdmf3Reader::New(); >>> xreader->SetFileName("data/pacman.xmf"); >>> contr->Barrier(); >>> xreader->SetUpdateExtent(proc, numprocs, 0); >>> xreader->Update(); >>> ``` >>> How can I check if this really worked? >>> After retrieving the output >>> ``` >>> vtkDataObject *rOutput = xreader->GetOutputDataObject(0); >>> TEUCHOS_ASSERT(rOutput != nullptr); >>> vtkUnstructuredGrid * m = dynamic_cast(rOutput); >>> TEUCHOS_ASSERT(m != nullptr); >>> >>> std::cout << m->GetNumberOfCells() << " " << m->GetNumberOfPoints() >>> << std::endl; >>> ``` >>> it seems that the all procs have all points and cells. >>> >>> Is there a way to only retrieve the locally owned cells/points? >>> >>> Cheers, >>> Nico >>> >> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.zip Type: application/zip Size: 14528 bytes Desc: not available URL: From mdrahos at thinksurgical.com Thu Jun 18 15:33:03 2015 From: mdrahos at thinksurgical.com (Miroslav Drahos) Date: Thu, 18 Jun 2015 12:33:03 -0700 Subject: [vtkusers] Fwd: Run a new project In-Reply-To: References: , Message-ID: I agree with John, to me it seems that the IDE cannot find the executable "C:\Users\Anusha\...\Project.exe" which presumably was supposed to be built. There is a stray single quote on an empty line in the error dialog that looks suspicious. Miro ________________________________________ From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of John Drescher [drescherjm at gmail.com] Sent: Thursday, June 18, 2015 11:23 AM To: Anusha Balasubramoniam Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Fwd: Run a new project > I am attaching a screenshot of my program. > Something seems to be broken with your project settings for the debugger. From the picture (which is hard to read) it seems like there is some text after the exe in the error dialog. John _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From dave.demarle at kitware.com Thu Jun 18 21:33:09 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 18 Jun 2015 21:33:09 -0400 Subject: [vtkusers] get unstructured grid from vtkXdmf3Reader In-Reply-To: References: Message-ID: Hi Nico, That is for multi-block xdmf files. If you happen to have a file with several blocks in it it will return the correct number (try IronProtein from the paraview regression test data). Probably a bug that it reports 0 when you have a single atomic ("uniform" in xdmf terms of "vtkDataSet" in vtk terms) grid. I don't happen to have a small example of its use in VTK. In ParaView it is used in the Block selection part of the object inspector when you open the xdmf file. hth David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Jun 16, 2015 at 9:04 AM, Nico Schl?mer wrote: > Apparently, > ``` > xreader->GetNumberOfGrids() > ``` > doesn't say much. One can simply > ``` > vtkDataObject *rOutput = xreader->GetOutputDataObject(0); > TEUCHOS_ASSERT(rOutput != nullptr); > vtkUnstructuredGrid * m = dynamic_cast(rOutput); > TEUCHOS_ASSERT(m != nullptr); > ``` > which gives you a pointer to the vtkUnstructuredGrid, if there is one. > > Cheers, > Nico > > On Tue, Jun 16, 2015 at 1:46 PM, Nico Schl?mer > wrote: > > Hi everyone, > > > > I have an XDMF file which I'm reading with vtk::vtkXdmf3Reader, > > ``` > > vtkXdmf3Reader *xreader = vtkXdmf3Reader::New(); > > xreader->SetFileName("data/brick-w-hole.xmf"); > > xreader->Update(); > > ``` > > and I would like to get the corresponding vtk::UnstructuredGrid from > > this. For some reason, however, > > ``` > > xreader->GetNumberOfGrids() > > ``` > > returns 0. Also, I wouldn't know how to retrieve the grid if there was > one. > > > > Is there example code for this around? > > > > Cheers, > > Nico > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Jun 18 21:47:49 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 18 Jun 2015 21:47:49 -0400 Subject: [vtkusers] read XDMF in parallel In-Reply-To: References: Message-ID: I believe this is a change in the API between Xdmf2 and 3. In Xdmf2 the VTK level reader would break up a single regular grid automatically for you. In Xdmf3 I didn't implement that. Workarounds include modifying your xdmf file to manually partition the underlying hdf5 grid, or reverting to xdmf2. Others have come across this already before. This and the new boost dependency are the reasons why I have not yet deprecated xdmf2 and made xdmf3 the default in VTK and ParaView. I'ld love to fix this issue, but have not yet found the funding to devote the time for it. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Jun 18, 2015 at 3:15 PM, Nico Schl?mer wrote: > I've created a minimal working example that shows what's going wrong; find > it attached. > > I'd be glad about any hints here. > > Cheers, > Nico > > > On Thu, Jun 18, 2015 at 8:37 PM Nico Schl?mer > wrote: > >> It's quite the same: All nodes are on all processes. (Or so it seems: >> `m->GetNumberOfPoints()` returns the number of all points on all nodes.) >> >> >> --Nico >> >> On Wed, Jun 17, 2015 at 6:00 PM Berk Geveci >> wrote: >> >>> Hi Nico, >>> >>> What happens if you call >>> >>> xreader->UpdateInformation(); >>> >>> before you call SetUpdateExtent() ? >>> >>> Best, >>> -berk >>> >>> On Tue, Jun 16, 2015 at 9:06 AM, Nico Schl?mer >> > wrote: >>> >>>> From [1], I find that parallel reading of XDMF files is as simple as >>>> ``` >>>> vtkMPIController *contr = vtkMPIController::New(); >>>> contr->Initialize(); >>>> int proc = contr->GetLocalProcessId(); >>>> int numprocs = contr->GetNumberOfProcesses(); >>>> contr->Barrier(); >>>> vtkXdmf3Reader *xreader = vtkXdmf3Reader::New(); >>>> xreader->SetFileName("data/pacman.xmf"); >>>> contr->Barrier(); >>>> xreader->SetUpdateExtent(proc, numprocs, 0); >>>> xreader->Update(); >>>> ``` >>>> How can I check if this really worked? >>>> After retrieving the output >>>> ``` >>>> vtkDataObject *rOutput = xreader->GetOutputDataObject(0); >>>> TEUCHOS_ASSERT(rOutput != nullptr); >>>> vtkUnstructuredGrid * m = dynamic_cast(rOutput); >>>> TEUCHOS_ASSERT(m != nullptr); >>>> >>>> std::cout << m->GetNumberOfCells() << " " << m->GetNumberOfPoints() >>>> << std::endl; >>>> ``` >>>> it seems that the all procs have all points and cells. >>>> >>>> Is there a way to only retrieve the locally owned cells/points? >>>> >>>> Cheers, >>>> Nico >>>> >>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the VTK FAQ at: >>>> http://www.vtk.org/Wiki/VTK_FAQ >>>> >>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>> >>> > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nico.schloemer at gmail.com Fri Jun 19 04:15:01 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Fri, 19 Jun 2015 08:15:01 +0000 Subject: [vtkusers] read XDMF in parallel In-Reply-To: References: Message-ID: Thanks for the info! I've reverted back to Xdmf2 (using the same code I attached above, replacing `vtkXdmf3Reader` by `vtkXdmfReader`). I found that: 1) A serial read gives the output ``` numprocs: 1 myproc: 0 XDMF Error in /home/nschloe/software/vtk/upstream/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None) 759 409 ``` where the error message doesn't seem to have any effect (bug?). 2) A parallel read returns ``` numprocs: 2 myproc: 0 numprocs: 2 myproc: 1 XDMF Error in /home/nschloe/software/vtk/upstream/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None) XDMF Error in /home/nschloe/software/vtk/upstream/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None) 0 0 ``` (the last two numbers being the number of points and cells on one proc) and then just chokes. If there's something obvious I'm doing wrong, I'd love to hear about it. Cheers, Nico On Fri, Jun 19, 2015 at 3:48 AM David E DeMarle wrote: > I believe this is a change in the API between Xdmf2 and 3. > > In Xdmf2 the VTK level reader would break up a single regular grid > automatically for you. In Xdmf3 I didn't implement that. > > Workarounds include modifying your xdmf file to manually partition the > underlying hdf5 grid, or reverting to xdmf2. > > Others have come across this already before. This and the new boost > dependency are the reasons why I have not yet deprecated xdmf2 and made > xdmf3 the default in VTK and ParaView. I'ld love to fix this issue, but > have not yet found the funding to devote the time for it. > > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Thu, Jun 18, 2015 at 3:15 PM, Nico Schl?mer > wrote: > >> I've created a minimal working example that shows what's going wrong; >> find it attached. >> >> I'd be glad about any hints here. >> >> Cheers, >> Nico >> >> >> On Thu, Jun 18, 2015 at 8:37 PM Nico Schl?mer >> wrote: >> >>> It's quite the same: All nodes are on all processes. (Or so it seems: >>> `m->GetNumberOfPoints()` returns the number of all points on all nodes.) >>> >>> >>> --Nico >>> >>> On Wed, Jun 17, 2015 at 6:00 PM Berk Geveci >>> wrote: >>> >>>> Hi Nico, >>>> >>>> What happens if you call >>>> >>>> xreader->UpdateInformation(); >>>> >>>> before you call SetUpdateExtent() ? >>>> >>>> Best, >>>> -berk >>>> >>>> On Tue, Jun 16, 2015 at 9:06 AM, Nico Schl?mer < >>>> nico.schloemer at gmail.com> wrote: >>>> >>>>> From [1], I find that parallel reading of XDMF files is as simple as >>>>> ``` >>>>> vtkMPIController *contr = vtkMPIController::New(); >>>>> contr->Initialize(); >>>>> int proc = contr->GetLocalProcessId(); >>>>> int numprocs = contr->GetNumberOfProcesses(); >>>>> contr->Barrier(); >>>>> vtkXdmf3Reader *xreader = vtkXdmf3Reader::New(); >>>>> xreader->SetFileName("data/pacman.xmf"); >>>>> contr->Barrier(); >>>>> xreader->SetUpdateExtent(proc, numprocs, 0); >>>>> xreader->Update(); >>>>> ``` >>>>> How can I check if this really worked? >>>>> After retrieving the output >>>>> ``` >>>>> vtkDataObject *rOutput = xreader->GetOutputDataObject(0); >>>>> TEUCHOS_ASSERT(rOutput != nullptr); >>>>> vtkUnstructuredGrid * m = >>>>> dynamic_cast(rOutput); >>>>> TEUCHOS_ASSERT(m != nullptr); >>>>> >>>>> std::cout << m->GetNumberOfCells() << " " << m->GetNumberOfPoints() >>>>> << std::endl; >>>>> ``` >>>>> it seems that the all procs have all points and cells. >>>>> >>>>> Is there a way to only retrieve the locally owned cells/points? >>>>> >>>>> Cheers, >>>>> Nico >>>>> >>>> _______________________________________________ >>>>> Powered by www.kitware.com >>>>> >>>>> Visit other Kitware open-source projects at >>>>> http://www.kitware.com/opensource/opensource.html >>>>> >>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>> >>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>> >>>>> Follow this link to subscribe/unsubscribe: >>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>> >>>> >>>> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From liyihai2009 at qq.com Fri Jun 19 09:52:15 2015 From: liyihai2009 at qq.com (=?gb18030?B?ste6o9K7y9o=?=) Date: Fri, 19 Jun 2015 21:52:15 +0800 Subject: [vtkusers] How to connect points to form a curve ? Message-ID: There are many 3D points, which can be used to build a curve. I want to connect the points to form a curve, but I don't know the sequence of these points. How can I achieve this goal ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From zchenandy at gmail.com Fri Jun 19 11:43:51 2015 From: zchenandy at gmail.com (Andy Chen) Date: Fri, 19 Jun 2015 11:43:51 -0400 Subject: [vtkusers] LNK2019 when using vtk6.2 in 32 bit environment vs2013 only Message-ID: I have trying to use the vtk 6.2. I build vtk for 32 bits and 64 bits without any errors. My test program worked for 64 bit but had LNK 2019 errors as below when I tried to compile it for 32 bit. Apparently the compiler cannot find the match functions in the library. I would appreciate if you have any suggestion to where the problem might be? Thanks, Andy Error 4 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall vtkDebugLeaksManager::vtkDebugLeaksManager(void)" (__imp_??0vtkDebugLeaksManager@@QAE at XZ) referenced in function "void __cdecl `dynamic initializer for 'vtkDebugLeaksManagerInstance''(void)" (??__EvtkDebugLeaksManagerInstance@@YAXXZ) Error 10 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkDataArray::InsertTuple1(int,double)" (__imp_?InsertTuple1 at vtkDataArray@@QAEXHN at Z) referenced in function "private: int __thiscall CDlg3DView::PipeLine3DODSurface(void)" (?PipeLine3DODSurface at CDlg3DView@@AAEHXZ) Error 11 error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkPoints * __cdecl vtkPoints::New(void)" (__imp_?New at vtkPoints@@SAPAV1 at XZ) referenced in function "private: int __thiscall CDlg3DView::PipeLine3DODSurface(void)" (?PipeLine3DODSurface at CDlg3DView@@AAEHXZ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From nico.schloemer at gmail.com Fri Jun 19 14:00:07 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Fri, 19 Jun 2015 18:00:07 +0000 Subject: [vtkusers] get unstructured grid from vtkXdmf3Reader In-Reply-To: References: Message-ID: Thanks David for the reply. > Probably a bug that it reports 0 when you have a single atomic ("uniform" in xdmf terms of "vtkDataSet" in vtk terms) grid. I'll file a report for this. Cheers, Nico On Fri, Jun 19, 2015 at 3:33 AM David E DeMarle wrote: > Hi Nico, > > That is for multi-block xdmf files. If you happen to have a file with > several blocks in it it will return the correct number (try IronProtein > from the paraview regression test data). Probably a bug that it reports 0 > when you have a single atomic ("uniform" in xdmf terms of "vtkDataSet" in > vtk terms) grid. > > I don't happen to have a small example of its use in VTK. In ParaView it > is used in the Block selection part of the object inspector when you open > the xdmf file. > > hth > > > > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Tue, Jun 16, 2015 at 9:04 AM, Nico Schl?mer > wrote: > >> Apparently, >> ``` >> xreader->GetNumberOfGrids() >> ``` >> doesn't say much. One can simply >> ``` >> vtkDataObject *rOutput = xreader->GetOutputDataObject(0); >> TEUCHOS_ASSERT(rOutput != nullptr); >> vtkUnstructuredGrid * m = dynamic_cast(rOutput); >> TEUCHOS_ASSERT(m != nullptr); >> ``` >> which gives you a pointer to the vtkUnstructuredGrid, if there is one. >> >> Cheers, >> Nico >> > >> On Tue, Jun 16, 2015 at 1:46 PM, Nico Schl?mer >> wrote: >> > Hi everyone, >> > >> > I have an XDMF file which I'm reading with vtk::vtkXdmf3Reader, >> > ``` >> > vtkXdmf3Reader *xreader = vtkXdmf3Reader::New(); >> > xreader->SetFileName("data/brick-w-hole.xmf"); >> > xreader->Update(); >> > ``` >> > and I would like to get the corresponding vtk::UnstructuredGrid from >> > this. For some reason, however, >> > ``` >> > xreader->GetNumberOfGrids() >> > ``` >> > returns 0. Also, I wouldn't know how to retrieve the grid if there was >> one. >> > >> > Is there example code for this around? >> > >> > Cheers, >> > Nico >> > _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregthom992 at gmail.com Sat Jun 20 02:27:08 2015 From: gregthom992 at gmail.com (gregthom992) Date: Fri, 19 Jun 2015 23:27:08 -0700 (MST) Subject: [vtkusers] draw crosshair in image viewer Message-ID: <1434781628119-5732462.post@n5.nabble.com> Hello there Hi, in my application which displays images in 2D view using vtkImageViewer2, I want to display a cross-hair at the center of the image. what is a good way to do this ? I have used vtkHandleWidget and vtkPointHandleRepresentation2D but I haven't got too far yet. Using, vtkHandleWidget and vtkPointHandleRepresentation2D I can display this small cross hair in the center of the image using code snippet below: self.__HandleWidget = vtk.vtkHandleWidget() self.__PointHandleRepresentation2D = vtk.vtkPointHandleRepresentation2D() self.__HandleWidget.SetRepresentation(self.__PointHandleRepresentation2D) self.__HandleWidget.SetInteractor(self.GetInteractor()) self.__HandleWidget.On() Viewer.getPointHandleRepresentation2D().SetWorldPosition(Viewer.GetImageActor().GetCenter()) How can I make the cross hairs lines to fit withing the bounds of my displayed image? Secondly, what is I wanted the two lines of the crosshair to be draggable separately? what would I need to do in this case ? Thank you GT -- View this message in context: http://vtk.1045678.n5.nabble.com/draw-crosshair-in-image-viewer-tp5732462.html Sent from the VTK - Users mailing list archive at Nabble.com. From f_magician at mac.com Thu Jun 18 12:14:30 2015 From: f_magician at mac.com (Magician) Date: Fri, 19 Jun 2015 01:14:30 +0900 Subject: [vtkusers] vtkHierarchicalBoxDataSet In-Reply-To: References: <9D0A616B-A8E4-448F-9BA9-B1B200020BC5@mac.com> Message-ID: <31484EF0-679A-4F28-8115-05A3EDBAF728@mac.com> Hi Berk, I'm struggling for days to get the results, but it doesn't work yet. Maybe I should generate child cells without SetAMRBox() method, but I haven't find the alternatives. And I?m also facing another problem. ComputeCellCenter() will call vtkCell.EvaluateLocation() method, but the error is dumped: > TypeError: EvaluateLocation argument 4: expected a sequence of 0 values, got float Which value should I set at the 4th or other argument? The attached file is my Python code. Magician > On Jun 16, 2015, at 03:22, Berk Geveci wrote: > > Dear Magician, > > Unfortunately, vtkAMRBox is not wrapped into Python. The right solution is to add a method to vtkOverlappingAMR that takes 6 int values and internally generates an AMR box. Maybe you can give that a shot. > > AMRCommon.h is a utility header written for that example. To duplicate it in Python, you have to rewrite it I am afraid. > > Best, > -berk > > On Fri, Jun 12, 2015 at 12:18 PM, Magician > wrote: > Hi Berk, > > > Thanks for your advice. I missed the examples. > I'm now tracing Generate3DAMRDataSetWithPulse.cxx with Python. > > And now I have other questions. > > - The example includes vtkAMRBox class, but I can't find it > in vtk or any other submodule on Python. > How can I use it? > > - Some methods are provided by AMRCommon.h. > Can I use these methods with Python? > > > Magician > > >> On Jun 12, 2015, at 04:41, Berk Geveci > wrote: >> >> Hi Magician, >> >> Did you look at the examples in Examples/AMR/Cxx? >> >> Best, >> -berk >> >> On Wed, Jun 10, 2015 at 8:49 AM, Magician > wrote: >> Hi all, >> >> >> I'd like to define vtkHierarchicalBoxDataSet objects on VTK 6.2.0. >> But there are few informations to do it. >> >> Can I get any complete sample codes written in Python or C++? >> >> >> Magician >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ExamplesAMRCxxGenerate3D.py Type: text/x-python-script Size: 4886 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From yordan_kyosev at gmx.net Sat Jun 20 16:25:35 2015 From: yordan_kyosev at gmx.net (Yordan Kyosev) Date: Sat, 20 Jun 2015 22:25:35 +0200 Subject: [vtkusers] Compiler error VS2015 RC Community on vtkensightreader.cxx Message-ID: <5585CC3F.1090202@gmx.net> Hi after fixing few errors I got compiled both VTK 6.2.0 and the git version under VS 2015 RC Community edition as 32 bit / XP toolset but the vtkensightreader.cxx causes the compiler to crash. The four places, fixed before in order to get it compiled are: * tiffiop.h - >line 58 included to avoid redefinition of lfind (I know this is not the best solution...) * config.h -> Line 253 change to #if defined(_MSC_VER) && (_MSC_VER < 1900) to avoid redefinition of _snprintf * vtkWin32ProcessOutputWindows.cxx -> Line 99 does not accept the PRIDword, some casting is required, so changed to "lu" sprintf(exeName, "vtkWin32OWP_%lu_%p_%u.exe", * H5Omtime.c timezone not known in VC2015 changed Line 226 -> the_time -= timezone - (tm.tm_isdst?3600:0); to: long *seconds; the_time -= _get_timezone(seconds) - (tm.tm_isdst ? 3600 : 0); Some of these are reported, but seems not included in the git version. The only one error now is: e:\a_mysoftware_work2015\libs\vtk_620git\io\ensight\vtkensightreader.cxx(1575): fatal error C1001: Interner Compilerfehler. 1> (Compilerdatei "f:\dd\vctools\compiler\utc\src\p2\main.c", Zeile 247) 1> Vereinfachen oder ?ndern Sie das Programm im Umfeld der oben aufgef?hrten Positionen. W?hlen 1> Sie im Men? "Hilfe" von Visual C++ den Befehl "Technischer Support", 1> oder ?ffnen Sie die Hilfedatei des technischen Supports, um weitere Informationen zu erhalten. Any Idea ? Yordan -------------- next part -------------- An HTML attachment was scrubbed... URL: From yordan_kyosev at gmx.net Sat Jun 20 16:33:15 2015 From: yordan_kyosev at gmx.net (Yordan Kyosev) Date: Sat, 20 Jun 2015 22:33:15 +0200 Subject: [vtkusers] Message: 8 How to connect points to form a curve ? In-Reply-To: References: Message-ID: <5585CE0B.1060100@gmx.net> Re: Message: 8 How to connect points to form a curve ? >> There are many 3D points, which can be used to build a curve. I want to connect the points to form a curve, but I don't know the sequence of these points. How can I achieve this goal ? There are many ways to connect 3D points into one curve. YOU have to specify the rule how the curve is defined trough the points. Think on your travel - you can build a line from New York to Paris and then to Peking and then to London but you can as well connect the line from New York to London then to Paris and then to Peking etc. etc. You can check the distances and try to find the closest one - but if this suits for your goal - can know only you Best regards Yordan From joaorobertojr88 at gmail.com Sat Jun 20 21:46:48 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Sat, 20 Jun 2015 18:46:48 -0700 (MST) Subject: [vtkusers] vtkScalarBarActor title size Message-ID: <1434851208127-5732466.post@n5.nabble.com> Hello, I'm trying to change the title size of a vtkScalarBarActor, but until now I had no luck. Below is the actor setup: gridDataPointsBar = vtkSmartPointer::New(); gridDataPointsBar->SetTitle(gridData->getName().toStdString().c_str()); gridDataPointsBar->SetNumberOfLabels(4); gridDataPointsBar->SetWidth(0.2); gridDataPointsBar->SetHeight(0.5); gridDataPointsBar->GetTitleTextProperty()->SetFontSize(12); // doesn't have effect gridDataPointsBar->SetLookupTable(lut); Also, I override the vtkScalarBarActor::SizeTitle method to set the size manually (as described in http://vtk.1045678.n5.nabble.com/vtkScalarBar-Title-font-issue-tp5051421p5105150.html), but it's never called. Here goes the class implementation. class ScalarBar : public vtkScalarBarActor { public: static ScalarBar* New(); vtkTypeMacro(ScalarBar, vtkScalarBarActor); private: virtual void SizeTitle(double *titleSize, int *size, vtkViewport *viewport) { std::cout << titleSize[0] << size[0] << std::endl; // put a break point here, but the method isn't called vtkScalarBarActor::SizeTitle(titleSize, size, viewport); } }; vtkStandardNewMacro(ScalarBar); Any ideas to solve this problem? Thanks! -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkScalarBarActor-title-size-tp5732466.html Sent from the VTK - Users mailing list archive at Nabble.com. From ashray.malhotra.1994 at gmail.com Sun Jun 21 10:40:27 2015 From: ashray.malhotra.1994 at gmail.com (Ashray Malhotra) Date: Sun, 21 Jun 2015 20:10:27 +0530 Subject: [vtkusers] Image Difference of vtkImageData* type inputs Message-ID: Hello, I have a really basic question. I am trying to compute image difference of 2 images which I have in vtkImageData* format. I tried searching a lot but the only way to use the vtkImageDifference class that I could find is to give it at least one vtkAlgorithmOutput * input. Will I have to rewrite the entire imageDifference function or is there a simpler way out? Thanks a lot. -- Regards Ashray Malhotra -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Sun Jun 21 12:12:03 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sun, 21 Jun 2015 12:12:03 -0400 Subject: [vtkusers] Image Difference of vtkImageData* type inputs In-Reply-To: References: Message-ID: See for example, http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageDifference On Sun, Jun 21, 2015 at 10:40 AM, Ashray Malhotra wrote: > Hello, > > I have a really basic question. I am trying to compute image difference of 2 > images which I have in vtkImageData* format. > > I tried searching a lot but the only way to use the vtkImageDifference class > that I could find is to give it at least one vtkAlgorithmOutput * input. > > Will I have to rewrite the entire imageDifference function or is there a > simpler way out? > > Thanks a lot. > > -- > Regards > Ashray Malhotra > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From gregthom992 at gmail.com Sun Jun 21 22:56:47 2015 From: gregthom992 at gmail.com (gregthom992) Date: Sun, 21 Jun 2015 19:56:47 -0700 (MST) Subject: [vtkusers] vtkDistanceWidget behaviour In-Reply-To: <1409212178656-5728476.post@n5.nabble.com> References: <1409138652869-5728444.post@n5.nabble.com> <1409212178656-5728476.post@n5.nabble.com> Message-ID: <1434941807553-5732469.post@n5.nabble.com> Hey, I have the same situation, how was this fixed ? Also, how can one have multiple distace widgets i.e. after pressing "d" I would like to have many distance widgets around my image. Thanks GT -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkDistanceWidget-behaviour-tp5728444p5732469.html Sent from the VTK - Users mailing list archive at Nabble.com. From thomas.dupeux at ifsttar.fr Mon Jun 22 07:12:28 2015 From: thomas.dupeux at ifsttar.fr (Thomas Dupeux) Date: Mon, 22 Jun 2015 13:12:28 +0200 (CEST) Subject: [vtkusers] Open position for an Engineer in Computer Science In-Reply-To: <255218515.10240367.1434967159280.JavaMail.zimbra@ifsttar.fr> References: <255218515.10240367.1434967159280.JavaMail.zimbra@ifsttar.fr> Message-ID: <956673525.10249065.1434971548586.JavaMail.zimbra@ifsttar.fr> Dear VTK users, A position for Engineer (M/F) in computer graphics is opened in Bron, France at the LBMC ( http://www.lbmc.ifsttar.fr ) to contribute to the EU-FP7 PIPER Project ( http://www.piper-project.eu/ ). The candidate must be experienced with C++ software development. Experience with the following library or environment would also be appreciated: CGAL, SOFA, GRAPHITE, python, VTK, Eigen, QT, Boost, CMake, GTest, Git, or any other relevant library or programming environment, under linux/windows. This application is open until filled. Applications must include (PDF format) a short cover letter, a detailed CV/resume with a clear exposition of prior relevant experience. We encourage you to enclose previous works, documents, source code (or binaries)? Reference letters may need to be provided upon request. To apply, contact Yoann Lafon (yoann.lafon(at)univ?lyon1.fr, supervisor) and Philippe Beillas (philippe.beillas(at)ifsttar.fr, scientific manager and coordinator for the PIPER project). Additional information could be found here: http://www.ifsttar.fr/nous-rejoindre/colonne-1/recrutement/details-offres-demploi-en-cdd-et-stages/article/engineer-in-computer-science/ or http://bit.ly/1GuEjd7 (shortened URL) Regards, Thomas Dupeux -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Mon Jun 22 09:45:13 2015 From: sean at rogue-research.com (Sean McBride) Date: Mon, 22 Jun 2015 09:45:13 -0400 Subject: [vtkusers] Compiler error VS2015 RC Community on vtkensightreader.cxx In-Reply-To: <5585CC3F.1090202@gmx.net> References: <5585CC3F.1090202@gmx.net> Message-ID: <20150622134513.726297515@mail.rogue-research.com> On Sat, 20 Jun 2015 22:25:35 +0200, Yordan Kyosev said: >after fixing few errors I got compiled both VTK 6.2.0 and the git >version under VS 2015 RC Community edition as 32 bit / XP toolset >but the vtkensightreader.cxx causes the compiler to crash. > >The four places, fixed before in order to get it compiled are: >* tiffiop.h - >line 58 included to avoid redefinition >of lfind (I know this is not the best solution...) > >* config.h -> Line 253 change to #if defined(_MSC_VER) && >(_MSC_VER < 1900) >to avoid redefinition of _snprintf > >* vtkWin32ProcessOutputWindows.cxx -> Line 99 does not accept the >PRIDword, some casting is required, >so changed to "lu" > sprintf(exeName, "vtkWin32OWP_%lu_%p_%u.exe", > >* H5Omtime.c timezone not known in VC2015 >changed Line 226 -> the_time -= timezone - (tm.tm_isdst?3600:0); >to: >long *seconds; > the_time -= _get_timezone(seconds) - (tm.tm_isdst ? 3600 : 0); > >Some of these are reported, but seems not included in the git version. Could you create a patch per this process: That'll make it much easier for developers to review. >The only one error now is: > >e:\a_mysoftware_work2015\libs\vtk_620git\io\ensight >\vtkensightreader.cxx(1575): >fatal error C1001: Interner Compilerfehler. >1> (Compilerdatei "f:\dd\vctools\compiler\utc\src\p2\main.c", Zeile 247) >1> Vereinfachen oder ?ndern Sie das Programm im Umfeld der oben >aufgef?hrten Positionen. W?hlen >1> Sie im Men? "Hilfe" von Visual C++ den Befehl "Technischer Support", >1> oder ?ffnen Sie die Hilfedatei des technischen Supports, um weitere >Informationen zu erhalten. > >Any Idea ? You should report that one to Microsoft. Internal Complier Errors are always the fault of the compiler. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From jose.de.paula at live.com Mon Jun 22 13:42:38 2015 From: jose.de.paula at live.com (Jose Barreto) Date: Mon, 22 Jun 2015 10:42:38 -0700 (MST) Subject: [vtkusers] VTK can read dicom.dir? Message-ID: <1434994958658-5732476.post@n5.nabble.com> Dicom.dir files are generally used as small banks contents patient data and the location of the images it represents. Vtk can read these files? vtkDICOMImageReader read files within a folder, more does not point to .dir. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-can-read-dicom-dir-tp5732476.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Mon Jun 22 14:32:56 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 22 Jun 2015 12:32:56 -0600 Subject: [vtkusers] VTK can read dicom.dir? In-Reply-To: <1434994958658-5732476.post@n5.nabble.com> References: <1434994958658-5732476.post@n5.nabble.com> Message-ID: No, vtkDICOMImageReader cannot read DICOMDIR files. If you want something like that, you can try my vtk-dicom package, which has a vtkDICOMDirectory class for that purpose: http://dgobbi.github.io/vtk-dicom/doc/api/classvtk_d_i_c_o_m_directory.html https://github.com/dgobbi/vtk-dicom - David On Mon, Jun 22, 2015 at 11:42 AM, Jose Barreto wrote: > Dicom.dir files are generally used as small banks contents patient data and > the location of the images it represents. Vtk can read these files? > vtkDICOMImageReader read files within a folder, more does not point to > .dir. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nkovac2 at uwo.ca Mon Jun 22 16:18:13 2015 From: nkovac2 at uwo.ca (Nicole Kovacs) Date: Mon, 22 Jun 2015 20:18:13 +0000 Subject: [vtkusers] Migration to VTK 6 - ShouldIReleaseData Message-ID: Hi all, As I'm reading the documentation about migration to VTK 6, I got confused regarding ShouldIReleaseData. Should it be completely removed or should it be replaced by something else? I'm not experienced with VTK, but I'm trying to learn as I upgrade some code to VTK 6. I've encountered the following piece of code: if ( this->Input->ShouldIReleaseData() ) this->Input->ReleaseData(); Should I just delete it? Thanks in advance, Nicole -------------- next part -------------- An HTML attachment was scrubbed... URL: From pjozog at gmail.com Mon Jun 22 17:48:13 2015 From: pjozog at gmail.com (pjozog) Date: Mon, 22 Jun 2015 14:48:13 -0700 (MST) Subject: [vtkusers] Subdivide selected Cell IDs of Polydata Surface In-Reply-To: <1338842591299-5713579.post@n5.nabble.com> References: <1338842591299-5713579.post@n5.nabble.com> Message-ID: <1435009693902-5732483.post@n5.nabble.com> I want to do exactly this. Where you able to find a good approach? -- View this message in context: http://vtk.1045678.n5.nabble.com/Subdivide-selected-Cell-IDs-of-Polydata-Surface-tp5713579p5732483.html Sent from the VTK - Users mailing list archive at Nabble.com. From liyihai2009 at qq.com Mon Jun 22 22:14:52 2015 From: liyihai2009 at qq.com (=?gb18030?B?ste6o9K7y9o=?=) Date: Tue, 23 Jun 2015 10:14:52 +0800 Subject: [vtkusers] How to set normal of vtkImagePlaneWidget ? Message-ID: I just found method GetNormal() of vtkImagePlaneWidget, but no SetNormal(). I want to set the plane normal, how should I do it ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.amaclean at gmail.com Tue Jun 23 03:00:25 2015 From: andrew.amaclean at gmail.com (Andrew Maclean) Date: Tue, 23 Jun 2015 17:00:25 +1000 Subject: [vtkusers] For those using OpenGL2 in the VTK build. Message-ID: Hi All On my laptop which has an Intel and NVidiia card, I just discovered that my VTK programs were crashing with this message: "Warning: In \VTK\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 426 vtkWin32OpenGLRenderWindow (0000000604268430): VTK is designed to work with OpenGL version 3.2 but it appears it has been given a context that does not support 3.2. VTK will run in a compatibility mode designed to work with OpenGL 2.1 but some features may not work. ERROR: In\ VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 366 vtkShaderProgram (0000000607E3F060): 1: ... ERROR: In \VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 367 vtkShaderProgram (0000000607E3F060): ERROR: 0:20: '' : extension 'GL_EXT_gpu_shader4' is not supported " To get rid of this error you must set the NVidia graphics processor as default. To do this: Go to the NVIDIA Control Panel (right-click on the desktop), then: 3D Settings-> Manage 3D settings The Tab "Preferred graphics processor " , select High performance NVidia processor Regards Andrew -- ___________________________________________ Andrew J. P. Maclean ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Tue Jun 23 03:52:22 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 23 Jun 2015 00:52:22 -0700 (MST) Subject: [vtkusers] Unresolved external symbol QVTKWidget In-Reply-To: <1434559517045-5732422.post@n5.nabble.com> References: <1434559517045-5732422.post@n5.nabble.com> Message-ID: <1435045942456-5732489.post@n5.nabble.com> Anyone has insights on that error? -- View this message in context: http://vtk.1045678.n5.nabble.com/Unresolved-external-symbol-QVTKWidget-tp5732422p5732489.html Sent from the VTK - Users mailing list archive at Nabble.com. From jose.de.paula at live.com Tue Jun 23 08:06:13 2015 From: jose.de.paula at live.com (Jose Barreto) Date: Tue, 23 Jun 2015 05:06:13 -0700 (MST) Subject: [vtkusers] VTK can read dicom.dir? In-Reply-To: References: <1434994958658-5732476.post@n5.nabble.com> Message-ID: <1435061173387-5732495.post@n5.nabble.com> Thank you David, their classes can not cirar dicom.dir also right? -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-can-read-dicom-dir-tp5732476p5732495.html Sent from the VTK - Users mailing list archive at Nabble.com. From inglis.dl at gmail.com Tue Jun 23 09:37:33 2015 From: inglis.dl at gmail.com (DL I) Date: Tue, 23 Jun 2015 09:37:33 -0400 Subject: [vtkusers] How to set normal of vtkImagePlaneWidget ? In-Reply-To: References: Message-ID: Hi, there is no SetNormal() method but a plane normal can be defined from 3 points and vtkImagePlaneWidget allows SetPoint1(), SetPoint2(), SetOrigin() . try this (pseudocode): if you define your normal from an origin, o and 2 other points p1, p2 such that p1 , p2 and o define a plane (and also 3 corners of the widget) then a normal to the plane, n, can be found with po1 = p1 - o; po2 = p2 - o; n = po1/||po1|| x po1/||po2|| where x is the cross product operator and ||.|| is the norm of a vector. To set the widget's plane normal, you do so indirectly from p1, p2 and o: w.SetPoint1(p1) w.SetPoint2(p2) w.SetOrigin(o) w.UpdatePlacement() best, Dean On Mon, Jun 22, 2015 at 10:14 PM, ???? wrote: > I just found method GetNormal() of vtkImagePlaneWidget, but no > SetNormal(). I want to set the plane normal, how should I do it ? > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruce.david.jones at gmail.com Tue Jun 23 14:57:10 2015 From: bruce.david.jones at gmail.com (Bruce Jones) Date: Tue, 23 Jun 2015 18:57:10 +0000 Subject: [vtkusers] Custom filter polydata -> imagedata Message-ID: Hi, I am trying to write a custom VTK filter to use with paraview. The filter is designed to interpolate data form an sph simulation (polydata) to a regular grid (imagedata). However, it is not clear to me which base class my filter should inherit from. I initially tried inheriting from vtkImageAlgorithm, the code worked and I was bale to load the filter in paraview, however I since have realised that this would only work for imagedata input + imagedata output. What is your recommendation for polydata input + imagedata output? Cheers, Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Jun 23 15:07:25 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 23 Jun 2015 13:07:25 -0600 Subject: [vtkusers] Custom filter polydata -> imagedata In-Reply-To: References: Message-ID: The use of vtkImageAlgorithm as a base class is correct. The output must be an image, but the input can be anything. For example, take a look at the code for vtkShepardMethod. http://www.vtk.org/doc/nightly/html/classvtkShepardMethod.html - David On Tue, Jun 23, 2015 at 12:57 PM, Bruce Jones wrote: > Hi, > > I am trying to write a custom VTK filter to use with paraview. The filter > is designed to interpolate data form an sph simulation (polydata) to a > regular grid (imagedata). However, it is not clear to me which base class > my filter should inherit from. > > I initially tried inheriting from vtkImageAlgorithm, the code worked and I > was bale to load the filter in paraview, however I since have realised that > this would only work for imagedata input + imagedata output. > > What is your recommendation for polydata input + imagedata output? > > Cheers, > Bruce > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.de.paula at live.com Tue Jun 23 15:10:51 2015 From: jose.de.paula at live.com (Jose Barreto) Date: Tue, 23 Jun 2015 12:10:51 -0700 (MST) Subject: [vtkusers] vtkDICOMImageReader holds the last image in memory? Message-ID: <1435086651185-5732506.post@n5.nabble.com> Hello users, I am using vtkDICOMImageReader-> SetDirectoryName (); So far so good, it work normally, the problem is that when peopl to delete it from memory he holds the last image in the folder that is pointing. Ete is my code if (dicomReader != nullptr) { dicomReader->GetOutput()->Delete(); dicomReader->SetDirectoryName(""); dicomReader = nullptr; System::GC::Collect(); clXUteis::ControleDICOM(); } The method moves all directory of images that sent the vtkDICOMImageReader open to another folder. All images are moved, minus the last image that gives me the error ("The file is being used by another application"). If I repeat the precession, again the last image was left behind. void clXUteis::ControleDICOM() { DirectoryInfo^ Dir = gcnew DirectoryInfo(DadosRequisicao::local_arquivo_DICOM + "temp\\"); array^ fileInfo = Dir->GetFiles("*.dcm"); try { for (int i = 0; i < fileInfo->Length; i++) { //Retira o diret?rio String^ fileName = fileInfo[i]->FullName->Replace(Dir->FullName, ""); File::Move(fileInfo[i]->FullName, DadosRequisicao::local_arquivo_DICOM + fileName); delete fileName; } } catch (Exception^ ex) { MessageBox::Show(ex->Message); } finally{ Dir = nullptr; delete fileInfo; } } I can not drop this last image vtkDICOMImageReader. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkDICOMImageReader-holds-the-last-image-in-memory-tp5732506.html Sent from the VTK - Users mailing list archive at Nabble.com. From bruce.david.jones at gmail.com Tue Jun 23 15:22:25 2015 From: bruce.david.jones at gmail.com (Bruce Jones) Date: Tue, 23 Jun 2015 19:22:25 +0000 Subject: [vtkusers] Custom filter polydata -> imagedata In-Reply-To: References: Message-ID: Thanks David, this was exactly the hint I needed. Bruce On Tue, 23 Jun 2015 at 15:07 David Gobbi wrote: > The use of vtkImageAlgorithm as a base class is correct. The output must > be an image, but the input can be anything. > > For example, take a look at the code for vtkShepardMethod. > http://www.vtk.org/doc/nightly/html/classvtkShepardMethod.html > > > - David > > > On Tue, Jun 23, 2015 at 12:57 PM, Bruce Jones > wrote: > >> Hi, >> >> I am trying to write a custom VTK filter to use with paraview. The filter >> is designed to interpolate data form an sph simulation (polydata) to a >> regular grid (imagedata). However, it is not clear to me which base class >> my filter should inherit from. >> >> I initially tried inheriting from vtkImageAlgorithm, the code worked and >> I was bale to load the filter in paraview, however I since have realised >> that this would only work for imagedata input + imagedata output. >> >> What is your recommendation for polydata input + imagedata output? >> >> Cheers, >> Bruce >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ale.nonis at libero.it Tue Jun 23 16:23:08 2015 From: ale.nonis at libero.it (ale.nonis at libero.it) Date: Tue, 23 Jun 2015 22:23:08 +0200 (CEST) Subject: [vtkusers] interactors & qvtkwidget Message-ID: <983357814.699811435090988185.JavaMail.defaultUser@defaultHost> Hello people,i have a problem with the interactors and qvtkwidget.I can't understand how to assign the interaction at my qvtkwidget in the GUI.I have a Class with all interaction operation (Ptsetter) and the principal class (simple view class). In attachment you can see the files. Someone can help me? Thanks for help. RegardsAlessandro -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleView.h Type: application/octet-stream Size: 1644 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleView.cxx Type: application/octet-stream Size: 10791 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Ptsetter.h Type: application/octet-stream Size: 607 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Ptsetter.cxx Type: application/octet-stream Size: 15346 bytes Desc: not available URL: From andrew.amaclean at gmail.com Tue Jun 23 19:40:43 2015 From: andrew.amaclean at gmail.com (Andrew Maclean) Date: Wed, 24 Jun 2015 09:40:43 +1000 Subject: [vtkusers] [vtk-developers] For those using OpenGL2 in the VTK build. In-Reply-To: <93a9a0fe0e00b08a6a9682d837c2cf0f@mail.gmail.com> References: <93a9a0fe0e00b08a6a9682d837c2cf0f@mail.gmail.com> Message-ID: Hi Ken, That is a useful link. My Laptop has an Intel HD Graphics 3000 and NVIDIA GeForceGT 540M. So the Intel card only supports OpenGL 3.1 whilst the NVidia card supports OpenGL4.5 and Open CL1.1 It seems the NVidia card is supporting all the required extensions but not the Intel card. Regards Andrew On Tue, Jun 23, 2015 at 10:37 PM, Ken Martin wrote: > Morning Andrew, > > > > Yes, for laptops with multiple graphics options you probably want to go > with the dedicated graphics chip. Having said that, recent Intel chips > should work with VTK. This page provides more detail if you expand the 4th > /3rd generation sections, etc. > > > > http://www.intel.com/support/graphics/sb/CS-033757.htm > > > > Intel 2500, 4000, 4200, 4400, 4600, 5000, 5100, 5200 and later should all > support OpenGL 3.2. Intel 3000/2000/HD Graphics support 2.1 but not 3.2, > but I?m not sure if they provide the required extensions. > > > > Thanks > > Ken > > > > Ken Martin PhD > > Chairman & CFO > > Kitware Inc. > > 28 Corporate Drive > > Clifton Park NY 12065 > > ken.martin at kitware.com > > 518 881-4901 (w) > > 518 371-4573 (f) > > > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > > > > *From:* vtk-developers [mailto:vtk-developers-bounces at vtk.org] *On Behalf > Of *Andrew Maclean > *Sent:* Tuesday, June 23, 2015 3:00 AM > *To:* VTK Developers; vtk > *Subject:* [vtk-developers] For those using OpenGL2 in the VTK build. > > > > Hi All > > > > On my laptop which has an Intel and NVidiia card, I just discovered that > my VTK programs were crashing with this message: > > > > "Warning: In \VTK\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 426 > > vtkWin32OpenGLRenderWindow (0000000604268430): VTK is designed to work > with OpenGL version 3.2 but it appears it has been given a context that > does not support 3.2. VTK will run in a compatibility mode designed to work > with OpenGL 2.1 but some features may not work. > > > > ERROR: In\ VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 366 > > vtkShaderProgram (0000000607E3F060): 1: > > > > ... > > ERROR: In \VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 367 > > vtkShaderProgram (0000000607E3F060): ERROR: 0:20: '' : extension > 'GL_EXT_gpu_shader4' is not supported > > " > > > > To get rid of this error you must set the NVidia graphics processor as > default. > > > > To do this: > > Go to the NVIDIA Control Panel (right-click on the desktop), then: > 3D Settings-> Manage 3D settings > The Tab "Preferred graphics processor " , select > High performance NVidia processor > > > > Regards > > Andrew > > -- > > ___________________________________________ > Andrew J. P. Maclean > > ___________________________________________ > -- ___________________________________________ Andrew J. P. Maclean ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Jun 23 23:45:47 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 23 Jun 2015 23:45:47 -0400 Subject: [vtkusers] Mailing list or forum or SO? In-Reply-To: <1434550615008-5732413.post@n5.nabble.com> References: <1434550615008-5732413.post@n5.nabble.com> Message-ID: Hi Lonni, I think this is an interesting idea. The VTK community always in need of more people answering questions posted to the mailing list, but there isn't really a way to reward people for doing so. Perhaps StackOverflow's reputation mechanism might encourage more people to answer questions. The mailing list obviously lacks that kind of formal mechanism. I personally don't check StackOverflow that often to answer VTK questions, though I know some core VTK developers do. I wonder what the effect would be if people posted questions on StackOverflow and then sent an email to the mailing list with a link to the question. You might get more activity on StackOverflow and thus maybe more overall question answering going on. It couldn't hurt to try. Cory On Wed, Jun 17, 2015 at 10:16 AM, Lonni Besan?on wrote: > Hello all, > > I'm quite new to the VTK community and VTK in general. I have many questions > and some of them have been answered here of course :). > > I saw an old thread on here however asking why the community doesn't switch > to a forum form. I'm not a big fan of forums either but I think that we > could use StackOverflow for that purpose. There is already a vtk tag even > though less than 900 questions have been asked on there. > > I reckon it would be a good idea. All of us are coders and we all use stack > overflow regularly. > It is easier to post code there and the comment/answer system is great. > > Just wanted to know your opinion about it. > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/Mailing-list-or-forum-or-SO-tp5732413.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- Cory Quammen R&D Engineer Kitware, Inc. From lonni.besancon at gmail.com Wed Jun 24 02:05:05 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 23 Jun 2015 23:05:05 -0700 (MST) Subject: [vtkusers] Mailing list or forum or SO? In-Reply-To: References: <1434550615008-5732413.post@n5.nabble.com> Message-ID: <1435125905093-5732512.post@n5.nabble.com> Indeed, I reckon the reputation system has proven to be useful in the past and it will surely works for VTK too. So far the number of questions asked on VTK is quite low on SO but I think the advantages it offers are useful: easier to post code, reputation system, answers easy to find via Google afterwards so as to avoid duplicates, ... Would love to get the opinion of other members of the community and more precisely of people from Kitware that would be awesome. -- View this message in context: http://vtk.1045678.n5.nabble.com/Mailing-list-or-forum-or-SO-tp5732413p5732512.html Sent from the VTK - Users mailing list archive at Nabble.com. From franciscolopezdelafranca at gmail.com Wed Jun 24 06:22:13 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Wed, 24 Jun 2015 12:22:13 +0200 Subject: [vtkusers] Iterate over an image Message-ID: Hi everybody, I've got a 3D image in NIFTI format. It is a binary image with 0 values for background and 1 values for objects. I've coded a function to count the number of 1's in the image in the following way: int* dims = _imageData->GetDimensions(); int count= 0; int * voxel; for (int z = 0; z < dims[2]; z++) { for (int y = 0; y < dims[1]; y++) { for (int x = 0; x < dims[0]; x++) { voxel = static_cast(_imageData->GetScalarPointer(x,y,z)); if ( voxel[0] == 1 ) { count++; } } } } However, this function does not detect any 1 in the image. I've implemented another function in ITK, by using ITK image iterators, and the result is the expected. It detects hundreds of voxels with value 1 (also checked with the 3D Slicer tool). Does anyone know what the problem could be in my VTK code? Does VTK provide iterators like ITK does? Thank you very much. My best regards. /Francisco -------------- next part -------------- An HTML attachment was scrubbed... URL: From franciscolopezdelafranca at gmail.com Wed Jun 24 07:04:18 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Wed, 24 Jun 2015 13:04:18 +0200 Subject: [vtkusers] Iterate over an image In-Reply-To: References: Message-ID: Hi again, I answer to myself in case it can help someone someday. I've changed the voxel type to unsigned char and it works as expected, that is, instead of "int* voxel", I've changed it to "unsigned char* voxel". Only with this little change it works right. Greetings. 2015-06-24 12:22 GMT+02:00 Francisco Lopez de la Franca < franciscolopezdelafranca at gmail.com>: > Hi everybody, > I've got a 3D image in NIFTI format. It is a binary image with 0 values > for background and 1 values for objects. > > > I've coded a function to count the number of 1's in the image in the > following way: > > int* dims = _imageData->GetDimensions(); > > int count= 0; > int * voxel; > for (int z = 0; z < dims[2]; z++) > { > for (int y = 0; y < dims[1]; y++) > { > for (int x = 0; x < dims[0]; x++) > { > voxel = > static_cast(_imageData->GetScalarPointer(x,y,z)); > > if ( voxel[0] == 1 ) { > count++; > } > } > } > } > > However, this function does not detect any 1 in the image. > > I've implemented another function in ITK, by using ITK image iterators, > and the result is the expected. It detects hundreds of voxels with value 1 > (also checked with the 3D Slicer tool). > > Does anyone know what the problem could be in my VTK code? Does VTK > provide iterators like ITK does? > > Thank you very much. > My best regards. > /Francisco > -------------- next part -------------- An HTML attachment was scrubbed... URL: From franciscolopezdelafranca at gmail.com Wed Jun 24 07:17:16 2015 From: franciscolopezdelafranca at gmail.com (Francisco Lopez de la Franca) Date: Wed, 24 Jun 2015 13:17:16 +0200 Subject: [vtkusers] Iterate over an image In-Reply-To: References: Message-ID: Sorry for the annoyances, but I've tested again my code (with pixel type to unsigned char) against another image with a few pixels with value 1 and it does not detect anyone. However, in ITK, either with unsigned char or int, it always detects all the points to 1. Thanks. 2015-06-24 13:04 GMT+02:00 Francisco Lopez de la Franca < franciscolopezdelafranca at gmail.com>: > Hi again, > I answer to myself in case it can help someone someday. > I've changed the voxel type to unsigned char and it works as expected, > that is, instead of "int* voxel", I've changed it to "unsigned char* > voxel". Only with this little change it works right. > Greetings. > > 2015-06-24 12:22 GMT+02:00 Francisco Lopez de la Franca < > franciscolopezdelafranca at gmail.com>: > >> Hi everybody, >> I've got a 3D image in NIFTI format. It is a binary image with 0 values >> for background and 1 values for objects. >> >> >> I've coded a function to count the number of 1's in the image in the >> following way: >> >> int* dims = _imageData->GetDimensions(); >> >> int count= 0; >> int * voxel; >> for (int z = 0; z < dims[2]; z++) >> { >> for (int y = 0; y < dims[1]; y++) >> { >> for (int x = 0; x < dims[0]; x++) >> { >> voxel = >> static_cast(_imageData->GetScalarPointer(x,y,z)); >> >> if ( voxel[0] == 1 ) { >> count++; >> } >> } >> } >> } >> >> However, this function does not detect any 1 in the image. >> >> I've implemented another function in ITK, by using ITK image iterators, >> and the result is the expected. It detects hundreds of voxels with value 1 >> (also checked with the 3D Slicer tool). >> >> Does anyone know what the problem could be in my VTK code? Does VTK >> provide iterators like ITK does? >> >> Thank you very much. >> My best regards. >> /Francisco >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From inglis.dl at gmail.com Wed Jun 24 09:35:43 2015 From: inglis.dl at gmail.com (DL I) Date: Wed, 24 Jun 2015 09:35:43 -0400 Subject: [vtkusers] How to set normal of vtkImagePlaneWidget ? In-Reply-To: References: Message-ID: you cannot set a normal without somehow specifying how the plane would be positioned relative to it. A normal is only a direction: you need at least one position and a direction to define any plane. vtkImagePlaneWidget is further constrained because it has edges and this is why it has methods to define it : SetPoint1, SetPoint2, SetOrigin. The general mathematical definition of a plane does not impose such constraints (ie., it has no edges), and so a point and a normal are sufficient to define it. Dean On Tue, Jun 23, 2015 at 9:32 PM, ???? wrote: > Hi, DL I, > > The means you recommended is suited to calculate the normal according to > orgin, point1 and point2. But I just want to change the normal to specified > value, and the value of orgin, point1 or point2 are unknown. > > ------------------ ???? ------------------ > *???:* "DL I";; > *????:* 2015?6?23?(???) ??9:37 > *???:* "????"; > *??:* "vtkusers"; > *??:* Re: [vtkusers] How to set normal of vtkImagePlaneWidget ? > > Hi, > > there is no SetNormal() method but a plane normal can be defined from 3 > points > and vtkImagePlaneWidget allows SetPoint1(), SetPoint2(), SetOrigin() . > > try this (pseudocode): > > if you define your normal from an origin, o and 2 other points p1, p2 > such that p1 , p2 and o define a plane (and also 3 corners of the widget) > then a normal to the plane, n, can be found with > po1 = p1 - o; > po2 = p2 - o; > n = po1/||po1|| x po1/||po2|| > > where x is the cross product operator and ||.|| is the norm of a vector. > To set the widget's plane normal, you do so indirectly from p1, p2 and o: > > w.SetPoint1(p1) > w.SetPoint2(p2) > w.SetOrigin(o) > w.UpdatePlacement() > > > best, > Dean > > > > On Mon, Jun 22, 2015 at 10:14 PM, ???? wrote: > >> I just found method GetNormal() of vtkImagePlaneWidget, but no >> SetNormal(). I want to set the plane normal, how should I do it ? >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anushaba at buffalo.edu Wed Jun 24 10:01:09 2015 From: anushaba at buffalo.edu (Anusha Balasubramoniam) Date: Wed, 24 Jun 2015 10:01:09 -0400 Subject: [vtkusers] Reading a .stl file Message-ID: Dear All, I am trying to read a .stl file. So to start with the code : http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadSTL The portion highlighted in red has the name of the file. But apart from that does the file have to be in the same folder where all the code is stored? Or it can be any file on the computer. Kindly let me know. And apart from that, the CMakeList.txt can be copied from the link above? No changes have to be made? Thank you, Anusha -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Wed Jun 24 10:05:25 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 24 Jun 2015 10:05:25 -0400 Subject: [vtkusers] Reading a .stl file In-Reply-To: References: Message-ID: Anusha, The file name will either need to be a file in the executing program's current working directory, or you will need to provide a full path to the file location. The CMakeLists.txt file should be fine to copy without changes. Best, Cory On Wed, Jun 24, 2015 at 10:01 AM, Anusha Balasubramoniam wrote: > Dear All, > > I am trying to read a .stl file. So to start with the code : > http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadSTL > > The portion highlighted in red has the name of the file. But apart from that > does the file have to be in the same folder where all the code is stored? Or > it can be any file on the computer. > > Kindly let me know. And apart from that, the CMakeList.txt can be copied > from the link above? No changes have to be made? > > Thank you, > Anusha > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. From marcus.hanwell at kitware.com Wed Jun 24 10:35:07 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Wed, 24 Jun 2015 10:35:07 -0400 Subject: [vtkusers] [vtk-developers] For those using OpenGL2 in the VTK build. In-Reply-To: References: <93a9a0fe0e00b08a6a9682d837c2cf0f@mail.gmail.com> Message-ID: Hi, I think there is some additional complication here too, my Linux Dell Sputnik2 laptop has HD Graphics 4000 embedded graphics. On Ubuntu 14.04 (the last LTS) it only claims to support GL 3.0 (and fails to do volume rendering on master at present, although this was working and we are looking into it). The Intel driver on Linux is built on the Mesa infrastructure, and it seems to lag the chips capabilities (and is also held back by what Ubuntu backport in the mesa version they ship I believe). It does support a number of extensions, and I am trying to keep up with testing as I want to see our rendering working on machines like this if possible. Marcus On Tue, Jun 23, 2015 at 7:40 PM, Andrew Maclean wrote: > Hi Ken, > That is a useful link. > > My Laptop has an Intel HD Graphics 3000 and NVIDIA GeForceGT 540M. So the > Intel card only supports OpenGL 3.1 whilst the NVidia card supports > OpenGL4.5 and Open CL1.1 > It seems the NVidia card is supporting all the required extensions but not > the Intel card. > > Regards > Andrew > > On Tue, Jun 23, 2015 at 10:37 PM, Ken Martin wrote: >> >> Morning Andrew, >> >> >> >> Yes, for laptops with multiple graphics options you probably want to go >> with the dedicated graphics chip. Having said that, recent Intel chips >> should work with VTK. This page provides more detail if you expand the >> 4th/3rd generation sections, etc. >> >> >> >> http://www.intel.com/support/graphics/sb/CS-033757.htm >> >> >> >> Intel 2500, 4000, 4200, 4400, 4600, 5000, 5100, 5200 and later should all >> support OpenGL 3.2. Intel 3000/2000/HD Graphics support 2.1 but not 3.2, >> but I?m not sure if they provide the required extensions. >> >> >> >> Thanks >> >> Ken >> >> >> >> Ken Martin PhD >> >> Chairman & CFO >> >> Kitware Inc. >> >> 28 Corporate Drive >> >> Clifton Park NY 12065 >> >> ken.martin at kitware.com >> >> 518 881-4901 (w) >> >> 518 371-4573 (f) >> >> >> >> This communication, including all attachments, contains confidential and >> legally privileged information, and it is intended only for the use of the >> addressee. Access to this email by anyone else is unauthorized. If you are >> not the intended recipient, any disclosure, copying, distribution or any >> action taken in reliance on it is prohibited and may be unlawful. If you >> received this communication in error please notify us immediately and >> destroy the original message. Thank you. >> >> >> >> From: vtk-developers [mailto:vtk-developers-bounces at vtk.org] On Behalf Of >> Andrew Maclean >> Sent: Tuesday, June 23, 2015 3:00 AM >> To: VTK Developers; vtk >> Subject: [vtk-developers] For those using OpenGL2 in the VTK build. >> >> >> >> Hi All >> >> >> >> On my laptop which has an Intel and NVidiia card, I just discovered that >> my VTK programs were crashing with this message: >> >> >> >> "Warning: In \VTK\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 426 >> >> vtkWin32OpenGLRenderWindow (0000000604268430): VTK is designed to work >> with OpenGL version 3.2 but it appears it has been given a context that does >> not support 3.2. VTK will run in a compatibility mode designed to work with >> OpenGL 2.1 but some features may not work. >> >> >> >> ERROR: In\ VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 366 >> >> vtkShaderProgram (0000000607E3F060): 1: >> >> >> >> ... >> >> ERROR: In \VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 367 >> >> vtkShaderProgram (0000000607E3F060): ERROR: 0:20: '' : extension >> 'GL_EXT_gpu_shader4' is not supported >> >> " >> >> >> >> To get rid of this error you must set the NVidia graphics processor as >> default. >> >> >> >> To do this: >> >> Go to the NVIDIA Control Panel (right-click on the desktop), then: >> 3D Settings-> Manage 3D settings >> The Tab "Preferred graphics processor " , select >> High performance NVidia processor >> >> >> >> Regards >> >> Andrew >> >> -- >> >> ___________________________________________ >> Andrew J. P. Maclean >> >> ___________________________________________ > > > > > -- > ___________________________________________ > Andrew J. P. Maclean > > ___________________________________________ > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From emmasaunders123 at gmail.com Wed Jun 24 10:38:54 2015 From: emmasaunders123 at gmail.com (Emma Saunders) Date: Wed, 24 Jun 2015 15:38:54 +0100 Subject: [vtkusers] Video output vtkOggTheoraWriter Message-ID: Hi All, I am attempting to output video from a rendered moving sphere using vtkOggTheoraWriter and windowToImageFilter. I can output a series of png files but when attempting to write the video the quality is checkered, does this have anything to do with the size, or frame rate? Any advice appreciated, below is my code. int main(int, char *[]) { vtkSmartPointer sphereSource = vtkSmartPointer::New(); sphereSource->SetCenter(0.0, 0.0, 0.0); sphereSource->SetRadius(5.0); sphereSource->Update(); // Visualize vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputConnection(sphereSource->GetOutputPort()); vtkSmartPointer actor = vtkSmartPointer::New(); actor->SetMapper(mapper); vtkSmartPointer renderer = vtkSmartPointer::New(); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->AddRenderer(renderer); vtkSmartPointer renderWindowInteractor = vtkSmartPointer::New(); int *size1 = renderWindow->GetSize(); renderWindow->SetSize(size1[0]/2, size1[1]/2); renderWindowInteractor->SetRenderWindow(renderWindow); renderer->AddActor(actor); renderWindow->Render(); // Screenshot vtkSmartPointer windowToImageFilter = vtkSmartPointer::New(); windowToImageFilter->SetInput(renderWindow); windowToImageFilter->SetMagnification(1); windowToImageFilter->SetInputBufferTypeToRGBA(); windowToImageFilter->ReadFrontBufferOff(); windowToImageFilter->Update(); vtkSmartPointer writer = vtkSmartPointer::New(); writer->SetInputConnection(windowToImageFilter->GetOutputPort()); writer->SetFileName("output.mp4"); writer->Start(); int i; char filenames[16]; for(i=0;i<10;i++) { actor->RotateY(5); renderer->ResetCameraClippingRange(); renderWindow->Render(); windowToImageFilter->SetInput(renderWindow); renderer->ResetCamera(); windowToImageFilter->Modified(); windowToImageFilter->Update(); writer->Write(); } writer->End(); return EXIT_SUCCESS; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From anushaba at buffalo.edu Wed Jun 24 11:27:56 2015 From: anushaba at buffalo.edu (Anusha Balasubramoniam) Date: Wed, 24 Jun 2015 11:27:56 -0400 Subject: [vtkusers] Fwd: Reading a .stl file In-Reply-To: References: Message-ID: Dear All, I am trying to read .stl files. However, the program works with one .stl file but does not with the other. I'm not sure why is there an error. I am attaching a screenshot the error that it shows. Thank you, Anusha -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error5.JPG Type: image/jpeg Size: 190425 bytes Desc: not available URL: From cory.quammen at kitware.com Wed Jun 24 11:34:04 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 24 Jun 2015 11:34:04 -0400 Subject: [vtkusers] Fwd: Reading a .stl file In-Reply-To: References: Message-ID: Can you share the STL file that does not work? On Wed, Jun 24, 2015 at 11:27 AM, Anusha Balasubramoniam wrote: > Dear All, > > I am trying to read .stl files. However, the program works with one .stl > file but does not with the other. > > I'm not sure why is there an error. > > I am attaching a screenshot the error that it shows. > > Thank you, > Anusha > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. From eng.zainabnamh at yahoo.com Wed Jun 24 12:37:03 2015 From: eng.zainabnamh at yahoo.com (Eng. Zainab Namh) Date: Wed, 24 Jun 2015 09:37:03 -0700 Subject: [vtkusers] Build Kiwi for Android Message-ID: <1435163823.32089.YahooMailBasic@web161504.mail.bf1.yahoo.com> Hello, I am trying for a long time to build VES and Kiwi for Android. I have repeated the steps and followed the instructions of pat marion here: https://gist.github.com/patmarion/5775591 and when I run ./configure_cmake.sh the following error appears: zainab at zainab-Aspire-V3-772G:~/work/ves-master/Apps/Android/Kiwi$ ./configure_cmake.sh + VTK_DIR=/home/zainab/work/ves-master/Apps/Android/Kiwi/../CMakeBuild/build/CMakeExternals/Build/vtk-android + VES_DIR=/home/zainab/work/ves-master/Apps/Android/Kiwi/../CMakeBuild/build/CMakeExternals/Build/ves-android + TOOLCHAIN=/home/zainab/work/ves-master/Apps/Android/Kiwi/../../../CMake/toolchains/android.toolchain.cmake + mkdir -p /home/zainab/work/ves-master/Apps/Android/Kiwi + cd /home/zainab/work/ves-master/Apps/Android/Kiwi + /usr/bin/cmake -DCMAKE_TOOLCHAIN_FILE=/home/zainab/work/ves-master/Apps/Android/Kiwi/../../../CMake/toolchains/android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=8 -DVTK_DIR=/home/zainab/work/ves-master/Apps/Android/Kiwi/../CMakeBuild/build/CMakeExternals/Build/vtk-android -DVES_DIR=/home/zainab/work/ves-master/Apps/Android/Kiwi/../CMakeBuild/build/CMakeExternals/Build/ves-android /home/zainab/work/ves-master/Apps/Android/Kiwi CMake Warning (dev) at /usr/share/cmake-3.0/Modules/CMakeDetermineSystem.cmake:98 (include): Syntax Warning in cmake code at /home/zainab/work/ves-master/CMake/toolchains/android.toolchain.cmake:517:30 Argument not separated from preceding token by whitespace. Call Stack (most recent call first): CMakeLists.txt:2 (project) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMakeFiles/3.0.2/CMakeSystem.cmake:6 (include): Syntax Warning in cmake code at /home/zainab/work/ves-master/CMake/toolchains/android.toolchain.cmake:517:30 Argument not separated from preceding token by whitespace. Call Stack (most recent call first): CMakeLists.txt:2 (project) This warning is for project developers. Use -Wno-dev to suppress it. -- The imported target "vtkWrapTcl" references the file "/usr/bin/vtkWrapTcl" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkWrapTclInit" references the file "/usr/bin/vtkWrapTclInit" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkWrapPython" references the file "/usr/bin/vtkWrapPython" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkWrapPythonInit" references the file "/usr/bin/vtkWrapPythonInit" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkParseJava" references the file "/usr/bin/vtkParseJava" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkWrapJava" references the file "/usr/bin/vtkWrapJava" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkCommonTCL" references the file "/usr/lib/libvtkCommonTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkCommonPythonD" references the file "/usr/lib/libvtkCommonPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkCommonJava" references the file "/usr/lib/jni/libvtkCommonJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkFilteringTCL" references the file "/usr/lib/libvtkFilteringTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkFilteringPythonD" references the file "/usr/lib/libvtkFilteringPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkFilteringJava" references the file "/usr/lib/jni/libvtkFilteringJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkImagingTCL" references the file "/usr/lib/libvtkImagingTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkImagingPythonD" references the file "/usr/lib/libvtkImagingPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkImagingJava" references the file "/usr/lib/jni/libvtkImagingJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkGraphicsTCL" references the file "/usr/lib/libvtkGraphicsTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkGraphicsPythonD" references the file "/usr/lib/libvtkGraphicsPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkGraphicsJava" references the file "/usr/lib/jni/libvtkGraphicsJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkGenericFilteringTCL" references the file "/usr/lib/libvtkGenericFilteringTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkGenericFilteringPythonD" references the file "/usr/lib/libvtkGenericFilteringPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkGenericFilteringJava" references the file "/usr/lib/jni/libvtkGenericFilteringJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkIOTCL" references the file "/usr/lib/libvtkIOTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkIOPythonD" references the file "/usr/lib/libvtkIOPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkIOJava" references the file "/usr/lib/jni/libvtkIOJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkRenderingTCL" references the file "/usr/lib/libvtkRenderingTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkRenderingPythonD" references the file "/usr/lib/libvtkRenderingPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkRenderingJava" references the file "/usr/lib/jni/libvtkRenderingJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkRenderingPythonTkWidgets" references the file "/usr/lib/libvtkRenderingPythonTkWidgets.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkVolumeRenderingTCL" references the file "/usr/lib/libvtkVolumeRenderingTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkVolumeRenderingPythonD" references the file "/usr/lib/libvtkVolumeRenderingPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkVolumeRenderingJava" references the file "/usr/lib/jni/libvtkVolumeRenderingJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkHybridTCL" references the file "/usr/lib/libvtkHybridTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkHybridPythonD" references the file "/usr/lib/libvtkHybridPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkHybridJava" references the file "/usr/lib/jni/libvtkHybridJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkWidgetsTCL" references the file "/usr/lib/libvtkWidgetsTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkWidgetsPythonD" references the file "/usr/lib/libvtkWidgetsPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkWidgetsJava" references the file "/usr/lib/jni/libvtkWidgetsJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkParallelTCL" references the file "/usr/lib/libvtkParallelTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkParallelPythonD" references the file "/usr/lib/libvtkParallelPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkParallelJava" references the file "/usr/lib/jni/libvtkParallelJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkInfovisTCL" references the file "/usr/lib/libvtkInfovisTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkInfovisPythonD" references the file "/usr/lib/libvtkInfovisPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkInfovisJava" references the file "/usr/lib/jni/libvtkInfovisJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkGeovisTCL" references the file "/usr/lib/libvtkGeovisTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkGeovisPythonD" references the file "/usr/lib/libvtkGeovisPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkGeovisJava" references the file "/usr/lib/jni/libvtkGeovisJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkViewsTCL" references the file "/usr/lib/libvtkViewsTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkViewsPythonD" references the file "/usr/lib/libvtkViewsPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkViewsJava" references the file "/usr/lib/jni/libvtkViewsJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkQtChart" references the file "/usr/lib/libvtkQtChart.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "QVTK" references the file "/usr/lib/libQVTK.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkChartsTCL" references the file "/usr/lib/libvtkChartsTCL.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkChartsPythonD" references the file "/usr/lib/libvtkChartsPythonD.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkChartsJava" references the file "/usr/lib/jni/libvtkChartsJava.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtk" references the file "/usr/bin/vtk" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "pvtk" references the file "/usr/bin/pvtk" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. -- The imported target "vtkPythonCore" references the file "/usr/lib/libvtkPythonCore.so.5.8.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/vtk-5.8/VTKTargets.cmake" but not all the files it references. CMake Error at jni/CMakeLists.txt:7 (find_package): By not providing "FindVES.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "VES", but CMake did not find one. Could not find a package configuration file provided by "VES" with any of the following names: VESConfig.cmake ves-config.cmake Add the installation prefix of "VES" to CMAKE_PREFIX_PATH or set "VES_DIR" to a directory containing one of the above files. If "VES" provides a separate development package or SDK, be sure it has been installed. How to solve this problem? THANKS From Stephan.Franke at inpro.de Wed Jun 24 12:50:22 2015 From: Stephan.Franke at inpro.de (Franke, Stephan) Date: Wed, 24 Jun 2015 16:50:22 +0000 Subject: [vtkusers] vtk 6.1 TCL Wrapping problem Message-ID: Hello, I try to buid a tclkit with vtk 6.1 and tcl/tk 8.5.18 under windows 8 for the x64 architecture. I had done this with vtk 5.8 and tcl/tk 8.5.18 without problems. Now when I compile and link my tclkit against vtk 6.1 I get this unresolved externals: 2>------ Build started: Project: tclkit, Configuration: Release x64 ------ 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkcommontcl_Init 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkfilteringtcl_Init 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkgraphicstcl_Init 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkiotcl_Init 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkimagingtcl_Init 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkwidgetstcl_Init 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkvolumerenderingtcl_Init 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkrenderingtcl_Init 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkhybridtcl_Init 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkparalleltcl_Init 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkinfovistcl_Init 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkviewstcl_Init Did someone know what is missing here? Which vtk library contains these external symbols? Is there something that had changed since vtk 5.8, because with this version I can build my vtk-tclkit. That you very much in advance for your help. Best regards, Stephan Franke -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Wed Jun 24 13:23:36 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 24 Jun 2015 13:23:36 -0400 Subject: [vtkusers] vtk 6.1 TCL Wrapping problem In-Reply-To: References: Message-ID: Those libraries no longer exist in vtk 6.x. What does your CMakeLists.txt file look like for your app? On Wed, Jun 24, 2015 at 12:50 PM, Franke, Stephan wrote: > Hello, > > > > I try to buid a tclkit with vtk 6.1 and tcl/tk 8.5.18 under windows 8 for > the x64 architecture. > > I had done this with vtk 5.8 and tcl/tk 8.5.18 without problems. > > > > Now when I compile and link my tclkit against vtk 6.1 I get this unresolved > externals: > > > > 2>------ Build started: Project: tclkit, Configuration: Release x64 ------ > > 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkcommontcl_Init > > 2>kitInit.obj : error LNK2001: unresolved external symbol > Vtkfilteringtcl_Init > > 2>kitInit.obj : error LNK2001: unresolved external symbol > Vtkgraphicstcl_Init > > 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkiotcl_Init > > 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkimagingtcl_Init > > 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkwidgetstcl_Init > > 2>kitInit.obj : error LNK2001: unresolved external symbol > Vtkvolumerenderingtcl_Init > > 2>kitInit.obj : error LNK2001: unresolved external symbol > Vtkrenderingtcl_Init > > 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkhybridtcl_Init > > 2>kitInit.obj : error LNK2001: unresolved external symbol > Vtkparalleltcl_Init > > 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkinfovistcl_Init > > 2>kitInit.obj : error LNK2001: unresolved external symbol Vtkviewstcl_Init > > > > Did someone know what is missing here? > > Which vtk library contains these external symbols? > > Is there something that had changed since vtk 5.8, because with this version > I can build my vtk-tclkit. > > That you very much in advance for your help. > > > > Best regards, > > Stephan Franke > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From stephenshamilton at gmail.com Wed Jun 24 18:16:30 2015 From: stephenshamilton at gmail.com (Stephen Hamilton) Date: Wed, 24 Jun 2015 18:16:30 -0400 Subject: [vtkusers] vtkXMLImageDataWriter to buffer? Message-ID: Hi, I'm working on a web service that will allow users to generate and download vti files. I've gotten everything in place so far, but I'm stuck at how to serve the files. I *could* use the vtkXMLImageDataWriter to write to a temporary file and serve that file, however I would prefer to put it into a buffer and serve that buffer with mime type for the vti file. It appeared at first that I should use the SetWriteOutputToString, which is part of vtkXMLWriter, but it doesn't seem to be available on my setup (python using vtk 6). The problem is that I can't execute the Write() function without setting a filename--I would prefer if I could just give it a file handle then I could create an in memory file. I noticed that the error suggests that I can either set a file name or a stream. I'm thinking the stream might work, but I can't figure out how to do that either. Any help would be appreciated! Thanks. Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: From julien.jomier at kitware.com Thu Jun 25 03:32:53 2015 From: julien.jomier at kitware.com (Julien Jomier) Date: Thu, 25 Jun 2015 09:32:53 +0200 Subject: [vtkusers] ANN: CMake Course - Sept 7 in Lyon, France In-Reply-To: <5534C5BF.2020605@kitware.com> References: <53BD4650.6070909@kitware.com> <5534C5BF.2020605@kitware.com> Message-ID: <558BAEA5.4090509@kitware.com> Kitware will be holding a CMake training course on September 7, 2015 at Kitware's office in Lyon, France. This one-day course will cover CMake, CTest, CPack and CDash. Visit our website for more information and registration details (early registration and student discounts available): http://training.kitware.fr/browse/80 Note that the course will be taught in English. If you have any questions, please contact me directly or training at kitware.fr. We are looking forward to seeing you in Lyon, Julien -- Kitware SAS 26 rue Louis Gu?rin 69100 Villeurbanne, France http://www.kitware.eu From lonni.besancon at gmail.com Thu Jun 25 04:32:08 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 25 Jun 2015 01:32:08 -0700 (MST) Subject: [vtkusers] Build Kiwi for Android In-Reply-To: <1435163823.32089.YahooMailBasic@web161504.mail.bf1.yahoo.com> References: <1435163823.32089.YahooMailBasic@web161504.mail.bf1.yahoo.com> Message-ID: <1435221128319-5732534.post@n5.nabble.com> I think these lines cover the problem: / By not providing "FindVES.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "VES", but CMake did not find one. Could not find a package configuration file provided by "VES" with any of the following names: VESConfig.cmake ves-config.cmake Add the installation prefix of "VES" to CMAKE_PREFIX_PATH or set "VES_DIR" to a directory containing one of the above files. If "VES" provides a separate development package or SDK, be sure it has been installed. / However, as stated on blog posts, VES will be deprecated soon so you should try and use VTK support for android directly. That's what I'm trying to do and currently I have a bug which is reported here on the mailing list: http://vtk.1045678.n5.nabble.com/Android-undefined-reference-to-vtkRenderWindow-New-td5732418.html. So maybe you should try to build VTK with the android support and get back to me if you actually manage to build one of the examples provided ;). -- View this message in context: http://vtk.1045678.n5.nabble.com/Build-Kiwi-for-Android-tp5732528p5732534.html Sent from the VTK - Users mailing list archive at Nabble.com. From scc.wwl at gmail.com Thu Jun 25 05:58:59 2015 From: scc.wwl at gmail.com (Wenlong Wang) Date: Thu, 25 Jun 2015 10:58:59 +0100 Subject: [vtkusers] What is the principal of mesh decimation in vtkDecimatePro? Message-ID: Hi, All I'm using the to decimate my 3D meshes. However, I am not sure the decimation is random in nature, or it follows a principal to choose the decimated points? Many thanks. Kind regards Long -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Thu Jun 25 08:14:50 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Thu, 25 Jun 2015 08:14:50 -0400 Subject: [vtkusers] vtk 6.1 TCL Wrapping problem In-Reply-To: References: Message-ID: Please keep the mailing list on the replies... On Thu, Jun 25, 2015 at 2:19 AM, Franke, Stephan wrote: > Hallo Bill, > > first thanks for you replay. > At the bottom of this reply you will find my CMakefile. > In the file you will see that I am using the new libs from vtk 6.x (but it is possible that some libs are missing???). > I had the same idea that some libs are missing or that the external symbols like > Vtkcommontcl_Init and so on does not exists any more. > But I am not sure because in the vtktcl.c file there are still exists. > > Regards, > Stephan > > > CMAKE FILE: > =========================================== > project(TCLKIT) > > set(TCLKIT_SRCS > kitInit.c > rechan.c > pwb.c > vfs.c > zlib.c > ) > > get_filename_component(TRY_TCL ${TCL_INCLUDE_PATH} PATH) > get_filename_component(TRY_TK ${TK_INCLUDE_PATH} PATH) > > set(VTKIT_TCL_SRC ${TRY_TCL} CACHE PATH > "The root of the Tcl source code tree") > set(VTKIT_TK_SRC ${TRY_TK} CACHE PATH > "The root of the Tk source code tree") > > # Platform independent rules > include_directories("${VTKIT_TCL_SRC}/generic") > include_directories("${VTKIT_TK_SRC}/generic") > include_directories("${VTKIT_TK_SRC}/xlib") > include_directories("${CMAKE_CURRENT_SOURCE_DIR}") > include_directories("${CMAKE_BINARY_DIR}") > #include_directories(${VTK_SOURCE_DIR}/Utilities/vtkzlib "${CMAKE_CURRENT_SOURCE_DIR}") > > #link_directories(${VTK_TK_LIBRARY} ${VTK_TCL_LIBRARY}) > add_definitions(-DTK_LOCAL_APPINIT=TclKit_AppInit) > add_definitions(-DKIT_INCLUDES_TK -DKIT_INCLUDES_VTK) > > # Platform dependent rules > if(WIN32) > set(TCLKIT_SRCS ${TCLKIT_SRCS} ${VTKIT_TK_SRC}/win/winMain.c) > set(VTKIT_EXE_RESOURCE_FILES tclkit.rc ) > IF (NOT CMAKE_SIZEOF_VOID_P EQUAL 8) > ADD_DEFINITIONS(-D_USE_32BIT_TIME_T) > ENDIF() > include_directories("${VTKIT_TCL_SRC}/win") > include_directories("${VTKIT_TK_SRC}/win/rc") > link_directories(${TCL_WIN_EXTRA_LIBS}) > add_executable(tclkit WIN32 ${TCLKIT_SRCS} ${VTKIT_EXE_RESOURCE_FILES}) > # Tcl/Tk is linked with /GL so tclkit could do with /LTCG ... on windows > set_target_properties(tclkit PROPERTIES LINK_FLAGS "${LINK_FLAGS} -LTCG") > else() > set(TCLKIT_SRCS ${TCLKIT_SRCS} ${VTKIT_TK_SRC}/unix/tkAppInit.c) > include_directories("${VTKIT_TCL_SRC}/unix") > include_directories("${VTKIT_TK_SRC}/unix") > if(APPLE) > include_directories("${VTKIT_TK_SRC}/macosx}") > endif() > add_executable(tclkit ${TCLKIT_SRCS}) > endif() > > if(VTK_USE_COCOA) > #Strange, but you have to link against the Carbon framework > target_link_libraries(tclkit "-framework Carbon") > endif(VTK_USE_COCOA) > > message("VTK MAJOR NUMBER: ${VTK_MAJOR_VERSION}") > message("VTK_MINOR_VERSION: ${VTK_MINOR_VERSION}") > message ("VTK TCL WRAPPED: ${VTK_TCL_WRAPPED_MODULES}") > > # Libraries to link against > SET(VTK_VERSION "${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}") > SET(VTK_LIBRARY_DIRS "${VTK_DIR}/lib/Release") > target_link_libraries (tclkit > Mk4tcl > ${TCL_LIBRARY} > ${TK_LIBRARY} > ${VTK_LIBRARIES} > ${VTK_LIBRARY_DIRS}/vtk.lib > ${VTK_LIBRARY_DIRS}/vtkViewsInfovisTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkViewsGeovisTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkViewsCoreTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkViewsContextIIDTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingVolumeTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingVolumeOpenGLTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingVolumeAMRTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingTkTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingOpenGLTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingLODTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingLICTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingLabelTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingImageTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingGLtoPSTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingFreeTypeTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingFreeTypeOpenGLTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingCoreTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingContextIIDTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkRenderingAnnotationTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkParallelCoreTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOXMLTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOXMLParserTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOVideoTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOSQLTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOPLYTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOParallelTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIONetCDFTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOMovieTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOMINCTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOLSDynaTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOLegacyTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOInfovisTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOImportTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOImageTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOGeometryTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOExportTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOExodusTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOEnSightTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOCoreTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkIOAMRTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkInteractionWidgetsTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkInteractionStyleTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkInteractionImageTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkInfovisLayoutTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkInfovisCoreTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkImagingStencilTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkImagingStatisticsTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkImagingSourcesTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkImagingMorphologicalTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkImagingMathTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkImagingHybridTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkImagingGeneralTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkImagingFourierTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkImagingCoreTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkImagingColorTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkGeovisCoreTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersVerdictTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersTextureTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersStatisticsTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersSourcesTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersSMPTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersSelectionTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersProgrammableTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersParallelTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersParallelImagingTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersModelingTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersImagingTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersHyperTreeTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersHybridTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersGeometryTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersGenericTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersGeneralTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersFlowPathsTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersExtractionTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersCoreTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkFiltersAMRTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkDomainsChemistryTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkCommonTransformsTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkCommonSystemTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkCommonMiscTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkCommonMathTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkCommonExecutionModelTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkCommonDataModelTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkCommonCoreTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkCommonComputationalGeometryTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkCommonColorTCL-${VTK_VERSION}.lib > ${VTK_LIBRARY_DIRS}/vtkChartsCoreTCL-${VTK_VERSION}.lib) > > if (WIN32) > target_link_libraries(tclkit tcldde13sx) > target_link_libraries(tclkit tclreg12sx) > endif () > > IF(TARGET vtkRenderingCore) > message("RenderingCore FOUND") > add_definitions(-DKIT_INCLUDES_VTK_RENDERING) > endif() > > IF(TARGET vtkParallelCore) > message("ParallelCore FOUND") > add_definitions(-DKIT_INCLUDES_VTK_PARALLEL) > endif() > > IF(TARGET vtkInfovisCore) > message("InfovisCore FOUND") > add_definitions(-DKIT_INCLUDES_VTK_INFOVIS) > endif() > > IF(TARGET vtkViewsCore) > message("ViewsCore FOUND") > add_definitions(-DKIT_INCLUDES_VTK_VIEWS) > endif() > > #if (VTK_USE_RENDERING) > # target_link_libraries(tclkit ${VTK_LIBRARY_DIRS}/vtkRenderingCoreTCL-${VTK_VERSION}.lib) > # target_link_libraries(tclkit ${VTK_LIBRARY_DIRS}/vtkRenderingVolumeTCL-${VTK_VERSION}.lib) > # target_link_libraries(tclkit ${VTK_LIBRARY_DIRS}/vtkRenderingAnnotationTCL-${VTK_VERSION}.lib) > # target_link_libraries(tclkit ${VTK_LIBRARY_DIRS}/vtkInteractionWidgetsTCL-${VTK_VERSION}.lib) > # add_definitions(-DKIT_INCLUDES_VTK_RENDERING) > #endif () > > #if (VTK_USE_PARALLEL) > # target_link_libraries(tclkit ${VTK_LIBRARY_DIRS}/vtkParallelCoreTCL-${VTK_VERSION}.lib) > # add_definitions(-DKIT_INCLUDES_VTK_PARALLEL) > #endif () > > #if(VTK_USE_INFOVIS) > # target_link_libraries(tclkit ${VTK_LIBRARY_DIRS}/vtkInfovisCoreTCL-${VTK_VERSION}.lib) > # add_definitions(-DKIT_INCLUDES_VTK_INFOVIS) > #endif () > > #if(VTK_USE_VIEWS) > # target_link_libraries(tclkit ${VTK_LIBRARY_DIRS}/vtkViewsCoreTCL-${VTK_VERSION}.lib) > # add_definitions(-DKIT_INCLUDES_VTK_VIEWS) > #endif() > > include(${VTK_CMAKE_DIR}/vtkTclTkMacros.cmake) > VTK_GET_TCL_TK_VERSION ("TCLTK_MAJOR_VERSION" "TCLTK_MINOR_VERSION") > set (TCLTK_VERSION "${TCLTK_MAJOR_VERSION}${TCLTK_MINOR_VERSION}") > > # Compress the binary and append the runtime. > if (WIN32) > set (EXECUTABLE_OUTPUT_DIR "${VTKIT_BINARY_DIR}\\bin\\${CMAKE_CFG_INTDIR}") > string(REGEX REPLACE "/" "\\\\" EOD ${EXECUTABLE_OUTPUT_DIR}) > string(REGEX REPLACE "/" "\\\\" VSD ${VTKIT_SOURCE_DIR}) > add_custom_command(TARGET tclkit > POST_BUILD > COMMAND ${UPX_COMMAND} > ARGS -9 -f -o ${EOD}\\IWP-upx.exe ${EOD}\\tclkit.exe > COMMAND COPY > ARGS /B ${EOD}\\IWP-upx.exe+${VSD}\\Runtime\\runtime${TCLTK_VERSION}.kit ${EOD}\\IWP.exe > ) > else() > add_custom_command(TARGET tclkit > POST_BUILD > COMMAND ${UPX_COMMAND} -9 -f -o ../bin/IWP-upx ../bin/tclkit > ARGS > COMMAND cat > ARGS ../bin/IWP-upx ${VTKIT_SOURCE_DIR}/runtime/runtime${TCLTK_VERSION}.kit > ../bin/IWP > ) > endif() > -----Urspr?ngliche Nachricht----- > Von: Bill Lorensen [mailto:bill.lorensen at gmail.com] > Gesendet: Mittwoch, 24. Juni 2015 19:24 > An: Franke, Stephan > Cc: vtkusers at vtk.org > Betreff: Re: [vtkusers] vtk 6.1 TCL Wrapping problem > > Those libraries no longer exist in vtk 6.x. What does your CMakeLists.txt file look like for your app? > > > On Wed, Jun 24, 2015 at 12:50 PM, Franke, Stephan wrote: >> Hello, >> >> >> >> I try to buid a tclkit with vtk 6.1 and tcl/tk 8.5.18 under windows 8 >> for the x64 architecture. >> >> I had done this with vtk 5.8 and tcl/tk 8.5.18 without problems. >> >> >> >> Now when I compile and link my tclkit against vtk 6.1 I get this >> unresolved >> externals: >> >> >> >> 2>------ Build started: Project: tclkit, Configuration: Release x64 >> 2>------ >> >> 2>kitInit.obj : error LNK2001: unresolved external symbol >> 2>Vtkcommontcl_Init >> >> 2>kitInit.obj : error LNK2001: unresolved external symbol >> Vtkfilteringtcl_Init >> >> 2>kitInit.obj : error LNK2001: unresolved external symbol >> Vtkgraphicstcl_Init >> >> 2>kitInit.obj : error LNK2001: unresolved external symbol >> 2>Vtkiotcl_Init >> >> 2>kitInit.obj : error LNK2001: unresolved external symbol >> 2>Vtkimagingtcl_Init >> >> 2>kitInit.obj : error LNK2001: unresolved external symbol >> 2>Vtkwidgetstcl_Init >> >> 2>kitInit.obj : error LNK2001: unresolved external symbol >> Vtkvolumerenderingtcl_Init >> >> 2>kitInit.obj : error LNK2001: unresolved external symbol >> Vtkrenderingtcl_Init >> >> 2>kitInit.obj : error LNK2001: unresolved external symbol >> 2>Vtkhybridtcl_Init >> >> 2>kitInit.obj : error LNK2001: unresolved external symbol >> Vtkparalleltcl_Init >> >> 2>kitInit.obj : error LNK2001: unresolved external symbol >> 2>Vtkinfovistcl_Init >> >> 2>kitInit.obj : error LNK2001: unresolved external symbol >> 2>Vtkviewstcl_Init >> >> >> >> Did someone know what is missing here? >> >> Which vtk library contains these external symbols? >> >> Is there something that had changed since vtk 5.8, because with this >> version I can build my vtk-tclkit. >> >> That you very much in advance for your help. >> >> >> >> Best regards, >> >> Stephan Franke >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > Unpaid intern in BillsBasement at noware dot com -- Unpaid intern in BillsBasement at noware dot com From lonni.besancon at gmail.com Thu Jun 25 08:18:50 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Thu, 25 Jun 2015 05:18:50 -0700 (MST) Subject: [vtkusers] Unable to apply transforms to PolyData Message-ID: <1435234730474-5732537.post@n5.nabble.com> Hello everyone, I had a previous post on that topic that I was not able to solve since then. I want to be able to apply tranformations to Polydata but no matter how I try to do it, it just doesn't work. Here is what I have for "drawing" my polydata in a class call Drawing.cpp: /vtkSmartPointer clipPlane; vtkSmartPointer planeRep; vtkSmartPointer actorPlaneSource; vtkSmartPointer mainActor; vtkSmartPointer transformFilter; vtkSmartPointer translation ; vtkContextView* ctxView ; vtkRenderWindow* win ; vtkRenderer* ren ; vtkCamera* cam ; vtkSmartPointer inputPolyData;/ Then the read function is called and starts the rendering, here is the function: /void Drawing::read(){ std::string filename = BUNNY; // Read all the data from the file vtkSmartPointer reader =vtkSmartPointer::New(); reader->SetFileName(filename.c_str()); reader->Update(); inputPolyData = reader->GetOutput(); cout << "File Found and Loaded : " << filename << endl ; vtkSmartPointer translation = vtkSmartPointer::New(); translation->Translate(0.3, -0.05, 0); transformFilter = vtkSmartPointer::New(); //transformFilter->SetInputConnection(reader->GetOutputPort()); transformFilter->SetInputData(inputPolyData); transformFilter->SetTransform(translation); //transformFilter->Update(); vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputConnection(transformFilter->GetOutputPort()); mainActor = vtkSmartPointer::New(); mainActor->SetMapper(mapper); ren->AddActor(mainActor); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(win); vtkInteractorStyleMultiTouchCamera *style = vtkInteractorStyleMultiTouchCamera::New(); iren->SetInteractorStyle(style); //Start the event loop iren->Initialize(); iren->Start(); defineClipping(); win->PolygonSmoothingOn(); win->Render(); win->Start(); } / >From this, I have an other thread running a server that gets messages and has a pointer to my drawing object and is supposed to call one of these three functions depending on the message it gets from its clients: /void Drawing::scale(float k){ vtkSmartPointer transform =vtkSmartPointer::New(); transform->Scale(5,1,1); vtkSmartPointer transformFilter = vtkSmartPointer::New(); transformFilter->SetInputConnection(cone->GetOutputPort()); transformFilter->SetTransform(transform); mapper->SetInputConnection(transformFilter->GetOutputPort()); ren->GetActiveCamera(); } void Drawing::translate(float x, float y, float z){ cout << "Translate: " << x << " - " << " - " << y << " - " << z << endl ; vtkSmartPointer transform1a = vtkSmartPointer::New(); //transform1a->Translate(x,y,z); //transformFilter->SetTransform(transform1a); //transformFilter->Update(); double* position = mainActor->GetPosition(); mainActor->SetPosition(position[0]+x,position[1]+y,position[2]+z); } void Drawing::rotate(float x, float y, float z){ cout << "Rotate: " << x << " - " << " - " << y << " - " << z << endl ; vtkSmartPointer transform1a = vtkSmartPointer::New(); //transform1a->PostMultiply(); //transform1a->RotateX(x); //transform1a->RotateY(y); //transform1a->RotateZ(z); //mainActor->SetUserTransform(transform1a); mainActor->RotateWXYZ(20,1,0,0); }/ None of these functions work because nothing is changing in the rendering windows *unless I click in the rendering window itself.* So I thought maybe I should try and add to every transformation functions: /ctxView->Render();/ But when I do I get: Error the ressource is already busy. I'm a newbie in VTK but I really don't find the answer to my questions anywhere else and I'm quite puzzled not to be able to at least use some simple transformations. Any help will be greatly appreciated. Thanks in advance -- View this message in context: http://vtk.1045678.n5.nabble.com/Unable-to-apply-transforms-to-PolyData-tp5732537.html Sent from the VTK - Users mailing list archive at Nabble.com. From cicciodepa at libero.it Thu Jun 25 08:24:38 2015 From: cicciodepa at libero.it (cicciodepa at libero.it) Date: Thu, 25 Jun 2015 14:24:38 +0200 (CEST) Subject: [vtkusers] (no subject) Message-ID: <192695896.1353321435235078510.JavaMail.httpd@webmail-59.iol.local> goodmorning,I've a texture of a mesh in this format: 111.40 65.06 59.49111.32 65.11 59.44111.26 65.13 59.48111.05 64.93 59.24111.98 65.47 59.75112.55 65.71 59.87112.35 65.44 59.64112.23 65.17 59.43112.21 65.18 59.48.... is there a way to convert this format in PNG format (applyed to a mesh)?if it's not possible how can I open and see this texture? thanks Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From cicciodepa at libero.it Thu Jun 25 08:48:25 2015 From: cicciodepa at libero.it (cicciodepa at libero.it) Date: Thu, 25 Jun 2015 14:48:25 +0200 (CEST) Subject: [vtkusers] open/convert texture file Message-ID: <969906853.1363021435236505867.JavaMail.httpd@webmail-59.iol.local> goodmorning,I've a texture of a mesh in this format: 111.40 65.06 59.49111.32 65.11 59.44111.26 65.13 59.48111.05 64.93 59.24111.98 65.47 59.75112.55 65.71 59.87112.35 65.44 59.64112.23 65.17 59.43112.21 65.18 59.48.... is there a way to convert this format in PNG format (applyed to a mesh)?if it's not possible how can I open and see this texture? thanks Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Thu Jun 25 11:04:28 2015 From: sean at rogue-research.com (Sean McBride) Date: Thu, 25 Jun 2015 11:04:28 -0400 Subject: [vtkusers] Reading a .stl file In-Reply-To: References: Message-ID: <20150625150428.602582471@mail.rogue-research.com> On Wed, 24 Jun 2015 10:01:09 -0400, Anusha Balasubramoniam said: >I am trying to read a .stl file. So to start with the code : >http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadSTL > >The portion highlighted in red has the name of the file. But apart from >that does the file have to be in the same folder where all the code is >stored? Or it can be any file on the computer. > >Kindly let me know. And apart from that, the CMakeList.txt can be copied >from the link above? No changes have to be made? With which version of VTK? There was an STL reading regression that was fixed some weeks ago that may be affecting you... Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From anushaba at buffalo.edu Thu Jun 25 13:47:24 2015 From: anushaba at buffalo.edu (Anusha Balasubramoniam) Date: Thu, 25 Jun 2015 13:47:24 -0400 Subject: [vtkusers] Reading a .stl file In-Reply-To: <20150625150428.602582471@mail.rogue-research.com> References: <20150625150428.602582471@mail.rogue-research.com> Message-ID: Hi Sean, I am using VTK 6.2.0. The very latest one. Anusha On Thu, Jun 25, 2015 at 11:04 AM, Sean McBride wrote: > On Wed, 24 Jun 2015 10:01:09 -0400, Anusha Balasubramoniam said: > > >I am trying to read a .stl file. So to start with the code : > >http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadSTL > > > >The portion highlighted in red has the name of the file. But apart from > >that does the file have to be in the same folder where all the code is > >stored? Or it can be any file on the computer. > > > >Kindly let me know. And apart from that, the CMakeList.txt can be copied > >from the link above? No changes have to be made? > > With which version of VTK? There was an STL reading regression that was > fixed some weeks ago that may be affecting you... > > Cheers, > > -- > ____________________________________________________________ > Sean McBride, B. Eng sean at rogue-research.com > Rogue Research www.rogue-research.com > Mac Software Developer Montr?al, Qu?bec, Canada > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From surov.m.o at gmail.com Thu Jun 25 13:52:32 2015 From: surov.m.o at gmail.com (Maksim Surov) Date: Thu, 25 Jun 2015 20:52:32 +0300 Subject: [vtkusers] Animation of a growing curve Message-ID: Hi, all. I'd like to animate a phase trajectory of DE such that in each moment of time I add a small chunk to the curve. It should look like a "growing curve". I guess there are 2 ways: 1. Generate all the points by vtkParametricSpline, draw the curve, and set opacity = 0; in each time moment change opacity for a part of the curve 2. Generate a new curve, adding one new point to the spline curve. Anyway these look ugly for me. -- *Best regards, * *Maksim Surov* -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Thu Jun 25 15:49:28 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Thu, 25 Jun 2015 12:49:28 -0700 (MST) Subject: [vtkusers] Ruler / Viewport In-Reply-To: <1434487559215-5732393.post@n5.nabble.com> References: <5040A7BC.9070500@joher.com> <1434487559215-5732393.post@n5.nabble.com> Message-ID: <1435261768363-5732543.post@n5.nabble.com> Hello, Did you solve this issue? In positive case, how? Thanks, Joao. -- View this message in context: http://vtk.1045678.n5.nabble.com/Ruler-Viewport-tp5715723p5732543.html Sent from the VTK - Users mailing list archive at Nabble.com. From steve at sumost.ca Thu Jun 25 19:30:09 2015 From: steve at sumost.ca (Steve M. Robbins) Date: Thu, 25 Jun 2015 18:30:09 -0500 Subject: [vtkusers] ActiViz 5.8.0 recurring random AccessViolationException In-Reply-To: <28103731.tbIjOqmy7H@riemann> References: <1414551576904-5729273.post@n5.nabble.com> <1433162101874-5732072.post@n5.nabble.com> <28103731.tbIjOqmy7H@riemann> Message-ID: <20150625233009.GD3435@sumost.ca> On Mon, Jun 01, 2015 at 08:39:24AM -0500, Steve M. Robbins wrote: > On June 1, 2015 05:35:01 AM Christophe DUPERTHUY wrote: > > > > There seemed to be a latent concern on the way objects were de-allocated in > > the C# wrapping within a multi-threaded application. > > I'm having similar trouble with a C# application using mummy-wrapped VTK 5.8. > [...] > It turns > out that simply using VtkActor.GetProperty() [the actor is a vtkOpenGLActor] > is enough to cause the crash -- even if I don't actually use the property to > change the colour or anything else. So the problem appears to be triggered by > creating and destroying a large number of C# VtkProperty objects. Running Christophe's reproduction code [1] under the debugger, I can see the access violation consistently happens in the ** line of this function: void vtkInformation::ReportReferences(vtkGarbageCollector* collector) { this->Superclass::ReportReferences(collector); // Ask each key/value pair to report any references it holds. typedef vtkInformationInternals::MapType MapType; for(MapType::const_iterator i = this->Internal->Map.begin(); i != this->Internal->Map.end(); ++i) { ** i->first->Report(this, collector); } } This happens in the GC Finalizer thread, presumaably because there is a race between registration and un-registration and the map changes while iterating through. Guessing that my code has a similar race, I fixed the issue by simply caching the ActiViz objects for the lifetime of the underlying VTK objects. This avoids the reference-counting race and appears to work OK. But I have to do so for each object, which is error-prone. Christophe alludes to this being fixed in VTK 6.2 [2]. So naturally, I'm curious how this was achieved in the general case. Can Kitware comment? Thanks, -Steve [1] http://public.kitware.com/pipermail/vtkusers/2014-September/085071.html [2] http://public.kitware.com/pipermail/vtkusers/2015-June/091018.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 173 bytes Desc: Digital signature URL: From berk.geveci at kitware.com Thu Jun 25 21:30:30 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Thu, 25 Jun 2015 21:30:30 -0400 Subject: [vtkusers] Migration to VTK 6 - ShouldIReleaseData In-Reply-To: References: Message-ID: Where is this code? You can probably delete this but you may need to do (delete) more, depending on where it is. Best, -berk On Mon, Jun 22, 2015 at 4:18 PM, Nicole Kovacs wrote: > Hi all, > > > As I'm reading the documentation about migration to VTK 6, I got > confused regarding ShouldIReleaseData. Should it be completely removed or > should it be replaced by something else? > > > I'm not experienced with VTK, but I'm trying to learn as I upgrade some > code to VTK 6. I've encountered the following piece of code: > > if ( this->Input->ShouldIReleaseData() ) > this->Input->ReleaseData(); > Should I just delete it? > > > Thanks in advance, > > Nicole > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ram at centroidpic.com Fri Jun 26 01:14:18 2015 From: ram at centroidpic.com (Ram Sampath) Date: Thu, 25 Jun 2015 22:14:18 -0700 Subject: [vtkusers] QVTKWidget or QVTKWidget2 in Qt Application Message-ID: Hello everyone, Is there an example in which a QVTKWidget or QVTKWidget2 ( I am not sure which one to use ) is embedded in a Qt Application which already has a QGLWidget ? I have an application which already has a GL window doing updates but I want to sync that window with a better visualizer like VTK .Is there any example that I can follow to do such a thing ? Is it possible ? Thank you very much. Ram. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kantharaju.ds at gmail.com Fri Jun 26 01:59:45 2015 From: kantharaju.ds at gmail.com (Kantharaju) Date: Thu, 25 Jun 2015 22:59:45 -0700 (MST) Subject: [vtkusers] Rendering vtkChartXYZ using Qt(QVTKWidget) Message-ID: <1435298385696-5732552.post@n5.nabble.com> Hello all, I am trying to render 3d Chart, using vtkChartXYZ using Qt libraries ( Qt 5.3.0 & vtk 6.2.0), It renders the graph correctly but i am keep getting OpenGL Error Messages, i guess there must be some initializing steps of something, i have attached the source files for reference. will be helpful if somebody can through some leads on it thank you, following lines are the error messages. ERROR: In /opt/Projects/VTK-6.2.0-Src/VTK-6.2.0/Rendering/ContextOpenGL/vtkOpenGLContextDevice2D.cxx, line 1251 vtkOpenGLContextDevice2D (0x20a78a0): failed after PopMatrix 1 OpenGL errors detected 0 : (1284) Stack underflow ERROR: In /opt/Projects/VTK-6.2.0-Src/VTK-6.2.0/Rendering/ContextOpenGL/vtkOpenGLContextDevice2D.cxx, line 176 vtkOpenGLContextDevice2D (0x20a78a0): failed after End 1 OpenGL errors detected 0 : (1284) Stack underflow main.cpp vtkqtgraphTest.pro -- View this message in context: http://vtk.1045678.n5.nabble.com/Rendering-vtkChartXYZ-using-Qt-QVTKWidget-tp5732552.html Sent from the VTK - Users mailing list archive at Nabble.com. From kantharaju.ds at gmail.com Fri Jun 26 03:47:15 2015 From: kantharaju.ds at gmail.com (Kantharaju) Date: Fri, 26 Jun 2015 00:47:15 -0700 (MST) Subject: [vtkusers] vtk6.1/vtkChartXYZ mixing with 3D and OpenGL errors In-Reply-To: <1406167326951-5727953.post@n5.nabble.com> References: <1406159123745-5727951.post@n5.nabble.com> <1406163691083-5727952.post@n5.nabble.com> <1406167326951-5727953.post@n5.nabble.com> Message-ID: <1435304835877-5732553.post@n5.nabble.com> It worked perfectly, Thank you! -- View this message in context: http://vtk.1045678.n5.nabble.com/vtk6-1-vtkChartXYZ-mixing-with-3D-and-OpenGL-errors-tp5727951p5732553.html Sent from the VTK - Users mailing list archive at Nabble.com. From madaramh at gmail.com Fri Jun 26 05:15:31 2015 From: madaramh at gmail.com (madz) Date: Fri, 26 Jun 2015 02:15:31 -0700 (MST) Subject: [vtkusers] Extract all cell within range by thresholding. Message-ID: <1435310131629-5732554.post@n5.nabble.com> I tried the following method to extract cells from a polydata within a range, vtkSmartPointer threshold = vtkSmartPointer::New(); #if VTK_MAJOR_VERSION <= 5 threshold->SetInput(polydata); #else threshold->SetInputData(polydata); #endif threshold->ThresholdBetween(1364623,1598476); threshold->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_CELLS, "Index1"); threshold->Update(); However both this only gives an unstructured grid which displays the outer cells of the threshold with none of the inside cells. How do I get all the cells within the range, and not just the crust. Thank you. -- View this message in context: http://vtk.1045678.n5.nabble.com/Extract-all-cell-within-range-by-thresholding-tp5732554.html Sent from the VTK - Users mailing list archive at Nabble.com. From mightos at gmail.com Fri Jun 26 10:14:27 2015 From: mightos at gmail.com (mightos) Date: Fri, 26 Jun 2015 07:14:27 -0700 (MST) Subject: [vtkusers] How to color a polydata according to a WarpVector ? Message-ID: <1435328067832-5732555.post@n5.nabble.com> Hello, I'm using VTK to do some post treatment on 3D mechanical models. I've been able to display the displacements thanks to vtkWarpVector(). In my case, I simply set my polydata as an input to the vtkWarpVector, then I set as an input in a mapper the GetPolyDataOutput of this WarpVector. Now,* I want to be able to color the cells of my polydata according to the magnitude of the displacement.* I usually learn from examples but I haven't been able to find something similar to this on the web. May I have to help ? Thanks a lot. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-color-a-polydata-according-to-a-WarpVector-tp5732555.html Sent from the VTK - Users mailing list archive at Nabble.com. From pabloarubi at gmail.com Fri Jun 26 10:25:08 2015 From: pabloarubi at gmail.com (Pablo Rubi) Date: Fri, 26 Jun 2015 11:25:08 -0300 Subject: [vtkusers] Rotate actor programmatically while vtkRenderWindowInteractor is active Message-ID: (This message was also posted in StackOverflow, those who want to start using it as a platform for help, can answer in this link ) Hi all, I'm trying to rotate a vtkActor using vtkActor::RotateZ and then calling vtkRenderWindow::Render. It works fine (it rotates the actor) but I can't move, resize, or even focus the window. I suspected this was caused due to something not catching operating system events, so I added a vtkRenderWindowInteractor to the mix. Now I can move, resize and focus the window, but the actor is not rotating anymore. I've isolated the code in the snippet below, comment line 43 to see both effects: renderWindowInteractor->Start(); I'm compiling VTK 6.2 with mingw-w64 (GCC 4.9.1), running in Windows 8.1. I've uploaded the code in this repo with a small CMake setup so you can test it easily. Thanks for your help! ------------------------------- constexpr float planeWidth = 200.0f;constexpr float planeHeight = 100.0f; int main(){ auto renderer = vtkRenderer::New(); // Create render window auto renWin = vtkRenderWindow::New(); renWin->AddRenderer(renderer); renWin->SetSize(600,600); // Create a plane auto texturedPlane = vtkActor::New(); auto plane = vtkPlaneSource::New(); plane->SetOrigin(0, planeHeight, 0); plane->SetPoint1(planeWidth, planeHeight, 0); plane->SetPoint2(0, 0, 0); auto planeMapper = vtkPolyDataMapper::New(); planeMapper->SetInputConnection(plane->GetOutputPort()); texturedPlane->SetMapper(planeMapper); texturedPlane->SetOrigin(planeWidth / 2, planeHeight, 0); renderer->AddActor(texturedPlane); renderer->ResetCamera(); // Create a RenderWindowInteractor auto renderWindowInteractor = vtkRenderWindowInteractor::New(); renderWindowInteractor->SetRenderWindow(renWin); renderWindowInteractor->Start(); // <-- Comment this line! // Render float rot = 0.0f; while(true) { texturedPlane->SetOrientation(0,0,0); texturedPlane->RotateZ(rot++); renWin->Render(); }} -------------- next part -------------- An HTML attachment was scrubbed... URL: From DLRdave at aol.com Fri Jun 26 10:52:35 2015 From: DLRdave at aol.com (David Cole) Date: Fri, 26 Jun 2015 10:52:35 -0400 Subject: [vtkusers] Mailing list or forum or SO? In-Reply-To: <1435125905093-5732512.post@n5.nabble.com> References: <1434550615008-5732413.post@n5.nabble.com> <1435125905093-5732512.post@n5.nabble.com> Message-ID: Every time I've looked for the solution to a practical programming related issue in the last 6 or 7 years, an answer to a Stack Overflow question has been the most reliable source of information, often all right there in the answer, and if not, then in pages linked directly from the answer. Every time. Every. Single. Time. Usually in the top 5, and frequently in the top 2, Google results. There is absolutely no question: Stack Overflow beats mailing lists, hands down, for search-ability. So.... when your question is: "this won't compile or link, how come?" or "why doesn't this code work even though it builds ok?" or "this code works on Linux and Mac, but crashes in our Windows build, why?" or "what's wrong with this CMakeLists.txt snippet? it's not doing what I thought it should do..." -- it belongs on Stack Overflow. Once you've asked it there, by all means, post a link to it here in the VTK mailing list, with a simple rephrasing of the question. The mailing list is also very useful, and some questions are more general VTK philosophy type questions, and the people on the mailing list are generally friendly and helpful. Non-programming questions do not belong on Stack Overflow... So I wouldn't *stop* asking for help here... But if it's a programming question, it totally belongs on Stack Overflow, with a link posted here. My 2 cents worth, David C. On Wed, Jun 24, 2015 at 2:05 AM, Lonni Besan?on wrote: > Indeed, I reckon the reputation system has proven to be useful in the past > and it will surely works for VTK too. > So far the number of questions asked on VTK is quite low on SO but I think > the advantages it offers are useful: easier to post code, reputation system, > answers easy to find via Google afterwards so as to avoid duplicates, ... > > Would love to get the opinion of other members of the community and more > precisely of people from Kitware that would be awesome. > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/Mailing-list-or-forum-or-SO-tp5732413p5732512.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From andy.bauer at kitware.com Fri Jun 26 11:01:05 2015 From: andy.bauer at kitware.com (Andy Bauer) Date: Fri, 26 Jun 2015 11:01:05 -0400 Subject: [vtkusers] Mailing list or forum or SO? In-Reply-To: References: <1434550615008-5732413.post@n5.nabble.com> <1435125905093-5732512.post@n5.nabble.com> Message-ID: Good points Dave! The only criticism is that it's not always clear what a non-programming question is. I guess that can be handled in the reputation system and comments. On Fri, Jun 26, 2015 at 10:52 AM, David Cole via vtkusers wrote: > Every time I've looked for the solution to a practical programming > related issue in the last 6 or 7 years, an answer to a Stack Overflow > question has been the most reliable source of information, often all > right there in the answer, and if not, then in pages linked directly > from the answer. Every time. > > Every. Single. Time. > > Usually in the top 5, and frequently in the top 2, Google results. > There is absolutely no question: Stack Overflow beats mailing lists, > hands down, for search-ability. > > So.... when your question is: "this won't compile or link, how come?" > or "why doesn't this code work even though it builds ok?" or "this > code works on Linux and Mac, but crashes in our Windows build, why?" > or "what's wrong with this CMakeLists.txt snippet? it's not doing what > I thought it should do..." -- it belongs on Stack Overflow. Once > you've asked it there, by all means, post a link to it here in the VTK > mailing list, with a simple rephrasing of the question. > > The mailing list is also very useful, and some questions are more > general VTK philosophy type questions, and the people on the mailing > list are generally friendly and helpful. Non-programming questions do > not belong on Stack Overflow... So I wouldn't *stop* asking for help > here... But if it's a programming question, it totally belongs on > Stack Overflow, with a link posted here. > > > My 2 cents worth, > David C. > > > On Wed, Jun 24, 2015 at 2:05 AM, Lonni Besan?on > wrote: > > Indeed, I reckon the reputation system has proven to be useful in the > past > > and it will surely works for VTK too. > > So far the number of questions asked on VTK is quite low on SO but I > think > > the advantages it offers are useful: easier to post code, reputation > system, > > answers easy to find via Google afterwards so as to avoid duplicates, ... > > > > Would love to get the opinion of other members of the community and more > > precisely of people from Kitware that would be awesome. > > > > > > > > -- > > View this message in context: > http://vtk.1045678.n5.nabble.com/Mailing-list-or-forum-or-SO-tp5732413p5732512.html > > Sent from the VTK - Users mailing list archive at Nabble.com. > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From DLRdave at aol.com Fri Jun 26 11:26:48 2015 From: DLRdave at aol.com (David Cole) Date: Fri, 26 Jun 2015 11:26:48 -0400 Subject: [vtkusers] Mailing list or forum or SO? In-Reply-To: References: <1434550615008-5732413.post@n5.nabble.com> <1435125905093-5732512.post@n5.nabble.com> Message-ID: Oh, if you've ever asked a non-programming question, you know it most definitely IS handled... ;-) On Fri, Jun 26, 2015 at 11:01 AM, Andy Bauer wrote: > Good points Dave! The only criticism is that it's not always clear what a > non-programming question is. I guess that can be handled in the reputation > system and comments. > > On Fri, Jun 26, 2015 at 10:52 AM, David Cole via vtkusers > wrote: >> >> Every time I've looked for the solution to a practical programming >> related issue in the last 6 or 7 years, an answer to a Stack Overflow >> question has been the most reliable source of information, often all >> right there in the answer, and if not, then in pages linked directly >> from the answer. Every time. >> >> Every. Single. Time. >> >> Usually in the top 5, and frequently in the top 2, Google results. >> There is absolutely no question: Stack Overflow beats mailing lists, >> hands down, for search-ability. >> >> So.... when your question is: "this won't compile or link, how come?" >> or "why doesn't this code work even though it builds ok?" or "this >> code works on Linux and Mac, but crashes in our Windows build, why?" >> or "what's wrong with this CMakeLists.txt snippet? it's not doing what >> I thought it should do..." -- it belongs on Stack Overflow. Once >> you've asked it there, by all means, post a link to it here in the VTK >> mailing list, with a simple rephrasing of the question. >> >> The mailing list is also very useful, and some questions are more >> general VTK philosophy type questions, and the people on the mailing >> list are generally friendly and helpful. Non-programming questions do >> not belong on Stack Overflow... So I wouldn't *stop* asking for help >> here... But if it's a programming question, it totally belongs on >> Stack Overflow, with a link posted here. >> >> >> My 2 cents worth, >> David C. >> >> >> On Wed, Jun 24, 2015 at 2:05 AM, Lonni Besan?on >> wrote: >> > Indeed, I reckon the reputation system has proven to be useful in the >> > past >> > and it will surely works for VTK too. >> > So far the number of questions asked on VTK is quite low on SO but I >> > think >> > the advantages it offers are useful: easier to post code, reputation >> > system, >> > answers easy to find via Google afterwards so as to avoid duplicates, >> > ... >> > >> > Would love to get the opinion of other members of the community and more >> > precisely of people from Kitware that would be awesome. >> > >> > >> > >> > -- >> > View this message in context: >> > http://vtk.1045678.n5.nabble.com/Mailing-list-or-forum-or-SO-tp5732413p5732512.html >> > Sent from the VTK - Users mailing list archive at Nabble.com. >> > _______________________________________________ >> > Powered by www.kitware.com >> > >> > Visit other Kitware open-source projects at >> > http://www.kitware.com/opensource/opensource.html >> > >> > Please keep messages on-topic and check the VTK FAQ at: >> > http://www.vtk.org/Wiki/VTK_FAQ >> > >> > Search the list archives at: http://markmail.org/search/?q=vtkusers >> > >> > Follow this link to subscribe/unsubscribe: >> > http://public.kitware.com/mailman/listinfo/vtkusers >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers > > From sean at rogue-research.com Fri Jun 26 18:14:08 2015 From: sean at rogue-research.com (Sean McBride) Date: Fri, 26 Jun 2015 18:14:08 -0400 Subject: [vtkusers] Reading a .stl file In-Reply-To: References: <20150625150428.602582471@mail.rogue-research.com> Message-ID: <20150626221408.2053148011@mail.rogue-research.com> On Thu, 25 Jun 2015 13:47:24 -0400, Anusha Balasubramoniam said: >I am using VTK 6.2.0. The very latest one. I think the fix was after that. Try git master. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From shiyuwang.usc at gmail.com Fri Jun 26 18:46:15 2015 From: shiyuwang.usc at gmail.com (shiyu wang) Date: Fri, 26 Jun 2015 15:46:15 -0700 Subject: [vtkusers] cut a stl file and save them Message-ID: <74FB0AA6-3731-4C2A-89FC-8B44D295C36A@gmail.com> Dear all, I am quiet new to vtk. I meet some problems using vtk. This is what I am trying to do: 1. read an stl 2. cut the stl in half by a plane 3. add the surfaces to each parts to make it solid, ready for 3d printing (intersection of the plane and the stl model) 4. save the two separate stl file. I don?t know how to add the surface now.. I know add backface on actor will now help? I referred this: http://www.paraview.org/Wiki/VTK/Examples/Cxx/Meshes/SolidClip This is my current code: #include "vtkActor.h" #include "vtkClipPolyData.h" #include "vtkPlane.h" #include "vtkInteractorObserver.h" #include "vtkInteractorStyleSwitch.h" #include "vtkPolyDataMapper.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkSmartPointer.h" #include "vtkSphereSource.h" #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main(int argc, char ** argv) { if ( argc != 2 ) { cout << "Required parameters: Filename" << endl; return EXIT_FAILURE; } std::string inputFilename = argv[1]; vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName(inputFilename.c_str()); reader->Update(); vtkSmartPointer clip = vtkSmartPointer::New(); clip->SetValue(0); clip->GenerateClippedOutputOn(); clip->SetInputConnection(reader->GetOutputPort()); vtkSmartPointer plane = vtkSmartPointer::New(); //plane->SetNormal(-1.0, 0.0, 0.0); plane->SetNormal(0.0, 0.0, -1); plane->SetOrigin(0, 0, 12); clip->SetClipFunction (plane); vtkSmartPointer polyDataMapper = vtkSmartPointer::New(); polyDataMapper->SetInputConnection(clip->GetOutputPort()); vtkSmartPointer actor = vtkSmartPointer::New(); actor->SetMapper(polyDataMapper); // Create a property to be used for the back faces. Turn off all // shading by specifying 0 weights for specular and diffuse. Max the // ambient. vtkSmartPointer backFaces = vtkSmartPointer::New(); backFaces->SetSpecular(0.0); backFaces->SetDiffuse(0.0); backFaces->SetAmbient(1.0); backFaces->SetAmbientColor(1.0000, 0.3882, 0.2784); actor->SetBackfaceProperty(backFaces); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->SetSize(800,600); renderWindow->SetWindowName("VTK"); vtkSmartPointer renderWindowInteractor = vtkSmartPointer::New(); renderWindowInteractor->SetRenderWindow(renderWindow); vtkSmartPointer renderer = vtkSmartPointer::New(); renderer->AddActor(actor); renderWindow->AddRenderer(renderer); vtkInteractorStyleSwitch * styleSwitch = vtkInteractorStyleSwitch::SafeDownCast( renderWindowInteractor->GetInteractorStyle()); if (styleSwitch) styleSwitch->SetCurrentStyleToTrackballCamera(); renderWindow->Render(); renderWindowInteractor->Start(); // save stl vtkSmartPointer stlWriter = vtkSmartPointer::New(); stlWriter->SetFileName("cut.stl"); stlWriter->SetInputConnection(clip->GetOutputPort()); stlWriter->Write(); } Any suggestion would be helpful, thanks in advance! Best wishes, Shiyu Wang -------------- next part -------------- An HTML attachment was scrubbed... URL: From ram at centroidpic.com Fri Jun 26 20:19:13 2015 From: ram at centroidpic.com (Ram Sampath) Date: Fri, 26 Jun 2015 17:19:13 -0700 Subject: [vtkusers] vtkGUISupportQtOpenGL and vtkRenderingOpenGL2 Message-ID: Hello , I am trying to use QVtkWidget2 which seems to be part of vtkGUISupportQtOpenGL . I feel like this is the only way to get Qt/OpenGL/VTK window. . But I am getting the following error message. CMake Error at Rendering/OpenGL/CMakeLists.txt:3 (message): vtkRenderingOpenGL cannot be built with vtkRenderingOpenGL2, please disable one of them. Does anyone have experience in dealing with this issue ? Ideally I would like to solve the problem of rendering VTK into a seperate Qt OpenGL window . I already have another window which does a regular OpenGL update and it seems like things are getting mixed up with these two OpenGL contexts. Please let me know if you have an idea of how to fix this issue. Thanks Ram. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fozooni_ali at yahoo.com Sat Jun 27 04:46:37 2015 From: fozooni_ali at yahoo.com (ali fozooni) Date: Sat, 27 Jun 2015 08:46:37 +0000 (UTC) Subject: [vtkusers] 3D interpolation Message-ID: <1422046142.866120.1435394797922.JavaMail.yahoo@mail.yahoo.com> Dear all, I have more than 3 million points(The link: coordinates_ijk.mat?) and I want to fit an interpolant function(preferably on MATLAB) to this. I need to recall it, Consequently it should be as a function. | ? | | ? | | ? | ? | ? | ? | ? | | coordinates_ijk.matShared with Dropbox | | | | View on www.dropbox.com | Preview by Yahoo | | | | ? | ?Any help greatly appreciated Best Regards,Ali -------------- next part -------------- An HTML attachment was scrubbed... URL: From mightos at gmail.com Sat Jun 27 15:53:46 2015 From: mightos at gmail.com (mightos) Date: Sat, 27 Jun 2015 12:53:46 -0700 (MST) Subject: [vtkusers] How to color a polydata according to a WarpVector ? In-Reply-To: <1435328067832-5732555.post@n5.nabble.com> References: <1435328067832-5732555.post@n5.nabble.com> Message-ID: <1435434826460-5732567.post@n5.nabble.com> I'm really sad to see that the documentation, the community and the support behind VTK are quasi inexistant. I'm really a beginner but I know that VTK has a huge library and that it's performances are very good. However, the documentation is the very minimum in term of content and it is quite arid to read. I'm also quite surprised with this "forum" or "mailing-list" thing which, to me, looks like a pre-2000s exchange website. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-color-a-polydata-according-to-a-WarpVector-tp5732555p5732567.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Sat Jun 27 17:13:59 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Sat, 27 Jun 2015 14:13:59 -0700 (MST) Subject: [vtkusers] Mailing list or forum or SO? In-Reply-To: References: <1434550615008-5732413.post@n5.nabble.com> <1435125905093-5732512.post@n5.nabble.com> Message-ID: <1435439639504-5732569.post@n5.nabble.com> Alright, I guess then we should make it a habit to check both the mailing list and SO. Whenever I get a new programming issue I will post it on SO and then link it here so that people can also get an overview on the problem here and then the code on SO. Thanks for your opinion. -- View this message in context: http://vtk.1045678.n5.nabble.com/Mailing-list-or-forum-or-SO-tp5732413p5732569.html Sent from the VTK - Users mailing list archive at Nabble.com. From ram at centroidpic.com Sun Jun 28 00:06:10 2015 From: ram at centroidpic.com (Ram Sampath) Date: Sat, 27 Jun 2015 21:06:10 -0700 Subject: [vtkusers] GL Context sharing between a QGLWidget window and QVTK Message-ID: Hello, I was wondering if anyone has experiences with sharing GL contexts between an already existing GL display and VTK ? I would like to use VTK display in a separate window in my application which already has a Qt GL Window. Kindly pass me some examples if any.A little while ago there was a bug in using external GL Widget , I am not sure if that's fixed yet. Thanks Ram. -------------- next part -------------- An HTML attachment was scrubbed... URL: From madaramh at gmail.com Mon Jun 29 02:20:01 2015 From: madaramh at gmail.com (madz) Date: Sun, 28 Jun 2015 23:20:01 -0700 (MST) Subject: [vtkusers] Extract all cell within range by thresholding. In-Reply-To: <1435310131629-5732554.post@n5.nabble.com> References: <1435310131629-5732554.post@n5.nabble.com> Message-ID: <1435558801383-5732572.post@n5.nabble.com> What I want to do is basically extract all cells within a certain range and not just the surface cells. vtkThreshold outputs an unstructured grid with only the surface cells. When I used vtkThresholdPoints it gives the correct output with inside points as well, how can I achieve this with cells? Paraview threshold function outputs cells in the way I want. Does anyone know how its done? -- View this message in context: http://vtk.1045678.n5.nabble.com/Extract-all-cell-within-range-by-thresholding-tp5732554p5732572.html Sent from the VTK - Users mailing list archive at Nabble.com. From mightos at gmail.com Mon Jun 29 06:14:41 2015 From: mightos at gmail.com (mightos) Date: Mon, 29 Jun 2015 03:14:41 -0700 (MST) Subject: [vtkusers] How to use SetScalars ? Message-ID: <1435572881989-5732573.post@n5.nabble.com> Hi, I've been trying to use SetScalars to assign colors to my points. However, when I do polyData.GetPointData().SetScalars(Colors), everything is messed up. How is SetScalars working ? Is it assigning the first point to the first Scalar, and so on ? It looks like it doesn't assign the points in the right order. Thank you for your help. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-use-SetScalars-tp5732573.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Mon Jun 29 06:38:10 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Mon, 29 Jun 2015 03:38:10 -0700 (MST) Subject: [vtkusers] Unable to apply transforms to PolyData In-Reply-To: <1435234730474-5732537.post@n5.nabble.com> References: <1435234730474-5732537.post@n5.nabble.com> Message-ID: <1435574290773-5732574.post@n5.nabble.com> Follow this post on Stack Overflow here -- View this message in context: http://vtk.1045678.n5.nabble.com/Unable-to-apply-transforms-to-PolyData-tp5732537p5732574.html Sent from the VTK - Users mailing list archive at Nabble.com. From github at stefanlau.com Mon Jun 29 09:07:28 2015 From: github at stefanlau.com (Stefan Lau) Date: Mon, 29 Jun 2015 15:07:28 +0200 Subject: [vtkusers] vtkGL2PSExporter in combination with QVTKRenderWindowInteractor Message-ID: <55914310.50407@stefanlau.com> Hi all, I'm trying to export an image from my application that is written in PyQt4 to SVG. Since I want to get a vector graphic im using vtkGL2PSExporter for this purpose. Outside of PyQt4 I can export an SVG without any issues (I tried it by exporting an image from an example). When I'm trying to export the vtkRenderWindow that I get from QVTKRenderWindowInteractor.GetRenderWindow() the output is corrupted though. Some of the Elements get rendered correctly (i.e. a vtkScale) others just look randomly distorted. The same happens when I run a minimal example (attached to this mail). Did anyone experience this as well? Do I call something wrong? I appreciate any help. Thanks, Stefan Minimal Example: #!/usr/bin/env python import sys import os import vtk from PyQt4 import QtCore, QtGui from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor class MainWindow(QtGui.QMainWindow): def __init__(self, parent = None): QtGui.QMainWindow.__init__(self, parent) self.frame = QtGui.QFrame() self.vl = QtGui.QVBoxLayout() self.vtkWidget = QVTKRenderWindowInteractor(self.frame) self.vl.addWidget(self.vtkWidget) self.ren = vtk.vtkRenderer() self.vtkWidget.GetRenderWindow().AddRenderer(self.ren) self.iren = self.vtkWidget.GetRenderWindow().GetInteractor() # Create source source = vtk.vtkSphereSource() source.SetCenter(0, 0, 0) source.SetRadius(5.0) # Create a mapper mapper = vtk.vtkPolyDataMapper() mapper.SetInputConnection(source.GetOutputPort()) # Create an actor actor = vtk.vtkActor() actor.SetMapper(mapper) button = QtGui.QPushButton(self.frame) button.setGeometry(20, 20, 32, 32) button.setIcon(QtGui.QIcon.fromTheme('document-save')) button.setToolTip('Save Visualization') button.clicked.connect(self.store_visualization) self.ren.AddActor(actor) self.ren.ResetCamera() self.frame.setLayout(self.vl) self.setCentralWidget(self.frame) self.show() self.iren.Initialize() def store_visualization(self): file_name = str(QtGui.QFileDialog.getSaveFileName( self, 'Save Visualization', os.path.join(os.getcwd(), '/visualization.svg'), 'SVG-Images (*.svg)' )) if len(file_name) > 0: exporter = vtk.vtkGL2PSExporter() exporter.SetRenderWindow(self.vtkWidget.GetRenderWindow()) exporter.SetFileFormatToSVG() exporter.CompressOff() exporter.DrawBackgroundOff() exporter.SetFilePrefix(os.path.splitext(file_name)[0]) exporter.Write() if __name__ == "__main__": app = QtGui.QApplication(sys.argv) window = MainWindow() sys.exit(app.exec_()) -------------- next part -------------- An HTML attachment was scrubbed... URL: From github at stefanlau.com Mon Jun 29 08:54:47 2015 From: github at stefanlau.com (Stefan Lau) Date: Mon, 29 Jun 2015 14:54:47 +0200 Subject: [vtkusers] vtkGL2PSExporter in combination with QVTKRenderWindowInteractor Message-ID: <55914017.1010506@stefanlau.com> Hi, I'm trying to export an image from my application created in PyQt4 to a vector image. While the vtkGL2PSExporter works fine from outside my QT application, when trying to export the image from inside it the output looks corrupted. A minimal example can be found at the end of this email. Did I miss something (or call something incorrectly)? Is this a known issue? Version: VTK 6.1.0 Thanks for any help, Stefan Lau Minimal Example: #!/usr/bin/env python import sys import os import vtk from PyQt4 import QtCore, QtGui from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor class MainWindow(QtGui.QMainWindow): def __init__(self, parent = None): QtGui.QMainWindow.__init__(self, parent) self.frame = QtGui.QFrame() self.vl = QtGui.QVBoxLayout() self.vtkWidget = QVTKRenderWindowInteractor(self.frame) self.vl.addWidget(self.vtkWidget) self.ren = vtk.vtkRenderer() self.vtkWidget.GetRenderWindow().AddRenderer(self.ren) self.iren = self.vtkWidget.GetRenderWindow().GetInteractor() # Create source source = vtk.vtkSphereSource() source.SetCenter(0, 0, 0) source.SetRadius(5.0) # Create a mapper mapper = vtk.vtkPolyDataMapper() mapper.SetInputConnection(source.GetOutputPort()) # Create an actor actor = vtk.vtkActor() actor.SetMapper(mapper) button = QtGui.QPushButton(self.frame) button.setGeometry(20, 20, 32, 32) button.setIcon(QtGui.QIcon.fromTheme('document-save')) button.setToolTip('Save Visualization') button.clicked.connect(self.store_visualization) self.ren.AddActor(actor) self.ren.ResetCamera() self.frame.setLayout(self.vl) self.setCentralWidget(self.frame) self.show() self.iren.Initialize() def store_visualization(self, render_window): file_name = str(QtGui.QFileDialog.getSaveFileName( self, 'Save Visualization', os.path.join(os.getcwd(), '/visualization.svg'), 'SVG-Images (*.svg)' )) if len(file_name) > 0: exporter = vtk.vtkGL2PSExporter() exporter.SetRenderWindow(self.vtkWidget.GetRenderWindow()) exporter.SetFileFormatToSVG() exporter.CompressOff() exporter.DrawBackgroundOff() exporter.SetFilePrefix(os.path.splitext(file_name)[0]) exporter.Write() if __name__ == "__main__": app = QtGui.QApplication(sys.argv) window = MainWindow() sys.exit(app.exec_()) From dave.demarle at kitware.com Mon Jun 29 09:46:50 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Mon, 29 Jun 2015 09:46:50 -0400 Subject: [vtkusers] Extract all cell within range by thresholding. In-Reply-To: <1435310131629-5732554.post@n5.nabble.com> References: <1435310131629-5732554.post@n5.nabble.com> Message-ID: Apply the threshold filter to an unstructured grid that contains the 3D elements (voxels and tetrahedrons for example). Polydata can only contain 2D elements (quadrilaterals and triangles for example.) Was the polydata produces by an extract surface filter? If so, apply the threshold to whatever you fed into that instead. hth David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Jun 26, 2015 at 5:15 AM, madz wrote: > I tried the following method to extract cells from a polydata within a > range, > > vtkSmartPointer threshold = > vtkSmartPointer::New(); > #if VTK_MAJOR_VERSION <= 5 > threshold->SetInput(polydata); > #else > threshold->SetInputData(polydata); > #endif > threshold->ThresholdBetween(1364623,1598476); > threshold->SetInputArrayToProcess(0, 0, 0, > vtkDataObject::FIELD_ASSOCIATION_CELLS, "Index1"); > threshold->Update(); > > However both this only gives an unstructured grid which displays the outer > cells of the threshold with none of the inside cells. > > How do I get all the cells within the range, and not just the crust. > Thank you. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Extract-all-cell-within-range-by-thresholding-tp5732554.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Mon Jun 29 10:22:26 2015 From: david.lonie at kitware.com (David Lonie) Date: Mon, 29 Jun 2015 10:22:26 -0400 Subject: [vtkusers] vtkGL2PSExporter in combination with QVTKRenderWindowInteractor In-Reply-To: <55914017.1010506@stefanlau.com> References: <55914017.1010506@stefanlau.com> Message-ID: Running the test script works for me -- see attachment, the VTK window is on the right, and the svg rendered in chrome on the left. Some other issues that might be coming into play: 1) What Qt version are you using, and 2) Which OpenGL backend is being used on VTK? (Did you explicitly select the experimental OpenGL2 backend while building VTK?) Dave On Mon, Jun 29, 2015 at 8:54 AM, Stefan Lau wrote: > Hi, > > I'm trying to export an image from my application created in PyQt4 to a > vector image. While the vtkGL2PSExporter works fine from outside my QT > application, when trying to export the image from inside it the output > looks corrupted. A minimal example can be found at the end of this email. > Did I miss something (or call something incorrectly)? Is this a known issue? > > Version: VTK 6.1.0 > > Thanks for any help, > Stefan Lau > > > > Minimal Example: > #!/usr/bin/env python > > import sys > import os > import vtk > from PyQt4 import QtCore, QtGui > from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor > > class MainWindow(QtGui.QMainWindow): > > def __init__(self, parent = None): > QtGui.QMainWindow.__init__(self, parent) > > self.frame = QtGui.QFrame() > > self.vl = QtGui.QVBoxLayout() > self.vtkWidget = QVTKRenderWindowInteractor(self.frame) > self.vl.addWidget(self.vtkWidget) > > self.ren = vtk.vtkRenderer() > self.vtkWidget.GetRenderWindow().AddRenderer(self.ren) > self.iren = self.vtkWidget.GetRenderWindow().GetInteractor() > > # Create source > source = vtk.vtkSphereSource() > source.SetCenter(0, 0, 0) > source.SetRadius(5.0) > > # Create a mapper > mapper = vtk.vtkPolyDataMapper() > mapper.SetInputConnection(source.GetOutputPort()) > > # Create an actor > actor = vtk.vtkActor() > actor.SetMapper(mapper) > > button = QtGui.QPushButton(self.frame) > button.setGeometry(20, 20, 32, 32) > button.setIcon(QtGui.QIcon.fromTheme('document-save')) > button.setToolTip('Save Visualization') > > button.clicked.connect(self.store_visualization) > > self.ren.AddActor(actor) > > self.ren.ResetCamera() > > self.frame.setLayout(self.vl) > self.setCentralWidget(self.frame) > > self.show() > self.iren.Initialize() > > def store_visualization(self, render_window): > file_name = str(QtGui.QFileDialog.getSaveFileName( > self, > 'Save Visualization', > os.path.join(os.getcwd(), '/visualization.svg'), > 'SVG-Images (*.svg)' > )) > > if len(file_name) > 0: > exporter = vtk.vtkGL2PSExporter() > exporter.SetRenderWindow(self.vtkWidget.GetRenderWindow()) > exporter.SetFileFormatToSVG() > exporter.CompressOff() > exporter.DrawBackgroundOff() > exporter.SetFilePrefix(os.path.splitext(file_name)[0]) > exporter.Write() > > > if __name__ == "__main__": > app = QtGui.QApplication(sys.argv) > window = MainWindow() > sys.exit(app.exec_()) > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Mon Jun 29 10:23:03 2015 From: david.lonie at kitware.com (David Lonie) Date: Mon, 29 Jun 2015 10:23:03 -0400 Subject: [vtkusers] vtkGL2PSExporter in combination with QVTKRenderWindowInteractor In-Reply-To: References: <55914017.1010506@stefanlau.com> Message-ID: and the attachment... On Mon, Jun 29, 2015 at 10:22 AM, David Lonie wrote: > Running the test script works for me -- see attachment, the VTK window is > on the right, and the svg rendered in chrome on the left. > > Some other issues that might be coming into play: > > 1) What Qt version are you using, and > 2) Which OpenGL backend is being used on VTK? (Did you explicitly select > the experimental OpenGL2 backend while building VTK?) > > Dave > > > On Mon, Jun 29, 2015 at 8:54 AM, Stefan Lau wrote: > >> Hi, >> >> I'm trying to export an image from my application created in PyQt4 to a >> vector image. While the vtkGL2PSExporter works fine from outside my QT >> application, when trying to export the image from inside it the output >> looks corrupted. A minimal example can be found at the end of this email. >> Did I miss something (or call something incorrectly)? Is this a known issue? >> >> Version: VTK 6.1.0 >> >> Thanks for any help, >> Stefan Lau >> >> >> >> Minimal Example: >> #!/usr/bin/env python >> >> import sys >> import os >> import vtk >> from PyQt4 import QtCore, QtGui >> from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor >> >> class MainWindow(QtGui.QMainWindow): >> >> def __init__(self, parent = None): >> QtGui.QMainWindow.__init__(self, parent) >> >> self.frame = QtGui.QFrame() >> >> self.vl = QtGui.QVBoxLayout() >> self.vtkWidget = QVTKRenderWindowInteractor(self.frame) >> self.vl.addWidget(self.vtkWidget) >> >> self.ren = vtk.vtkRenderer() >> self.vtkWidget.GetRenderWindow().AddRenderer(self.ren) >> self.iren = self.vtkWidget.GetRenderWindow().GetInteractor() >> >> # Create source >> source = vtk.vtkSphereSource() >> source.SetCenter(0, 0, 0) >> source.SetRadius(5.0) >> >> # Create a mapper >> mapper = vtk.vtkPolyDataMapper() >> mapper.SetInputConnection(source.GetOutputPort()) >> >> # Create an actor >> actor = vtk.vtkActor() >> actor.SetMapper(mapper) >> >> button = QtGui.QPushButton(self.frame) >> button.setGeometry(20, 20, 32, 32) >> button.setIcon(QtGui.QIcon.fromTheme('document-save')) >> button.setToolTip('Save Visualization') >> >> button.clicked.connect(self.store_visualization) >> >> self.ren.AddActor(actor) >> >> self.ren.ResetCamera() >> >> self.frame.setLayout(self.vl) >> self.setCentralWidget(self.frame) >> >> self.show() >> self.iren.Initialize() >> >> def store_visualization(self, render_window): >> file_name = str(QtGui.QFileDialog.getSaveFileName( >> self, >> 'Save Visualization', >> os.path.join(os.getcwd(), '/visualization.svg'), >> 'SVG-Images (*.svg)' >> )) >> >> if len(file_name) > 0: >> exporter = vtk.vtkGL2PSExporter() >> exporter.SetRenderWindow(self.vtkWidget.GetRenderWindow()) >> exporter.SetFileFormatToSVG() >> exporter.CompressOff() >> exporter.DrawBackgroundOff() >> exporter.SetFilePrefix(os.path.splitext(file_name)[0]) >> exporter.Write() >> >> >> if __name__ == "__main__": >> app = QtGui.QApplication(sys.argv) >> window = MainWindow() >> sys.exit(app.exec_()) >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: qsvg.png Type: image/png Size: 35058 bytes Desc: not available URL: From dave.demarle at kitware.com Mon Jun 29 10:41:59 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Mon, 29 Jun 2015 10:41:59 -0400 Subject: [vtkusers] vtk 6.3 and vtk 7.0 Message-ID: Hey vtkers, We are hoping to do a vtk 6.3 release in the next couple of weeks and then immediately follow that up with a 7.0 release. We'd are putting out a 6.3 out in order to: * deprecate the existing zero copy array API in preparation for a significant refactoring that will come in 7.0. The refactor will make zero copy arrays both simpler to use and perform better. * package up all of the progress that has been made in the master branch's OpenGL2 surface and volume rendering. The vtkpython binaries will switch over to using the OpenGL2 back end this release. Please let us know if you have any feedback, critical bugs especially, and developers let us know if there is any work you have in a partially finished state that we should be sure to get into 6.3. If all goes well we'll have a release candidate for 6.3 next week. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 -------------- next part -------------- An HTML attachment was scrubbed... URL: From github at stefanlau.com Mon Jun 29 12:14:01 2015 From: github at stefanlau.com (Stefan Lau) Date: Mon, 29 Jun 2015 18:14:01 +0200 Subject: [vtkusers] vtkGL2PSExporter in combination with QVTKRenderWindowInteractor In-Reply-To: References: <55914017.1010506@stefanlau.com> Message-ID: <55916EC9.9080609@stefanlau.com> Hi, I'm using the archlinux build of VTK, so the OpenGL2 backend should be disabled and the QT version is at 4.8.7. I've attached the svg as displayed on my machine. I'll try the demo on Ubuntu tomorrow, to ensure that it's an issue on my machine only. - Stefan Am 29.06.2015 um 16:23 schrieb David Lonie: > and the attachment... > > On Mon, Jun 29, 2015 at 10:22 AM, David Lonie > wrote: > > Running the test script works for me -- see attachment, the VTK > window is on the right, and the svg rendered in chrome on the left. > > Some other issues that might be coming into play: > > 1) What Qt version are you using, and > 2) Which OpenGL backend is being used on VTK? (Did you explicitly > select the experimental OpenGL2 backend while building VTK?) > > Dave > > > On Mon, Jun 29, 2015 at 8:54 AM, Stefan Lau > wrote: > > Hi, > > I'm trying to export an image from my application created in > PyQt4 to a > vector image. While the vtkGL2PSExporter works fine from > outside my QT > application, when trying to export the image from inside it > the output looks corrupted. A minimal example can be found at > the end of this email. Did I miss something (or call something > incorrectly)? Is this a known issue? > > Version: VTK 6.1.0 > > Thanks for any help, > Stefan Lau > > > > Minimal Example: > #!/usr/bin/env python > > import sys > import os > import vtk > from PyQt4 import QtCore, QtGui > from vtk.qt4.QVTKRenderWindowInteractor import > QVTKRenderWindowInteractor > > class MainWindow(QtGui.QMainWindow): > > def __init__(self, parent = None): > QtGui.QMainWindow.__init__(self, parent) > > self.frame = QtGui.QFrame() > > self.vl = QtGui.QVBoxLayout() > self.vtkWidget = QVTKRenderWindowInteractor(self.frame) > self.vl.addWidget(self.vtkWidget) > > self.ren = vtk.vtkRenderer() > self.vtkWidget.GetRenderWindow().AddRenderer(self.ren) > self.iren = > self.vtkWidget.GetRenderWindow().GetInteractor() > > # Create source > source = vtk.vtkSphereSource() > source.SetCenter(0, 0, 0) > source.SetRadius(5.0) > > # Create a mapper > mapper = vtk.vtkPolyDataMapper() > mapper.SetInputConnection(source.GetOutputPort()) > > # Create an actor > actor = vtk.vtkActor() > actor.SetMapper(mapper) > > button = QtGui.QPushButton(self.frame) > button.setGeometry(20, 20, 32, 32) > button.setIcon(QtGui.QIcon.fromTheme('document-save')) > button.setToolTip('Save Visualization') > > button.clicked.connect(self.store_visualization) > > self.ren.AddActor(actor) > > self.ren.ResetCamera() > > self.frame.setLayout(self.vl) > self.setCentralWidget(self.frame) > > self.show() > self.iren.Initialize() > > def store_visualization(self, render_window): > file_name = str(QtGui.QFileDialog.getSaveFileName( > self, > 'Save Visualization', > os.path.join(os.getcwd(), '/visualization.svg'), > 'SVG-Images (*.svg)' > )) > > if len(file_name) > 0: > exporter = vtk.vtkGL2PSExporter() > exporter.SetRenderWindow(self.vtkWidget.GetRenderWindow()) > exporter.SetFileFormatToSVG() > exporter.CompressOff() > exporter.DrawBackgroundOff() > exporter.SetFilePrefix(os.path.splitext(file_name)[0]) > exporter.Write() > > > if __name__ == "__main__": > app = QtGui.QApplication(sys.argv) > window = MainWindow() > sys.exit(app.exec_()) > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: > http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: visualization.png Type: image/png Size: 8254 bytes Desc: not available URL: From Gerrick.Bivins at halliburton.com Mon Jun 29 17:42:36 2015 From: Gerrick.Bivins at halliburton.com (Gerrick Bivins) Date: Mon, 29 Jun 2015 21:42:36 +0000 Subject: [vtkusers] [EXTERNAL] [vtk-developers] vtk 6.3 and vtk 7.0 In-Reply-To: References: Message-ID: ?* deprecate the existing zero copy array API in preparation for a significant refactoring that will come in 7.0. The refactor will make zero copy arrays both simpler to use and perform better.? Where can I find more information about this? Does the ?Zero copy array refactor? expose this framework to wrapped languages, Java in particular? Currently the duplication of data is one of the things holding up adoption of VTK in our application. Gerrick From: vtk-developers [mailto:vtk-developers-bounces at vtk.org] On Behalf Of David E DeMarle Sent: Monday, June 29, 2015 9:42 AM To: vtkdev; vtkusers at vtk.org Subject: [EXTERNAL] [vtk-developers] vtk 6.3 and vtk 7.0 Hey vtkers, We are hoping to do a vtk 6.3 release in the next couple of weeks and then immediately follow that up with a 7.0 release. We'd are putting out a 6.3 out in order to: * deprecate the existing zero copy array API in preparation for a significant refactoring that will come in 7.0. The refactor will make zero copy arrays both simpler to use and perform better. * package up all of the progress that has been made in the master branch's OpenGL2 surface and volume rendering. The vtkpython binaries will switch over to using the OpenGL2 back end this release. Please let us know if you have any feedback, critical bugs especially, and developers let us know if there is any work you have in a partially finished state that we should be sure to get into 6.3. If all goes well we'll have a release candidate for 6.3 next week. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 ---------------------------------------------------------------------- This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ram at centroidpic.com Mon Jun 29 21:47:43 2015 From: ram at centroidpic.com (Ram Sampath) Date: Mon, 29 Jun 2015 18:47:43 -0700 Subject: [vtkusers] Rendering Text - vtkTextActor and AddActor2D - Crash Message-ID: Hello : I am trying to compile and run the vtk hello world with text example http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DrawText and when I run it I get the following error with a crash. Rendering\Core\vtkTextActor.cxx, line 110 vtkTextActor (0000000003B31F10): Failed getting the TextRenderer instance! Has anyone had the same problem before and has a fix ? It seems like the text renderer is failing on initialize . Thank you in advance Ram. -------------- next part -------------- An HTML attachment was scrubbed... URL: From F.Thevissen at apodius.de Tue Jun 30 04:59:01 2015 From: F.Thevissen at apodius.de (=?UTF-8?Q?Florian_Thevi=c3=9fen?=) Date: Tue, 30 Jun 2015 10:59:01 +0200 Subject: [vtkusers] Linker problem using VTK, CMake and Qt In-Reply-To: <559167FE.3070404@apodius.de> References: <559167FE.3070404@apodius.de> Message-ID: <55925A55.8060005@apodius.de> Hello everyone, I?m trying to get a project to compile using Qt Creator, but I keep running into a linker error: LINK : fatal error LNK1104: file?vtkRendering.lib? can not be opened Obviously, the linker can not find the library it needs. This is what I did: 1) Build VTK 64bit from scratch using cmake-gui and MSCV13. I built both ALL_BUILD and INSTALL with administrator privileges. This installed VTK into C:\Program Files\VTK . I also set the VTK_GROUP_QT and BUILD_SHARED_LIBS flags. 2) Set an environment variable VTK_DIR to C:\Program Files\VTK 3) Set the CMakefile |cmake_minimum_required (VERSION 2.6 FATAL_ERROR) project (pcl-visualizer) find_package (Qt4 REQUIRED) find_package (VTK REQUIRED) find_package (PCL 1.7 REQUIRED) include_directories (${PCL_INCLUDE_DIRS}) link_directories (${PCL_LIBRARY_DIRS}) add_definitions (${PCL_DEFINITIONS}) set (project_SOURCES main.cpp pclviewer.cpp) set (project_HEADERS pclviewer.h) set (project_FORMS pclviewer.ui) set (VTK_LIBRARIES vtkRendering vtkGraphics vtkHybrid QVTK) QT4_WRAP_CPP (project_HEADERS_MOC ${project_HEADERS}) QT4_WRAP_UI (project_FORMS_HEADERS ${project_FORMS}) qt4_add_resources(RCC_GENERATED ${RCC}) INCLUDE (${QT_USE_FILE}) ADD_DEFINITIONS (${QT_DEFINITIONS}) ADD_EXECUTABLE (pcl_visualizer ${project_SOURCES} ${project_FORMS_HEADERS} ${project_HEADERS_MOC}) TARGET_LINK_LIBRARIES (pcl_visualizer ${QT_LIBRARIES} ${PCL_LIBRARIES} ${VTK_LIBRARIES}) | 4) Then I did a cmake . -G?NMake Makefiles? nmake and after a compiling phase I?m told by nmake, that, as mentioned initially: LINK : fatal error LNK1104: file?vtkRendering.lib? can not be opened Interestingly enough, the file does indeed not exist in the C:\Program Files\VTK\lib directory, though there are files named quite similiarly: vtkRenderingOpenGL-6.2.lib vtkRenderingQT-6.2.lib for example. What am I doing wrong? Thanks in advance! Florian Thevi?en ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stephan.Franke at inpro.de Tue Jun 30 09:30:15 2015 From: Stephan.Franke at inpro.de (Stephan) Date: Tue, 30 Jun 2015 06:30:15 -0700 (MST) Subject: [vtkusers] vtk 6.1 TCL Wrapping problem In-Reply-To: References: Message-ID: <1435671015301-5732592.post@n5.nabble.com> Good day, at the end I found the error for the missing external symbols. Problem was that the names for the tcl prototype functions and the declaration of the tcl_staticpackages has changed too. It is a little bit misleading because the right definition were be generate with cmake and provided inside the binary directory of the vtk tcl wrapping folder in two header files. When I searched the vtk soucre tree to find the missing symbols I ended up in the vtktcl.c file, where the "older" name conventions still exists. I think that this file is no longer in use, isn't it? In my tclInit.c file, where I declare my Tcl_AppInitProc and Tcl_StaticPackage stuff, I use the older vtk 5.x name convention for the vtk wrapping functions, like Vtkcommontcl_init, Vtkfilteringtcl_int and so on. In VTK 6.x the associated libraries and therefore the symbols do not exists anymore. Exists an instruction that show an user in which module these older ones where integrated? For example for VtkGraphics, which tcl_init functions from VTK 6.x I have to use to mappe the hole functionality of the older library? Thank you very much in advice for your support. Best Regards, Stephan -- View this message in context: http://vtk.1045678.n5.nabble.com/vtk-6-1-TCL-Wrapping-problem-tp5732529p5732592.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.lonie at kitware.com Tue Jun 30 09:39:43 2015 From: david.lonie at kitware.com (David Lonie) Date: Tue, 30 Jun 2015 09:39:43 -0400 Subject: [vtkusers] Rendering Text - vtkTextActor and AddActor2D - Crash In-Reply-To: References: Message-ID: It works for me here. That message means that the vtkRenderingFreeType library isn't being linked to the application. That library provides the default implementation of the vtkTextRenderer interface. Can you add the line: message("VTK_LIBRARIES: ${VTK_LIBRARIES}") to your CMakeLists.txt, rerun cmake, and send us the output? Also, what version of VTK is being used? On Mon, Jun 29, 2015 at 9:47 PM, Ram Sampath wrote: > Hello : > > I am trying to compile and run the vtk hello world with text example > > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DrawText > > and when I run it I get the following error with a crash. > Rendering\Core\vtkTextActor.cxx, line 110 > vtkTextActor (0000000003B31F10): Failed getting the TextRenderer instance! > > > Has anyone had the same problem before and has a fix ? It seems like the > text renderer is failing on initialize . > > Thank you in advance > Ram. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ram at centroidpic.com Tue Jun 30 09:54:25 2015 From: ram at centroidpic.com (Ram Sampath) Date: Tue, 30 Jun 2015 06:54:25 -0700 Subject: [vtkusers] Rendering Text - vtkTextActor and AddActor2D - Crash In-Reply-To: References: Message-ID: Thank you for the response. Sorry the problem was on my end . I was including the vtkRenderingFreeType library in the linkage but I missed to include the line VTK_MODULE_INIT(vtkRenderingFreeType). VTK_MODULE_INIT(vtkRenderingOpenGL); VTK_MODULE_INIT(vtkInteractionStyle); VTK_MODULE_INIT(vtkRenderingFreeType); are the modules which were needed by my code to make it work. Thank you very much. Ram. --- On Jun 30, 2015, at 6:39 AM, David Lonie wrote: It works for me here. That message means that the vtkRenderingFreeType library isn't being linked to the application. That library provides the default implementation of the vtkTextRenderer interface. Can you add the line: message("VTK_LIBRARIES: ${VTK_LIBRARIES}") to your CMakeLists.txt, rerun cmake, and send us the output? Also, what version of VTK is being used? On Mon, Jun 29, 2015 at 9:47 PM, Ram Sampath wrote: Hello : I am trying to compile and run the vtk hello world with text example http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DrawText and when I run it I get the following error with a crash. Rendering\Core\vtkTextActor.cxx, line 110 vtkTextActor (0000000003B31F10): Failed getting the TextRenderer instance! Has anyone had the same problem before and has a fix ? It seems like the text renderer is failing on initialize . Thank you in advance Ram. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From david.lonie at kitware.com Tue Jun 30 09:55:16 2015 From: david.lonie at kitware.com (David Lonie) Date: Tue, 30 Jun 2015 09:55:16 -0400 Subject: [vtkusers] Rendering Text - vtkTextActor and AddActor2D - Crash In-Reply-To: References: Message-ID: Great, glad you got is working :) Dave On Tue, Jun 30, 2015 at 9:54 AM, Ram Sampath wrote: > > Thank you for the response. > > Sorry the problem was on my end . I was including the vtkRenderingFreeType > library in the linkage but I missed to include the line > VTK_MODULE_INIT(vtkRenderingFreeType). > > VTK_MODULE_INIT(vtkRenderingOpenGL); > VTK_MODULE_INIT(vtkInteractionStyle); > VTK_MODULE_INIT(vtkRenderingFreeType); > > are the modules which were needed by my code to make it work. > > Thank you very much. > > Ram. > > --- > On Jun 30, 2015, at 6:39 AM, David Lonie wrote: > > It works for me here. That message means that the vtkRenderingFreeType > library isn't being linked to the application. That library provides the > default implementation of the vtkTextRenderer interface. > > Can you add the line: > > message("VTK_LIBRARIES: ${VTK_LIBRARIES}") > > to your CMakeLists.txt, rerun cmake, and send us the output? Also, what > version of VTK is being used? > > On Mon, Jun 29, 2015 at 9:47 PM, Ram Sampath wrote: > Hello : > > I am trying to compile and run the vtk hello world with text example > > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DrawText > > and when I run it I get the following error with a crash. > Rendering\Core\vtkTextActor.cxx, line 110 > vtkTextActor (0000000003B31F10): Failed getting the TextRenderer instance! > > > Has anyone had the same problem before and has a fix ? It seems like the > text renderer is failing on initialize . > > Thank you in advance > Ram. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Tue Jun 30 10:46:57 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 30 Jun 2015 14:46:57 +0000 Subject: [vtkusers] [vtk-developers] [EXTERNAL] vtk 6.3 and vtk 7.0 In-Reply-To: References: Message-ID: Gerrick, The *new* zero copy design literally started a week or two ago, so it is in its infancy, but I will write a design document soon. It doesn't however do anything new for access through wrapped languages. What exactly is your use-case. I am not sure what aspect is lacking in the current implementation in that regard. Utkarsh On Mon, Jun 29, 2015 at 6:04 PM Gerrick Bivins < Gerrick.Bivins at halliburton.com> wrote: > ?* deprecate the existing zero copy array API in preparation for a > significant refactoring that will come in 7.0. The refactor will make zero > copy arrays both simpler to use and perform better.? > > > > Where can I find more information about this? > > Does the ?Zero copy array refactor? expose this framework to wrapped > languages, Java in particular? > > Currently the duplication of data is one of the things holding up adoption > of VTK in our application. > > > > Gerrick > > > > *From:* vtk-developers [mailto:vtk-developers-bounces at vtk.org] *On Behalf > Of *David E DeMarle > *Sent:* Monday, June 29, 2015 9:42 AM > *To:* vtkdev; vtkusers at vtk.org > *Subject:* [EXTERNAL] [vtk-developers] vtk 6.3 and vtk 7.0 > > > > Hey vtkers, > > > > We are hoping to do a vtk 6.3 release in the next couple of weeks and then > immediately follow that up with a 7.0 release. > > > > We'd are putting out a 6.3 out in order to: > > * deprecate the existing zero copy array API in preparation for a > significant refactoring that will come in 7.0. The refactor will make zero > copy arrays both simpler to use and perform better. > > * package up all of the progress that has been made in the master branch's > OpenGL2 surface and volume rendering. The vtkpython binaries will switch > over to using the OpenGL2 back end this release. > > > > Please let us know if you have any feedback, critical bugs especially, and > developers let us know if there is any work you have in a partially > finished state that we should be sure to get into 6.3. > > > > If all goes well we'll have a release candidate for 6.3 next week. > > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > This e-mail, including any attached files, may contain confidential and > privileged information for the sole use of the intended recipient. Any > review, use, distribution, or disclosure by others is strictly prohibited. > If you are not the intended recipient (or authorized to receive information > for the intended recipient), please contact the sender by reply e-mail and > delete all copies of this message. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From josp.jorge at gmail.com Tue Jun 30 11:05:22 2015 From: josp.jorge at gmail.com (Jorge Perez) Date: Tue, 30 Jun 2015 17:05:22 +0200 Subject: [vtkusers] vtk 6.1 TCL Wrapping problem In-Reply-To: <1435671015301-5732592.post@n5.nabble.com> References: <1435671015301-5732592.post@n5.nabble.com> Message-ID: Hello, if you look into the build directory you can find the *TCLInit.cxx files where all _Init(Tcl_Interp *interp) functions are defined, one for each file. find . -name '*.cxx' | grep TCLInit.cxx ./IO/Exodus/vtkIOExodusTCLInit.cxx ./IO/XMLParser/vtkIOXMLParserTCLInit.cxx ./IO/Import/vtkIOImportTCLInit.cxx ./IO/EnSight/vtkIOEnSightTCLInit.cxx ./IO/Legacy/vtkIOLegacyTCLInit.cxx ./IO/Movie/vtkIOMovieTCLInit.cxx ./IO/Export/vtkIOExportTCLInit.cxx ./IO/XML/vtkIOXMLTCLInit.cxx ./IO/Geometry/vtkIOGeometryTCLInit.cxx ./IO/Image/vtkIOImageTCLInit.cxx ./IO/SQL/vtkIOSQLTCLInit.cxx ./IO/AMR/vtkIOAMRTCLInit.cxx ./IO/FFMPEG/vtkIOFFMPEGTCLInit.cxx ./IO/PLY/vtkIOPLYTCLInit.cxx ./IO/Core/vtkIOCoreTCLInit.cxx ./Parallel/Core/vtkParallelCoreTCLInit.cxx ./Geovis/Core/vtkGeovisCoreTCLInit.cxx ./Imaging/Hybrid/vtkImagingHybridTCLInit.cxx ./Imaging/Color/vtkImagingColorTCLInit.cxx ./Imaging/Stencil/vtkImagingStencilTCLInit.cxx ./Imaging/Math/vtkImagingMathTCLInit.cxx ./Imaging/Morphological/vtkImagingMorphologicalTCLInit.cxx ./Imaging/Fourier/vtkImagingFourierTCLInit.cxx ./Imaging/General/vtkImagingGeneralTCLInit.cxx ./Imaging/Sources/vtkImagingSourcesTCLInit.cxx ./Imaging/Statistics/vtkImagingStatisticsTCLInit.cxx ./Imaging/Core/vtkImagingCoreTCLInit.cxx ./Filters/Hybrid/vtkFiltersHybridTCLInit.cxx ./Filters/Generic/vtkFiltersGenericTCLInit.cxx ./Filters/Selection/vtkFiltersSelectionTCLInit.cxx ./Filters/SMP/vtkFiltersSMPTCLInit.cxx ./Filters/Programmable/vtkFiltersProgrammableTCLInit.cxx ./Filters/Imaging/vtkFiltersImagingTCLInit.cxx ./Filters/FlowPaths/vtkFiltersFlowPathsTCLInit.cxx ./Filters/Geometry/vtkFiltersGeometryTCLInit.cxx ./Filters/HyperTree/vtkFiltersHyperTreeTCLInit.cxx ./Filters/Modeling/vtkFiltersModelingTCLInit.cxx ./Filters/Texture/vtkFiltersTextureTCLInit.cxx ./Filters/AMR/vtkFiltersAMRTCLInit.cxx ./Filters/Extraction/vtkFiltersExtractionTCLInit.cxx ./Filters/General/vtkFiltersGeneralTCLInit.cxx ./Filters/Sources/vtkFiltersSourcesTCLInit.cxx ./Filters/Statistics/vtkFiltersStatisticsTCLInit.cxx ./Filters/Core/vtkFiltersCoreTCLInit.cxx ./Infovis/Layout/vtkInfovisLayoutTCLInit.cxx ./Infovis/Core/vtkInfovisCoreTCLInit.cxx ./Common/System/vtkCommonSystemTCLInit.cxx ./Common/Transforms/vtkCommonTransformsTCLInit.cxx ./Common/Color/vtkCommonColorTCLInit.cxx ./Common/Misc/vtkCommonMiscTCLInit.cxx ./Common/Math/vtkCommonMathTCLInit.cxx ./Common/ComputationalGeometry/vtkCommonComputationalGeometryTCLInit.cxx ./Common/ExecutionModel/vtkCommonExecutionModelTCLInit.cxx ./Common/DataModel/vtkCommonDataModelTCLInit.cxx ./Common/Core/vtkCommonCoreTCLInit.cxx ./Interaction/Style/vtkInteractionStyleTCLInit.cxx ./Interaction/Image/vtkInteractionImageTCLInit.cxx ./Interaction/Widgets/vtkInteractionWidgetsTCLInit.cxx ./Charts/Core/vtkChartsCoreTCLInit.cxx ./Rendering/Label/vtkRenderingLabelTCLInit.cxx ./Rendering/OpenGL/vtkRenderingOpenGLTCLInit.cxx ./Rendering/Annotation/vtkRenderingAnnotationTCLInit.cxx ./Rendering/LOD/vtkRenderingLODTCLInit.cxx ./Rendering/Context2D/vtkRenderingContextIIDTCLInit.cxx ./Rendering/FreeType/vtkRenderingFreeTypeTCLInit.cxx ./Rendering/VolumeOpenGL/vtkRenderingVolumeOpenGLTCLInit.cxx ./Rendering/VolumeAMR/vtkRenderingVolumeAMRTCLInit.cxx ./Rendering/Image/vtkRenderingImageTCLInit.cxx ./Rendering/GL2PS/vtkRenderingGLtoPSTCLInit.cxx ./Rendering/Volume/vtkRenderingVolumeTCLInit.cxx ./Rendering/FreeTypeOpenGL/vtkRenderingFreeTypeOpenGLTCLInit.cxx ./Rendering/LIC/vtkRenderingLICTCLInit.cxx ./Rendering/Core/vtkRenderingCoreTCLInit.cxx ./Views/Geovis/vtkViewsGeovisTCLInit.cxx ./Views/Context2D/vtkViewsContextIIDTCLInit.cxx ./Views/Infovis/vtkViewsInfovisTCLInit.cxx ./Views/Core/vtkViewsCoreTCLInit.cxx HTH Jorge 2015-06-30 15:30 GMT+02:00 Stephan : > Good day, > > at the end I found the error for the missing external symbols. > Problem was that the names for the tcl prototype functions and the > declaration of the tcl_staticpackages has changed too. It is a little bit > misleading because the right definition were be generate with cmake and > provided inside the binary directory of the vtk tcl wrapping folder in two > header files. > When I searched the vtk soucre tree to find the missing symbols I ended up > in the vtktcl.c file, where the "older" name conventions still exists. I > think that this file is no longer in use, isn't it? > In my tclInit.c file, where I declare my Tcl_AppInitProc and > Tcl_StaticPackage stuff, I use the older vtk 5.x name convention for the > vtk > wrapping functions, like Vtkcommontcl_init, Vtkfilteringtcl_int and so on. > In VTK 6.x the associated libraries and therefore the symbols do not exists > anymore. > Exists an instruction that show an user in which module these older ones > where integrated? > For example for VtkGraphics, which tcl_init functions from VTK 6.x I have > to > use to mappe the hole functionality of the older library? > Thank you very much in advice for your support. > > Best Regards, > Stephan > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtk-6-1-TCL-Wrapping-problem-tp5732529p5732592.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From xabivtk at gmail.com Tue Jun 30 12:18:51 2015 From: xabivtk at gmail.com (Xabi Riobe) Date: Tue, 30 Jun 2015 18:18:51 +0200 Subject: [vtkusers] Missing pixel with vtkPolyDataMapper2D and vtkCoordinate Message-ID: Hi, I want to display a plane as a background. For that i have in a vtkActor2D a vtkPolyDataMapper2D filled with a vtkPlaneSource going from 0,0,0 to 1,1,1 I add to the mapper a vtkCoordinate with SetCoordinateSystemToNormalizedViewport with that, everything seems fine and i don't have to take care of it when my view is resized. but if i put some color on it and look at it carefully i can see an extra line and column of black pixels I looked at the code of vtkCoordinate and vtkViewport and the combination of the coordinates transformations leads to a final size of the polygon rendered 1 pixel short in both x and y directions. Is this considered a normal behaviour due to the computation involved, or is it definitively a bug? A quick workaround is to set my plane source a little bit larger, but for future features of my app, i would need the exact size... Thanks for any comments/suggestions -------------- next part -------------- An HTML attachment was scrubbed... URL: From F.Thevissen at apodius.de Tue Jun 30 12:29:20 2015 From: F.Thevissen at apodius.de (=?UTF-8?Q?Florian_Thevi=c3=9fen?=) Date: Tue, 30 Jun 2015 18:29:20 +0200 Subject: [vtkusers] Linker problem using VTK, CMake and Qt In-Reply-To: References: <559167FE.3070404@apodius.de> <55925A55.8060005@apodius.de> Message-ID: <5592C3E0.4070301@apodius.de> Hi Nicole, Thank you very much - that solved it! I guess I have to learn a bit about the inner workins of CMake. I would not have thought it possible for the problem to be this line. Best regards, Florian Am 30.06.2015 um 15:28 schrieb Nicole Kovacs: > Hi Florian, > > > I'm not so experienced with VTK myself, but I've run into similar > errors. I may be wrong, but I believe the error you're getting is from > this line: > > |set (VTK_LIBRARIES vtkRendering vtkGraphics vtkHybrid QVTK)| > I don't think you actually need this line. If you check the VTK Wiki > examples, most (if not all) of them have the following in the CMake file: > |if(VTK_LIBRARIES) target_link_libraries(Cylinder ${VTK_LIBRARIES}) > else() target_link_libraries(Cylinder vtkHybrid vtkWidgets) endif() | > Which makes me believe vtkRendering, vtkGraphics, and vtkHybrid are > not arranged in VTK6 as they were before. > > As to QVTK, I have found in this vtkusers' message > (http://public.kitware.com/pipermail/vtkusers/2013-May/079715.html) > that if you turn on VTK_Group_Qt when building VTK, you don't need to > put QVTK in the CMake file. > > I hope this was helpful. If it solved your issue, feel free to forward > this to the vtkusers list if you want. > Nicole > > ------------------------------------------------------------------------ > *From:* vtkusers on behalf of Florian > Thevi?en > *Sent:* Tuesday, June 30, 2015 4:59 AM > *To:* vtkusers at vtk.org > *Subject:* [vtkusers] Linker problem using VTK, CMake and Qt > > Hello everyone, > > I?m trying to get a project to compile using Qt Creator, but I keep > running into a linker error: > > LINK : fatal error LNK1104: file?vtkRendering.lib? can not be opened > > Obviously, the linker can not find the library it needs. This is what > I did: > > 1) Build VTK 64bit from scratch using cmake-gui and MSCV13. I built > both ALL_BUILD and INSTALL with administrator privileges. This > installed VTK into C:\Program Files\VTK . I also set the VTK_GROUP_QT > and BUILD_SHARED_LIBS flags. > > 2) Set an environment variable VTK_DIR to C:\Program Files\VTK > > 3) Set the CMakefile > > |cmake_minimum_required (VERSION 2.6 FATAL_ERROR) project > (pcl-visualizer) find_package (Qt4 REQUIRED) find_package (VTK > REQUIRED) find_package (PCL 1.7 REQUIRED) include_directories > (${PCL_INCLUDE_DIRS}) link_directories (${PCL_LIBRARY_DIRS}) > add_definitions (${PCL_DEFINITIONS}) set (project_SOURCES main.cpp > pclviewer.cpp) set (project_HEADERS pclviewer.h) set (project_FORMS > pclviewer.ui) set (VTK_LIBRARIES vtkRendering vtkGraphics vtkHybrid > QVTK) QT4_WRAP_CPP (project_HEADERS_MOC ${project_HEADERS}) > QT4_WRAP_UI (project_FORMS_HEADERS ${project_FORMS}) > qt4_add_resources(RCC_GENERATED ${RCC}) INCLUDE (${QT_USE_FILE}) > ADD_DEFINITIONS (${QT_DEFINITIONS}) ADD_EXECUTABLE (pcl_visualizer > ${project_SOURCES} ${project_FORMS_HEADERS} ${project_HEADERS_MOC}) > TARGET_LINK_LIBRARIES (pcl_visualizer ${QT_LIBRARIES} ${PCL_LIBRARIES} > ${VTK_LIBRARIES}) | > > 4) Then I did a > > cmake . -G?NMake Makefiles? > nmake > > and after a compiling phase I?m told by nmake, that, as mentioned > initially: > > LINK : fatal error LNK1104: file?vtkRendering.lib? can not be opened > > Interestingly enough, the file does indeed not exist in the C:\Program > Files\VTK\lib directory, though there are files named quite similiarly: > > vtkRenderingOpenGL-6.2.lib > vtkRenderingQT-6.2.lib > > for example. What am I doing wrong? > > Thanks in advance! > Florian Thevi?en > > ? > > ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From F.Thevissen at apodius.de Tue Jun 30 12:31:06 2015 From: F.Thevissen at apodius.de (=?UTF-8?Q?Florian_Thevi=c3=9fen?=) Date: Tue, 30 Jun 2015 18:31:06 +0200 Subject: [vtkusers] Problems with QVTKPlugin in QT Creator Message-ID: <5592C44A.1010304@apodius.de> Hello everyone, i just fixed one linker plugin and up comes the next one :(. I'm trying to use the QVTKWidget in QT Creator, but the linker can't find the library: pclviewer.cpp.obj : error LNK2019: Verweis auf nicht aufgel?stes externes Symbol ??*declspec(dllimport) public: virtual *cdecl QVTKWidget::~QVTKWidget(void)? (*imp_??1QVTKWidget@@UEAA at XZ)? in Funktion ??public: virtual void * *cdecl QVTKWidget::`scalar deleting destructor?(unsigned int)? (??_GQVTKWidget@@UEAAPEAXI at Z)?. p, li { white-space: pre-wrap; } I'm sure I did everything I have to do though - I copied the QVTKWidgetPlugin.dll and QVTKWidgetPlugin.lib to the Plugin/Designer directory. It doesn't show up though. Is this the problem? Best regards, Florian -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Jun 30 12:55:00 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 30 Jun 2015 12:55:00 -0400 Subject: [vtkusers] How to use SetScalars ? In-Reply-To: <1435572881989-5732573.post@n5.nabble.com> References: <1435572881989-5732573.post@n5.nabble.com> Message-ID: > > How is SetScalars working ? Is it assigning the first point to the first > Scalar, and so on ? It looks like it doesn't assign the points in the right > order. > > Yes, this is basically how point data scalars work. Can you share a short, self-contained, compilable code example [1] that demonstrates the problem you are having? Thank you, Cory [1] http://sscce.org/ > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/How-to-use-SetScalars-tp5732573.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Jun 30 13:02:51 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 30 Jun 2015 13:02:51 -0400 Subject: [vtkusers] 3D interpolation In-Reply-To: <1422046142.866120.1435394797922.JavaMail.yahoo@mail.yahoo.com> References: <1422046142.866120.1435394797922.JavaMail.yahoo@mail.yahoo.com> Message-ID: Ali, Are you looking for a VTK function to do this? Thanks, Cory On Sat, Jun 27, 2015 at 4:46 AM, ali fozooni via vtkusers wrote: > Dear all, > > I have more than 3 million points(The link: coordinates_ijk.mat > ) > and I want to fit an interpolant function(preferably on MATLAB) to this. I > need to recall it, Consequently it should be as a function. > > > [image: image] > > > > > > > coordinates_ijk.mat > > Shared with Dropbox > View on www.dropbox.com > > Preview by Yahoo > > > Any help greatly appreciated > > Best Regards, > Ali > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pabloarubi at gmail.com Tue Jun 30 13:44:07 2015 From: pabloarubi at gmail.com (Pablo Rubi) Date: Tue, 30 Jun 2015 14:44:07 -0300 Subject: [vtkusers] Rotate actor programmatically while vtkRenderWindowInteractor is active In-Reply-To: References: Message-ID: Solved in: http://stackoverflow.com/questions/31075569/vtk-rotate-actor-programmatically-while-vtkrenderwindowinteractor-is-active ------------------------- constexpr float planeWidth = 200.0f;constexpr float planeHeight = 100.0f; vtkActor * texturedPlane; vtkRenderWindowInteractor * renderWindowInteractor; vtkRenderWindow * renWin;float rot = 0.0f; class RotateCommand : public vtkCommand{public: vtkTypeMacro(RotateCommand, vtkCommand); static RotateCommand * New() { return new RotateCommand; } void Execute(vtkObject * vtkNotUsed(caller), unsigned long vtkNotUsed(eventId), void * vtkNotUsed(callData)) { texturedPlane->SetOrientation(0,0,0); texturedPlane->RotateZ(rot++); renWin->Render(); }}; int main(){ auto renderer = vtkRenderer::New(); // Create render window renWin = vtkRenderWindow::New(); renWin->AddRenderer(renderer); renWin->SetSize(600,600); // Create a plane texturedPlane = vtkActor::New(); auto plane = vtkPlaneSource::New(); plane->SetOrigin(0, planeHeight, 0); plane->SetPoint1(planeWidth, planeHeight, 0); plane->SetPoint2(0, 0, 0); auto planeMapper = vtkPolyDataMapper::New(); planeMapper->SetInputConnection(plane->GetOutputPort()); texturedPlane->SetMapper(planeMapper); texturedPlane->SetOrigin(planeWidth / 2, planeHeight, 0); renderer->AddActor(texturedPlane); renderer->ResetCamera(); // Create a RenderWindowInteractor renderWindowInteractor = vtkRenderWindowInteractor::New(); renderWindowInteractor->SetRenderWindow(renWin); renderWindowInteractor->Initialize(); renderWindowInteractor->CreateRepeatingTimer(1); RotateCommand * rotateCallback = RotateCommand::New(); renderWindowInteractor->AddObserver(vtkCommand::TimerEvent, rotateCallback ); renderWindowInteractor->Start();} 2015-06-26 11:25 GMT-03:00 Pablo Rubi : > (This message was also posted in StackOverflow, those who want to start > using it as a platform for help, can answer in this link > > ) > > Hi all, > > I'm trying to rotate a vtkActor using vtkActor::RotateZ and then calling > vtkRenderWindow::Render. It works fine (it rotates the actor) but I can't > move, resize, or even focus the window. > > I suspected this was caused due to something not catching operating system > events, so I added a vtkRenderWindowInteractor to the mix. Now I can > move, resize and focus the window, but the actor is not rotating anymore. > > I've isolated the code in the snippet below, comment line 43 to see both > effects: > > renderWindowInteractor->Start(); > > I'm compiling VTK 6.2 with mingw-w64 (GCC 4.9.1), running in Windows 8.1. > I've uploaded the code in this repo > with a > small CMake setup so you can test it easily. > > Thanks for your help! > > ------------------------------- > > constexpr float planeWidth = 200.0f;constexpr float planeHeight = 100.0f; > int main(){ > auto renderer = vtkRenderer::New(); > > // Create render window > auto renWin = vtkRenderWindow::New(); > renWin->AddRenderer(renderer); > renWin->SetSize(600,600); > > // Create a plane > auto texturedPlane = vtkActor::New(); > auto plane = vtkPlaneSource::New(); > plane->SetOrigin(0, planeHeight, 0); > plane->SetPoint1(planeWidth, planeHeight, 0); > plane->SetPoint2(0, 0, 0); > > auto planeMapper = vtkPolyDataMapper::New(); > planeMapper->SetInputConnection(plane->GetOutputPort()); > texturedPlane->SetMapper(planeMapper); > texturedPlane->SetOrigin(planeWidth / 2, planeHeight, 0); > > renderer->AddActor(texturedPlane); > renderer->ResetCamera(); > > // Create a RenderWindowInteractor > auto renderWindowInteractor = vtkRenderWindowInteractor::New(); > renderWindowInteractor->SetRenderWindow(renWin); > renderWindowInteractor->Start(); // <-- Comment this line! > > // Render > float rot = 0.0f; > while(true) > { > texturedPlane->SetOrientation(0,0,0); > texturedPlane->RotateZ(rot++); > > renWin->Render(); > }} > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Tue Jun 30 13:58:56 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Tue, 30 Jun 2015 13:58:56 -0400 Subject: [vtkusers] VTK Roadmap Message-ID: Hi folks, As Dave DeMarle mentioned, we are gearing towards a VTK 6.3 release. VTK 7 will follow very shortly (in weeks). I'd like to shed some light here on our thinking and how we are planning to move forward. As was previously discussed in the VTK developers list [1] [2], we are considering maintaining VTK 6.x for a long time (3-5 years) while moving forward with VTK 7 and 8 in 2015 and 2016. There are some major changes happening in the computing and C++ worlds and we would like evolve VTK more quickly to stay up to date. Some of the major changes that we are considering and/or working on are: * Major refactoring of rendering (OpenGL as well as ray tracing etc.) * Multi/many-core support / SMP computing on CPUs and accelerators. VTK-m integration [3]. * Changes to data model to support zero copy interface to other data layouts, more efficient APIs, more cell types, more dataset types etc. * Better separation of a public, wrapped API and toolkit/C++ internal API mainly to support efficiency * Introduction of C++ 11 features Much of this will require introducing changes that break backwards compatibility and also require newer compilers, graphics cards / drivers etc. So the idea is that we will do our best to support as much as possible a broad set of architectures and backwards compatibility but break things when necessary in VTK 7 and beyond. We will maintain VTK 6.x so that folks that are stuck on legacy systems or code bases can continue to benefit from bug fixes. We have a way of continuing to maintain a broad set of dashboards and also the same review process as VTK master so that we can continue to ensure the quality of VTK 6.x as well as new releases. What do you guys think? Please provide feedback so that we can adjust our plans to meet the needs of the community as much as possible. Best, -berk [1] : http://bit.ly/1BUHFKT [2] : http://bit.ly/1g7LSRG [3] : http://m.vtk.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gerrick.Bivins at halliburton.com Tue Jun 30 14:06:55 2015 From: Gerrick.Bivins at halliburton.com (Gerrick Bivins) Date: Tue, 30 Jun 2015 18:06:55 +0000 Subject: [vtkusers] [vtk-developers] [EXTERNAL] vtk 6.3 and vtk 7.0 In-Reply-To: References: Message-ID: Hi Utkarsh, Totally understandable. ? I?m actually basing my question about wrapped languages (specifically Java) on my previous attempt to use the? zero copy API?. It seemed like all the references/examples were for accessing the data from the c++/native side so I just went for it. After getting things built and attempting to implement things, I saw that most of the referenced classes were not produced for Java and then I think I realized that I would have to implement data access on native side and then allow vtk to wrap my implementations. (Is that true?) That felt a bit unnatural as a Java developer especially if my originating data is accessed from a Java API. What I would expect is that classes like vtkMappedUnstructuredGrid ,vtkMappedDataArray ,vtkUnstructuredGridBase etc (or some equivalent) would show up as abstract Java classes (better yet interfaces) that I could implement/extend and work within the framework. Is that more clear? Gerrick From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] Sent: Tuesday, June 30, 2015 9:47 AM To: Gerrick Bivins; David E DeMarle; vtkdev; vtkusers at vtk.org Subject: Re: [vtk-developers] [EXTERNAL] vtk 6.3 and vtk 7.0 Gerrick, The *new* zero copy design literally started a week or two ago, so it is in its infancy, but I will write a design document soon. It doesn't however do anything new for access through wrapped languages. What exactly is your use-case. I am not sure what aspect is lacking in the current implementation in that regard. Utkarsh On Mon, Jun 29, 2015 at 6:04 PM Gerrick Bivins > wrote: ?* deprecate the existing zero copy array API in preparation for a significant refactoring that will come in 7.0. The refactor will make zero copy arrays both simpler to use and perform better.? Where can I find more information about this? Does the ?Zero copy array refactor? expose this framework to wrapped languages, Java in particular? Currently the duplication of data is one of the things holding up adoption of VTK in our application. Gerrick From: vtk-developers [mailto:vtk-developers-bounces at vtk.org] On Behalf Of David E DeMarle Sent: Monday, June 29, 2015 9:42 AM To: vtkdev; vtkusers at vtk.org Subject: [EXTERNAL] [vtk-developers] vtk 6.3 and vtk 7.0 Hey vtkers, We are hoping to do a vtk 6.3 release in the next couple of weeks and then immediately follow that up with a 7.0 release. We'd are putting out a 6.3 out in order to: * deprecate the existing zero copy array API in preparation for a significant refactoring that will come in 7.0. The refactor will make zero copy arrays both simpler to use and perform better. * package up all of the progress that has been made in the master branch's OpenGL2 surface and volume rendering. The vtkpython binaries will switch over to using the OpenGL2 back end this release. Please let us know if you have any feedback, critical bugs especially, and developers let us know if there is any work you have in a partially finished state that we should be sure to get into 6.3. If all goes well we'll have a release candidate for 6.3 next week. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=vtk-developers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtk-developers -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.brett at gmail.com Tue Jun 30 14:47:05 2015 From: matthew.brett at gmail.com (Matthew Brett) Date: Tue, 30 Jun 2015 11:47:05 -0700 Subject: [vtkusers] VTK Roadmap In-Reply-To: References: Message-ID: Hi, On Tue, Jun 30, 2015 at 10:58 AM, Berk Geveci wrote: > Hi folks, > > As Dave DeMarle mentioned, we are gearing towards a VTK 6.3 release. VTK 7 > will follow very shortly (in weeks). I'd like to shed some light here on our > thinking and how we are planning to move forward. > > As was previously discussed in the VTK developers list [1] [2], we are > considering maintaining VTK 6.x for a long time (3-5 years) while moving > forward with VTK 7 and 8 in 2015 and 2016. There are some major changes > happening in the computing and C++ worlds and we would like evolve VTK more > quickly to stay up to date. Some of the major changes that we are > considering and/or working on are: > > * Major refactoring of rendering (OpenGL as well as ray tracing etc.) > * Multi/many-core support / SMP computing on CPUs and accelerators. VTK-m > integration [3]. > * Changes to data model to support zero copy interface to other data > layouts, more efficient APIs, more cell types, more dataset types etc. > * Better separation of a public, wrapped API and toolkit/C++ internal API > mainly to support efficiency > * Introduction of C++ 11 features > > Much of this will require introducing changes that break backwards > compatibility and also require newer compilers, graphics cards / drivers > etc. So the idea is that we will do our best to support as much as possible > a broad set of architectures and backwards compatibility but break things > when necessary in VTK 7 and beyond. We will maintain VTK 6.x so that folks > that are stuck on legacy systems or code bases can continue to benefit from > bug fixes. We have a way of continuing to maintain a broad set of dashboards > and also the same review process as VTK master so that we can continue to > ensure the quality of VTK 6.x as well as new releases. > > What do you guys think? Please provide feedback so that we can adjust our > plans to meet the needs of the community as much as possible. I would like to put in a humble plea to add Python 3 compatibility to that list: http://astrofrog.github.io/blog/2015/05/09/2015-survey-results Best, Matthew From david.gobbi at gmail.com Tue Jun 30 15:48:01 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 30 Jun 2015 13:48:01 -0600 Subject: [vtkusers] VTK Roadmap In-Reply-To: References: Message-ID: On Tue, Jun 30, 2015 at 12:47 PM, Matthew Brett wrote: > Hi, > > On Tue, Jun 30, 2015 at 10:58 AM, Berk Geveci > wrote: > > Hi folks, > > > > As Dave DeMarle mentioned, we are gearing towards a VTK 6.3 release. VTK > 7 > > will follow very shortly (in weeks). I'd like to shed some light here on > our > > thinking and how we are planning to move forward. > > > > As was previously discussed in the VTK developers list [1] [2], we are > > considering maintaining VTK 6.x for a long time (3-5 years) while moving > > forward with VTK 7 and 8 in 2015 and 2016. There are some major changes > > happening in the computing and C++ worlds and we would like evolve VTK > more > > quickly to stay up to date. Some of the major changes that we are > > considering and/or working on are: > > > > * Major refactoring of rendering (OpenGL as well as ray tracing etc.) > > * Multi/many-core support / SMP computing on CPUs and accelerators. VTK-m > > integration [3]. > > * Changes to data model to support zero copy interface to other data > > layouts, more efficient APIs, more cell types, more dataset types etc. > > * Better separation of a public, wrapped API and toolkit/C++ internal API > > mainly to support efficiency > > * Introduction of C++ 11 features > > > > Much of this will require introducing changes that break backwards > > compatibility and also require newer compilers, graphics cards / drivers > > etc. So the idea is that we will do our best to support as much as > possible > > a broad set of architectures and backwards compatibility but break things > > when necessary in VTK 7 and beyond. We will maintain VTK 6.x so that > folks > > that are stuck on legacy systems or code bases can continue to benefit > from > > bug fixes. We have a way of continuing to maintain a broad set of > dashboards > > and also the same review process as VTK master so that we can continue to > > ensure the quality of VTK 6.x as well as new releases. > > > > What do you guys think? Please provide feedback so that we can adjust our > > plans to meet the needs of the community as much as possible. > > I would like to put in a humble plea to add Python 3 compatibility to that > list: > > http://astrofrog.github.io/blog/2015/05/09/2015-survey-results Python 3 is being worked on (right now by me, and others can join in a couple weeks once the core pieces are in place). No, it won't be part of 6.3, however. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Tue Jun 30 16:24:17 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Tue, 30 Jun 2015 16:24:17 -0400 Subject: [vtkusers] [vtk-developers] VTK Roadmap In-Reply-To: References: Message-ID: Yup. Python 3 is now on the roadmap. Probably the first release after 7, in a few months. -berk On Tue, Jun 30, 2015 at 3:48 PM, David Gobbi wrote: > On Tue, Jun 30, 2015 at 12:47 PM, Matthew Brett > wrote: > >> Hi, >> >> On Tue, Jun 30, 2015 at 10:58 AM, Berk Geveci >> wrote: >> > Hi folks, >> > >> > As Dave DeMarle mentioned, we are gearing towards a VTK 6.3 release. >> VTK 7 >> > will follow very shortly (in weeks). I'd like to shed some light here >> on our >> > thinking and how we are planning to move forward. >> > >> > As was previously discussed in the VTK developers list [1] [2], we are >> > considering maintaining VTK 6.x for a long time (3-5 years) while moving >> > forward with VTK 7 and 8 in 2015 and 2016. There are some major changes >> > happening in the computing and C++ worlds and we would like evolve VTK >> more >> > quickly to stay up to date. Some of the major changes that we are >> > considering and/or working on are: >> > >> > * Major refactoring of rendering (OpenGL as well as ray tracing etc.) >> > * Multi/many-core support / SMP computing on CPUs and accelerators. >> VTK-m >> > integration [3]. >> > * Changes to data model to support zero copy interface to other data >> > layouts, more efficient APIs, more cell types, more dataset types etc. >> > * Better separation of a public, wrapped API and toolkit/C++ internal >> API >> > mainly to support efficiency >> > * Introduction of C++ 11 features >> > >> > Much of this will require introducing changes that break backwards >> > compatibility and also require newer compilers, graphics cards / drivers >> > etc. So the idea is that we will do our best to support as much as >> possible >> > a broad set of architectures and backwards compatibility but break >> things >> > when necessary in VTK 7 and beyond. We will maintain VTK 6.x so that >> folks >> > that are stuck on legacy systems or code bases can continue to benefit >> from >> > bug fixes. We have a way of continuing to maintain a broad set of >> dashboards >> > and also the same review process as VTK master so that we can continue >> to >> > ensure the quality of VTK 6.x as well as new releases. >> > >> > What do you guys think? Please provide feedback so that we can adjust >> our >> > plans to meet the needs of the community as much as possible. >> >> I would like to put in a humble plea to add Python 3 compatibility to >> that list: >> >> http://astrofrog.github.io/blog/2015/05/09/2015-survey-results > > > Python 3 is being worked on (right now by me, and others can join in a > couple weeks once the core pieces are in place). No, it won't be part of > 6.3, however. > > - David > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From axp5530 at psu.edu Tue Jun 30 16:22:53 2015 From: axp5530 at psu.edu (Alex Pletzer) Date: Tue, 30 Jun 2015 16:22:53 -0400 Subject: [vtkusers] vtkPLYWriter and obj_info Message-ID: <5592FA9D.5000902@psu.edu> All, I noticed that vtkPLYWriter writes a "obj_info" field, an example can be seen below. This is causing some applications, such as the THREE.PLYLoader method to fail when reading PLY files produced by vtkPLYWriter. None of the documents describing the PLY format (https://en.wikipedia.org/wiki/PLY_%28file_format%29 or http://paulbourke.net/dataformats/ply/) mentions this field, although it is present in the bunny file from http://graphics.stanford.edu/data/3Dscanrep/. Hence, it would seem that for maximum portability the obj_info line should be removed. Is there any way one can prevent vtkPLYWriter from writing this line? Thanks in advance. --Alex Typical header from a PLY file written by VTK: ply format ascii 1.0 comment VTK generated PLY File *obj_info vtkPolyData points and polygons: vtk4.0* element vertex 198 property float x property float y property float z element face 192 property list uchar int vertex_indices end_header .... ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Tue Jun 30 17:05:04 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 30 Jun 2015 17:05:04 -0400 Subject: [vtkusers] vtkPLYWriter and obj_info In-Reply-To: <5592FA9D.5000902@psu.edu> References: <5592FA9D.5000902@psu.edu> Message-ID: Sounds like a bug in the library you are using. I see lots of references to obj_info in a google search: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=obj_info%20ply Bill On Tue, Jun 30, 2015 at 4:22 PM, Alex Pletzer wrote: > All, > > I noticed that vtkPLYWriter writes a "obj_info" field, an example can be > seen below. This is causing some applications, such as the THREE.PLYLoader > method to fail when reading PLY files produced by vtkPLYWriter. > > None of the documents describing the PLY format > (https://en.wikipedia.org/wiki/PLY_%28file_format%29 or > http://paulbourke.net/dataformats/ply/) mentions this field, although it is > present in the bunny file from http://graphics.stanford.edu/data/3Dscanrep/. > > Hence, it would seem that for maximum portability the obj_info line should > be removed. Is there any way one can prevent vtkPLYWriter from writing this > line? > > Thanks in advance. > > --Alex > > Typical header from a PLY file written by VTK: > > ply > format ascii 1.0 > comment VTK generated PLY File > obj_info vtkPolyData points and polygons: vtk4.0 > element vertex 198 > property float x > property float y > property float z > element face 192 > property list uchar int vertex_indices > end_header > .... > > ... > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From joaorobertojr88 at gmail.com Tue Jun 30 21:51:03 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Tue, 30 Jun 2015 18:51:03 -0700 (MST) Subject: [vtkusers] Problems with QVTKPlugin in QT Creator In-Reply-To: <5592C44A.1010304@apodius.de> References: <5592C44A.1010304@apodius.de> Message-ID: <1435715463050-5732639.post@n5.nabble.com> Why don't you use Qt Designer instead of Qt Creator? In the past I didn't have luck with QVTKPlugin and Qt Creator. So I decided to use it in Qt Designer and it works flawlessly. Joao. -- View this message in context: http://vtk.1045678.n5.nabble.com/Problems-with-QVTKPlugin-in-QT-Creator-tp5732604p5732639.html Sent from the VTK - Users mailing list archive at Nabble.com.