From Federico.Miorelli at CGG.COM Mon Oct 3 06:41:44 2016 From: Federico.Miorelli at CGG.COM (Miorelli, Federico) Date: Mon, 3 Oct 2016 10:41:44 +0000 Subject: [vtkusers] Clipping multiple actors in scene Message-ID: <8D478341240222479E0DB361E050CB6A7C6ABE@msy-emb04.int.cggveritas.com> Dear All, I have a 3D scene with several actors coming from different sources. I would like to introduce a global clipping tool to cut with a box or a plane all the currently active objects, in order to "see through" the scene. I understand I can cut a single dataset with vtkClipDataSet, but I could not find a way to do it globally for the scene, except by manually iterating on my datasets and doing it the hard way. Is there a way to obtain something like this? Thanks, Regards Federico ______ ______ ______ Federico Miorelli Senior R&D Geophysicist Subsurface Imaging - General Geophysics Italy This email and any accompanying attachments are confidential. If you received this email by mistake, please delete it from your system. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Mon Oct 3 09:03:51 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 3 Oct 2016 09:03:51 -0400 Subject: [vtkusers] Clipping multiple actors in scene In-Reply-To: <8D478341240222479E0DB361E050CB6A7C6ABE@msy-emb04.int.cggveritas.com> References: <8D478341240222479E0DB361E050CB6A7C6ABE@msy-emb04.int.cggveritas.com> Message-ID: Federico, If all your actors will have the same display properties, such as surface color or coloring by the same data array, you could group your data sets together with vtkMultiBlockDataGroupFilter [1] and then use a single vtkClipDataSet on the multiblock data set it produces. If different actors have different display properties, I don't believe there is a solution that avoids doing it the hard way. Alternately, some planar cutting can be done by changing vtkCamera's clipping range. This would not require grouping the data sets together. HTH, Cory [1] http://www.vtk.org/doc/nightly/html/classvtkMultiBlockDataGroupFilter.html On Mon, Oct 3, 2016 at 6:41 AM, Miorelli, Federico < Federico.Miorelli at cgg.com> wrote: > Dear All, > > > > I have a 3D scene with several actors coming from different sources. > > I would like to introduce a global clipping tool to cut with a box or a > plane all the currently active objects, in order to "see through" the scene. > > > > I understand I can cut a single dataset with vtkClipDataSet, but I could > not find a way to do it globally for the scene, except by manually > iterating on my datasets and doing it the hard way. > > > > Is there a way to obtain something like this? > > > > > > Thanks, > > Regards > > > > > > Federico > > > > *______* *______* *______* > > Federico Miorelli > > > > Senior R&D Geophysicist > > *Subsurface Imaging - General Geophysics **Italy* > > > > > *This email and any accompanying attachments are confidential. If you > received this email by mistake, please delete it from your system. Any > review, disclosure, copying, distribution, or use of the email by others is > strictly prohibited.* > > _______________________________________________ > 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 Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Federico.Miorelli at CGG.COM Mon Oct 3 09:15:02 2016 From: Federico.Miorelli at CGG.COM (Miorelli, Federico) Date: Mon, 3 Oct 2016 13:15:02 +0000 Subject: [vtkusers] Clipping multiple actors in scene In-Reply-To: References: <8D478341240222479E0DB361E050CB6A7C6ABE@msy-emb04.int.cggveritas.com> Message-ID: <8D478341240222479E0DB361E050CB6A7C6BCD@msy-emb04.int.cggveritas.com> Dear Cory, Many thanks for your inputs. My objects are heterogeneous and do not share display properties. In fact I have a multitude of data types (points, tringulated surfaces, slices through structured and unstructured grids, etc.) with different data array colorings. The suggestion to use the camera clipping range could be helpful to get unobstructed views in some circumstances, I'll try that. Thanks again, Regards Federico ______ ______ ______ Federico Miorelli Senior R&D Geophysicist Subsurface Imaging - General Geophysics Italy From: Cory Quammen [mailto:cory.quammen at kitware.com] Sent: luned? 3 ottobre 2016 15:04 To: Miorelli, Federico Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Clipping multiple actors in scene Federico, If all your actors will have the same display properties, such as surface color or coloring by the same data array, you could group your data sets together with vtkMultiBlockDataGroupFilter [1] and then use a single vtkClipDataSet on the multiblock data set it produces. If different actors have different display properties, I don't believe there is a solution that avoids doing it the hard way. Alternately, some planar cutting can be done by changing vtkCamera's clipping range. This would not require grouping the data sets together. HTH, Cory [1] http://www.vtk.org/doc/nightly/html/classvtkMultiBlockDataGroupFilter.html On Mon, Oct 3, 2016 at 6:41 AM, Miorelli, Federico > wrote: Dear All, I have a 3D scene with several actors coming from different sources. I would like to introduce a global clipping tool to cut with a box or a plane all the currently active objects, in order to "see through" the scene. I understand I can cut a single dataset with vtkClipDataSet, but I could not find a way to do it globally for the scene, except by manually iterating on my datasets and doing it the hard way. Is there a way to obtain something like this? Thanks, Regards Federico ______ ______ ______ Federico Miorelli Senior R&D Geophysicist Subsurface Imaging - General Geophysics Italy This email and any accompanying attachments are confidential. If you received this email by mistake, please delete it from your system. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited. _______________________________________________ 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 Staff R&D Engineer Kitware, Inc. This email and any accompanying attachments are confidential. If you received this email by mistake, please delete it from your system. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.jackson at bluequartz.net Mon Oct 3 09:48:28 2016 From: mike.jackson at bluequartz.net (Michael Jackson) Date: Mon, 03 Oct 2016 09:48:28 -0400 Subject: [vtkusers] QVTK Widget and Retina MacBook (High-DPI screen) In-Reply-To: <1475290148232-5740626.post@n5.nabble.com> References: <1467824973975-5739142.post@n5.nabble.com> <20160708144525.GC26651@megas.kitware.com> <1467990195610-5739181.post@n5.nabble.com> <20160708150519.GB5418@megas.kitware.com> <1475290148232-5740626.post@n5.nabble.com> Message-ID: <57F261AC.8060803@bluequartz.net> There is an actual fix being put into Vtk master at the moment. Looks like the fix has been merged into Vtk master (https://gitlab.kitware.com/vtk/vtk/merge_requests/2019) which should deprecate the need for the workarounds. -- Mike Jackson [mike.jackson at bluequartz.net] BBerco wrote: > Hello all, > > for those interested, I can confirm that the following workaround works: > http://public.kitware.com/pipermail/vtkusers/2015-February/090117.html > > Cheers, > Ben > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/QVTK-Widget-and-Retina-MacBook-High-DPI-screen-tp5739142p5740626.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 hjchen.work at gmail.com Mon Oct 3 12:03:47 2016 From: hjchen.work at gmail.com (hchen) Date: Mon, 3 Oct 2016 09:03:47 -0700 (MST) Subject: [vtkusers] actor render order question Message-ID: <1475510627752-5740633.post@n5.nabble.com> Hi, I have a problem that I suspect has something to do with actor render order. I am wondering if anyone can help me with. What I am trying to do is to display three layers, CT in the bottom, then RT dose on top of CT, and lastly, isodose contour on the very top. The code to achieve this is in python, and looks like the following. The problem is that, when I scroll through slices, on most slices, everything looks like they supposed to be, but on some slices, the iso-dose contour is missing, especially when I changed from axial to sagittal or coronal view. It seems that that, for the slices where the iso-dose contour are missing, the iso-dose contour is sent to bottom layer, because if I don't add actorCT and actorDose into the render (i.e. only render iso-dose contour), I see iso-dose contour all the time. Any suggestions on how to get this right is welcome. Thanks in advance. mapperCT = vtk.vtkImageResliceMapper() mapperCT.SetInputData( readerCT.GetOutput() ) mapperCT.SliceFaceCameraOn() mapperCT.SliceAtFocalPointOn() ipCT = vtk.vtkImageProperty() ipCT.SetColorLevle( CT_Level ) ipCT.SetColorWindow( CT_Window ) actorCT = vtk.vtiImageSlice() actorCT.SetMapper( mapperCT ) actorCT.SetProperty( ipCT ) mapperDose = vtk.vtkImageReslieceMapper() mapperDose.SetInputData( readerDose.GetOutput() ) mapperDose.SliceFaceCameraOn() mapperDose.SliceAtFocalPointOn() lutDose = vtk.vtkLookupTable() ...set range, hue, saturation etc lutDose.SetAlphaRange(0, 1.0) lutDose.Build() ipDose = vtk.vtkImageProperty() ipDose.SetLookupTable( lutDose ) actorDose = vtk.vtkImageSlice() actorDose.SetMapper( mapperDose ) actorDose.SetProperty( ipDose ) contour = vtk.vtkMarchingSquares() contour.SetInputConnection( readerDose.GetOutputPort() ) contour.SetImageRange( ext[0], ext[1], ext[2], ext[3], current_slice, current_slice) mapperContour = vtk.vtkPolyDataMapper() mapperContour.SetInputConnection( contour.GetOutputPort() ) actor = vtk.vtkActor() actor.SetMapper( mapperContour ) render = vtk.vtkRender() render.AddActor( actorCT ) render.AddActor( actorDose ) render.AddActor( actorContour ) -- View this message in context: http://vtk.1045678.n5.nabble.com/actor-render-order-question-tp5740633.html Sent from the VTK - Users mailing list archive at Nabble.com. From tluisrs at gmail.com Mon Oct 3 14:06:23 2016 From: tluisrs at gmail.com (Thales Sabino) Date: Mon, 3 Oct 2016 15:06:23 -0300 Subject: [vtkusers] How to set the zoom after a vtkRenderWindowInteractor::flyTo()? Message-ID: I?m trying to use the vtkRenderWindowInteractor::flyTo() to animate the camera movement when focusing on a distant object. However, I have to call flyTo multiple times to approximate to the desired object. Is there a way to set the distance from the focal point? More specifically, is there vtk way to focus on a bounding box? ? Thales Luis Rodrigues Sabino PhD Student at PGMC-UFJF Lattes | LinkedIn | ResearchGate -------------- next part -------------- An HTML attachment was scrubbed... URL: From patriciop at gmail.com Mon Oct 3 15:55:35 2016 From: patriciop at gmail.com (Patricio Palma C.) Date: Mon, 3 Oct 2016 16:55:35 -0300 Subject: [vtkusers] Noise appears when extreme zooming in Message-ID: Dear Experts I'm using VTK 7.1 (latest Git version) and Mesa 12.0 with AVX. I have an application that display a 2D structure and some data on it. After zooming in a couple times in the same spot of the structure it begins to appear some noise over the 2D structure that increase after continuing zooming in. Is this a known issue? is there a way to solve/avoid this? I've attached some pictures showing how the noise appears while zooming in. [image: Inline image 2] [image: Inline image 3] [image: Inline image 5] [image: Inline image 6] -- Patricio Palma Contreras -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step2.jpg Type: image/jpeg Size: 5141 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step0.jpg Type: image/jpeg Size: 3073 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step3.jpg Type: image/jpeg Size: 8251 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step1.jpg Type: image/jpeg Size: 2217 bytes Desc: not available URL: From dan.lipsa at kitware.com Mon Oct 3 16:50:15 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Mon, 3 Oct 2016 16:50:15 -0400 Subject: [vtkusers] vtk_web_cone.py Message-ID: Hi all, I tried to find the vtkweb cone example to see a small vtkweb application. I learned it has been removed from VTK in July. Is there an alternate place where I can find this or another simple vtkweb application? git log -- Web/Applications/Cone/server/vtk_web_cone.py commit 8ca198fe7891c8520485a67f249ae3380a541b08 Author: Sebastien Jourdain Date: Mon Jul 11 15:41:20 2016 -0400 Thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From fehereszter at gmail.com Mon Oct 3 16:43:13 2016 From: fehereszter at gmail.com (=?utf-8?Q?Eszter_Feh=C3=A9r?=) Date: Mon, 3 Oct 2016 22:43:13 +0200 Subject: [vtkusers] loading string field data Message-ID: Dear Users, I have a problem with string field data loading from ascii vtk files in c++. The file content is loaded to a vtkPolyData object from which I try to get the array of the string field data using the following: vtkSmartPointer array = vtkStringArray::vtkSafeDownCast(polydata->GetFieldData()->GetAbstractArray("strname",i)); The field data in the vtk file is like: FIELD FieldData 1 strname 1 4 string a b c d The problem is that the size of "array" (array->GetSize()) in the case above is 7 and all the elements 4..7 are empty and cause segfault if I try to read them. The size of the array depends on the actual number of string values but it is really confusing: actual size array->GetSize() 1 1 2 3 3 3 4 7 5 7 6 7 7 7 8 15 9 15 What am I doing wrong? I use vtk7.0.0. Any help would be much appreciated. Regards, Eszter -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Mon Oct 3 16:55:11 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 3 Oct 2016 14:55:11 -0600 Subject: [vtkusers] vtk_web_cone.py In-Reply-To: References: Message-ID: Not really, We have new ParaViewWeb examples but no vtk ones. This will require to have a vtkWeb application that we can use for example. But so far we had none. For ParaViewWeb we can list: - https://github.com/Kitware/visualizer - https://github.com/Kitware/light-viz Do you need an example for something specific? Seb On Mon, Oct 3, 2016 at 2:50 PM, Dan Lipsa wrote: > Hi all, > I tried to find the vtkweb cone example to see a small vtkweb application. > I learned it > has been removed from VTK in July. Is there an alternate place where I can > find this or another simple vtkweb application? > > git log -- Web/Applications/Cone/server/vtk_web_cone.py > commit 8ca198fe7891c8520485a67f249ae3380a541b08 > Author: Sebastien Jourdain > Date: Mon Jul 11 15:41:20 2016 -0400 > > Thanks, > Dan > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Mon Oct 3 17:10:06 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Mon, 3 Oct 2016 17:10:06 -0400 Subject: [vtkusers] vtk_web_cone.py In-Reply-To: References: Message-ID: Hi Seb, I am porting a vtkweb application (vtkweb based visualization application using uvcdat on the server) to the newest API. Seems like the client side API has changed for vtkweb. I wasn't sure if the server side has changed, so I wanted to see some complete client/server examples. Thanks, Dan On Mon, Oct 3, 2016 at 4:55 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > Not really, We have new ParaViewWeb examples but no vtk ones. This will > require to have a vtkWeb application that we can use for example. > But so far we had none. > > For ParaViewWeb we can list: > - https://github.com/Kitware/visualizer > - https://github.com/Kitware/light-viz > > Do you need an example for something specific? > > Seb > > > On Mon, Oct 3, 2016 at 2:50 PM, Dan Lipsa wrote: > >> Hi all, >> I tried to find the vtkweb cone example to see a small vtkweb >> application. I learned it >> has been removed from VTK in July. Is there an alternate place where I >> can find this or another simple vtkweb application? >> >> git log -- Web/Applications/Cone/server/vtk_web_cone.py >> commit 8ca198fe7891c8520485a67f249ae3380a541b08 >> Author: Sebastien Jourdain >> Date: Mon Jul 11 15:41:20 2016 -0400 >> >> Thanks, >> Dan >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Mon Oct 3 17:17:30 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 3 Oct 2016 15:17:30 -0600 Subject: [vtkusers] vtk_web_cone.py In-Reply-To: References: Message-ID: The server side didn't really changed. We have some new add-on for streaming images in binary format to the client but any old code can remain as is. For the client code, if you are using ES6 and Webpack, I can show you what you need to do to build/create a renderer. If on the other hand you are client code is more old fashion, you should migrate into your repo the vtkWeb (lib+ext) directory and keep using them as you use to. If you want we can do a hangout and go through those details together, Seb On Mon, Oct 3, 2016 at 3:10 PM, Dan Lipsa wrote: > Hi Seb, > > I am porting a vtkweb application (vtkweb based visualization application > using uvcdat on the server) to the newest API. > Seems like the client side API has changed for vtkweb. I wasn't sure if > the server side has changed, so I wanted to see some complete client/server > examples. > > Thanks, > Dan > > > On Mon, Oct 3, 2016 at 4:55 PM, Sebastien Jourdain < > sebastien.jourdain at kitware.com> wrote: > >> Not really, We have new ParaViewWeb examples but no vtk ones. This will >> require to have a vtkWeb application that we can use for example. >> But so far we had none. >> >> For ParaViewWeb we can list: >> - https://github.com/Kitware/visualizer >> - https://github.com/Kitware/light-viz >> >> Do you need an example for something specific? >> >> Seb >> >> >> On Mon, Oct 3, 2016 at 2:50 PM, Dan Lipsa wrote: >> >>> Hi all, >>> I tried to find the vtkweb cone example to see a small vtkweb >>> application. I learned it >>> has been removed from VTK in July. Is there an alternate place where I >>> can find this or another simple vtkweb application? >>> >>> git log -- Web/Applications/Cone/server/vtk_web_cone.py >>> commit 8ca198fe7891c8520485a67f249ae3380a541b08 >>> Author: Sebastien Jourdain >>> Date: Mon Jul 11 15:41:20 2016 -0400 >>> >>> Thanks, >>> Dan >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Mon Oct 3 17:25:27 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Mon, 3 Oct 2016 17:25:27 -0400 Subject: [vtkusers] vtk_web_cone.py In-Reply-To: References: Message-ID: Seb, Jon already created the framework for the new application using ES6 and Webpack, I'll try to use the existing server then. It would nice to show some simple server scripts in the documentation. For instance what is the server script for https://kitware.github.io/paraviewweb/examples/RemoteRenderer.html#RemoteRenderer ? Thanks, Dan On Mon, Oct 3, 2016 at 5:17 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > The server side didn't really changed. We have some new add-on for > streaming images in binary format to the client but any old code can remain > as is. > > For the client code, if you are using ES6 and Webpack, I can show you what > you need to do to build/create a renderer. > If on the other hand you are client code is more old fashion, you should > migrate into your repo the vtkWeb (lib+ext) directory and keep using them > as you use to. > > If you want we can do a hangout and go through those details together, > > Seb > > On Mon, Oct 3, 2016 at 3:10 PM, Dan Lipsa wrote: > >> Hi Seb, >> >> I am porting a vtkweb application (vtkweb based visualization application >> using uvcdat on the server) to the newest API. >> Seems like the client side API has changed for vtkweb. I wasn't sure if >> the server side has changed, so I wanted to see some complete client/server >> examples. >> >> Thanks, >> Dan >> >> >> On Mon, Oct 3, 2016 at 4:55 PM, Sebastien Jourdain < >> sebastien.jourdain at kitware.com> wrote: >> >>> Not really, We have new ParaViewWeb examples but no vtk ones. This will >>> require to have a vtkWeb application that we can use for example. >>> But so far we had none. >>> >>> For ParaViewWeb we can list: >>> - https://github.com/Kitware/visualizer >>> - https://github.com/Kitware/light-viz >>> >>> Do you need an example for something specific? >>> >>> Seb >>> >>> >>> On Mon, Oct 3, 2016 at 2:50 PM, Dan Lipsa wrote: >>> >>>> Hi all, >>>> I tried to find the vtkweb cone example to see a small vtkweb >>>> application. I learned it >>>> has been removed from VTK in July. Is there an alternate place where I >>>> can find this or another simple vtkweb application? >>>> >>>> git log -- Web/Applications/Cone/server/vtk_web_cone.py >>>> commit 8ca198fe7891c8520485a67f249ae3380a541b08 >>>> Author: Sebastien Jourdain >>>> Date: Mon Jul 11 15:41:20 2016 -0400 >>>> >>>> Thanks, >>>> Dan >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Mon Oct 3 17:37:11 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 3 Oct 2016 15:37:11 -0600 Subject: [vtkusers] vtk_web_cone.py In-Reply-To: References: Message-ID: Make sense, I guess I should have a basic server example for vtkWeb and ParaViewWeb. Will try to see if I can make one for that example. Seb On Mon, Oct 3, 2016 at 3:25 PM, Dan Lipsa wrote: > Seb, > Jon already created the framework for the new application using ES6 and > Webpack, I'll try to use the existing server then. > > It would nice to show some simple server scripts in the documentation. For > instance what is the server script for > https://kitware.github.io/paraviewweb/examples/RemoteRenderer.html# > RemoteRenderer? > > Thanks, > Dan > > > On Mon, Oct 3, 2016 at 5:17 PM, Sebastien Jourdain < > sebastien.jourdain at kitware.com> wrote: > >> The server side didn't really changed. We have some new add-on for >> streaming images in binary format to the client but any old code can remain >> as is. >> >> For the client code, if you are using ES6 and Webpack, I can show you >> what you need to do to build/create a renderer. >> If on the other hand you are client code is more old fashion, you should >> migrate into your repo the vtkWeb (lib+ext) directory and keep using them >> as you use to. >> >> If you want we can do a hangout and go through those details together, >> >> Seb >> >> On Mon, Oct 3, 2016 at 3:10 PM, Dan Lipsa wrote: >> >>> Hi Seb, >>> >>> I am porting a vtkweb application (vtkweb based visualization >>> application using uvcdat on the server) to the newest API. >>> Seems like the client side API has changed for vtkweb. I wasn't sure if >>> the server side has changed, so I wanted to see some complete client/server >>> examples. >>> >>> Thanks, >>> Dan >>> >>> >>> On Mon, Oct 3, 2016 at 4:55 PM, Sebastien Jourdain < >>> sebastien.jourdain at kitware.com> wrote: >>> >>>> Not really, We have new ParaViewWeb examples but no vtk ones. This will >>>> require to have a vtkWeb application that we can use for example. >>>> But so far we had none. >>>> >>>> For ParaViewWeb we can list: >>>> - https://github.com/Kitware/visualizer >>>> - https://github.com/Kitware/light-viz >>>> >>>> Do you need an example for something specific? >>>> >>>> Seb >>>> >>>> >>>> On Mon, Oct 3, 2016 at 2:50 PM, Dan Lipsa >>>> wrote: >>>> >>>>> Hi all, >>>>> I tried to find the vtkweb cone example to see a small vtkweb >>>>> application. I learned it >>>>> has been removed from VTK in July. Is there an alternate place where I >>>>> can find this or another simple vtkweb application? >>>>> >>>>> git log -- Web/Applications/Cone/server/vtk_web_cone.py >>>>> commit 8ca198fe7891c8520485a67f249ae3380a541b08 >>>>> Author: Sebastien Jourdain >>>>> Date: Mon Jul 11 15:41:20 2016 -0400 >>>>> >>>>> Thanks, >>>>> Dan >>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Mon Oct 3 18:13:03 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 3 Oct 2016 16:13:03 -0600 Subject: [vtkusers] vtk_web_cone.py In-Reply-To: References: Message-ID: Just updated the doc here: http://kitware.github.io/paraviewweb/examples/RemoteRenderer.html On Mon, Oct 3, 2016 at 3:37 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > Make sense, I guess I should have a basic server example for vtkWeb and > ParaViewWeb. > > Will try to see if I can make one for that example. > > Seb > > On Mon, Oct 3, 2016 at 3:25 PM, Dan Lipsa wrote: > >> Seb, >> Jon already created the framework for the new application using ES6 and >> Webpack, I'll try to use the existing server then. >> >> It would nice to show some simple server scripts in the documentation. >> For instance what is the server script for >> https://kitware.github.io/paraviewweb/examples/RemoteRendere >> r.html#RemoteRenderer? >> >> Thanks, >> Dan >> >> >> On Mon, Oct 3, 2016 at 5:17 PM, Sebastien Jourdain < >> sebastien.jourdain at kitware.com> wrote: >> >>> The server side didn't really changed. We have some new add-on for >>> streaming images in binary format to the client but any old code can remain >>> as is. >>> >>> For the client code, if you are using ES6 and Webpack, I can show you >>> what you need to do to build/create a renderer. >>> If on the other hand you are client code is more old fashion, you should >>> migrate into your repo the vtkWeb (lib+ext) directory and keep using them >>> as you use to. >>> >>> If you want we can do a hangout and go through those details together, >>> >>> Seb >>> >>> On Mon, Oct 3, 2016 at 3:10 PM, Dan Lipsa wrote: >>> >>>> Hi Seb, >>>> >>>> I am porting a vtkweb application (vtkweb based visualization >>>> application using uvcdat on the server) to the newest API. >>>> Seems like the client side API has changed for vtkweb. I wasn't sure if >>>> the server side has changed, so I wanted to see some complete client/server >>>> examples. >>>> >>>> Thanks, >>>> Dan >>>> >>>> >>>> On Mon, Oct 3, 2016 at 4:55 PM, Sebastien Jourdain < >>>> sebastien.jourdain at kitware.com> wrote: >>>> >>>>> Not really, We have new ParaViewWeb examples but no vtk ones. This >>>>> will require to have a vtkWeb application that we can use for example. >>>>> But so far we had none. >>>>> >>>>> For ParaViewWeb we can list: >>>>> - https://github.com/Kitware/visualizer >>>>> - https://github.com/Kitware/light-viz >>>>> >>>>> Do you need an example for something specific? >>>>> >>>>> Seb >>>>> >>>>> >>>>> On Mon, Oct 3, 2016 at 2:50 PM, Dan Lipsa >>>>> wrote: >>>>> >>>>>> Hi all, >>>>>> I tried to find the vtkweb cone example to see a small vtkweb >>>>>> application. I learned it >>>>>> has been removed from VTK in July. Is there an alternate place where >>>>>> I can find this or another simple vtkweb application? >>>>>> >>>>>> git log -- Web/Applications/Cone/server/vtk_web_cone.py >>>>>> commit 8ca198fe7891c8520485a67f249ae3380a541b08 >>>>>> Author: Sebastien Jourdain >>>>>> Date: Mon Jul 11 15:41:20 2016 -0400 >>>>>> >>>>>> Thanks, >>>>>> Dan >>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Federico.Miorelli at CGG.COM Tue Oct 4 03:15:43 2016 From: Federico.Miorelli at CGG.COM (Miorelli, Federico) Date: Tue, 4 Oct 2016 07:15:43 +0000 Subject: [vtkusers] Clipping multiple actors in scene In-Reply-To: References: <8D478341240222479E0DB361E050CB6A7C6ABE@msy-emb04.int.cggveritas.com> Message-ID: <8D478341240222479E0DB361E050CB6A7C71B8@msy-emb04.int.cggveritas.com> Cory, I did some digging and it turns out I can obtain what I want with clipping planes applied to actors. I have a vtkBoxWidget that controls the position of the 6 clipping planes and on every EndInteractionEvent I cycle on the visible actors and call SetClippingPlanes on them. Cheers, Federico ______ ______ ______ Federico Miorelli Senior R&D Geophysicist Subsurface Imaging - General Geophysics Italy From: Cory Quammen [mailto:cory.quammen at kitware.com] Sent: luned? 3 ottobre 2016 15:04 To: Miorelli, Federico Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Clipping multiple actors in scene Federico, If all your actors will have the same display properties, such as surface color or coloring by the same data array, you could group your data sets together with vtkMultiBlockDataGroupFilter [1] and then use a single vtkClipDataSet on the multiblock data set it produces. If different actors have different display properties, I don't believe there is a solution that avoids doing it the hard way. Alternately, some planar cutting can be done by changing vtkCamera's clipping range. This would not require grouping the data sets together. HTH, Cory [1] http://www.vtk.org/doc/nightly/html/classvtkMultiBlockDataGroupFilter.html On Mon, Oct 3, 2016 at 6:41 AM, Miorelli, Federico > wrote: Dear All, I have a 3D scene with several actors coming from different sources. I would like to introduce a global clipping tool to cut with a box or a plane all the currently active objects, in order to "see through" the scene. I understand I can cut a single dataset with vtkClipDataSet, but I could not find a way to do it globally for the scene, except by manually iterating on my datasets and doing it the hard way. Is there a way to obtain something like this? Thanks, Regards Federico ______ ______ ______ Federico Miorelli Senior R&D Geophysicist Subsurface Imaging - General Geophysics Italy This email and any accompanying attachments are confidential. If you received this email by mistake, please delete it from your system. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited. _______________________________________________ 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 Staff R&D Engineer Kitware, Inc. This email and any accompanying attachments are confidential. If you received this email by mistake, please delete it from your system. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ilindsay at insigniamedical.co.uk Tue Oct 4 06:19:10 2016 From: ilindsay at insigniamedical.co.uk (ianl) Date: Tue, 4 Oct 2016 03:19:10 -0700 (MST) Subject: [vtkusers] OpenGL driver issue with VTK 7.0 In-Reply-To: <1475228858351-5740609.post@n5.nabble.com> References: <35d826a4.16.15375cddc12.Coremail.tjlp@netease.com> <7f3c22d7.4.15377ced08a.Coremail.tjlp@netease.com> <1475081188518-5740581.post@n5.nabble.com> <1475152114300-5740586.post@n5.nabble.com> <1475228858351-5740609.post@n5.nabble.com> Message-ID: <1475576350413-5740653.post@n5.nabble.com> Hi, I have now had a chance to do some testing. The setups I tested had any additional graphics card removed/disabled and the on-board Intel graphics enabled and updated to the latest drivers from the Intel website (not via the Windows update driver button as this does not always get the latest). Testing was carried out with our test app which loads a 250 slice CT image set and displays it as 3 MPR views and a 3D volume. The app was compiled with a build of VTK from master taken on 23rd September 2016, 64 bit release built on Visual Studio 2012. The test app was run on the target systems prior to disabling the main graphics cards to ensure it was working as expected. The following two systems were checked: ----------- Ivy Bridge based system - Intel i5-3470 with HD 2500 graphics running Windows 7: The test app worked fine, performance was reduced as expected. While manipulating the volume, the graphics driver reset and this was not handled gracefully with the app crashing. It is not clear whether this was due to VTK or our app code. No useful logging was generated and the app then went on to run fine after restarting. ----------- Sandy Bridge based system - Intel Core i3-2120, HD 2000 graphics running Windows 10: The test app crashed on startup, giving the following error during window creation: <10256> 2016/10/03 17:02:19.032 : Error raised by vtk : ERROR: In D:\Build\VTK\VTK 7.1.x 23_09_2016\VTKSource\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 640 vtkWin32OpenGLRenderWindow (0000000022F61160): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2. ----------- Hope this helps - it looks likely that the Sandy Bridge fix has not fully worked from my testing. The Ivy Bridge variant seemed better, but it is not clear what the cause of the driver reset was. -- View this message in context: http://vtk.1045678.n5.nabble.com/OpenGL-driver-issue-with-VTK-7-0-tp5737190p5740653.html Sent from the VTK - Users mailing list archive at Nabble.com. From jose.de.paula at live.com Tue Oct 4 08:18:48 2016 From: jose.de.paula at live.com (Jose Barreto) Date: Tue, 4 Oct 2016 05:18:48 -0700 (MST) Subject: [vtkusers] [VTK - Users] Multiple interactions in a single widget Message-ID: <1475583528326-5740654.post@n5.nabble.com> hi guys, How can I display a widget on more than one vtkRenderer? I want to put a tube in a vtkRenderer with viewer Coronal and also in another vtkRenderer with viewer Sagittal. The two vtkRenderer are in different vtkRenderWindow. I don't know the interactions that the widget accepted for multiple vtkRenderer. He just ask me one vtkRenderWindowInteractor and vtkRenderer. I need to have interactons with this widget on both vtkRenderer. How do I do this? The widget I'm using is the vtkTubeWidget (created by the team of Kitware for me) but he is inherited from vtkSeedWidget. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Users-Multiple-interactions-in-a-single-widget-tp5740654.html Sent from the VTK - Users mailing list archive at Nabble.com. From jose.de.paula at live.com Tue Oct 4 08:58:03 2016 From: jose.de.paula at live.com (Jose Barreto) Date: Tue, 4 Oct 2016 05:58:03 -0700 (MST) Subject: [vtkusers] vtk Multiple interactions in a single widget Message-ID: <1475585883307-5740655.post@n5.nabble.com> hi guys, How can I display a widget on more than one vtkRenderer? I want to put a tube in a vtkRenderer with viewer Coronal and also in another vtkRenderer with viewer Sagittal. The two vtkRenderer are in different vtkRenderWindow. I don't know the interactions that the widget accepted for multiple vtkRenderer. He just ask me one vtkRenderWindowInteractor and vtkRenderer. I need to have interactons with this widget on both vtkRenderer. How do I do this? The widget I'm using is the vtkTubeWidget (created by the team of Kitware for me) but he is inherited from vtkSeedWidget. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtk-Multiple-interactions-in-a-single-widget-tp5740655.html Sent from the VTK - Users mailing list archive at Nabble.com. From dan.lipsa at kitware.com Tue Oct 4 09:26:15 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Tue, 4 Oct 2016 09:26:15 -0400 Subject: [vtkusers] vtk_web_cone.py In-Reply-To: References: Message-ID: Very nice! Thanks Seb. Dan On Mon, Oct 3, 2016 at 6:13 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > Just updated the doc here: > > http://kitware.github.io/paraviewweb/examples/RemoteRenderer.html > > On Mon, Oct 3, 2016 at 3:37 PM, Sebastien Jourdain < > sebastien.jourdain at kitware.com> wrote: > >> Make sense, I guess I should have a basic server example for vtkWeb and >> ParaViewWeb. >> >> Will try to see if I can make one for that example. >> >> Seb >> >> On Mon, Oct 3, 2016 at 3:25 PM, Dan Lipsa wrote: >> >>> Seb, >>> Jon already created the framework for the new application using ES6 and >>> Webpack, I'll try to use the existing server then. >>> >>> It would nice to show some simple server scripts in the documentation. >>> For instance what is the server script for >>> https://kitware.github.io/paraviewweb/examples/RemoteRendere >>> r.html#RemoteRenderer? >>> >>> Thanks, >>> Dan >>> >>> >>> On Mon, Oct 3, 2016 at 5:17 PM, Sebastien Jourdain < >>> sebastien.jourdain at kitware.com> wrote: >>> >>>> The server side didn't really changed. We have some new add-on for >>>> streaming images in binary format to the client but any old code can remain >>>> as is. >>>> >>>> For the client code, if you are using ES6 and Webpack, I can show you >>>> what you need to do to build/create a renderer. >>>> If on the other hand you are client code is more old fashion, you >>>> should migrate into your repo the vtkWeb (lib+ext) directory and keep using >>>> them as you use to. >>>> >>>> If you want we can do a hangout and go through those details together, >>>> >>>> Seb >>>> >>>> On Mon, Oct 3, 2016 at 3:10 PM, Dan Lipsa >>>> wrote: >>>> >>>>> Hi Seb, >>>>> >>>>> I am porting a vtkweb application (vtkweb based visualization >>>>> application using uvcdat on the server) to the newest API. >>>>> Seems like the client side API has changed for vtkweb. I wasn't sure >>>>> if the server side has changed, so I wanted to see some complete >>>>> client/server examples. >>>>> >>>>> Thanks, >>>>> Dan >>>>> >>>>> >>>>> On Mon, Oct 3, 2016 at 4:55 PM, Sebastien Jourdain < >>>>> sebastien.jourdain at kitware.com> wrote: >>>>> >>>>>> Not really, We have new ParaViewWeb examples but no vtk ones. This >>>>>> will require to have a vtkWeb application that we can use for example. >>>>>> But so far we had none. >>>>>> >>>>>> For ParaViewWeb we can list: >>>>>> - https://github.com/Kitware/visualizer >>>>>> - https://github.com/Kitware/light-viz >>>>>> >>>>>> Do you need an example for something specific? >>>>>> >>>>>> Seb >>>>>> >>>>>> >>>>>> On Mon, Oct 3, 2016 at 2:50 PM, Dan Lipsa >>>>>> wrote: >>>>>> >>>>>>> Hi all, >>>>>>> I tried to find the vtkweb cone example to see a small vtkweb >>>>>>> application. I learned it >>>>>>> has been removed from VTK in July. Is there an alternate place where >>>>>>> I can find this or another simple vtkweb application? >>>>>>> >>>>>>> git log -- Web/Applications/Cone/server/vtk_web_cone.py >>>>>>> commit 8ca198fe7891c8520485a67f249ae3380a541b08 >>>>>>> Author: Sebastien Jourdain >>>>>>> Date: Mon Jul 11 15:41:20 2016 -0400 >>>>>>> >>>>>>> Thanks, >>>>>>> Dan >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From melrobin at gmail.com Tue Oct 4 10:28:13 2016 From: melrobin at gmail.com (Melvin Robinson) Date: Tue, 4 Oct 2016 09:28:13 -0500 Subject: [vtkusers] Proper VTK CMake modules Message-ID: I am building ANTs and received undefined references to vtkScalarBarActor::New() and vtkSTLWriter::New(). I build VTK from github and think that I probably did not include the right module for these classes. Can you tell me what modules are needed for vtkSTLWriter and vtkScalarBarActor? Melvin -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Oct 4 10:55:26 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 4 Oct 2016 08:55:26 -0600 Subject: [vtkusers] Proper VTK CMake modules In-Reply-To: References: Message-ID: Hi Melvin, The internal dependencies between VTK modules were trimmed a few weeks ago, and that's probably why ANTs needs to explicitly link modules that it didn't before. You'll probably want to email the ANTs folks to tell them they need to add these: vtkIOGeometry for the STL writer vtkRenderingAnnotation for the scalar bar actor - David On Tue, Oct 4, 2016 at 8:28 AM, Melvin Robinson wrote: > I am building ANTs and received undefined references to > vtkScalarBarActor::New() and vtkSTLWriter::New(). I build VTK from github > and think that I probably did not include the right module for these > classes. > > Can you tell me what modules are needed for vtkSTLWriter and > vtkScalarBarActor? > > Melvin > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.petruzza at gmail.com Tue Oct 4 12:12:34 2016 From: steve.petruzza at gmail.com (stevep) Date: Tue, 4 Oct 2016 09:12:34 -0700 (MST) Subject: [vtkusers] Volume Rendering and zbuffer Message-ID: <1475597554579-5740662.post@n5.nabble.com> Hi all, I used the vtkPolyDataMapper to render a surface and then with the vtkRenderWindow I can get correctly the ZBuffer using GetZbufferData and the RGB data via vtkWindowToImageFilter. When I use, starting from the same vtkImageData, a volume rendering like the SmartVolumeMapper (as in the following): http://www.vtk.org/Wiki/VTK/Examples/Cxx/VolumeRendering/SmartVolumeMapper The RGB data are correct but the ZBuffer contains all values == 1 (checked dumping the float array to disk). I get the same result changing blend mode and using a vtkFixedPointVolumeRayCastMapper. What am I missing? Thank you -- View this message in context: http://vtk.1045678.n5.nabble.com/Volume-Rendering-and-zbuffer-tp5740662.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Tue Oct 4 12:34:09 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 04 Oct 2016 16:34:09 +0000 Subject: [vtkusers] Volume Rendering and zbuffer In-Reply-To: <1475597554579-5740662.post@n5.nabble.com> References: <1475597554579-5740662.post@n5.nabble.com> Message-ID: That is because we make a call to clear the depth buffer bit that is: glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT). I have to think all of the use-cases but I think we don't need to clear the depth buffer. We can push a simple fix for it on the master branch. - Aashish On Tue, Oct 4, 2016 at 12:12 PM stevep wrote: > Hi all, > > I used the vtkPolyDataMapper to render a surface and then with the > vtkRenderWindow I can get correctly the ZBuffer using GetZbufferData and > the > RGB data via vtkWindowToImageFilter. > > When I use, starting from the same vtkImageData, a volume rendering like > the > SmartVolumeMapper (as in the following): > http://www.vtk.org/Wiki/VTK/Examples/Cxx/VolumeRendering/SmartVolumeMapper > > The RGB data are correct but the ZBuffer contains all values == 1 (checked > dumping the float array to disk). > > I get the same result changing blend mode and using a > vtkFixedPointVolumeRayCastMapper. > > What am I missing? > > Thank you > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Volume-Rendering-and-zbuffer-tp5740662.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 Oct 4 12:48:17 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 04 Oct 2016 16:48:17 +0000 Subject: [vtkusers] Volume Rendering and zbuffer In-Reply-To: References: <1475597554579-5740662.post@n5.nabble.com> Message-ID: Hi Steve, If you intend to get the depth values from volume (and not just geometry), then not clearing the depth buffer will not help either since we don't write to depth buffer (the defaults won't make sense anyways). If you are looking for depth values from both volume and geometry, then you may want to look into this option RenderToImage in the base class ( https://github.com/Kitware/VTK/blob/master/Rendering/Volume/vtkGPUVolumeRayCastMapper.h). Give it a try and let us know if that works for you. If you enable this option then you can call GetColorImage and GetDepthImage for the depth values. Thanks, On Tue, Oct 4, 2016 at 12:34 PM Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > That is because we make a call to clear the depth buffer bit that is: > glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT). I have to think all of > the use-cases but I think we don't need to clear the depth buffer. We can > push a simple fix for it on the master branch. > > - Aashish > > > > > On Tue, Oct 4, 2016 at 12:12 PM stevep wrote: > > Hi all, > > I used the vtkPolyDataMapper to render a surface and then with the > vtkRenderWindow I can get correctly the ZBuffer using GetZbufferData and > the > RGB data via vtkWindowToImageFilter. > > When I use, starting from the same vtkImageData, a volume rendering like > the > SmartVolumeMapper (as in the following): > http://www.vtk.org/Wiki/VTK/Examples/Cxx/VolumeRendering/SmartVolumeMapper > > The RGB data are correct but the ZBuffer contains all values == 1 (checked > dumping the float array to disk). > > I get the same result changing blend mode and using a > vtkFixedPointVolumeRayCastMapper. > > What am I missing? > > Thank you > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Volume-Rendering-and-zbuffer-tp5740662.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 Tue Oct 4 13:01:24 2016 From: david.lonie at kitware.com (David Lonie) Date: Tue, 4 Oct 2016 13:01:24 -0400 Subject: [vtkusers] loading string field data In-Reply-To: References: Message-ID: For VTK arrays, GetSize() is analogous to std::vector::capacity() -- ie. it returns the size of the allocated memory buffer, not the number of elements in the array (confusing, I know :( ). Use GetNumberOfTuples() + GetNumberOfComponents(), or GetNumberOfValues() for the actual number of elements in the array. Cheers, Dave On Mon, Oct 3, 2016 at 4:43 PM, Eszter Feh?r wrote: > Dear Users, > > I have a problem with string field data loading from ascii vtk files in > c++. The file content is loaded to a vtkPolyData object from which I try to > get the array of the string field data using the following: > > vtkSmartPointer array = vtkStringArray:: > vtkSafeDownCast(polydata->GetFieldData()->GetAbstractArray("strname",i)); > > The field data in the vtk file is like: > FIELD FieldData 1 > strname 1 4 string > a > b > c > d > > The problem is that the size of "array" (array->GetSize()) in the case > above is 7 and all the elements 4..7 are empty and cause segfault if I try > to read them. > The size of the array depends on the actual number of string values but it > is really confusing: > actual size array->GetSize() > 1 1 > 2 3 > 3 3 > 4 7 > 5 7 > 6 7 > 7 7 > 8 15 > 9 15What am I doing wrong? > I use vtk7.0.0. > > Any help would be much appreciated. > > Regards, Eszter > > _______________________________________________ > 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 fabian.trobles at gmail.com Tue Oct 4 15:03:41 2016 From: fabian.trobles at gmail.com (Fabian Torres) Date: Tue, 4 Oct 2016 14:03:41 -0500 Subject: [vtkusers] Reset WindowLevels Message-ID: Hi all. I have three slice visualization of a vokume. I'm usin vtkImageViewer2 as a viewer. I understand that if I modified the windowleves by pressing the button 1 of the mouse I could reset them press the letter 'r'. I'm trying to do the same thing as with pressing the letter r but when I press the button in mas user interface. I'm have put something similar to the code found in the interactorstyle case 'r' : case 'R' : this->FindPokedRenderer(rwi->GetEventPosition()[0], rwi->GetEventPosition()[1]); if(this->CurrentRenderer!=0) { this->CurrentRenderer->ResetCamera(); } else { vtkWarningMacro(<<"no current renderer on the interactor style."); } rwi->Render(); break; like if (reset){ viewerSagital->GetRenderer()->ResetCamera(); viewerSagital->Render(); } but this does not do anything. Someone could help me? Thanks -- Fabi?n Torres Robles Maestria en Ciencias en Ingenier?a Electr?nica Ingenier?a en Sistemas Electr?nicos tel. 58081280, 0445534661338 e-mail fabian.trobles at gmail.com, dae.wong at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kayarre at gmail.com Tue Oct 4 16:44:52 2016 From: kayarre at gmail.com (Kurt Sansom) Date: Tue, 4 Oct 2016 13:44:52 -0700 Subject: [vtkusers] write points and normals to file Message-ID: Hi, I have some unstructured data, no triangles, just points and normals. I am trying to write those to a file in the vtp format using the python bindings and then load the data in paraview and apply a glyph filter to view the vectors. but the glyph filter doesn't appear to work eventhough the data looks alright in the vtp file, what am I missing? here is the code snippet. #write normals points = vtk.vtkPoints() verts = vtk.vtkCellArray() polydata_pts = vtk.vtkPolyData() pointNormalsArray = vtk.vtkDoubleArray() pointNormalsArray.SetNumberOfComponents(3) for i in range(clipSeedIds.GetNumberOfIds()): seedId = clipSeedIds.GetId(i) locator = vtk.vtkPointLocator() locator.SetDataSet(clippedSurface) locator.BuildLocator() seedPoint = self.Surface.GetPoint(seedId) seedPointId = locator.FindClosestPoint(seedPoint) planeEstimator = vtkvmtk.vtkvmtkPolyDataNormalPlaneEstimator() planeEstimator.SetInputData(clippedSurface) planeEstimator.SetOriginPointId(seedPointId) planeEstimator.Update() plane = vtk.vtkPlane() plane.SetOrigin(planeEstimator.GetOrigin()) plane.SetNormal(planeEstimator.GetNormal()) #testing the normal vector origin_pt = planeEstimator.GetOrigin() normal_pt = planeEstimator.GetNormal() id = points.InsertNextPoint(origin_pt) verts.InsertNextCell(1) verts.InsertCellPoint(id) pointNormalsArray.InsertNextTuple(normal_pt) #Add the points to the polydata container polydata_pts.SetPoints(points) polydata_pts.SetVerts(verts) # Add the normals to the points in the polydata #polydata_pts.GetCellData().SetNormals(pointNormalsArray) polydata_pts.GetPointData().SetNormals(pointNormalsArray) polydata_pts.Modified() writer = vtk.vtkXMLPolyDataWriter() writer.SetDataModeToAscii() writer.SetFileName(os.path.join( "/Users/sansomk/caseFiles/ultrasound/cases/DSI003LER/other", "pts_out.vtp")) writer.SetInputData(polydata_pts) writer.Write() ~Kurt -- Kurt Sansom -------------- next part -------------- An HTML attachment was scrubbed... URL: From jetmonk at gmail.com Tue Oct 4 22:35:51 2016 From: jetmonk at gmail.com (JTK) Date: Tue, 4 Oct 2016 16:35:51 -1000 Subject: [vtkusers] is a machine readable list of classes and methods available? Message-ID: Hello, I?m trying to make VTK usable from the common lisp language using the Common Lisp CFFI [1] package, translating C++ methods/classes into CLOS methods/classes. I understand that VTK supports internal automated ways of doing this (used for Python and TCL glue code generation), but these are a bit excessive for my purposes (and specialized). Other methods like SWIG seem to choke on VTK code - maybe it?s all the macros? Instead, I?ve written a general package for wrapping C++ methods and classes into Lisp to let me hand-wrap VTK classes. Is there a machine readable list of the C++ class/method hierarchy available? Something like: {class: ?vtkCylinderSource? parents: {?vtkPolyDataAlgorithm?} methods: {{method: SetHeight returntype: void arguments: {{?height? ?double?}}} } } Or an equivalent in XML. Or maybe simplified macro-less C++ definitions that I could parse? Such a list of methods seems to exist implicitly for the documentation, but it isn?t machine readable. Is there a machine readable one, or is there an easy way to make it? Thanks for any tips, J.Klein [1] cffi: https://common-lisp.net/project/cffi/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Oct 4 23:27:13 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 4 Oct 2016 21:27:13 -0600 Subject: [vtkusers] is a machine readable list of classes and methods available? In-Reply-To: References: Message-ID: Hi J, My WrapVTK project uses the VTK wrapper machinery to create an XML file for each of the VTK classes, the process only takes a couple minutes. It can be found here: http://github.com/dgobbi/WrapVTK - David On Tue, Oct 4, 2016 at 8:35 PM, JTK wrote: > > Hello, > > I?m trying to make VTK usable from the common lisp language using the > Common Lisp CFFI [1] package, translating C++ methods/classes into CLOS > methods/classes. > > I understand that VTK supports internal automated ways of doing this (used > for Python and TCL glue code generation), but these are a bit excessive for > my purposes (and specialized). Other methods like SWIG seem to choke on > VTK code - maybe it?s all the macros? Instead, I?ve written a general > package for wrapping C++ methods and classes into Lisp to let me hand-wrap > VTK classes. > > Is there a machine readable list of the C++ class/method hierarchy > available? > > Something like: > > {class: ?vtkCylinderSource? > parents: {?vtkPolyDataAlgorithm?} > methods: {{method: SetHeight > returntype: void > arguments: {{?height? ?double?}}} > } > } > > > Or an equivalent in XML. Or maybe simplified macro-less C++ definitions > that I could parse? > > Such a list of methods seems to exist implicitly for the documentation, > but it isn?t machine readable. Is there a machine readable one, or is there > an easy way to make it? > > Thanks for any tips, > J.Klein > > > > [1] cffi: https://common-lisp.net/project/cffi/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jetmonk at gmail.com Tue Oct 4 23:44:21 2016 From: jetmonk at gmail.com (JTK) Date: Tue, 4 Oct 2016 17:44:21 -1000 Subject: [vtkusers] is a machine readable list of classes and methods available? In-Reply-To: References: Message-ID: <7DBBBCCD-8F78-448D-A0FC-EC5B904A9925@gmail.com> Thank you! This looks like what I need. I tried it, and it chokes on missing -- Detecting CXX compile features - done CMake Error at CMake/vtkIncludeAllKits.cmake:22 (include): include could not find load file: /opt/local/lib/cmake/vtk-7.0/Modules/vtkChartsCore-Headers.cmake Call Stack (most recent call first): CMakeLists.txt:54 (INCLUDE) I assume this means that some installations of vtk aren?t sufficient (I?m using the canned macports install)? Is there a name for the feature that installs the xxx-Headers.cmake files? J.Klein > On Oct 4, 2016, at 5:27 PM, David Gobbi wrote: > > Hi J, > > My WrapVTK project uses the VTK wrapper machinery to create an XML file for each of the VTK classes, the process only takes a couple minutes. It can be found here: > > http://github.com/dgobbi/WrapVTK > > - David > > > > On Tue, Oct 4, 2016 at 8:35 PM, JTK > wrote: > > Hello, > > I?m trying to make VTK usable from the common lisp language using the Common Lisp CFFI [1] package, translating C++ methods/classes into CLOS methods/classes. > > I understand that VTK supports internal automated ways of doing this (used for Python and TCL glue code generation), but these are a bit excessive for my purposes (and specialized). Other methods like SWIG seem to choke on VTK code - maybe it?s all the macros? Instead, I?ve written a general package for wrapping C++ methods and classes into Lisp to let me hand-wrap VTK classes. > > Is there a machine readable list of the C++ class/method hierarchy available? > > Something like: > > {class: ?vtkCylinderSource? > parents: {?vtkPolyDataAlgorithm?} > methods: {{method: SetHeight > returntype: void > arguments: {{?height? ?double?}}} > } > } > > > Or an equivalent in XML. Or maybe simplified macro-less C++ definitions that I could parse? > > Such a list of methods seems to exist implicitly for the documentation, but it isn?t machine readable. Is there a machine readable one, or is there an easy way to make it? > > Thanks for any tips, > J.Klein > > > > [1] cffi: https://common-lisp.net/project/cffi/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Oct 4 23:51:41 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 4 Oct 2016 21:51:41 -0600 Subject: [vtkusers] is a machine readable list of classes and methods available? In-Reply-To: <7DBBBCCD-8F78-448D-A0FC-EC5B904A9925@gmail.com> References: <7DBBBCCD-8F78-448D-A0FC-EC5B904A9925@gmail.com> Message-ID: Hi J, It's meant to work with a VTK build tree, so you'll have to build VTK yourself. I doubt that any VTK install has everything that's needed to wrap VTK. - David On Tue, Oct 4, 2016 at 9:44 PM, JTK wrote: > > Thank you! This looks like what I need. > > I tried it, and it chokes on missing > > -- Detecting CXX compile features - done > CMake Error at CMake/vtkIncludeAllKits.cmake:22 (include): > include could not find load file: > > /opt/local/lib/cmake/vtk-7.0/Modules/vtkChartsCore-Headers.cmake > Call Stack (most recent call first): > CMakeLists.txt:54 (INCLUDE) > > > I assume this means that some installations of vtk aren?t sufficient (I?m > using the canned macports install)? > > Is there a name for the feature that installs the xxx-Headers.cmake files? > > J.Klein > > > > > On Oct 4, 2016, at 5:27 PM, David Gobbi wrote: > > Hi J, > > My WrapVTK project uses the VTK wrapper machinery to create an XML file > for each of the VTK classes, the process only takes a couple minutes. It > can be found here: > > http://github.com/dgobbi/WrapVTK > > - David > > > > On Tue, Oct 4, 2016 at 8:35 PM, JTK wrote: > >> >> Hello, >> >> I?m trying to make VTK usable from the common lisp language using the >> Common Lisp CFFI [1] package, translating C++ methods/classes into CLOS >> methods/classes. >> >> I understand that VTK supports internal automated ways of doing this >> (used for Python and TCL glue code generation), but these are a bit >> excessive for my purposes (and specialized). Other methods like SWIG seem >> to choke on VTK code - maybe it?s all the macros? Instead, I?ve written a >> general package for wrapping C++ methods and classes into Lisp to let me >> hand-wrap VTK classes. >> >> Is there a machine readable list of the C++ class/method hierarchy >> available? >> >> Something like: >> >> {class: ?vtkCylinderSource? >> parents: {?vtkPolyDataAlgorithm?} >> methods: {{method: SetHeight >> returntype: void >> arguments: {{?height? ?double?}}} >> } >> } >> >> >> Or an equivalent in XML. Or maybe simplified macro-less C++ definitions >> that I could parse? >> >> Such a list of methods seems to exist implicitly for the documentation, >> but it isn?t machine readable. Is there a machine readable one, or is there >> an easy way to make it? >> >> Thanks for any tips, >> J.Klein >> >> >> >> [1] cffi: https://common-lisp.net/project/cffi/ >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Oct 5 00:09:53 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 4 Oct 2016 22:09:53 -0600 Subject: [vtkusers] is a machine readable list of classes and methods available? In-Reply-To: References: <7DBBBCCD-8F78-448D-A0FC-EC5B904A9925@gmail.com> Message-ID: Actually, building VTK might not be necessary. If you simply get the VTK source, create a build directory, and then configure with cmake, then that should be enough for WrapVTK to use that VTK build directory to create the xml files. On Tue, Oct 4, 2016 at 9:51 PM, David Gobbi wrote: > Hi J, > > It's meant to work with a VTK build tree, so you'll have to build VTK > yourself. > I doubt that any VTK install has everything that's needed to wrap VTK. > > - David > > > On Tue, Oct 4, 2016 at 9:44 PM, JTK wrote: > >> >> Thank you! This looks like what I need. >> >> I tried it, and it chokes on missing >> >> -- Detecting CXX compile features - done >> CMake Error at CMake/vtkIncludeAllKits.cmake:22 (include): >> include could not find load file: >> >> /opt/local/lib/cmake/vtk-7.0/Modules/vtkChartsCore-Headers.cmake >> Call Stack (most recent call first): >> CMakeLists.txt:54 (INCLUDE) >> >> >> I assume this means that some installations of vtk aren?t sufficient (I?m >> using the canned macports install)? >> >> Is there a name for the feature that installs the xxx-Headers.cmake files? >> >> J.Klein >> >> >> >> >> On Oct 4, 2016, at 5:27 PM, David Gobbi wrote: >> >> Hi J, >> >> My WrapVTK project uses the VTK wrapper machinery to create an XML file >> for each of the VTK classes, the process only takes a couple minutes. It >> can be found here: >> >> http://github.com/dgobbi/WrapVTK >> >> - David >> >> >> >> On Tue, Oct 4, 2016 at 8:35 PM, JTK wrote: >> >>> >>> Hello, >>> >>> I?m trying to make VTK usable from the common lisp language using the >>> Common Lisp CFFI [1] package, translating C++ methods/classes into CLOS >>> methods/classes. >>> >>> I understand that VTK supports internal automated ways of doing this >>> (used for Python and TCL glue code generation), but these are a bit >>> excessive for my purposes (and specialized). Other methods like SWIG seem >>> to choke on VTK code - maybe it?s all the macros? Instead, I?ve written a >>> general package for wrapping C++ methods and classes into Lisp to let me >>> hand-wrap VTK classes. >>> >>> Is there a machine readable list of the C++ class/method hierarchy >>> available? >>> >>> Something like: >>> >>> {class: ?vtkCylinderSource? >>> parents: {?vtkPolyDataAlgorithm?} >>> methods: {{method: SetHeight >>> returntype: void >>> arguments: {{?height? ?double?}}} >>> } >>> } >>> >>> >>> Or an equivalent in XML. Or maybe simplified macro-less C++ definitions >>> that I could parse? >>> >>> Such a list of methods seems to exist implicitly for the documentation, >>> but it isn?t machine readable. Is there a machine readable one, or is there >>> an easy way to make it? >>> >>> Thanks for any tips, >>> J.Klein >>> >>> >>> >>> [1] cffi: https://common-lisp.net/project/cffi/ >>> >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Wed Oct 5 13:11:09 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Wed, 5 Oct 2016 13:11:09 -0400 Subject: [vtkusers] vtkWeb application with several windows Message-ID: Hi Seb and all, I am moving along with porting our uvcdat web application to the new API. Is there an example where I see how to create/destroy multiple render windows and associate them with different document elements in the browser? In the past we used to use getGlobalId(renderWindow) on the server, send that to the client and then use vtkWeb.createViewport and pass that ID. With the new API I only see self.Application.GetObjectIdMap().SetActiveObject("VIEW", renderWindow) On the client we use const renderer = new RemoteRenderer(client); renderer.setContainer(documentElement); How do I associate a RemoteRenderer with a specific render window on the server? Thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Wed Oct 5 13:18:10 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Wed, 5 Oct 2016 11:18:10 -0600 Subject: [vtkusers] vtkWeb application with several windows In-Reply-To: References: Message-ID: The server API never changed. The "SetActiveObject" is used to not have to worry about knowing the view id. So the server should remain the way it was before. And on the client the constructor of the RemoteRenderer does take the view id => constructor(pvwClient, container = null, id = -1) So in your example: const renderer = new RemoteRenderer(client, null, 234234); On Wed, Oct 5, 2016 at 11:11 AM, Dan Lipsa wrote: > Hi Seb and all, > I am moving along with porting our uvcdat web application to the new API. > > Is there an example where I see how to create/destroy multiple render > windows and associate them with different document elements in the browser? > > In the past we used to use getGlobalId(renderWindow) on the server, send > that to the client and then use vtkWeb.createViewport and pass that ID. > > With the new API I only see > self.Application.GetObjectIdMap().SetActiveObject("VIEW", renderWindow) > > On the client we use > const renderer = new RemoteRenderer(client); > renderer.setContainer(documentElement); > > How do I associate a RemoteRenderer with a specific render window on the > server? > > Thanks, > Dan > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Wed Oct 5 13:21:39 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Wed, 5 Oct 2016 13:21:39 -0400 Subject: [vtkusers] vtkWeb application with several windows In-Reply-To: References: Message-ID: Great. Thanks Seb! Dan On Wed, Oct 5, 2016 at 1:18 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > The server API never changed. The "SetActiveObject" is used to not have > to worry about knowing the view id. > So the server should remain the way it was before. > > And on the client the constructor of the RemoteRenderer does take the view > id > => constructor(pvwClient, container = null, id = -1) > > So in your example: > const renderer = new RemoteRenderer(client, null, 234234); > > On Wed, Oct 5, 2016 at 11:11 AM, Dan Lipsa wrote: > >> Hi Seb and all, >> I am moving along with porting our uvcdat web application to the new API. >> >> Is there an example where I see how to create/destroy multiple render >> windows and associate them with different document elements in the browser? >> >> In the past we used to use getGlobalId(renderWindow) on the server, send >> that to the client and then use vtkWeb.createViewport and pass that ID. >> >> With the new API I only see >> self.Application.GetObjectIdMap().SetActiveObject("VIEW", renderWindow) >> >> On the client we use >> const renderer = new RemoteRenderer(client); >> renderer.setContainer(documentElement); >> >> How do I associate a RemoteRenderer with a specific render window on the >> server? >> >> Thanks, >> Dan >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From neok.m4700 at gmail.com Wed Oct 5 14:27:46 2016 From: neok.m4700 at gmail.com (neok m4700) Date: Wed, 5 Oct 2016 20:27:46 +0200 Subject: [vtkusers] GL2PSExporter Message-ID: Hi, I have some trouble with the test provided with the vtk sources. Take this one: vtk/IO/Export/Testing/Cxx/TestGL2PSExporterRaster.cxx I have attached the exported pdf.gz file, the screenshot of the window appearing on my screen and the source files used to build the example. What I can see is that the position of the vector data (text) is correct, but the rasterized cone is not (we only see the upper left hand corner of the cone on the .ps file). I've had the same experience with the python wrapping (cone.{py,pdf.gz,png} attached). Same is happening for eps, ps, compressed or not. Does anyone have a clue on how to fix this ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- cmake_minimum_required(VERSION 2.8) PROJECT(TestGL2PSExporterRaster) find_package(VTK REQUIRED) include(${VTK_USE_FILE}) add_executable(TestGL2PSExporterRaster TestGL2PSExporterRaster) if(VTK_LIBRARIES) target_link_libraries(TestGL2PSExporterRaster ${VTK_LIBRARIES}) else() target_link_libraries(TestGL2PSExporterRaster vtkHybrid vtkWidgets) endif() -------------- next part -------------- A non-text attachment was scrubbed... Name: TestGL2PSExporterRaster.pdf.gz Type: application/x-gzip Size: 6792 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestGL2PSExporterRaster.cxx Type: text/x-c++src Size: 4031 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestGL2PSExporterRaster.png Type: image/png Size: 40483 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cone.png Type: image/png Size: 16738 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cone.pdf.gz Type: application/x-gzip Size: 3858 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cone.py Type: text/x-python Size: 484 bytes Desc: not available URL: From jcplatt at dsl.pipex.com Wed Oct 5 15:29:52 2016 From: jcplatt at dsl.pipex.com (John Platt) Date: Wed, 5 Oct 2016 20:29:52 +0100 Subject: [vtkusers] failure in vtkMapper::GetBounds() Message-ID: Hi, I have recently had a failure in vtkMapper::GetBounds() (VTK 5.10) where the vtkDataSet returned by GetInput() is deleted by Update(). This appears to happen when the input type to my vtkDataSetMapper has been switched from vtkPolyData to vtkUnstructuredGrid then back to vtkPolyData. It can be fixed by getting the input again after Update() ... this->Update(); input = this->GetInput(); If switching the input type to the mapper is not a valid operation, then just a comment as to why this may fail would be useful. Apologies if this has already been addressed in later versions. Thanks, John. From daryl at daryllee.com Wed Oct 5 18:08:49 2016 From: daryl at daryllee.com (Daryl Lee) Date: Wed, 5 Oct 2016 15:08:49 -0700 (MST) Subject: [vtkusers] VTK-Python Fails McAfee Check In-Reply-To: References: Message-ID: <1475705329677-5740679.post@n5.nabble.com> I get the same thing. Did you get a solution that hasn't been posted on this forum? Does it appear that anyone cares besides you and me? -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Python-Fails-McAfee-Check-tp5739704p5740679.html Sent from the VTK - Users mailing list archive at Nabble.com. From rubenvanstaden at gmail.com Thu Oct 6 05:53:32 2016 From: rubenvanstaden at gmail.com (Ruben van Staden) Date: Thu, 6 Oct 2016 11:53:32 +0200 Subject: [vtkusers] Polygon difference Message-ID: Dear Readers Is there a way in VTK in which I can find the resultant difference polygon of two 3D crossing polygons? In other words, I want to get the new polygon that represent the crossing of two cubes, in 3D. Regards Ruben -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkorir at ebi.ac.uk Thu Oct 6 09:11:45 2016 From: pkorir at ebi.ac.uk (Paul Kibet Korir) Date: Thu, 6 Oct 2016 14:11:45 +0100 Subject: [vtkusers] Polygon difference In-Reply-To: References: Message-ID: <14c43f35-183d-8d47-fe14-e3b650aae0cb@ebi.ac.uk> Hi Ruben, Do you mean 'polygon' or 'polyhedron'? Have you tried 'vtkBooleanOperationPolyDataFilter'? There is a good example of this at http://www.programcreek.com/python/example/65370/vtk.vtkBooleanOperationPolyDataFilter. I think you want the 'union' operation. Paul On 06/10/2016 10:53, Ruben van Staden wrote: > Dear Readers > > Is there a way in VTK in which I can find the resultant difference > polygon of two 3D crossing polygons? In other words, I want to get > the new polygon that represent the crossing of two cubes, in 3D. > > Regards > Ruben > > > _______________________________________________ > 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 -- With kind regards, *Paul K Korir, PhD* +44 1223 49 44 22 -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Thu Oct 6 11:11:42 2016 From: david.lonie at kitware.com (David Lonie) Date: Thu, 6 Oct 2016 11:11:42 -0400 Subject: [vtkusers] GL2PSExporter In-Reply-To: References: Message-ID: Strange, your python script works as expected for me (see attached output). Is there anything unusual about your setup? (Offscreen rendering, drivers, etc) On Wed, Oct 5, 2016 at 2:27 PM, neok m4700 wrote: > Hi, > > I have some trouble with the test provided with the vtk sources. > > Take this one: > vtk/IO/Export/Testing/Cxx/TestGL2PSExporterRaster.cxx > > I have attached the exported pdf.gz file, the screenshot of the window > appearing on my screen and the source files used to build the example. > > What I can see is that the position of the vector data (text) is correct, > but the rasterized cone is not (we only see the upper left hand corner of > the cone on the .ps file). > > I've had the same experience with the python wrapping > (cone.{py,pdf.gz,png} attached). > Same is happening for eps, ps, compressed or not. > > Does anyone have a clue on how to fix this ? > > Thanks > > _______________________________________________ > 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: cone.pdf.gz Type: application/x-gzip Size: 8653 bytes Desc: not available URL: From david.lonie at kitware.com Thu Oct 6 11:18:57 2016 From: david.lonie at kitware.com (David Lonie) Date: Thu, 6 Oct 2016 11:18:57 -0400 Subject: [vtkusers] failure in vtkMapper::GetBounds() In-Reply-To: References: Message-ID: On Wed, Oct 5, 2016 at 3:29 PM, John Platt wrote: > If switching the input type to the mapper is not a valid operation, then > just a comment as to why this may fail would be useful. Apologies if this > has already been addressed in later versions. > Looks like a definite bug to me. I've pushed a merge request that should fix this: https://gitlab.kitware.com/vtk/vtk/merge_requests/2049 Thanks for the report! Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.petruzza at gmail.com Thu Oct 6 12:48:57 2016 From: steve.petruzza at gmail.com (Steve Petruzza) Date: Thu, 6 Oct 2016 19:48:57 +0300 Subject: [vtkusers] Volume Rendering and zbuffer In-Reply-To: References: <1475597554579-5740662.post@n5.nabble.com> Message-ID: Thank you Aashish, I tried to use the ?vtkOpenGLGPUVolumeRayCastMapper? as following: ????????????? vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->RenderToImageOn(); mapper->SetBlendModeToComposite(); vtkSmartPointer volumep = vtkSmartPointer::New(); volumep->SetMapper(mapper); renderer->AddVolume(volumep); // rendering and camera settings? renderWindow->SetOffScreenRendering( 1 ); renderWindow->Render(); vtkSmartPointer depthImage = vtkSmartPointer::New(); vtkSmartPointer colorImage = vtkSmartPointer::New(); mapper->GetDepthImage(depthImage); mapper->GetColorImage(colorImage); ????????????? The depthImage has type unsigned char, and I noticed that it contains only values 255 or 0 (for the background), nothing in between. I was expecting a gradient of values, generally floats or even normalized to char. What am I missing? Thank you, Steve > On 04 Oct 2016, at 19:48, Aashish Chaudhary wrote: > > Hi Steve, > > If you intend to get the depth values from volume (and not just geometry), then not clearing the depth buffer will not help either since we don't write to depth buffer (the defaults won't make sense anyways). If you are looking for depth values from both volume and geometry, then you may want to look into this option RenderToImage in the base class (https://github.com/Kitware/VTK/blob/master/Rendering/Volume/vtkGPUVolumeRayCastMapper.h ). Give it a try and let us know if that works for you. If you enable this option then you can call GetColorImage and GetDepthImage for the depth values. > > Thanks, > > > On Tue, Oct 4, 2016 at 12:34 PM Aashish Chaudhary > wrote: > That is because we make a call to clear the depth buffer bit that is: glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT). I have to think all of the use-cases but I think we don't need to clear the depth buffer. We can push a simple fix for it on the master branch. > > - Aashish > > > > > On Tue, Oct 4, 2016 at 12:12 PM stevep > wrote: > Hi all, > > I used the vtkPolyDataMapper to render a surface and then with the > vtkRenderWindow I can get correctly the ZBuffer using GetZbufferData and the > RGB data via vtkWindowToImageFilter. > > When I use, starting from the same vtkImageData, a volume rendering like the > SmartVolumeMapper (as in the following): > http://www.vtk.org/Wiki/VTK/Examples/Cxx/VolumeRendering/SmartVolumeMapper > > The RGB data are correct but the ZBuffer contains all values == 1 (checked > dumping the float array to disk). > > I get the same result changing blend mode and using a > vtkFixedPointVolumeRayCastMapper. > > What am I missing? > > Thank you > > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/Volume-Rendering-and-zbuffer-tp5740662.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 priyavashistha2 at gmail.com Thu Oct 6 13:11:31 2016 From: priyavashistha2 at gmail.com (Priya Vashistha) Date: Thu, 6 Oct 2016 12:11:31 -0500 Subject: [vtkusers] Volume Rendering and zbuffer In-Reply-To: References: <1475597554579-5740662.post@n5.nabble.com> Message-ID: Hello Everyone, I an new to VTK and have been trying to install it since past two weeks and haven't had any success. I am trying to install VTK7.0 using cmake and intend to use it with Visual Studio Express 2015. My OS is win10. I do not see any errors when i build the VTK binaries using Cmake and build the vtk.sln. But, when I built the "INSTALL" project in vtk(which is supposed to install VTK in program files) it gives me me the following error: Severity Code Description Project File Line Suppression State Error MSB3073 The command "setlocal "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd :VCEnd" exited with code 1. INSTALL C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133 I don't know what to do at this point. Any help will be greatly appreciated. Thank You On Thu, Oct 6, 2016 at 11:48 AM, Steve Petruzza wrote: > Thank you Aashish, > > I tried to use the ?vtkOpenGLGPUVolumeRayCastMapper? as following: > > ????????????? > > vtkSmartPointer mapper > = vtkSmartPointer::New(); > > mapper->RenderToImageOn(); > mapper->SetBlendModeToComposite(); > > vtkSmartPointer volumep = vtkSmartPointer::New(); > volumep->SetMapper(mapper); > > renderer->AddVolume(volumep); > > // rendering and camera settings? > > renderWindow->SetOffScreenRendering( 1 ); > renderWindow->Render(); > > vtkSmartPointer depthImage = vtkSmartPointer: > :New(); > vtkSmartPointer colorImage = vtkSmartPointer: > :New(); > > mapper->GetDepthImage(depthImage); > mapper->GetColorImage(colorImage); > > ????????????? > > The depthImage has type unsigned char, and I noticed that it contains only > values 255 or 0 (for the background), nothing in between. > I was expecting a gradient of values, generally floats or even normalized > to char. > > What am I missing? > > Thank you, > Steve > > > > > On 04 Oct 2016, at 19:48, Aashish Chaudhary > wrote: > > Hi Steve, > > If you intend to get the depth values from volume (and not just geometry), > then not clearing the depth buffer will not help either since we don't > write to depth buffer (the defaults won't make sense anyways). If you are > looking for depth values from both volume and geometry, then you may want > to look into this option RenderToImage in the base class ( > https://github.com/Kitware/VTK/blob/master/Rendering/Volume/ > vtkGPUVolumeRayCastMapper.h). Give it a try and let us know if that works > for you. If you enable this option then you can call GetColorImage and > GetDepthImage for the depth values. > > Thanks, > > > On Tue, Oct 4, 2016 at 12:34 PM Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > >> That is because we make a call to clear the depth buffer bit that is: >> glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT). I have to think all of >> the use-cases but I think we don't need to clear the depth buffer. We can >> push a simple fix for it on the master branch. >> >> - Aashish >> >> >> >> >> On Tue, Oct 4, 2016 at 12:12 PM stevep wrote: >> >> Hi all, >> >> I used the vtkPolyDataMapper to render a surface and then with the >> vtkRenderWindow I can get correctly the ZBuffer using GetZbufferData and >> the >> RGB data via vtkWindowToImageFilter. >> >> When I use, starting from the same vtkImageData, a volume rendering like >> the >> SmartVolumeMapper (as in the following): >> http://www.vtk.org/Wiki/VTK/Examples/Cxx/VolumeRendering/ >> SmartVolumeMapper >> >> The RGB data are correct but the ZBuffer contains all values == 1 (checked >> dumping the float array to disk). >> >> I get the same result changing blend mode and using a >> vtkFixedPointVolumeRayCastMapper. >> >> What am I missing? >> >> Thank you >> >> >> >> >> >> -- >> View this message in context: http://vtk.1045678.n5.nabble. >> com/Volume-Rendering-and-zbuffer-tp5740662.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 priyavashistha2 at gmail.com Thu Oct 6 13:14:00 2016 From: priyavashistha2 at gmail.com (Priya Vashistha) Date: Thu, 6 Oct 2016 12:14:00 -0500 Subject: [vtkusers] VTK 7.0 install Message-ID: Hello Everyone, I an new to VTK and have been trying to install it since past two weeks and haven't had any success. I am trying to install VTK7.0 using cmake and intend to use it with Visual Studio Express 2015. My OS is win10. I do not see any errors when i build the VTK binaries using Cmake and build the vtk.sln. But, when I built the "INSTALL" project in vtk(which is supposed to install VTK in program files) it gives me me the following error: Severity Code Description Project File Line Suppression State Error MSB3073 The command "setlocal "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd :VCEnd" exited with code 1. INSTALL C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133 I don't know what to do at this point. Any help will be greatly appreciated. Thank You On Thu, Oct 6, 2016 at 12:11 PM, Priya Vashistha wrote: > Hello Everyone, > > I an new to VTK and have been trying to install it since past two weeks > and haven't had any success. I am trying to install VTK7.0 using cmake and > intend to use it with Visual Studio Express 2015. My OS is win10. > I do not see any errors when i build the VTK binaries using Cmake and > build the vtk.sln. But, when I built the "INSTALL" project in vtk(which is > supposed to install VTK in program files) it gives me me the following > error: > > Severity Code Description Project File Line Suppression State > Error MSB3073 The command "setlocal > "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P > cmake_install.cmake > if %errorlevel% neq 0 goto :cmEnd > :cmEnd > endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone > :cmErrorLevel > exit /b %1 > :cmDone > if %errorlevel% neq 0 goto :VCEnd > :VCEnd" exited with code 1. INSTALL C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133 > > I don't know what to do at this point. Any help will be greatly > appreciated. > > Thank You > > On Thu, Oct 6, 2016 at 11:48 AM, Steve Petruzza > wrote: > >> Thank you Aashish, >> >> I tried to use the ?vtkOpenGLGPUVolumeRayCastMapper? as following: >> >> ????????????? >> >> vtkSmartPointer mapper >> = vtkSmartPointer::New(); >> >> mapper->RenderToImageOn(); >> mapper->SetBlendModeToComposite(); >> >> vtkSmartPointer volumep = vtkSmartPointer::New(); >> volumep->SetMapper(mapper); >> >> renderer->AddVolume(volumep); >> >> // rendering and camera settings? >> >> renderWindow->SetOffScreenRendering( 1 ); >> renderWindow->Render(); >> >> vtkSmartPointer depthImage = vtkSmartPointer: >> :New(); >> vtkSmartPointer colorImage = vtkSmartPointer: >> :New(); >> >> mapper->GetDepthImage(depthImage); >> mapper->GetColorImage(colorImage); >> >> ????????????? >> >> The depthImage has type unsigned char, and I noticed that it contains >> only values 255 or 0 (for the background), nothing in between. >> I was expecting a gradient of values, generally floats or even normalized >> to char. >> >> What am I missing? >> >> Thank you, >> Steve >> >> >> >> >> On 04 Oct 2016, at 19:48, Aashish Chaudhary < >> aashish.chaudhary at kitware.com> wrote: >> >> Hi Steve, >> >> If you intend to get the depth values from volume (and not just >> geometry), then not clearing the depth buffer will not help either since we >> don't write to depth buffer (the defaults won't make sense anyways). If you >> are looking for depth values from both volume and geometry, then you may >> want to look into this option RenderToImage in the base class ( >> https://github.com/Kitware/VTK/blob/master/Rendering/Volume >> /vtkGPUVolumeRayCastMapper.h). Give it a try and let us know if that >> works for you. If you enable this option then you can call GetColorImage >> and GetDepthImage for the depth values. >> >> Thanks, >> >> >> On Tue, Oct 4, 2016 at 12:34 PM Aashish Chaudhary < >> aashish.chaudhary at kitware.com> wrote: >> >>> That is because we make a call to clear the depth buffer bit that is: >>> glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT). I have to think all of >>> the use-cases but I think we don't need to clear the depth buffer. We can >>> push a simple fix for it on the master branch. >>> >>> - Aashish >>> >>> >>> >>> >>> On Tue, Oct 4, 2016 at 12:12 PM stevep wrote: >>> >>> Hi all, >>> >>> I used the vtkPolyDataMapper to render a surface and then with the >>> vtkRenderWindow I can get correctly the ZBuffer using GetZbufferData and >>> the >>> RGB data via vtkWindowToImageFilter. >>> >>> When I use, starting from the same vtkImageData, a volume rendering like >>> the >>> SmartVolumeMapper (as in the following): >>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/VolumeRendering/Sma >>> rtVolumeMapper >>> >>> The RGB data are correct but the ZBuffer contains all values == 1 >>> (checked >>> dumping the float array to disk). >>> >>> I get the same result changing blend mode and using a >>> vtkFixedPointVolumeRayCastMapper. >>> >>> What am I missing? >>> >>> Thank you >>> >>> >>> >>> >>> >>> -- >>> View this message in context: http://vtk.1045678.n5.nabble.c >>> om/Volume-Rendering-and-zbuffer-tp5740662.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 dan.lipsa at kitware.com Thu Oct 6 13:37:20 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Thu, 6 Oct 2016 13:37:20 -0400 Subject: [vtkusers] vtkWeb - callback when the client disconnects (on reload) Message-ID: Hi Seb and all, Is there a callback I can provide on the server that will be called when the client disconnects? I need to close all windows opened by a client. Related to this, is there an ID assigned to a client that I can use to associate open windows with certain clients? This way, I can only close windows only for a client that disconnected. Thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Thu Oct 6 13:41:22 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Thu, 6 Oct 2016 11:41:22 -0600 Subject: [vtkusers] vtkWeb - callback when the client disconnects (on reload) In-Reply-To: References: Message-ID: Don't you have one process per client? If so, the server should shutdown automatically, unless the client notified the server that he was leaving for good in which case the server should stop almost immediately. On Thu, Oct 6, 2016 at 11:37 AM, Dan Lipsa wrote: > Hi Seb and all, > > Is there a callback I can provide on the server that will be called when > the client disconnects? > I need to close all windows opened by a client. > > Related to this, is there an ID assigned to a client that I can use to > associate open windows with certain clients? This way, I can only close > windows only for a client that disconnected. > > Thanks, > Dan > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Thu Oct 6 13:49:33 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Thu, 6 Oct 2016 13:49:33 -0400 Subject: [vtkusers] vtkWeb - callback when the client disconnects (on reload) In-Reply-To: References: Message-ID: I am not sure. Does a separate tab count as a separate client? Or separate clients are only considered connections comings from separate computers? I notice that reload or closing a tab in the browser does not close the open windows on the server - I think it should. I am trying to fix this case. On Thu, Oct 6, 2016 at 1:41 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > Don't you have one process per client? If so, the server should shutdown > automatically, unless the client notified the server that he was leaving > for good in which case the server should stop almost immediately. > > > > On Thu, Oct 6, 2016 at 11:37 AM, Dan Lipsa wrote: > >> Hi Seb and all, >> >> Is there a callback I can provide on the server that will be called when >> the client disconnects? >> I need to close all windows opened by a client. >> >> Related to this, is there an ID assigned to a client that I can use to >> associate open windows with certain clients? This way, I can only close >> windows only for a client that disconnected. >> >> Thanks, >> Dan >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Thu Oct 6 13:57:51 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Thu, 6 Oct 2016 11:57:51 -0600 Subject: [vtkusers] vtkWeb - callback when the client disconnects (on reload) In-Reply-To: References: Message-ID: Separate client mean for me different people. And if collaboration is not involved, then each person should have its own process. For your use case, it seems that's the same person that open several tabs but connect to the same process which is totally fine. Which mean in your use case, on the "unload" of your tab (js side), you should have a callback that will let the server know which view should be removed assuming that: "a view from one tab is not used in another tab". On Thu, Oct 6, 2016 at 11:49 AM, Dan Lipsa wrote: > I am not sure. Does a separate tab count as a separate client? > Or separate clients are only considered connections comings from separate > computers? > > I notice that reload or closing a tab in the browser does not close the > open windows on the server - I think it should. I am trying to fix this > case. > > On Thu, Oct 6, 2016 at 1:41 PM, Sebastien Jourdain < > sebastien.jourdain at kitware.com> wrote: > >> Don't you have one process per client? If so, the server should shutdown >> automatically, unless the client notified the server that he was leaving >> for good in which case the server should stop almost immediately. >> >> >> >> On Thu, Oct 6, 2016 at 11:37 AM, Dan Lipsa wrote: >> >>> Hi Seb and all, >>> >>> Is there a callback I can provide on the server that will be called when >>> the client disconnects? >>> I need to close all windows opened by a client. >>> >>> Related to this, is there an ID assigned to a client that I can use to >>> associate open windows with certain clients? This way, I can only close >>> windows only for a client that disconnected. >>> >>> Thanks, >>> Dan >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Thu Oct 6 14:07:37 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Thu, 6 Oct 2016 14:07:37 -0400 Subject: [vtkusers] vtkWeb - callback when the client disconnects (on reload) In-Reply-To: References: Message-ID: Thanks Seb! I will do that. Dan On Thu, Oct 6, 2016 at 1:57 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > Separate client mean for me different people. And if collaboration is not > involved, then each person should have its own process. > > For your use case, it seems that's the same person that open several tabs > but connect to the same process which is totally fine. > > Which mean in your use case, on the "unload" of your tab (js side), you > should have a callback that will let the server know which view should be > removed assuming that: "a view from one tab is not used in another tab". > > > > > On Thu, Oct 6, 2016 at 11:49 AM, Dan Lipsa wrote: > >> I am not sure. Does a separate tab count as a separate client? >> Or separate clients are only considered connections comings from separate >> computers? >> >> I notice that reload or closing a tab in the browser does not close the >> open windows on the server - I think it should. I am trying to fix this >> case. >> >> On Thu, Oct 6, 2016 at 1:41 PM, Sebastien Jourdain < >> sebastien.jourdain at kitware.com> wrote: >> >>> Don't you have one process per client? If so, the server should shutdown >>> automatically, unless the client notified the server that he was leaving >>> for good in which case the server should stop almost immediately. >>> >>> >>> >>> On Thu, Oct 6, 2016 at 11:37 AM, Dan Lipsa >>> wrote: >>> >>>> Hi Seb and all, >>>> >>>> Is there a callback I can provide on the server that will be called >>>> when the client disconnects? >>>> I need to close all windows opened by a client. >>>> >>>> Related to this, is there an ID assigned to a client that I can use to >>>> associate open windows with certain clients? This way, I can only close >>>> windows only for a client that disconnected. >>>> >>>> Thanks, >>>> Dan >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From enzo.matsumiya at gmail.com Thu Oct 6 14:45:18 2016 From: enzo.matsumiya at gmail.com (Enzo Matsumiya) Date: Thu, 6 Oct 2016 15:45:18 -0300 Subject: [vtkusers] Fill vtkSpline contour Message-ID: Hello, I have a set of points which are used to construct splines (vtkCardinalSpline) on my scene. I'm using vtkLineSource + vtkCardinalSpline + vtkSplineFilter to display it, and it's working fine. They form some sort of closed contours. Now I need to fill this structures in some way. I have tried using vtkDelaunay3D, based on this example: http://www.paraview.org/Wiki/VTK/Examples/Boneyard/Cxx/PolyData/ConvexHullDelaunay3D It really fills some of my structures, but it doesn't do it correctly. I think the problem might that I have some structures that are apart from each other, but inside the same actor. How else could I achieve this? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rubenvanstaden at gmail.com Fri Oct 7 07:38:43 2016 From: rubenvanstaden at gmail.com (Ruben van Staden) Date: Fri, 7 Oct 2016 13:38:43 +0200 Subject: [vtkusers] Color flickering Message-ID: Dear Readers I have two overlapping polyhedrons that each have a different color. When I plot them using Paraview, the part of the structure that overlaps starts flickering as I rotate the structure. Almost like the program is confused to what coloring to add to that part, since they overlap. Is there a way to solve this, somehow using VKT, or will I have to do polyhedron boolean operations? Regards Ruben -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Fri Oct 7 08:41:41 2016 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 7 Oct 2016 08:41:41 -0400 Subject: [vtkusers] Color flickering In-Reply-To: References: Message-ID: If they are in two different mappers and you are using the new OpenGL2 backend, then you can solve it in VTK by calling SetResolveCoincidentTopologyToPolygonOffset(); SetRelativeCoincidentTopologyPolygonOffsetParameters(-2,-2); on one of the mappers. If they are in the same mapper then, you cannot solve it in VTK as the two polygons occupy exactly the same space, but due to driver specific rendering implementations there may be some differences frame to frame in what pixels end up on top. Hope that helps Ken On Fri, Oct 7, 2016 at 7:38 AM, Ruben van Staden wrote: > Dear Readers > > I have two overlapping polyhedrons that each have a different color. > When I plot them using Paraview, the part of the structure that overlaps > starts flickering as I rotate the structure. Almost like the program is > confused > to what coloring to add to that part, since they overlap. > > Is there a way to solve this, somehow using VKT, or will I have to > do polyhedron boolean operations? > > Regards > Ruben > > _______________________________________________ > 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 > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From neok.m4700 at gmail.com Fri Oct 7 08:46:09 2016 From: neok.m4700 at gmail.com (neok m4700) Date: Fri, 7 Oct 2016 14:46:09 +0200 Subject: [vtkusers] GL2PSExporter In-Reply-To: References: Message-ID: Hi David, Thank you for this feedback. I am running Ubuntu 16.04.1 My cmake options when building vtk are roughly: -DBUILD_DOCUMENTATION=ON -DBUILD_TESTING=ON -DBUILD_EXAMPLES=ON -DBUILD_SHARED_LIBS=ON -DVTK_WRAP_PYTHON=ON -DVTK_PYTHON_VERSION=3 -DVTK_Group_Tk=ON -DVTK_Group_Rendering=ON -DVTK_Group_Views=ON -DVTK_Group_MPI=ON -DVTK_RENDERING_BACKEND=OpenGL2 -DModule_vtkRenderingMatplotlib=ON -DModule_vtkIOExportOpenGL2=ON -DModule_vtkgl2ps=ON -DModule_vtkRenderingContextOpenGL2=ON -DModule_vtkRenderingOpenGL2=ON -DModule_vtkRenderingGL2PSOpenGL2=ON -DModule_vtkRenderingParallel=ON -DModule_vtkRenderingVolumeOpenGL2=ON 2016-10-06 17:11 GMT+02:00 David Lonie : > Strange, your python script works as expected for me (see attached output). > > Is there anything unusual about your setup? (Offscreen rendering, drivers, > etc) > > On Wed, Oct 5, 2016 at 2:27 PM, neok m4700 wrote: > >> Hi, >> >> I have some trouble with the test provided with the vtk sources. >> >> Take this one: >> vtk/IO/Export/Testing/Cxx/TestGL2PSExporterRaster.cxx >> >> I have attached the exported pdf.gz file, the screenshot of the window >> appearing on my screen and the source files used to build the example. >> >> What I can see is that the position of the vector data (text) is correct, >> but the rasterized cone is not (we only see the upper left hand corner of >> the cone on the .ps file). >> >> I've had the same experience with the python wrapping >> (cone.{py,pdf.gz,png} attached). >> Same is happening for eps, ps, compressed or not. >> >> Does anyone have a clue on how to fix this ? >> >> Thanks >> >> _______________________________________________ >> 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 paul.melis at surfsara.nl Fri Oct 7 09:44:16 2016 From: paul.melis at surfsara.nl (Paul Melis) Date: Fri, 7 Oct 2016 15:44:16 +0200 (CEST) Subject: [vtkusers] Compile error VTK 7.0.0 + VS2008 x86 + Xdmf2 Message-ID: <1718222900.1436876.1475847856737.JavaMail.zimbra@surfsara.nl> Hi, It seems something goes wrong relating to detection/sizeof the 64-bit integer type when compiling VTK 7.0.0 with VS 2008 x64 (or more precisely Microsoft Visual C++ Compiler for Python 2.7, which basically is a stripped version of VS2008): [ 38%] Building CXX object ThirdParty/xdmf2/vtkxdmf2/libsrc/CMakeFiles/vtkxdmf2. dir/XdmfArray.cxx.obj XdmfArray.cxx D:\Build\vtk-7.0.0-win64-py27\ThirdParty\xdmf2\vtkxdmf2\libsrc\XdmfConfig.h(118) : fatal error C1189: #error : "64 bit long not defined" NMAKE : fatal error U1077: 'C:\Users\Opti\AppData\Local\Programs\Common\MICROS~1 \VISUAL~1\9.0\VC\bin\amd64\cl.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Users\Opti\AppData\Local\Programs\Common\Microso ft\Visual C++ for Python\9.0\VC\Bin\amd64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Users\Opti\AppData\Local\Programs\Common\Microso ft\Visual C++ for Python\9.0\VC\Bin\amd64\nmake.exe"' : return code '0x2' Stop. The relevant piece from XdmfConfig.h where the error above comes from is: #if defined( SIZEOF_LONG_LONG ) # define XDMF_64_INT long long # define HAVE_64_INT # define XDMF_have_64_bit_int #elif defined( SIZEOF___INT64 ) # define XDMF_64_INT __int64 # define HAVE_64_INT #else # error "64 bit long not defined" #endif I don't see where SIZEOF_LONG_LONG or SIZEOF__INT64 should come from in this case. Any clues where to check? Regards, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From rubenvanstaden at gmail.com Fri Oct 7 09:51:17 2016 From: rubenvanstaden at gmail.com (Ruben van Staden) Date: Fri, 7 Oct 2016 15:51:17 +0200 Subject: [vtkusers] Color flickering In-Reply-To: References: Message-ID: Hey Ken Thanks for the reply. Is it possible to use mappers and still write to a VTK file using: vtkSmartPointer writer = vtkSmartPointer::New(); Regards Ruben On Fri, Oct 7, 2016 at 2:41 PM, Ken Martin wrote: > If they are in two different mappers and you are using the new OpenGL2 > backend, then you can solve it in VTK by calling > > SetResolveCoincidentTopologyToPolygonOffset(); > SetRelativeCoincidentTopologyPolygonOffsetParameters(-2,-2); > > on one of the mappers. If they are in the same mapper then, you cannot > solve it in VTK as the two polygons occupy exactly the same space, but due > to driver specific rendering implementations there may be some differences > frame to frame in what pixels end up on top. > > Hope that helps > Ken > > > > > > On Fri, Oct 7, 2016 at 7:38 AM, Ruben van Staden > wrote: > >> Dear Readers >> >> I have two overlapping polyhedrons that each have a different color. >> When I plot them using Paraview, the part of the structure that overlaps >> starts flickering as I rotate the structure. Almost like the program is >> confused >> to what coloring to add to that part, since they overlap. >> >> Is there a way to solve this, somehow using VKT, or will I have to >> do polyhedron boolean operations? >> >> Regards >> Ruben >> >> _______________________________________________ >> 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 >> >> > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Fri Oct 7 09:54:28 2016 From: david.lonie at kitware.com (David Lonie) Date: Fri, 7 Oct 2016 09:54:28 -0400 Subject: [vtkusers] GL2PSExporter In-Reply-To: References: Message-ID: I don't see anything there that would cause a problem. Can you report this as a bug on the VTK bug tracker? https://gitlab.kitware.com/vtk/vtk/issues I'm not sure we'll be able to fix this unless we have a developer who can reproduce it, but it'll be good to have a record of this. As a work-around, maybe try out some different OpenGL drivers (nvidia/ati/intel vs. mesa, etc). It might be a driver issue. Dave On Fri, Oct 7, 2016 at 8:46 AM, neok m4700 wrote: > Hi David, > > Thank you for this feedback. I am running Ubuntu 16.04.1 > > My cmake options when building vtk are roughly: > > -DBUILD_DOCUMENTATION=ON > -DBUILD_TESTING=ON > -DBUILD_EXAMPLES=ON > -DBUILD_SHARED_LIBS=ON > -DVTK_WRAP_PYTHON=ON > -DVTK_PYTHON_VERSION=3 > -DVTK_Group_Tk=ON > -DVTK_Group_Rendering=ON > -DVTK_Group_Views=ON > -DVTK_Group_MPI=ON > -DVTK_RENDERING_BACKEND=OpenGL2 > > -DModule_vtkRenderingMatplotlib=ON > -DModule_vtkIOExportOpenGL2=ON > -DModule_vtkgl2ps=ON > -DModule_vtkRenderingContextOpenGL2=ON > -DModule_vtkRenderingOpenGL2=ON > -DModule_vtkRenderingGL2PSOpenGL2=ON > -DModule_vtkRenderingParallel=ON > -DModule_vtkRenderingVolumeOpenGL2=ON > > > 2016-10-06 17:11 GMT+02:00 David Lonie : > >> Strange, your python script works as expected for me (see attached >> output). >> >> Is there anything unusual about your setup? (Offscreen rendering, >> drivers, etc) >> >> On Wed, Oct 5, 2016 at 2:27 PM, neok m4700 wrote: >> >>> Hi, >>> >>> I have some trouble with the test provided with the vtk sources. >>> >>> Take this one: >>> vtk/IO/Export/Testing/Cxx/TestGL2PSExporterRaster.cxx >>> >>> I have attached the exported pdf.gz file, the screenshot of the window >>> appearing on my screen and the source files used to build the example. >>> >>> What I can see is that the position of the vector data (text) is >>> correct, but the rasterized cone is not (we only see the upper left hand >>> corner of the cone on the .ps file). >>> >>> I've had the same experience with the python wrapping >>> (cone.{py,pdf.gz,png} attached). >>> Same is happening for eps, ps, compressed or not. >>> >>> Does anyone have a clue on how to fix this ? >>> >>> Thanks >>> >>> _______________________________________________ >>> 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 ken.martin at kitware.com Fri Oct 7 10:07:34 2016 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 7 Oct 2016 10:07:34 -0400 Subject: [vtkusers] Color flickering In-Reply-To: References: Message-ID: Well mappers are always used for rendering. The connections typically go dataset 1 -> 1 mapper 1 -> 1 actor N -> 1 renderer N -> 1 renderwindow But if you have two mappers then typically you have two datasets and would need two writers resulting in two files Not sure if that answers it for you but hopefully it helps. Ken On Fri, Oct 7, 2016 at 9:51 AM, Ruben van Staden wrote: > Hey Ken > > Thanks for the reply. > Is it possible to use mappers and still write to a VTK file using: > > vtkSmartPointer writer = vtkSmartPointer< > vtkXMLUnstructuredGridWriter>::New(); > > Regards > Ruben > > On Fri, Oct 7, 2016 at 2:41 PM, Ken Martin wrote: > >> If they are in two different mappers and you are using the new OpenGL2 >> backend, then you can solve it in VTK by calling >> >> SetResolveCoincidentTopologyToPolygonOffset(); >> SetRelativeCoincidentTopologyPolygonOffsetParameters(-2,-2); >> >> on one of the mappers. If they are in the same mapper then, you cannot >> solve it in VTK as the two polygons occupy exactly the same space, but due >> to driver specific rendering implementations there may be some differences >> frame to frame in what pixels end up on top. >> >> Hope that helps >> Ken >> >> >> >> >> >> On Fri, Oct 7, 2016 at 7:38 AM, Ruben van Staden < >> rubenvanstaden at gmail.com> wrote: >> >>> Dear Readers >>> >>> I have two overlapping polyhedrons that each have a different color. >>> When I plot them using Paraview, the part of the structure that overlaps >>> starts flickering as I rotate the structure. Almost like the program is >>> confused >>> to what coloring to add to that part, since they overlap. >>> >>> Is there a way to solve this, somehow using VKT, or will I have to >>> do polyhedron boolean operations? >>> >>> Regards >>> Ruben >>> >>> _______________________________________________ >>> 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 >>> >>> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> 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. >> > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Fri Oct 7 10:35:55 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Fri, 07 Oct 2016 14:35:55 +0000 Subject: [vtkusers] Volume Rendering and zbuffer In-Reply-To: References: <1475597554579-5740662.post@n5.nabble.com> Message-ID: Can you tru it without offscreen rendering turned on? Thanks On Thu, Oct 6, 2016 at 12:49 PM Steve Petruzza wrote: > Thank you Aashish, > > I tried to use the ?vtkOpenGLGPUVolumeRayCastMapper? as following: > > ????????????? > > vtkSmartPointer mapper > = vtkSmartPointer::New(); > > mapper->RenderToImageOn(); > mapper->SetBlendModeToComposite(); > > vtkSmartPointer volumep = vtkSmartPointer::New(); > volumep->SetMapper(mapper); > > renderer->AddVolume(volumep); > > // rendering and camera settings? > > renderWindow->SetOffScreenRendering( 1 ); > renderWindow->Render(); > > vtkSmartPointer depthImage = > vtkSmartPointer::New(); > vtkSmartPointer colorImage = > vtkSmartPointer::New(); > > mapper->GetDepthImage(depthImage); > mapper->GetColorImage(colorImage); > > ????????????? > > The depthImage has type unsigned char, and I noticed that it contains only > values 255 or 0 (for the background), nothing in between. > I was expecting a gradient of values, generally floats or even normalized > to char. > > What am I missing? > > Thank you, > Steve > > > > > On 04 Oct 2016, at 19:48, Aashish Chaudhary > wrote: > > Hi Steve, > > If you intend to get the depth values from volume (and not just geometry), > then not clearing the depth buffer will not help either since we don't > write to depth buffer (the defaults won't make sense anyways). If you are > looking for depth values from both volume and geometry, then you may want > to look into this option RenderToImage in the base class ( > https://github.com/Kitware/VTK/blob/master/Rendering/Volume/vtkGPUVolumeRayCastMapper.h). > Give it a try and let us know if that works for you. If you enable this > option then you can call GetColorImage and GetDepthImage for the depth > values. > > Thanks, > > > On Tue, Oct 4, 2016 at 12:34 PM Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > > That is because we make a call to clear the depth buffer bit that is: > glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT). I have to think all of > the use-cases but I think we don't need to clear the depth buffer. We can > push a simple fix for it on the master branch. > > - Aashish > > > > > On Tue, Oct 4, 2016 at 12:12 PM stevep wrote: > > Hi all, > > I used the vtkPolyDataMapper to render a surface and then with the > vtkRenderWindow I can get correctly the ZBuffer using GetZbufferData and > the > RGB data via vtkWindowToImageFilter. > > When I use, starting from the same vtkImageData, a volume rendering like > the > SmartVolumeMapper (as in the following): > http://www.vtk.org/Wiki/VTK/Examples/Cxx/VolumeRendering/SmartVolumeMapper > > The RGB data are correct but the ZBuffer contains all values == 1 (checked > dumping the float array to disk). > > I get the same result changing blend mode and using a > vtkFixedPointVolumeRayCastMapper. > > What am I missing? > > Thank you > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Volume-Rendering-and-zbuffer-tp5740662.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.petruzza at gmail.com Fri Oct 7 10:45:12 2016 From: steve.petruzza at gmail.com (Steve Petruzza) Date: Fri, 7 Oct 2016 17:45:12 +0300 Subject: [vtkusers] Volume Rendering and zbuffer In-Reply-To: References: <1475597554579-5740662.post@n5.nabble.com> Message-ID: <712DD67A-4709-4206-81AF-BA2113370B69@gmail.com> When I remove the offscreen rendering it changes the dimensions of the output image. In my case the render window has size 2048x2048 but the output ImageData for both color and depth are 1440x785 (that is the resolution of my screen). Anyway the result in the buffer is the same: I get only 2 values, background 0 and volume 255. Alternatively is there a renderer for volume on CPU instead? Thanks, Steve > On 07 Oct 2016, at 17:35, Aashish Chaudhary wrote: > > Can you tru it without offscreen rendering turned on? > > Thanks > > On Thu, Oct 6, 2016 at 12:49 PM Steve Petruzza > wrote: > Thank you Aashish, > > I tried to use the ?vtkOpenGLGPUVolumeRayCastMapper? as following: > > ????????????? > > vtkSmartPointer mapper = vtkSmartPointer::New(); > > mapper->RenderToImageOn(); > mapper->SetBlendModeToComposite(); > > vtkSmartPointer volumep = vtkSmartPointer::New(); > volumep->SetMapper(mapper); > > renderer->AddVolume(volumep); > > // rendering and camera settings? > > renderWindow->SetOffScreenRendering( 1 ); > renderWindow->Render(); > > vtkSmartPointer depthImage = vtkSmartPointer::New(); > vtkSmartPointer colorImage = vtkSmartPointer::New(); > > mapper->GetDepthImage(depthImage); > mapper->GetColorImage(colorImage); > > ????????????? > > The depthImage has type unsigned char, and I noticed that it contains only values 255 or 0 (for the background), nothing in between. > I was expecting a gradient of values, generally floats or even normalized to char. > > What am I missing? > > Thank you, > Steve > > > > >> On 04 Oct 2016, at 19:48, Aashish Chaudhary > wrote: >> >> Hi Steve, >> >> If you intend to get the depth values from volume (and not just geometry), then not clearing the depth buffer will not help either since we don't write to depth buffer (the defaults won't make sense anyways). If you are looking for depth values from both volume and geometry, then you may want to look into this option RenderToImage in the base class (https://github.com/Kitware/VTK/blob/master/Rendering/Volume/vtkGPUVolumeRayCastMapper.h ). Give it a try and let us know if that works for you. If you enable this option then you can call GetColorImage and GetDepthImage for the depth values. >> >> Thanks, >> >> >> On Tue, Oct 4, 2016 at 12:34 PM Aashish Chaudhary > wrote: >> That is because we make a call to clear the depth buffer bit that is: glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT). I have to think all of the use-cases but I think we don't need to clear the depth buffer. We can push a simple fix for it on the master branch. >> >> - Aashish >> >> >> >> >> On Tue, Oct 4, 2016 at 12:12 PM stevep > wrote: >> Hi all, >> >> I used the vtkPolyDataMapper to render a surface and then with the >> vtkRenderWindow I can get correctly the ZBuffer using GetZbufferData and the >> RGB data via vtkWindowToImageFilter. >> >> When I use, starting from the same vtkImageData, a volume rendering like the >> SmartVolumeMapper (as in the following): >> http://www.vtk.org/Wiki/VTK/Examples/Cxx/VolumeRendering/SmartVolumeMapper >> >> The RGB data are correct but the ZBuffer contains all values == 1 (checked >> dumping the float array to disk). >> >> I get the same result changing blend mode and using a >> vtkFixedPointVolumeRayCastMapper. >> >> What am I missing? >> >> Thank you >> >> >> >> >> >> -- >> View this message in context: http://vtk.1045678.n5.nabble.com/Volume-Rendering-and-zbuffer-tp5740662.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 rickfrank at me.com Fri Oct 7 13:32:34 2016 From: rickfrank at me.com (Rick Frank) Date: Fri, 07 Oct 2016 13:32:34 -0400 Subject: [vtkusers] Label Map and vtkOpenGLGPUVolumeRayCastMapper Message-ID: <5892DC0D-EEFE-44D0-A716-8C6B4A2AC606@me.com> Hi, I am trying to create a mask with a label map that will render voxels of a certain value in the main image a certain color, based on the mask locations being set to 1. Think ?flood fill?. if I set the mask blend factor to 1.0, I assume it?s going to pull the color from the second transfer function, but it never does. Here is a simple example code, one file and a CMakeLists.txt file. https://1drv.ms/u/s!AirZBUkSRBDOg1rKOz5KBPLo6GzJ can anyone build it / take a look and see what I?m not getting correct here? I can?t seem what I might be doing incorrectly. Thanks Rick -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Fri Oct 7 17:09:47 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Fri, 7 Oct 2016 17:09:47 -0400 Subject: [vtkusers] vtkWeb - sending data to the client Message-ID: Hi Seb and all, One of the features we want to implement in our application is the ability to render plots on the client (in certain cases) using alternate means such as plotly. For this we need to send data = a numpy or numpy masked array = to the client. Is there any capability in vtkWeb or do you have any advise on how to do that? Thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Fri Oct 7 17:27:15 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Fri, 7 Oct 2016 15:27:15 -0600 Subject: [vtkusers] vtkWeb - sending data to the client In-Reply-To: References: Message-ID: We do that all the time, so yes, vtk/paraview web can handle it. Just need to create a new RPC method that will build the structure the client expect based on its request. Here is a ParaView example which should apply to VTK if you ignore the ParaView proxy magic (self.reader.GetClientSideObject()) @exportRpc("my.super.app.get.table") def getTable(self): from vtk.util.numpy_support import vtk_to_numpy returnValue = {} dataTable = self.reader.GetClientSideObject().GetOutputDataObject(0) count = dataTable.GetNumberOfColumns() for idx in range(count): array = dataTable.GetColumn(idx) if SUPPORTED_TYPES[VTK_DATA_TYPES[array.GetDataType()]]: npArray = vtk_to_numpy(array) returnValue[array.GetName()] = [ i.item() for i in npArray ] else: returnValue[array.GetName()] = [ array.GetValue(i) for i in xrange(array.GetNumberOfValues()) ] return returnValue with that for our constant settings for filtering arrays we don't want to get on the client side. VTK_DATA_TYPES = [ 'void', # 0 'bit', # 1 'char', # 2 'unsigned_char', # 3 'short', # 4 'unsigned_short', # 5 'int', # 6 'unsigned_int', # 7 'long', # 8 'unsigned_long', # 9 'float', # 10 'double', # 11 'id_type', # 12 'unspecified', # 13 'unspecified', # 14 'signed_char' ] # 15 SUPPORTED_TYPES = { 'void': False, 'bit': False, 'char': True, 'unsigned_char': True, 'short': True, 'unsigned_short': True, 'int': True, 'unsigned_int': True, 'long': True, 'unsigned_long': True, 'float': True, 'double': True, 'id_type': True, 'unspecified': False, 'unspecified': False, 'signed_char': True } On Fri, Oct 7, 2016 at 3:09 PM, Dan Lipsa wrote: > Hi Seb and all, > One of the features we want to implement in our application is the ability > to render plots on the client (in certain cases) using alternate means such > as plotly. > > For this we need to send data = a numpy or numpy masked array = to the > client. Is there any capability in vtkWeb or do you have any advise on how > to do that? > > Thanks, > Dan > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed1996 at gmail.com Fri Oct 7 19:18:42 2016 From: ed1996 at gmail.com (EdwardWang) Date: Fri, 7 Oct 2016 16:18:42 -0700 (MST) Subject: [vtkusers] What is the Best Polydata Decimation Workflow Message-ID: <1475882322653-5740707.post@n5.nabble.com> Hi all, As a bit of context, I'm trying to use an implementation of the Geodesics in Heat Method to calculate geodesics distances on a polydata. However, first I need to reduce the number of vertices. Using Meshmixer, I import an STL file and repair the mesh then reduce. I am then able to use the STL file. However, since I'm working in and generating the models in Slicer3D, I would rather not export the files to Meshmixer and then import again. I've tried to mimic the process in VTK, using vtkCleanPolyData, vtkWindowedSincPolyDataFilter, vtkFillHolesFilter, and vtkDecimatePro. What is the optimal way to combine theses functions, if there is any? And are there any other filters that I can use? Thank you, Edward -- View this message in context: http://vtk.1045678.n5.nabble.com/What-is-the-Best-Polydata-Decimation-Workflow-tp5740707.html Sent from the VTK - Users mailing list archive at Nabble.com. From juch at zhaw.ch Sat Oct 8 07:08:29 2016 From: juch at zhaw.ch (normanius) Date: Sat, 8 Oct 2016 04:08:29 -0700 (MST) Subject: [vtkusers] How to build and install the python wrapper properly on (rootless) MacOS 10.11 Message-ID: <1475924909759-5740708.post@n5.nabble.com> Dear community I would like to know how to properly build the vtk module for python. In the following, I describe how it used to work for me prior to upgrading to MacOS 10.11, and why it doesn't work for me anymore. My system: - Mac OS 10.11 ((rootless) El Capitan) - python 2.7.12 - vtk-7.1.0 I generate the build project with the following command: (Note that I need to specify PYTHON_INCLUDE_DIR and PYTHON_LIBRARY because otherwise CMake mixes up system-python (coming with MacOS, residing in /usr/bin and /usr/lib) and the python version I use for development (residing in /Library/Frameworks/Python.framework/Versions/2.7/, and linking to /usr/local/lib) - which I guess is a flaw in vtk's CMake project, because I don't think my setup is non-standard.) If I call vtk is built properly and installed under /opt/dev/versions/vtk/vtk-7.1.0-shared/. However, I won't be able to import the vtk module in python just like this. If I try, I'd get an error like this which is caused because not all links can be resolved: The solution for me on MacOS used to be to extend the environment variable DYLD_LIBRARY_PATH by "/opt/dev/versions/vtk/vtk-7.1.0-shared/lib". That way, the links to the vtk-dylibs can be resolved and I can happily use the vtk module in python. Now that I am using MacOS 10.11 - this is not a recommended solution. In 10.11, System Integrity Protection has been introduced to MacOS, which aims at increasing the overall system security. One of the consequences is that child processes only have restricted access to "outside" resources, and that they don't see the DYLD_LIBRARY_PATH variable. As a consequence, I won't be able to use vtk in my IDE (PyCharm), because it always instantiates python as a child process, and above linking problem will show up again. So after this lengthy problem description my question goes like this: I'm pretty sure that the DYLD_LIBRARY_PATH-trick should not be necessary. But how to configure vtk such that a "standalone" site-package for python is built that won't show the problem of missing resources like the one shown above? Many thanks! -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-build-and-install-the-python-wrapper-properly-on-rootless-MacOS-10-11-tp5740708.html Sent from the VTK - Users mailing list archive at Nabble.com. From libby.mccord at ceptontech.com Sat Oct 8 11:02:29 2016 From: libby.mccord at ceptontech.com (Libby) Date: Sat, 8 Oct 2016 08:02:29 -0700 (MST) Subject: [vtkusers] VTK 7.0 install In-Reply-To: References: Message-ID: <1475938949767-5740709.post@n5.nabble.com> Hi Priya, I'm a newbie too, and I have a similar setup to yours. The following page helped me: http://www.vtk.org/Wiki/VTK/Building/Windows Note that you have to build the solution first and then do the install step. (Step 7) Hope this helps, Libby -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-7-0-install-tp5740687p5740709.html Sent from the VTK - Users mailing list archive at Nabble.com. From tjlp at netease.com Mon Oct 10 04:52:52 2016 From: tjlp at netease.com (Liu_tj) Date: Mon, 10 Oct 2016 16:52:52 +0800 (CST) Subject: [vtkusers] How to compare vtk widget Message-ID: Hi, I store some vtk widgets in a list. Now I select a widget, how can I compare this selected widget with the element in the list and remove it from the list? Thanks Liu Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From manfeyn at gmail.com Mon Oct 10 07:01:02 2016 From: manfeyn at gmail.com (feynman) Date: Mon, 10 Oct 2016 19:01:02 +0800 Subject: [vtkusers] Mapping a texture to a cylinder In-Reply-To: References: Message-ID: Hi, guys, I found how to solve the problem that the texture is mapped twice. All I need to do is to call `vtkTextureMapToCylinder:: SetPreventSeam(false)`. [image: Inline image 1] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 88715 bytes Desc: not available URL: From jose.de.paula at live.com Mon Oct 10 10:48:26 2016 From: jose.de.paula at live.com (Jose Barreto) Date: Mon, 10 Oct 2016 07:48:26 -0700 (MST) Subject: [vtkusers] VTK 7.0 install In-Reply-To: References: Message-ID: <1476110906713-5740712.post@n5.nabble.com> Hello, the variable of cmake "CMAKE_INSTALL_PREFIX" she pointing to a folder that requires administrator permission. [C: \ Program Files (x86) \] Try to change it to "C: / VTK" or run the Visual Studio in administrator mode. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-7-0-install-tp5740687p5740712.html Sent from the VTK - Users mailing list archive at Nabble.com. From bebe0705 at colorado.edu Mon Oct 10 10:57:23 2016 From: bebe0705 at colorado.edu (BBerco) Date: Mon, 10 Oct 2016 07:57:23 -0700 (MST) Subject: [vtkusers] How to compare vtk widget In-Reply-To: References: Message-ID: <1476111443580-5740713.post@n5.nabble.com> Hi, If those widgets are stored as pointers, then you can simply use the equality comparison operator '==' to compare those pointers together. Ben -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-compare-vtk-widget-tp5740710p5740713.html Sent from the VTK - Users mailing list archive at Nabble.com. From paul.melis at surfsara.nl Mon Oct 10 11:01:05 2016 From: paul.melis at surfsara.nl (Paul Melis) Date: Mon, 10 Oct 2016 17:01:05 +0200 (CEST) Subject: [vtkusers] Compile error VTK 7.0.0 + VS2008 x86 + Xdmf2 In-Reply-To: <1718222900.1436876.1475847856737.JavaMail.zimbra@surfsara.nl> References: <1718222900.1436876.1475847856737.JavaMail.zimbra@surfsara.nl> Message-ID: <1843609293.1643556.1476111665114.JavaMail.zimbra@surfsara.nl> Just to follow-up on my own question: by changing #ifndef SIZEOF_LONG_LONG /* #undef SIZEOF_LONG_LONG */ #endif to #ifndef SIZEOF_LONG_LONG #define SIZEOF_LONG_LONG 8 #endif in the generated \ThirdParty\xdmf2\vtkxdmf2\libsrc\XdmfConfig.h (line 106) the build succeeds and seems to work fine. I also checked the official Win64 installer for 7.0.0, but it seems that vtkXdmfReader isn't included, so for now I'll use the above workaround. Regards, Paul From: "Paul Melis" To: vtkusers at vtk.org Sent: Friday, 7 October, 2016 15:44:16 Subject: [vtkusers] Compile error VTK 7.0.0 + VS2008 x86 + Xdmf2 Hi, It seems something goes wrong relating to detection/sizeof the 64-bit integer type when compiling VTK 7.0.0 with VS 2008 x64 (or more precisely Microsoft Visual C++ Compiler for Python 2.7, which basically is a stripped version of VS2008): [ 38%] Building CXX object ThirdParty/xdmf2/vtkxdmf2/libsrc/CMakeFiles/vtkxdmf2. dir/XdmfArray.cxx.obj XdmfArray.cxx D:\Build\vtk-7.0.0-win64-py27\ThirdParty\xdmf2\vtkxdmf2\libsrc\XdmfConfig.h(118) : fatal error C1189: #error : "64 bit long not defined" NMAKE : fatal error U1077: 'C:\Users\Opti\AppData\Local\Programs\Common\MICROS~1 \VISUAL~1\9.0\VC\bin\amd64\cl.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Users\Opti\AppData\Local\Programs\Common\Microso ft\Visual C++ for Python\9.0\VC\Bin\amd64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Users\Opti\AppData\Local\Programs\Common\Microso ft\Visual C++ for Python\9.0\VC\Bin\amd64\nmake.exe"' : return code '0x2' Stop. The relevant piece from XdmfConfig.h where the error above comes from is: #if defined( SIZEOF_LONG_LONG ) # define XDMF_64_INT long long # define HAVE_64_INT # define XDMF_have_64_bit_int #elif defined( SIZEOF___INT64 ) # define XDMF_64_INT __int64 # define HAVE_64_INT #else # error "64 bit long not defined" #endif I don't see where SIZEOF_LONG_LONG or SIZEOF__INT64 should come from in this case. Any clues where to check? Regards, 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Mon Oct 10 11:20:46 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 10 Oct 2016 11:20:46 -0400 Subject: [vtkusers] Clipping multiple actors in scene In-Reply-To: <8D478341240222479E0DB361E050CB6A7C71B8@msy-emb04.int.cggveritas.com> References: <8D478341240222479E0DB361E050CB6A7C6ABE@msy-emb04.int.cggveritas.com> <8D478341240222479E0DB361E050CB6A7C71B8@msy-emb04.int.cggveritas.com> Message-ID: Cool! Thanks for reporting your findings back to the list. Cory On Tue, Oct 4, 2016 at 3:15 AM, Miorelli, Federico < Federico.Miorelli at cgg.com> wrote: > Cory, > > > > I did some digging and it turns out I can obtain what I want with clipping > planes applied to actors. > > > > I have a vtkBoxWidget that controls the position of the 6 clipping planes > and on every EndInteractionEvent I cycle on the visible actors and call > SetClippingPlanes on them. > > > > > > Cheers, > > Federico > > > > *______* *______* *______* > > Federico Miorelli > > > > Senior R&D Geophysicist > > *Subsurface Imaging - General Geophysics **Italy* > > > > > > *From:* Cory Quammen [mailto:cory.quammen at kitware.com] > *Sent:* luned? 3 ottobre 2016 15:04 > *To:* Miorelli, Federico > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] Clipping multiple actors in scene > > > > Federico, > > > > If all your actors will have the same display properties, such as surface > color or coloring by the same data array, you could group your data sets > together with vtkMultiBlockDataGroupFilter [1] and then use a single > vtkClipDataSet on the multiblock data set it produces. If different actors > have different display properties, I don't believe there is a solution that > avoids doing it the hard way. > > > > Alternately, some planar cutting can be done by changing vtkCamera's > clipping range. This would not require grouping the data sets together. > > > > HTH, > > Cory > > > > > > [1] http://www.vtk.org/doc/nightly/html/classvtkMultiBlockDataGroupFil > ter.html > > > > On Mon, Oct 3, 2016 at 6:41 AM, Miorelli, Federico < > Federico.Miorelli at cgg.com> wrote: > > Dear All, > > > > I have a 3D scene with several actors coming from different sources. > > I would like to introduce a global clipping tool to cut with a box or a > plane all the currently active objects, in order to "see through" the scene. > > > > I understand I can cut a single dataset with vtkClipDataSet, but I could > not find a way to do it globally for the scene, except by manually > iterating on my datasets and doing it the hard way. > > > > Is there a way to obtain something like this? > > > > > > Thanks, > > Regards > > > > > > Federico > > > > *______* *______* *______* > > Federico Miorelli > > > > Senior R&D Geophysicist > > *Subsurface Imaging - General Geophysics **Italy* > > > > > *This email and any accompanying attachments are confidential. If you > received this email by mistake, please delete it from your system. Any > review, disclosure, copying, distribution, or use of the email by others is > strictly prohibited.* > > > _______________________________________________ > 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 > Staff R&D Engineer > Kitware, Inc. > > > *This email and any accompanying attachments are confidential. If you > received this email by mistake, please delete it from your system. Any > review, disclosure, copying, distribution, or use of the email by others is > strictly prohibited.* > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.de.paula at live.com Mon Oct 10 12:33:18 2016 From: jose.de.paula at live.com (Jose Barreto) Date: Mon, 10 Oct 2016 09:33:18 -0700 (MST) Subject: [vtkusers] How to compare vtk widget In-Reply-To: References: Message-ID: <1476117198179-5740716.post@n5.nabble.com> I use something like this: list> vectorWindget; vtkTextoSetaWidget* texto0 = vtkTextoSetaWidget::New(); vtkTextoSetaWidget* texto1 = vtkTextoSetaWidget::New(); vtkReguaWidget* regua0 = vtkReguaWidget::New(); vtkReguaWidget* regua1 = vtkReguaWidget::New(); vectorWindget.push_back(texto0); vectorWindget.push_back(texto1); vectorWindget.push_back(regua0); vectorWindget.push_back(regua1); //procura o texto 1 for (std::list>::iterator it = vectorWindget.begin(); it != vectorWindget.end(); ++it) { if (it->GetPointer() != nullptr) { if ((gcnew String(it->GetPointer()->GetClassName()))->Equals("vtkTextoSetaWidget") && (XDicom::Anotacoes::vtkTextoSetaWidget::SafeDownCast(it->GetPointer()) == texto1)) { vectorWindget.remove(texto1); break; } } } My list has objects as vtkabstractwidget because I have more than one type of widget it. so check if the class name and the same for which I am convertanto to avoid mistakes. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-compare-vtk-widget-tp5740710p5740716.html Sent from the VTK - Users mailing list archive at Nabble.com. From fabian.trobles at gmail.com Mon Oct 10 17:24:46 2016 From: fabian.trobles at gmail.com (Fabian Torres) Date: Mon, 10 Oct 2016 16:24:46 -0500 Subject: [vtkusers] Reset Window Level with code Message-ID: Hi all. I have a slice of a volume displayed on a vtkImageViewer2. I understand that if I modified the window levels by pressing the button 1 of the mouse, I could reset the levels by pressing the letter 'r'. I'm trying to reset the window levels with a user interface button. I have implemented something similar to the code found in the interactorstyleImage class: if (reset){ viewerSagital->GetRenderer()->ResetCamera(); viewerSagital->Render(); } but this does not do anything to the viewer. The interactorstyle code is as follows: case 'r' : case 'R' : this->FindPokedRenderer(rwi->GetEventPosition()[0], rwi->GetEventPosition()[1]); if(this->CurrentRenderer!=0) { this->CurrentRenderer->ResetCamera(); } else { vtkWarningMacro(<<"no current renderer on the interactor style."); } rwi->Render(); break; Someone could help me? Thanks -- Fabi?n Torres Robles Maestria en Ciencias en Ingenier?a Electr?nica Ingenier?a en Sistemas Electr?nicos tel. 58081280, 0445534661338 e-mail fabian.trobles at gmail.com, dae.wong at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From juch at zhaw.ch Mon Oct 10 17:28:05 2016 From: juch at zhaw.ch (normanius) Date: Mon, 10 Oct 2016 14:28:05 -0700 (MST) Subject: [vtkusers] How to build and install the python wrapper properly on (rootless) MacOS 10.11 In-Reply-To: <1475924909759-5740708.post@n5.nabble.com> References: <1475924909759-5740708.post@n5.nabble.com> Message-ID: <1476134885042-5740718.post@n5.nabble.com> Hi all Owing to a hint from Bernard Giroux, I was able to solve my problem. The CMake command I am using now on MacOS 10.11. looks now like the following one: With the flags CMAKE_MACOSX_RPATH and CMAKE_INSTALL_RPATH, I am enforcing a fixed (hardcoded) RPATH. Now, the vtk-python binaries know exactly where to look up the vtk-dylibs they are linking to, without that DYLD_LIBRARY_PATH had to be set. Note otool -L vtkCommonCorePython.so (as an example) still indicates the use of RPATH, but still a fixed path is enforced. *Question to the developers: why not making this a default setting for Mac?* Further readings: CMake and RPATHs rpath in Apple's dev doc Cheers, Norman -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-build-and-install-the-python-wrapper-properly-on-rootless-MacOS-10-11-tp5740708p5740718.html Sent from the VTK - Users mailing list archive at Nabble.com. From sankhesh.jhaveri at kitware.com Mon Oct 10 22:07:21 2016 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Mon, 10 Oct 2016 22:07:21 -0400 Subject: [vtkusers] Reset Window Level with code In-Reply-To: References: Message-ID: Hi Fabian, Are you looking for window width / level adjustment or camera adjustment? The keypress callback for 'r' key resets the camera position and focal point. Since, you've already tried calling ResetCamera() in the callback, I would make sure that you are calling ResetCamera on the correct Renderer. You'd also have to call RenderWindow::Render() after that. ?Hope this helps! *Sankhesh Jhaveri* *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 On Mon, Oct 10, 2016 at 5:24 PM, Fabian Torres wrote: > Hi all. > > I have a slice of a volume displayed on a vtkImageViewer2. > > I understand that if I modified the window levels by pressing the button 1 of the mouse, I could reset the levels by pressing the letter 'r'. > I'm trying to reset the window levels with a user interface button. > I have implemented something similar to the code found in the interactorstyleImage class: > > if (reset){ > > viewerSagital->GetRenderer()->ResetCamera(); > viewerSagital->Render(); > } > > but this does not do anything to the viewer. > > The interactorstyle code is as follows: > > case 'r' : case 'R' : this->FindPokedRenderer(rwi->GetEventPosition()[0], > rwi->GetEventPosition()[1]); if(this->CurrentRenderer!=0) { > this->CurrentRenderer->ResetCamera(); } else { vtkWarningMacro(<<"no > current renderer on the interactor style."); } rwi->Render(); break; > > Someone could help me? > > Thanks > > > -- > Fabi?n Torres Robles > Maestria en Ciencias en Ingenier?a Electr?nica > Ingenier?a en Sistemas Electr?nicos > tel. 58081280, 0445534661338 > e-mail fabian.trobles at gmail.com, dae.wong at gmail.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 melrobin at gmail.com Mon Oct 10 23:05:52 2016 From: melrobin at gmail.com (Melvin Robinson) Date: Mon, 10 Oct 2016 22:05:52 -0500 Subject: [vtkusers] vtkDICOM Message-ID: Hello, I get the following error on a VTK build: -- vtkDICOM: Building vtkDICOM as a Remote VTK Module CMake Error: Could not open file for write in copy operation /usr/local/lib/cmake/vtk-7.1/Modules/vtkDICOM.cmake.tmp CMake Error: : System Error: Permission denied This file does not exist so I guess the problem with the copy operation makes sense, but I do not understand the permission denied. When building as root I get: -- vtkDICOM: Building vtkDICOM as a Remote VTK Module CMake Error at /usr/local/lib/cmake/vtk-7.1/vtkModuleAPI.cmake:53 (message): No such module: "vtkDICOM" Call Stack (most recent call first): Wrapping/Python/CMakeLists.txt:156 (vtk_module_load) Can someone tell me what could be causing these errors? -------------- next part -------------- An HTML attachment was scrubbed... URL: From priyavashistha2 at gmail.com Mon Oct 10 23:33:14 2016 From: priyavashistha2 at gmail.com (Priya Vashistha) Date: Mon, 10 Oct 2016 22:33:14 -0500 Subject: [vtkusers] VTK 7.0 install In-Reply-To: <1476110906713-5740712.post@n5.nabble.com> References: <1476110906713-5740712.post@n5.nabble.com> Message-ID: Hello Libby and Jose, I was somehow not able to install VTK 7.0 but was able to install VTK 6.3 by following the same instructions. I think that might be because i didn't open Visual studio as admin while I was installing VTK 7.0, the error I was getting wasn't obvious. When I build install project for VTK 6.3, it error-ed out and asked me to run Visual Studio as admin and was installed successfully when I did that. Thanks for your help! -Priya On Mon, Oct 10, 2016 at 9:48 AM, Jose Barreto wrote: > Hello, > the variable of cmake "CMAKE_INSTALL_PREFIX" she pointing to a folder that > requires administrator permission. [C: \ Program Files (x86) \] > > Try to change it to "C: / VTK" or run the Visual Studio in administrator > mode. > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/VTK-7-0-install-tp5740687p5740712.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 tjlp at netease.com Tue Oct 11 02:28:17 2016 From: tjlp at netease.com (Liu_tj) Date: Tue, 11 Oct 2016 14:28:17 +0800 (CST) Subject: [vtkusers] How to compare vtk widget In-Reply-To: <1476111443580-5740713.post@n5.nabble.com> References: <1476111443580-5740713.post@n5.nabble.com> Message-ID: <6ce66c18.a.157b26d699c.Coremail.tjlp@netease.com> Thanks. I use the C# Activiz .NET VTK. So what I need to compare is C# vtk class wrapper. Do you have any idea on C# vtk wrapper? Thanks ?2016-10-10?"BBerco" ??? -----????----- ???:"BBerco" ????:2016?10?10? ??? ???:"vtkusers" ??:Re: [vtkusers] How to compare vtk widget Hi, If those widgets are stored as pointers, then you can simply use the equality comparison operator '==' to compare those pointers together. Ben -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-compare-vtk-widget-tp5740710p5740713.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 melrobin at gmail.com Tue Oct 11 07:06:11 2016 From: melrobin at gmail.com (Melvin Robinson) Date: Tue, 11 Oct 2016 06:06:11 -0500 Subject: [vtkusers] Fwd: vtkDICOM In-Reply-To: References: Message-ID: Hello, I get the following error on a VTK build: -- vtkDICOM: Building vtkDICOM as a Remote VTK Module CMake Error: Could not open file for write in copy operation /usr/local/lib/cmake/vtk-7.1/Modules/vtkDICOM.cmake.tmp CMake Error: : System Error: Permission denied This file does not exist so I guess the problem with the copy operation makes sense, but I do not understand the permission denied. When building as root I get: -- vtkDICOM: Building vtkDICOM as a Remote VTK Module CMake Error at /usr/local/lib/cmake/vtk-7.1/vtkModuleAPI.cmake:53 (message): No such module: "vtkDICOM" Call Stack (most recent call first): Wrapping/Python/CMakeLists.txt:156 (vtk_module_load) Can someone tell me what could be causing these errors? -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Oct 11 08:34:14 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 11 Oct 2016 06:34:14 -0600 Subject: [vtkusers] vtkDICOM In-Reply-To: References: Message-ID: Hi Melvin, The build shouldn't copy anything to /usr/local until you do "make install". Can you provide details about what cmake settings you have used? On Mon, Oct 10, 2016 at 9:05 PM, Melvin Robinson wrote: > Hello, > > I get the following error on a VTK build: > > -- vtkDICOM: Building vtkDICOM as a Remote VTK Module > CMake Error: Could not open file for write in copy operation > /usr/local/lib/cmake/vtk-7.1/Modules/vtkDICOM.cmake.tmp > CMake Error: : System Error: Permission denied > > > This file does not exist so I guess the problem with the copy operation > makes sense, but I do not understand the permission denied. > > When building as root I get: > -- vtkDICOM: Building vtkDICOM as a Remote VTK Module > CMake Error at /usr/local/lib/cmake/vtk-7.1/vtkModuleAPI.cmake:53 > (message): > No such module: "vtkDICOM" > Call Stack (most recent call first): > Wrapping/Python/CMakeLists.txt:156 (vtk_module_load) > > Can someone tell me what could be causing these errors? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Tue Oct 11 08:44:26 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 11 Oct 2016 08:44:26 -0400 Subject: [vtkusers] Shadow support on volume rendering In-Reply-To: References: <1472744794523-5740094.post@n5.nabble.com> <1472803169307-5740103.post@n5.nabble.com> Message-ID: Just letting you know that shadow casting volumes are available now in VTK master and ParaView 5.2.0.rc1 thanks to new capability in OSPRay 1.1.0. ? Screenshot from 2016-10-11 08-29-15.png ? David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Sep 2, 2016 at 11:54 AM, David E DeMarle wrote: > We are working toward that via Rendering/OSPRay, stay tuned. > > It will be a few months probably. First we have to expose volumes, then > OSPRay's volumes have to support shadows. > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Fri, Sep 2, 2016 at 3:59 AM, ianl > wrote: > >> Thanks for the quick reply - I suspected as much. >> >> It was more of a case of seeing that an easy way of turning shadows on was >> available and of trying it out to see what it looked like to determine >> whether it was something we could offer our customers as an option (and it >> looks good at shows!). >> >> I take your point that it probably makes the visualisation more 'busy' and >> may hide areas in shade that would otherwise be seen. I was interested in >> whether a subtle shadow made depth perception a bit easier. >> >> From a quick google, examples of renders of medical data with shadows on >> are >> few and far between. This is a fairly nice example: >> http://medvis.org/wp-content/uploads/2011/10/example_03.png . This may >> well >> be due to quite a lot of them being based on VTK though! >> >> Ian >> >> >> >> -- >> View this message in context: http://vtk.1045678.n5.nabble.c >> om/Shadow-support-on-volume-rendering-tp5740094p5740103.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 ken.martin at kitware.com Tue Oct 11 09:04:26 2016 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 11 Oct 2016 09:04:26 -0400 Subject: [vtkusers] Shadow support on volume rendering In-Reply-To: References: <1472744794523-5740094.post@n5.nabble.com> <1472803169307-5740103.post@n5.nabble.com> Message-ID: Nice! On Tue, Oct 11, 2016 at 8:44 AM, David E DeMarle wrote: > Just letting you know that shadow casting volumes are available now in VTK > master and ParaView 5.2.0.rc1 thanks to new capability in OSPRay 1.1.0. > > ? > Screenshot from 2016-10-11 08-29-15.png > > ? > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Fri, Sep 2, 2016 at 11:54 AM, David E DeMarle > wrote: > >> We are working toward that via Rendering/OSPRay, stay tuned. >> >> It will be a few months probably. First we have to expose volumes, then >> OSPRay's volumes have to support shadows. >> >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> On Fri, Sep 2, 2016 at 3:59 AM, ianl >> wrote: >> >>> Thanks for the quick reply - I suspected as much. >>> >>> It was more of a case of seeing that an easy way of turning shadows on >>> was >>> available and of trying it out to see what it looked like to determine >>> whether it was something we could offer our customers as an option (and >>> it >>> looks good at shows!). >>> >>> I take your point that it probably makes the visualisation more 'busy' >>> and >>> may hide areas in shade that would otherwise be seen. I was interested in >>> whether a subtle shadow made depth perception a bit easier. >>> >>> From a quick google, examples of renders of medical data with shadows on >>> are >>> few and far between. This is a fairly nice example: >>> http://medvis.org/wp-content/uploads/2011/10/example_03.png . This may >>> well >>> be due to quite a lot of them being based on VTK though! >>> >>> Ian >>> >>> >>> >>> -- >>> View this message in context: http://vtk.1045678.n5.nabble.c >>> om/Shadow-support-on-volume-rendering-tp5740094p5740103.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 > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ilindsay at insigniamedical.co.uk Tue Oct 11 09:05:37 2016 From: ilindsay at insigniamedical.co.uk (ianl) Date: Tue, 11 Oct 2016 06:05:37 -0700 (MST) Subject: [vtkusers] Shadow support on volume rendering In-Reply-To: References: <1472744794523-5740094.post@n5.nabble.com> <1472803169307-5740103.post@n5.nabble.com> Message-ID: <7002df66-ddbd-071b-79bc-272a98a799ce@insigniamedical.co.uk> Thanks for the heads up, that sounds great. I am currently working on another project at the moment, but when I am back on our volume rendering, I will give it a go. Is it just a case of setting the relevant mode on vtkSmartVolumeMapper (I noticed the new setting - OSPRayRenderMode), or is there more to it? Thanks for all the hard work, Ian Lindsay On 11/10/2016 13:45, David E DeMarle [via VTK] wrote: > Just letting you know that shadow casting volumes are available now in > VTK master and ParaView 5.2.0.rc1 thanks to new capability in OSPRay > 1.1.0. > > ? > Screenshot from 2016-10-11 08-29-15.png > > ? > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Fri, Sep 2, 2016 at 11:54 AM, David E DeMarle <[hidden email] > > wrote: > > We are working toward that via Rendering/OSPRay, stay tuned. > > It will be a few months probably. First we have to expose volumes, > then OSPRay's volumes have to support shadows. > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: target="_blank">518-881-4909 > > On Fri, Sep 2, 2016 at 3:59 AM, ianl <[hidden email] > > wrote: > > Thanks for the quick reply - I suspected as much. > > It was more of a case of seeing that an easy way of turning > shadows on was > available and of trying it out to see what it looked like to > determine > whether it was something we could offer our customers as an > option (and it > looks good at shows!). > > I take your point that it probably makes the visualisation > more 'busy' and > may hide areas in shade that would otherwise be seen. I was > interested in > whether a subtle shadow made depth perception a bit easier. > > >From a quick google, examples of renders of medical data with > shadows on are > few and far between. This is a fairly nice example: > http://medvis.org/wp-content/uploads/2011/10/example_03.png > > . This may well > be due to quite a lot of them being based on VTK though! > > Ian > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Shadow-support-on-volume-rendering-tp5740094p5740103.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 > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://vtk.1045678.n5.nabble.com/Shadow-support-on-volume-rendering-tp5740094p5740725.html > > To unsubscribe from Shadow support on volume rendering, click here > . > NAML > > ------------------------------------------------------------------------ *Mr Ian Lindsay - Senior Software Engineer, Imaging Specialist * *T:* +44 (0)1256 247010 *E*: ilindsay at insigniamedical.co.uk Insignia Medical Systems Limited, Norfolk House, Summerlea Court Herriard, Hampshire RG25 2PN, UK Company Number - 3867976 www.insigniamedical.co.uk -- ------------------------------ CONFIDENTIALITY NOTICE This message is only for the use of the intended individual or entity and may contain information that is confidential, or subject to copyright. If you are not the intended recipient, you are hereby notified that any dissemination, copying or distribution of this message, or any associated files, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message, and delete it from your computer. Messages sent to and from Insignia Medical Systems Limited may be monitored. Any views or opinions presented are solely those of the author and do not necessarily represent those of the company. -- View this message in context: http://vtk.1045678.n5.nabble.com/Shadow-support-on-volume-rendering-tp5740094p5740727.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Tue Oct 11 09:17:13 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 11 Oct 2016 09:17:13 -0400 Subject: [vtkusers] Shadow support on volume rendering In-Reply-To: <7002df66-ddbd-071b-79bc-272a98a799ce@insigniamedical.co.uk> References: <1472744794523-5740094.post@n5.nabble.com> <1472803169307-5740103.post@n5.nabble.com> <7002df66-ddbd-071b-79bc-272a98a799ce@insigniamedical.co.uk> Message-ID: Sorry no, you will have to render the entire scene with OSPRay. Do that by inserting the OSPRayPass into the render. The path to OSPRay volume rendering inside the smart volume mapper won't cast shadows on the surfaces because in that case surfaces are rendered independently via OpenGL. The only interaction between the two then is the way depths from the surfaces limit volume rendering traversals. When you do get to trying it out, please let us know what you find via the mailing list and/or bug tracker. This is very new functionality so I expect there will be kinks for a while. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Oct 11, 2016 at 9:05 AM, ianl wrote: > Thanks for the heads up, that sounds great. I am currently working on > another project at the moment, but when I am back on our volume rendering, > I will give it a go. Is it just a case of setting the relevant mode on > vtkSmartVolumeMapper (I noticed the new setting - OSPRayRenderMode), or is > there more to it? > > Thanks for all the hard work, > > Ian Lindsay > > On 11/10/2016 13:45, David E DeMarle [via VTK] wrote: > > Just letting you know that shadow casting volumes are available now in VTK > master and ParaView 5.2.0.rc1 thanks to new capability in OSPRay 1.1.0. > > ? > Screenshot from 2016-10-11 08-29-15.png > > ? > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Fri, Sep 2, 2016 at 11:54 AM, David E DeMarle <[hidden email] > > wrote: > >> We are working toward that via Rendering/OSPRay, stay tuned. >> >> It will be a few months probably. First we have to expose volumes, then >> OSPRay's volumes have to support shadows. >> >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: "tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909 >> >> On Fri, Sep 2, 2016 at 3:59 AM, ianl <[hidden email] >> > wrote: >> >>> Thanks for the quick reply - I suspected as much. >>> >>> It was more of a case of seeing that an easy way of turning shadows on >>> was >>> available and of trying it out to see what it looked like to determine >>> whether it was something we could offer our customers as an option (and >>> it >>> looks good at shows!). >>> >>> I take your point that it probably makes the visualisation more 'busy' >>> and >>> may hide areas in shade that would otherwise be seen. I was interested in >>> whether a subtle shadow made depth perception a bit easier. >>> >>> >From a quick google, examples of renders of medical data with shadows >>> on are >>> few and far between. This is a fairly nice example: >>> http://medvis.org/wp-content/uploads/2011/10/example_03.png . This may >>> well >>> be due to quite a lot of them being based on VTK though! >>> >>> Ian >>> >>> >>> >>> -- >>> View this message in context: http://vtk.1045678.n5.nabble.c >>> om/Shadow-support-on-volume-rendering-tp5740094p5740103.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 > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://vtk.1045678.n5.nabble.com/Shadow-support-on-volume- > rendering-tp5740094p5740725.html > To unsubscribe from Shadow support on volume rendering, click here. > NAML > > > > ------------------------------ > > *Mr Ian Lindsay - Senior Software Engineer, Imaging Specialist * *T:* +44 > (0)1256 247010 *E*: [hidden email] > > Insignia Medical Systems Limited, Norfolk House, Summerlea Court > Herriard, Hampshire RG25 2PN, UK > Company Number - 3867976 > www.insigniamedical.co.uk > > ------------------------------ > CONFIDENTIALITY NOTICE > This message is only for the use of the intended individual > or entity and may contain information that is confidenti > al, or subject to copyright. > If you are not the intended recipient, you are hereby notifi > ed that any dissemination, copying or distribution of > this message, or any associated files, is strictly prohibited. > If you have received this message in error, please notify > us immediately by replying to the message, and delete it > from your computer. > Messages sent to and from Insignia Medical Systems Limited m > ay be monitored. > Any views or opinions presented are solely those of the > author and do not necessarily represent those of the company. > ------------------------------ > View this message in context: Re: Shadow support on volume rendering > > > 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 melrobin at gmail.com Tue Oct 11 10:23:45 2016 From: melrobin at gmail.com (Melvin Robinson) Date: Tue, 11 Oct 2016 09:23:45 -0500 Subject: [vtkusers] vtkDICOM In-Reply-To: References: Message-ID: Sure...my cmake version is 3.4.3. I chose the options through ccmake which has the same version number. This did build until turning on the vtkDicom module. On Tue, Oct 11, 2016 at 7:34 AM, David Gobbi wrote: > Hi Melvin, > > The build shouldn't copy anything to /usr/local until you do "make > install". > Can you provide details about what cmake settings you have used? > > > On Mon, Oct 10, 2016 at 9:05 PM, Melvin Robinson > wrote: > >> Hello, >> >> I get the following error on a VTK build: >> >> -- vtkDICOM: Building vtkDICOM as a Remote VTK Module >> CMake Error: Could not open file for write in copy operation >> /usr/local/lib/cmake/vtk-7.1/Modules/vtkDICOM.cmake.tmp >> CMake Error: : System Error: Permission denied >> >> >> This file does not exist so I guess the problem with the copy operation >> makes sense, but I do not understand the permission denied. >> >> When building as root I get: >> -- vtkDICOM: Building vtkDICOM as a Remote VTK Module >> CMake Error at /usr/local/lib/cmake/vtk-7.1/vtkModuleAPI.cmake:53 >> (message): >> No such module: "vtkDICOM" >> Call Stack (most recent call first): >> Wrapping/Python/CMakeLists.txt:156 (vtk_module_load) >> >> Can someone tell me what could be causing these errors? >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivameline at gmail.com Tue Oct 11 12:25:51 2016 From: olivameline at gmail.com (Olivier Ameline) Date: Tue, 11 Oct 2016 09:25:51 -0700 (MST) Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time Message-ID: <1476203151673-5740730.post@n5.nabble.com> Hello everyone, I am using VTK for real-time deformation of an elastic rod. To do this, I need to display simultaneously 300 vtkArrowSources every 100 ms (10 Hz). Thus, I initialize the 300 vtkArrowSources, then I update them in a thread by translating and rotating their actors (with the functions setPosition and RotateWXYZ). The problem is that VTK takes apparently more than 100 ms to compute the updating, leading to a quite slow application. Is there a way to optimize the VTK rendering in real-time ? Thanks for your help. Best regards, Olivier Ameline Sorbonne Universit?s, UPMC University Paris 06 -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-slow-to-display-300-vtkArrowSource-in-real-time-tp5740730.html Sent from the VTK - Users mailing list archive at Nabble.com. From dave.demarle at kitware.com Tue Oct 11 12:31:40 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 11 Oct 2016 12:31:40 -0400 Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time In-Reply-To: <1476203151673-5740730.post@n5.nabble.com> References: <1476203151673-5740730.post@n5.nabble.com> Message-ID: It sounds like you are using 300 arrow sources and 300 actors. This is expected to be very slow because of the overhead that each of the 300 actors brings. The first thing I suggest you do is to use either the append polydata filter, or better still glyph filter, and better still the glyph mapper, to render all of them simultaneously. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Oct 11, 2016 at 12:25 PM, Olivier Ameline wrote: > Hello everyone, > > I am using VTK for real-time deformation of an elastic rod. > > To do this, I need to display simultaneously 300 vtkArrowSources every 100 > ms (10 Hz). > Thus, I initialize the 300 vtkArrowSources, then I update them in a thread > by translating and > rotating their actors (with the functions setPosition and RotateWXYZ). > > The problem is that VTK takes apparently more than 100 ms to compute the > updating, leading to > a quite slow application. > > Is there a way to optimize the VTK rendering in real-time ? > > Thanks for your help. > > Best regards, > > Olivier Ameline > Sorbonne Universit?s, UPMC University Paris 06 > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/VTK-slow-to-display-300-vtkArrowSource-in-real-time-tp5740730.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 ken.martin at kitware.com Tue Oct 11 12:35:11 2016 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 11 Oct 2016 12:35:11 -0400 Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time In-Reply-To: <1476203151673-5740730.post@n5.nabble.com> References: <1476203151673-5740730.post@n5.nabble.com> Message-ID: If you are using the OpenGL2 rendering backend then vtkGlyph3DMapper is probably a better way to do that. You provide the arrow source as one input and then an array of positions and rotations as part of the other input. On Tue, Oct 11, 2016 at 12:25 PM, Olivier Ameline wrote: > Hello everyone, > > I am using VTK for real-time deformation of an elastic rod. > > To do this, I need to display simultaneously 300 vtkArrowSources every 100 > ms (10 Hz). > Thus, I initialize the 300 vtkArrowSources, then I update them in a thread > by translating and > rotating their actors (with the functions setPosition and RotateWXYZ). > > The problem is that VTK takes apparently more than 100 ms to compute the > updating, leading to > a quite slow application. > > Is there a way to optimize the VTK rendering in real-time ? > > Thanks for your help. > > Best regards, > > Olivier Ameline > Sorbonne Universit?s, UPMC University Paris 06 > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/VTK-slow-to-display-300-vtkArrowSource-in-real-time-tp5740730.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 > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Tue Oct 11 13:03:40 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Tue, 11 Oct 2016 13:03:40 -0400 Subject: [vtkusers] vtkWeb - sending data to the client In-Reply-To: References: Message-ID: Thanks Seb, So I'll have to make regular arrays out of the numpy arrays and send those over? What about multi-dimensional numpy arrays? (2D, 3D) Do I have to flatten them on the server and then get them into the right format on the client? What about the numpy masked arrays? This have missing values, similar with VTK blanking. How efficient is this? Thanks, Dan On Fri, Oct 7, 2016 at 5:27 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > We do that all the time, so yes, vtk/paraview web can handle it. > > Just need to create a new RPC method that will build the structure the > client expect based on its request. > > Here is a ParaView example which should apply to VTK if you ignore the > ParaView proxy magic (self.reader.GetClientSideObject()) > > @exportRpc("my.super.app.get.table") > def getTable(self): > from vtk.util.numpy_support import vtk_to_numpy > returnValue = {} > dataTable = self.reader.GetClientSideObject(). > GetOutputDataObject(0) > count = dataTable.GetNumberOfColumns() > for idx in range(count): > array = dataTable.GetColumn(idx) > if SUPPORTED_TYPES[VTK_DATA_TYPES[array.GetDataType()]]: > npArray = vtk_to_numpy(array) > returnValue[array.GetName()] = [ i.item() for i in npArray > ] > else: > returnValue[array.GetName()] = [ array.GetValue(i) for i > in xrange(array.GetNumberOfValues()) ] > return returnValue > > with that for our constant settings for filtering arrays we don't want to > get on the client side. > > VTK_DATA_TYPES = [ 'void', # 0 > 'bit', # 1 > 'char', # 2 > 'unsigned_char', # 3 > 'short', # 4 > 'unsigned_short', # 5 > 'int', # 6 > 'unsigned_int', # 7 > 'long', # 8 > 'unsigned_long', # 9 > 'float', # 10 > 'double', # 11 > 'id_type', # 12 > 'unspecified', # 13 > 'unspecified', # 14 > 'signed_char' ] # 15 > > SUPPORTED_TYPES = { 'void': False, > 'bit': False, > 'char': True, > 'unsigned_char': True, > 'short': True, > 'unsigned_short': True, > 'int': True, > 'unsigned_int': True, > 'long': True, > 'unsigned_long': True, > 'float': True, > 'double': True, > 'id_type': True, > 'unspecified': False, > 'unspecified': False, > 'signed_char': True } > > On Fri, Oct 7, 2016 at 3:09 PM, Dan Lipsa wrote: > >> Hi Seb and all, >> One of the features we want to implement in our application is the >> ability to render plots on the client (in certain cases) using alternate >> means such as plotly. >> >> For this we need to send data = a numpy or numpy masked array = to the >> client. Is there any capability in vtkWeb or do you have any advise on how >> to do that? >> >> Thanks, >> Dan >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Tue Oct 11 13:08:31 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 11 Oct 2016 11:08:31 -0600 Subject: [vtkusers] vtkWeb - sending data to the client In-Reply-To: References: Message-ID: Thinks serialization... And don't assume any specific efficiency. Think on what you want to get on the JavaScript side. On Tue, Oct 11, 2016 at 11:03 AM, Dan Lipsa wrote: > Thanks Seb, > So I'll have to make regular arrays out of the numpy arrays and send those > over? > What about multi-dimensional numpy arrays? (2D, 3D) Do I have to flatten > them on the server and then get them into the right format on the client? > > What about the numpy masked arrays? This have missing values, similar with > VTK blanking. > > How efficient is this? > > Thanks, > Dan > > > On Fri, Oct 7, 2016 at 5:27 PM, Sebastien Jourdain < > sebastien.jourdain at kitware.com> wrote: > >> We do that all the time, so yes, vtk/paraview web can handle it. >> >> Just need to create a new RPC method that will build the structure the >> client expect based on its request. >> >> Here is a ParaView example which should apply to VTK if you ignore the >> ParaView proxy magic (self.reader.GetClientSideObject()) >> >> @exportRpc("my.super.app.get.table") >> def getTable(self): >> from vtk.util.numpy_support import vtk_to_numpy >> returnValue = {} >> dataTable = self.reader.GetClientSideObjec >> t().GetOutputDataObject(0) >> count = dataTable.GetNumberOfColumns() >> for idx in range(count): >> array = dataTable.GetColumn(idx) >> if SUPPORTED_TYPES[VTK_DATA_TYPES[array.GetDataType()]]: >> npArray = vtk_to_numpy(array) >> returnValue[array.GetName()] = [ i.item() for i in >> npArray ] >> else: >> returnValue[array.GetName()] = [ array.GetValue(i) for i >> in xrange(array.GetNumberOfValues()) ] >> return returnValue >> >> with that for our constant settings for filtering arrays we don't want to >> get on the client side. >> >> VTK_DATA_TYPES = [ 'void', # 0 >> 'bit', # 1 >> 'char', # 2 >> 'unsigned_char', # 3 >> 'short', # 4 >> 'unsigned_short', # 5 >> 'int', # 6 >> 'unsigned_int', # 7 >> 'long', # 8 >> 'unsigned_long', # 9 >> 'float', # 10 >> 'double', # 11 >> 'id_type', # 12 >> 'unspecified', # 13 >> 'unspecified', # 14 >> 'signed_char' ] # 15 >> >> SUPPORTED_TYPES = { 'void': False, >> 'bit': False, >> 'char': True, >> 'unsigned_char': True, >> 'short': True, >> 'unsigned_short': True, >> 'int': True, >> 'unsigned_int': True, >> 'long': True, >> 'unsigned_long': True, >> 'float': True, >> 'double': True, >> 'id_type': True, >> 'unspecified': False, >> 'unspecified': False, >> 'signed_char': True } >> >> On Fri, Oct 7, 2016 at 3:09 PM, Dan Lipsa wrote: >> >>> Hi Seb and all, >>> One of the features we want to implement in our application is the >>> ability to render plots on the client (in certain cases) using alternate >>> means such as plotly. >>> >>> For this we need to send data = a numpy or numpy masked array = to the >>> client. Is there any capability in vtkWeb or do you have any advise on how >>> to do that? >>> >>> Thanks, >>> Dan >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Tue Oct 11 13:19:24 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Tue, 11 Oct 2016 13:19:24 -0400 Subject: [vtkusers] vtkWeb - sending data to the client In-Reply-To: References: Message-ID: Sounds good. Thanks Seb. Dan On Tue, Oct 11, 2016 at 1:08 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > Thinks serialization... And don't assume any specific efficiency. Think on > what you want to get on the JavaScript side. > > On Tue, Oct 11, 2016 at 11:03 AM, Dan Lipsa wrote: > >> Thanks Seb, >> So I'll have to make regular arrays out of the numpy arrays and send >> those over? >> What about multi-dimensional numpy arrays? (2D, 3D) Do I have to flatten >> them on the server and then get them into the right format on the client? >> >> What about the numpy masked arrays? This have missing values, similar >> with VTK blanking. >> >> How efficient is this? >> >> Thanks, >> Dan >> >> >> On Fri, Oct 7, 2016 at 5:27 PM, Sebastien Jourdain < >> sebastien.jourdain at kitware.com> wrote: >> >>> We do that all the time, so yes, vtk/paraview web can handle it. >>> >>> Just need to create a new RPC method that will build the structure the >>> client expect based on its request. >>> >>> Here is a ParaView example which should apply to VTK if you ignore the >>> ParaView proxy magic (self.reader.GetClientSideObject()) >>> >>> @exportRpc("my.super.app.get.table") >>> def getTable(self): >>> from vtk.util.numpy_support import vtk_to_numpy >>> returnValue = {} >>> dataTable = self.reader.GetClientSideObjec >>> t().GetOutputDataObject(0) >>> count = dataTable.GetNumberOfColumns() >>> for idx in range(count): >>> array = dataTable.GetColumn(idx) >>> if SUPPORTED_TYPES[VTK_DATA_TYPES[array.GetDataType()]]: >>> npArray = vtk_to_numpy(array) >>> returnValue[array.GetName()] = [ i.item() for i in >>> npArray ] >>> else: >>> returnValue[array.GetName()] = [ array.GetValue(i) for i >>> in xrange(array.GetNumberOfValues()) ] >>> return returnValue >>> >>> with that for our constant settings for filtering arrays we don't want >>> to get on the client side. >>> >>> VTK_DATA_TYPES = [ 'void', # 0 >>> 'bit', # 1 >>> 'char', # 2 >>> 'unsigned_char', # 3 >>> 'short', # 4 >>> 'unsigned_short', # 5 >>> 'int', # 6 >>> 'unsigned_int', # 7 >>> 'long', # 8 >>> 'unsigned_long', # 9 >>> 'float', # 10 >>> 'double', # 11 >>> 'id_type', # 12 >>> 'unspecified', # 13 >>> 'unspecified', # 14 >>> 'signed_char' ] # 15 >>> >>> SUPPORTED_TYPES = { 'void': False, >>> 'bit': False, >>> 'char': True, >>> 'unsigned_char': True, >>> 'short': True, >>> 'unsigned_short': True, >>> 'int': True, >>> 'unsigned_int': True, >>> 'long': True, >>> 'unsigned_long': True, >>> 'float': True, >>> 'double': True, >>> 'id_type': True, >>> 'unspecified': False, >>> 'unspecified': False, >>> 'signed_char': True } >>> >>> On Fri, Oct 7, 2016 at 3:09 PM, Dan Lipsa wrote: >>> >>>> Hi Seb and all, >>>> One of the features we want to implement in our application is the >>>> ability to render plots on the client (in certain cases) using alternate >>>> means such as plotly. >>>> >>>> For this we need to send data = a numpy or numpy masked array = to the >>>> client. Is there any capability in vtkWeb or do you have any advise on how >>>> to do that? >>>> >>>> Thanks, >>>> Dan >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tavares at fe.up.pt Tue Oct 11 15:13:25 2016 From: tavares at fe.up.pt (=?utf-8?Q?=22Jo=C3=A3o_Manuel_R=2E_S=2E_Tavares=22?=) Date: Tue, 11 Oct 2016 20:13:25 +0100 Subject: [vtkusers] VipIMAGE 2017 - ANNOUNCEMENT & CALL FOR CONTRIBUTIONS References: <9555991C-ABF4-4D39-9B07-943E3B396091@fe.up.pt> Message-ID: <45B19845-C576-4808-842C-7EC9FA53DBC7@fe.up.pt> ----------------------------------------------------------------------------------------------------------------- VI ECCOMAS Thematic Conference VipIMAGE 2017 www.fe.up.pt/vipimage October 18-20, 2017, Porto, Portugal Chairs: Jo?o Manuel R. S. Tavares & Renato Natal Jorge, Universidade do Porto ----------------------------------------------------------------------------------------------------------------- Dear Colleague, We are pleased to announce the International Conference VipIMAGE 2017 - VI ECCOMAS THEMATIC CONFERENCE ON COMPUTATIONAL VISION AND MEDICAL IMAGE PROCESSING (www.fe.up.pt/vipimage) to be held in October 18-20, 2017, in Axis Vermar Conference & Beach Hotel, Porto, Portugal. Possible Topics (not limited to) - Signal and Image Processing - Computational Vision - Medical Imaging - Physics of Medical Imaging - Tracking and Analysis of Movement - Simulation and Modeling - Image Acquisition - Industrial Applications - Shape Reconstruction - Segmentation, Matching, Simulation - Data Interpolation, Registration, Acquisition and Compression - 3D Vision - Virtual Reality - Visual Inspection - Software Development for Image Processing and Analysis - Computer Aided Diagnosis, Surgery, Therapy, and Treatment - Computational Bioimaging and Visualization - Telemedicine Systems and Applications Invited Lecturers - M?rio Figueiredo, Universidade de Lisboa, Portugal - Khan Iftekharuddin, Old Dominion University, USA - Leo Joskowicz, The Hebrew University of Jerusalem, Israel - Gerald Schaefer, Loughborough University, UK - Dinggang Shen, University of North Carolina at Chapel Hill, USA - Zeyun Yu, University of Wisconsin at Milwaukee, USA Thematic Sessions Proposals to organize Thematic Sessions under the auspicious of VipIMAGE 2017 are welcome. Proposals for Thematic Sessions should be submitted by email to the conference co-chairs (tavares at fe.up.pt, rnatal at fe.up.pt). Publications Proceedings: The proceedings book will be published by Springer under the book series "Lecture Notes in Computational Vision and Biomechanics" indexed by Elsevier Scopus. Journal Publication: A dedicated special issue of the Taylor & Francis international journal "Computer Methods in Biomechanics and Biomedical Engineering: Imaging & Visualization" indexed in Scopus, DBLP and Thomson Reuters Emerging Sources Index will be published with extended versions of the best works presented in the conference. Springer Book: A book with invited works from the ones presented in the conference will be organized for publishing by Springer. Important Dates - Deadline for Thematic Session Proposals: February 28, 2017 - Deadline for Extended Abstracts: March 15, 2017 - Authors Notification: April 15, 2017 - Deadline for Papers: June 15, 2017 We are looking forward to see you in Porto in October, 2017, Jo?o Manuel R. S. Tavares Renato Natal Jorge (VipIMAGE 2017 co-chairs) For further details, please, have a look in the conference website at: www.fe.up.pt/vipimage, the Facebook page at: www.facebook.com/VipIMAGE2017, or join the LinkedIn group at: www.linkedin.com/groups/4752820. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ilene.Cohen at bsci.com Tue Oct 11 15:40:13 2016 From: Ilene.Cohen at bsci.com (drilene) Date: Tue, 11 Oct 2016 12:40:13 -0700 (MST) Subject: [vtkusers] Are blank lines allowed in the header of Legacy format VTK files? Message-ID: <1476214813704-5740737.post@n5.nabble.com> I had implemented my code to only read the first 4 lines of the Leagcy file to get the: 1) version and identifier, 2) header, 3) file format and 4) dataset type. One of our test engineers found a file on the web that had a blank line between 3) and 4). This file failed in my code but loads in Paraview. So, I tried putting blank lines in the header and it appears that Paraview tolerates some blank lines such as 2 lines between 2) and 3) but no lines between 1) and 2). Is there an accepted standard regarding blank lines? -- View this message in context: http://vtk.1045678.n5.nabble.com/Are-blank-lines-allowed-in-the-header-of-Legacy-format-VTK-files-tp5740737.html Sent from the VTK - Users mailing list archive at Nabble.com. From colin at cdfh.org.uk Tue Oct 11 19:07:15 2016 From: colin at cdfh.org.uk (Colin Horne) Date: Wed, 12 Oct 2016 00:07:15 +0100 Subject: [vtkusers] Reorienting the reslice plane with vtkResliceImageViewer In-Reply-To: References: Message-ID: Hi all, I'm using the vtkResliceImageViewer class to display a 3D volume in oblique mode, essentially as is done in the FourPaneViewer example program.The reslice cursor widget lets me reorient a given reslice plane with the mouse, but I would also like to set its orientation via the API. To this end, I have tried: viewer->GetResliceCursor()->SetYAxis(yaxis); viewer->GetResliceCursor()->Modified(); viewer->Render(); where 'viewer' is an instance of vtkResliceImageViewer and 'yaxis' has type double[3]. Unfortunately, however, the code has no effect on the orientation of the slice. Indeed, after the call to Render(), calling GetYAxis() reveals that the changes have been overwritten. I'm afraid that I'm entirely new to VTK, and so am perhaps missing something embarrassingly obvious. I would be very grateful for any suggestions. I should mention that I'm hoping there might be a solution that is compatible with the existing vtkResliceCursorWidget (i.e., rather than using vtkResliceImage directly), as I still need to allow reorienting via the mouse. Many thanks! Colin -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivameline at gmail.com Wed Oct 12 09:04:19 2016 From: olivameline at gmail.com (Olivier Ameline) Date: Wed, 12 Oct 2016 06:04:19 -0700 (MST) Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time In-Reply-To: References: <1476203151673-5740730.post@n5.nabble.com> Message-ID: <1476277459658-5740741.post@n5.nabble.com> Hello, Thanks for your replies. Indeed, I use too much actors and vtkGlyph3D or vtkGlyph3DMapper seems to be the solution to my problem. However, I don't see very well how to use it. Which class to use to compute the array of positions/orientations ? How to tell that one column gives the positions of the arrow source and the other gives the orientation ? -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-slow-to-display-300-vtkArrowSource-in-real-time-tp5740730p5740741.html Sent from the VTK - Users mailing list archive at Nabble.com. From chuck.atkins at kitware.com Wed Oct 12 10:08:52 2016 From: chuck.atkins at kitware.com (Chuck Atkins) Date: Wed, 12 Oct 2016 10:08:52 -0400 Subject: [vtkusers] VTK v7.1.0.rc1 is tagged Message-ID: The VTK 7.1 release has begun. The /release branch and v7.1.0.rc1 tag have been created. Please branch any changes or 3fixes between RC1 and Final from the release branch. Thank You. ---------- Chuck Atkins Staff R&D Engineer, Scientific Computing Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Wed Oct 12 10:16:35 2016 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 12 Oct 2016 10:16:35 -0400 Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time In-Reply-To: <1476277459658-5740741.post@n5.nabble.com> References: <1476203151673-5740730.post@n5.nabble.com> <1476277459658-5740741.post@n5.nabble.com> Message-ID: You put the rotations into a vtkDataArray and put that DataArray into the point data ala polydata->GetPointData()->AddArray() or something similar. Thanks Ken On Wed, Oct 12, 2016 at 9:04 AM, Olivier Ameline wrote: > Hello, > > Thanks for your replies. > > Indeed, I use too much actors and vtkGlyph3D or vtkGlyph3DMapper seems to > be > the solution to my problem. > However, I don't see very well how to use it. > > Which class to use to compute the array of positions/orientations ? > > How to tell that one column gives the positions of the arrow source and the > other gives the orientation ? > > > > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/VTK-slow-to-display-300-vtkArrowSource-in-real-time- > tp5740730p5740741.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 > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc-michel.rohe at inria.fr Wed Oct 12 11:40:29 2016 From: marc-michel.rohe at inria.fr (=?UTF-8?Q?Marc-Michel_Roh=c3=a9?=) Date: Wed, 12 Oct 2016 17:40:29 +0200 Subject: [vtkusers] libraries VTK 6.X + Message-ID: <57FE596D.4080502@inria.fr> Hello, I am working on a project which was initially built using VTK 5.X with the following command using CMake: FIND_PACKAGE(VTK) IF(VTK_FOUND) INCLUDE(${VTK_USE_FILE}) ELSE(VTK_FOUND) MESSAGE(FATAL_ERROR "VTK not found. Please set VTK_DIR.") ENDIF(VTK_FOUND) TARGET_LINK_LIBRARIES(project vtkCommon vtkFiltering vtkGraphics vtkIO ) I tried to now use VTK6.X version for the code but it seems that the libraries libvtkFiltering.so, libvtkCommon.so, libvtkIO.so, libvtkGraphics.so are not built anymore in the VTK folders bin so that when I try to compile my projects I get the error: [ 32%] Linking CXX shared library ../../../lib/libproject.so /usr/bin/ld: cannot find -lvtkCommon /usr/bin/ld: cannot find -lvtkFiltering /usr/bin/ld: cannot find -lvtkGraphics /usr/bin/ld: cannot find -lvtkIO Is there a special option to check during the VTK compilation so that I get these libraries ? I used the same option that for VTK 5.X so I don't understand... Thx From cory.quammen at kitware.com Wed Oct 12 11:55:37 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 12 Oct 2016 11:55:37 -0400 Subject: [vtkusers] libraries VTK 6.X + In-Reply-To: <57FE596D.4080502@inria.fr> References: <57FE596D.4080502@inria.fr> Message-ID: Hi Marc-Michel, VTK 6 libraries changed substantially from VTK 5 with a finer-grained modularization of classes into a larger number of libraries. The easiest solution is to change TARGET_LINK_LIBRARIES(project vtkCommon vtkFiltering vtkGraphics vtkIO ) to TARGET_LINK_LIBRARIES(${VTK_LIBRARIES}) HTH, Cory On Wed, Oct 12, 2016 at 11:40 AM, Marc-Michel Roh? < marc-michel.rohe at inria.fr> wrote: > Hello, > > I am working on a project which was initially built using VTK 5.X with the > following command using CMake: > > FIND_PACKAGE(VTK) > IF(VTK_FOUND) > INCLUDE(${VTK_USE_FILE}) > ELSE(VTK_FOUND) > MESSAGE(FATAL_ERROR "VTK not found. Please set VTK_DIR.") > ENDIF(VTK_FOUND) > > TARGET_LINK_LIBRARIES(project > vtkCommon > vtkFiltering > vtkGraphics > vtkIO > ) > > I tried to now use VTK6.X version for the code but it seems that the > libraries libvtkFiltering.so, libvtkCommon.so, libvtkIO.so, > libvtkGraphics.so are not built anymore in the VTK folders bin so that when > I try to compile my projects I get the error: > > [ 32%] Linking CXX shared library ../../../lib/libproject.so > /usr/bin/ld: cannot find -lvtkCommon > /usr/bin/ld: cannot find -lvtkFiltering > /usr/bin/ld: cannot find -lvtkGraphics > /usr/bin/ld: cannot find -lvtkIO > > Is there a special option to check during the VTK compilation so that I > get these libraries ? I used the same option that for VTK 5.X so I don't > understand... > > Thx > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/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 Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Wed Oct 12 12:02:04 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 12 Oct 2016 12:02:04 -0400 Subject: [vtkusers] write points and normals to file In-Reply-To: References: Message-ID: Kurt, Nothing immediately jumps out at me as a problem in your code. Do you have a small sample file that shows the problem that you can share? Thanks, Cory On Tue, Oct 4, 2016 at 4:44 PM, Kurt Sansom wrote: > Hi, > I have some unstructured data, no triangles, just points and normals. > > I am trying to write those to a file in the vtp format using the python > bindings and then load the data in paraview and apply a glyph filter to > view the vectors. but the glyph filter doesn't appear to work eventhough > the data looks alright in the vtp file, what am I missing? > > here is the code snippet. > > #write normals > points = vtk.vtkPoints() > verts = vtk.vtkCellArray() > polydata_pts = vtk.vtkPolyData() > > pointNormalsArray = vtk.vtkDoubleArray() > pointNormalsArray.SetNumberOfComponents(3) > > for i in range(clipSeedIds.GetNumberOfIds()): > > seedId = clipSeedIds.GetId(i) > > locator = vtk.vtkPointLocator() > locator.SetDataSet(clippedSurface) > locator.BuildLocator() > > seedPoint = self.Surface.GetPoint(seedId) > seedPointId = locator.FindClosestPoint(seedPoint) > > planeEstimator = vtkvmtk.vtkvmtkPolyDataNormalPlaneEstimator() > planeEstimator.SetInputData(clippedSurface) > planeEstimator.SetOriginPointId(seedPointId) > planeEstimator.Update() > > plane = vtk.vtkPlane() > plane.SetOrigin(planeEstimator.GetOrigin()) > plane.SetNormal(planeEstimator.GetNormal()) > > #testing the normal vector > > origin_pt = planeEstimator.GetOrigin() > normal_pt = planeEstimator.GetNormal() > > id = points.InsertNextPoint(origin_pt) > verts.InsertNextCell(1) > verts.InsertCellPoint(id) > pointNormalsArray.InsertNextTuple(normal_pt) > > > > #Add the points to the polydata container > polydata_pts.SetPoints(points) > polydata_pts.SetVerts(verts) > > # Add the normals to the points in the polydata > #polydata_pts.GetCellData().SetNormals(pointNormalsArray) > polydata_pts.GetPointData().SetNormals(pointNormalsArray) > polydata_pts.Modified() > > > writer = vtk.vtkXMLPolyDataWriter() > writer.SetDataModeToAscii() > writer.SetFileName(os.path.join( > "/Users/sansomk/caseFiles/ultrasound/cases/DSI003LER/other", > "pts_out.vtp")) > writer.SetInputData(polydata_pts) > writer.Write() > > > ~Kurt > > -- > Kurt Sansom > > _______________________________________________ > 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 Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Wed Oct 12 13:00:13 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 12 Oct 2016 13:00:13 -0400 Subject: [vtkusers] libraries VTK 6.X + In-Reply-To: References: <57FE596D.4080502@inria.fr> Message-ID: Adding to what Cory said you should also be aware of these documents which describe the upgrade path from 5 to 6. Build system changes: * http://www.vtk.org/Wiki/VTK/Build_System_Migration API changes: * http://www.vtk.org/Wiki/VTK/VTK_6_Migration_Guide David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Wed, Oct 12, 2016 at 11:55 AM, Cory Quammen wrote: > Hi Marc-Michel, > > VTK 6 libraries changed substantially from VTK 5 with a finer-grained > modularization of classes into a larger number of libraries. The easiest > solution is to change > > TARGET_LINK_LIBRARIES(project > vtkCommon > vtkFiltering > vtkGraphics > vtkIO > ) > > to > > TARGET_LINK_LIBRARIES(${VTK_LIBRARIES}) > > HTH, > Cory > > On Wed, Oct 12, 2016 at 11:40 AM, Marc-Michel Roh? < > marc-michel.rohe at inria.fr> wrote: > >> Hello, >> >> I am working on a project which was initially built using VTK 5.X with >> the following command using CMake: >> >> FIND_PACKAGE(VTK) >> IF(VTK_FOUND) >> INCLUDE(${VTK_USE_FILE}) >> ELSE(VTK_FOUND) >> MESSAGE(FATAL_ERROR "VTK not found. Please set VTK_DIR.") >> ENDIF(VTK_FOUND) >> >> TARGET_LINK_LIBRARIES(project >> vtkCommon >> vtkFiltering >> vtkGraphics >> vtkIO >> ) >> >> I tried to now use VTK6.X version for the code but it seems that the >> libraries libvtkFiltering.so, libvtkCommon.so, libvtkIO.so, >> libvtkGraphics.so are not built anymore in the VTK folders bin so that when >> I try to compile my projects I get the error: >> >> [ 32%] Linking CXX shared library ../../../lib/libproject.so >> /usr/bin/ld: cannot find -lvtkCommon >> /usr/bin/ld: cannot find -lvtkFiltering >> /usr/bin/ld: cannot find -lvtkGraphics >> /usr/bin/ld: cannot find -lvtkIO >> >> Is there a special option to check during the VTK compilation so that I >> get these libraries ? I used the same option that for VTK 5.X so I don't >> understand... >> >> Thx >> >> >> _______________________________________________ >> 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 > Staff R&D Engineer > Kitware, Inc. > > _______________________________________________ > 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 marc-michel.rohe at inria.fr Wed Oct 12 14:31:21 2016 From: marc-michel.rohe at inria.fr (Marc michel Rohe) Date: Wed, 12 Oct 2016 20:31:21 +0200 (CEST) Subject: [vtkusers] libraries VTK 6.X + In-Reply-To: References: <57FE596D.4080502@inria.fr> Message-ID: <251845380.16759922.1476297081079.JavaMail.zimbra@inria.fr> Hello, thanks a lot for both your answers, it completely solved my problem :) Best, ----- Mail original ----- > De: "David E DeMarle" > ?: "Cory Quammen" > Cc: "Marc-Michel Roh?" , vtkusers at vtk.org > Envoy?: Mercredi 12 Octobre 2016 19:00:13 > Objet: Re: [vtkusers] libraries VTK 6.X + > Adding to what Cory said you should also be aware of these documents which > describe the upgrade path from 5 to 6. > Build system changes: > * http://www.vtk.org/Wiki/VTK/Build_System_Migration > API changes: > * http://www.vtk.org/Wiki/VTK/VTK_6_Migration_Guide > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > On Wed, Oct 12, 2016 at 11:55 AM, Cory Quammen < cory.quammen at kitware.com > > wrote: > > Hi Marc-Michel, > > > VTK 6 libraries changed substantially from VTK 5 with a finer-grained > > modularization of classes into a larger number of libraries. The easiest > > solution is to change > > > TARGET_LINK_LIBRARIES(project > > > vtkCommon > > > vtkFiltering > > > vtkGraphics > > > vtkIO > > > ) > > > to > > > TARGET_LINK_LIBRARIES(${VTK_LIBRARIES}) > > > HTH, > > > Cory > > > On Wed, Oct 12, 2016 at 11:40 AM, Marc-Michel Roh? < > > marc-michel.rohe at inria.fr > wrote: > > > > Hello, > > > > > > I am working on a project which was initially built using VTK 5.X with > > > the > > > following command using CMake: > > > > > > FIND_PACKAGE(VTK) > > > > > > IF(VTK_FOUND) > > > > > > INCLUDE(${VTK_USE_FILE}) > > > > > > ELSE(VTK_FOUND) > > > > > > MESSAGE(FATAL_ERROR "VTK not found. Please set VTK_DIR.") > > > > > > ENDIF(VTK_FOUND) > > > > > > TARGET_LINK_LIBRARIES(project > > > > > > vtkCommon > > > > > > vtkFiltering > > > > > > vtkGraphics > > > > > > vtkIO > > > > > > ) > > > > > > I tried to now use VTK6.X version for the code but it seems that the > > > libraries libvtkFiltering.so, libvtkCommon.so, libvtkIO.so, > > > libvtkGraphics.so are not built anymore in the VTK folders bin so that > > > when > > > I try to compile my projects I get the error: > > > > > > [ 32%] Linking CXX shared library ../../../lib/libproject.so > > > > > > /usr/bin/ld: cannot find -lvtkCommon > > > > > > /usr/bin/ld: cannot find -lvtkFiltering > > > > > > /usr/bin/ld: cannot find -lvtkGraphics > > > > > > /usr/bin/ld: cannot find -lvtkIO > > > > > > Is there a special option to check during the VTK compilation so that I > > > get > > > these libraries ? I used the same option that for VTK 5.X so I don't > > > understand... > > > > > > Thx > > > > > > _______________________________________________ > > > > > > 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 > > > Staff R&D Engineer > > > Kitware, Inc. > > > _______________________________________________ > > > 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 kayarre at gmail.com Wed Oct 12 14:53:14 2016 From: kayarre at gmail.com (Kurt Sansom) Date: Wed, 12 Oct 2016 11:53:14 -0700 Subject: [vtkusers] write points and normals to file In-Reply-To: References: Message-ID: I believe the issue is that the default behavior in Paraview is to not show all the points. "error between computer and chair" The glyph Mask had to be changed to show all points. it makes sense for something that has many points but my data only had three vectors to show and the mask filter hid them all, so it seems to not non-issue. I did beat my head over it a bit to much looking in the wrong place. ~Kurt On Wed, Oct 12, 2016 at 9:02 AM, Cory Quammen wrote: > Kurt, > > Nothing immediately jumps out at me as a problem in your code. > > Do you have a small sample file that shows the problem that you can share? > > Thanks, > Cory > > On Tue, Oct 4, 2016 at 4:44 PM, Kurt Sansom wrote: > >> Hi, >> I have some unstructured data, no triangles, just points and normals. >> >> I am trying to write those to a file in the vtp format using the python >> bindings and then load the data in paraview and apply a glyph filter to >> view the vectors. but the glyph filter doesn't appear to work eventhough >> the data looks alright in the vtp file, what am I missing? >> >> here is the code snippet. >> >> #write normals >> points = vtk.vtkPoints() >> verts = vtk.vtkCellArray() >> polydata_pts = vtk.vtkPolyData() >> >> pointNormalsArray = vtk.vtkDoubleArray() >> pointNormalsArray.SetNumberOfComponents(3) >> >> for i in range(clipSeedIds.GetNumberOfIds()): >> >> seedId = clipSeedIds.GetId(i) >> >> locator = vtk.vtkPointLocator() >> locator.SetDataSet(clippedSurface) >> locator.BuildLocator() >> >> seedPoint = self.Surface.GetPoint(seedId) >> seedPointId = locator.FindClosestPoint(seedPoint) >> >> planeEstimator = vtkvmtk.vtkvmtkPolyDataNormalP >> laneEstimator() >> planeEstimator.SetInputData(clippedSurface) >> planeEstimator.SetOriginPointId(seedPointId) >> planeEstimator.Update() >> >> plane = vtk.vtkPlane() >> plane.SetOrigin(planeEstimator.GetOrigin()) >> plane.SetNormal(planeEstimator.GetNormal()) >> >> #testing the normal vector >> >> origin_pt = planeEstimator.GetOrigin() >> normal_pt = planeEstimator.GetNormal() >> >> id = points.InsertNextPoint(origin_pt) >> verts.InsertNextCell(1) >> verts.InsertCellPoint(id) >> pointNormalsArray.InsertNextTuple(normal_pt) >> >> >> >> #Add the points to the polydata container >> polydata_pts.SetPoints(points) >> polydata_pts.SetVerts(verts) >> >> # Add the normals to the points in the polydata >> #polydata_pts.GetCellData().SetNormals(pointNormalsArray) >> polydata_pts.GetPointData().SetNormals(pointNormalsArray) >> polydata_pts.Modified() >> >> >> writer = vtk.vtkXMLPolyDataWriter() >> writer.SetDataModeToAscii() >> writer.SetFileName(os.path.join( >> "/Users/sansomk/caseFiles/ultrasound/cases/DSI003LER/other", >> >> "pts_out.vtp")) >> writer.SetInputData(polydata_pts) >> writer.Write() >> >> >> ~Kurt >> >> -- >> Kurt Sansom >> >> _______________________________________________ >> 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 > Staff R&D Engineer > Kitware, Inc. > -- Kurt Sansom -------------- next part -------------- An HTML attachment was scrubbed... URL: From Federico.Miorelli at CGG.COM Thu Oct 13 05:23:58 2016 From: Federico.Miorelli at CGG.COM (Miorelli, Federico) Date: Thu, 13 Oct 2016 09:23:58 +0000 Subject: [vtkusers] Picking multi-texture data Message-ID: <8D478341240222479E0DB361E050CB6A7DA59F@msy-emb04.int.cggveritas.com> Dear All, I am using a vtkCellPicker to interactively inspect the values of data rendered as a texture on top of a polygonal mesh. Everything works fine if I use a single texture, but apparently this functionality does not support multi-texturing. Is there a way to obtain values from all the active textures when picking? Is the functionality planned for future releases? Thanks, Regards Federico ______ ______ ______ Federico Miorelli Senior R&D Geophysicist Subsurface Imaging - General Geophysics Italy cgg.com This email and any accompanying attachments are confidential. If you received this email by mistake, please delete it from your system. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivameline at gmail.com Thu Oct 13 07:54:50 2016 From: olivameline at gmail.com (Olivier Ameline) Date: Thu, 13 Oct 2016 04:54:50 -0700 (MST) Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time In-Reply-To: References: <1476203151673-5740730.post@n5.nabble.com> <1476277459658-5740741.post@n5.nabble.com> Message-ID: <1476359690103-5740757.post@n5.nabble.com> Thanks, it's working with vtkGlyph3D : I can position and orientate the 300 arrows with only one actor. But now, I'm trying to add labels that follow the arrows. I was doing this with vtkVectorTexts, but this requires to define 300 vtkFollowers. Is there also a way to define only one vtkFollower ? I tried to put the vtkVectorTexts in a vtkGlyph3D, and define ony one follower for the entire vtkGlyph3D, but only the first vtkVectorText follows its arrow. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-slow-to-display-300-vtkArrowSource-in-real-time-tp5740730p5740757.html Sent from the VTK - Users mailing list archive at Nabble.com. From cardstudent at balgrist.ch Thu Oct 13 09:28:27 2016 From: cardstudent at balgrist.ch (Zivi, Der) Date: Thu, 13 Oct 2016 06:28:27 -0700 (MST) Subject: [vtkusers] Scalars and diffuse lighting In-Reply-To: References: Message-ID: <1476365307324-5740758.post@n5.nabble.com> Hi David Sorry for digging out this ancient post, but I'm now having the same problem. More specifically, I don't mind that the diffuse coefficient is 1 when scalars are shown. But at some point the scalar visibility is reset to 0, but the diffues coefficient stays at 1. How can I switch back to using the diffuse coefficient set in the actor properties? Because the diffuse coefficient is only set to 1 once the active scalar is set, and there is no reset method... Frederik -- View this message in context: http://vtk.1045678.n5.nabble.com/Scalars-and-diffuse-lighting-tp4298628p5740758.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.lonie at kitware.com Thu Oct 13 09:32:59 2016 From: david.lonie at kitware.com (David Lonie) Date: Thu, 13 Oct 2016 09:32:59 -0400 Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time In-Reply-To: <1476359690103-5740757.post@n5.nabble.com> References: <1476203151673-5740730.post@n5.nabble.com> <1476277459658-5740741.post@n5.nabble.com> <1476359690103-5740757.post@n5.nabble.com> Message-ID: On Thu, Oct 13, 2016 at 7:54 AM, Olivier Ameline wrote: > Thanks, it's working with vtkGlyph3D : I can position and orientate the 300 > arrows with only one actor. > > But now, I'm trying to add labels that follow the arrows. > I was doing this with vtkVectorTexts, but this requires to define 300 > vtkFollowers. > > Is there also a way to define only one vtkFollower ? > > I tried to put the vtkVectorTexts in a vtkGlyph3D, and define ony one > follower for the entire vtkGlyph3D, > but only the first vtkVectorText follows its arrow. > Sounds like vtkLabeledDataMapper could do what you want: http://www.vtk.org/doc/nightly/html/classvtkLabeledDataMapper.html#details It looks like it can take a 3D dataset and render arbitrary strings at each point. So you should be able to: 1) Create a dataset that has points where you want the labels. 2) Create a vtkStringArray containing the labels (in the same order as the points) and add this to the dataset via dataset->GetFieldData()->AddArray() (be sure to give the array a unique name with SetName). 3) Set: - labeledDataMapper->SetLabelModeToLabelFieldData() - labeledDataMapper->SetFieldDataName(labelArray->GetName()) The vtkLabeledDataMapper is then connected to a single vtkActor2D, and will render the text in the overlay plane on top of the geometry, no vtkFollower needed. You can use a vtkSelectVisiblePoints filter if you want to hide labels on occluded points. HTH, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Thu Oct 13 10:29:29 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 13 Oct 2016 10:29:29 -0400 Subject: [vtkusers] Are blank lines allowed in the header of Legacy format VTK files? In-Reply-To: <1476214813704-5740737.post@n5.nabble.com> References: <1476214813704-5740737.post@n5.nabble.com> Message-ID: Hi Ilene, Looking at vtkDataReader::ReadHeader(), I see nothing that indicates any blank lines are tolerated by the reader. I suggest having your code skip blank lines to deal with any files you may encounter that may have blank lines. HTH, Cory On Tue, Oct 11, 2016 at 3:40 PM, drilene wrote: > I had implemented my code to only read the first 4 lines of the Leagcy file > to get the: 1) version and identifier, 2) header, 3) file format and 4) > dataset type. One of our test engineers found a file on the web that had a > blank line between 3) and 4). This file failed in my code but loads in > Paraview. So, I tried putting blank lines in the header and it appears that > Paraview tolerates some blank lines such as 2 lines between 2) and 3) but > no > lines between 1) and 2). Is there an accepted standard regarding blank > lines? > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/Are-blank-lines-allowed-in-the-header-of-Legacy- > format-VTK-files-tp5740737.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 Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Thu Oct 13 11:22:37 2016 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 13 Oct 2016 11:22:37 -0400 Subject: [vtkusers] Scalars and diffuse lighting In-Reply-To: <1476365307324-5740758.post@n5.nabble.com> References: <1476365307324-5740758.post@n5.nabble.com> Message-ID: I am not completely following your issue. But .. if you are using VTK with the OpenGL2 back end then the diffuse is based the actor's property when scalars are not visible. Note that colors and intensity in the actor's property cover a range of 0.0 to 1.0 not 0.0 to 255.0. If you can explain your problem a bit more specifically, including what version of VTK you are using and what rendering backend, the I might be able to help more. Thanks Ken On Thu, Oct 13, 2016 at 9:28 AM, Zivi, Der wrote: > Hi David > > Sorry for digging out this ancient post, but I'm now having the same > problem. > > More specifically, I don't mind that the diffuse coefficient is 1 when > scalars are shown. But at some point the scalar visibility is reset to 0, > but the diffues coefficient stays at 1. How can I switch back to using the > diffuse coefficient set in the actor properties? > > Because the diffuse coefficient is only set to 1 once the active scalar is > set, and there is no reset method... > > Frederik > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/Scalars-and-diffuse-lighting-tp4298628p5740758.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 > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivameline at gmail.com Thu Oct 13 11:27:38 2016 From: olivameline at gmail.com (Olivier Ameline) Date: Thu, 13 Oct 2016 08:27:38 -0700 (MST) Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time In-Reply-To: References: <1476203151673-5740730.post@n5.nabble.com> <1476277459658-5740741.post@n5.nabble.com> <1476359690103-5740757.post@n5.nabble.com> Message-ID: <1476372458726-5740762.post@n5.nabble.com> Thanks Dave. This solution works well, but is there a means to have "zoomable" labels ? At the moment, the labels size isn't changed when I zoom in the view. Olivier -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-slow-to-display-300-vtkArrowSource-in-real-time-tp5740730p5740762.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.lonie at kitware.com Thu Oct 13 11:50:17 2016 From: david.lonie at kitware.com (David Lonie) Date: Thu, 13 Oct 2016 11:50:17 -0400 Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time In-Reply-To: <1476372458726-5740762.post@n5.nabble.com> References: <1476203151673-5740730.post@n5.nabble.com> <1476277459658-5740741.post@n5.nabble.com> <1476359690103-5740757.post@n5.nabble.com> <1476372458726-5740762.post@n5.nabble.com> Message-ID: On Thu, Oct 13, 2016 at 11:27 AM, Olivier Ameline wrote: > > Thanks Dave. > This solution works well, but is there a means to have "zoomable" labels ? > At the moment, the labels size isn't changed when I zoom in the view. > Not that I'm aware of. Since vtkLabeledDataMapper renders 2D overlay text, it's not aware of depth at all. It could be done by writing a similar mapper that uses the new vtkBillboardTextActor3D class instead of vtkTextMapper under-the-covers, but this doesn't exist yet (AFAIK). Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Thu Oct 13 11:52:06 2016 From: david.lonie at kitware.com (David Lonie) Date: Thu, 13 Oct 2016 11:52:06 -0400 Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time In-Reply-To: References: <1476203151673-5740730.post@n5.nabble.com> <1476277459658-5740741.post@n5.nabble.com> <1476359690103-5740757.post@n5.nabble.com> <1476372458726-5740762.post@n5.nabble.com> Message-ID: On Thu, Oct 13, 2016 at 11:50 AM, David Lonie wrote: > On Thu, Oct 13, 2016 at 11:27 AM, Olivier Ameline > wrote: > >> >> Thanks Dave. >> This solution works well, but is there a means to have "zoomable" labels ? >> At the moment, the labels size isn't changed when I zoom in the view. >> > > Not that I'm aware of. Since vtkLabeledDataMapper renders 2D overlay text, > it's not aware of depth at all. It could be done by writing a similar > mapper that uses the new vtkBillboardTextActor3D class instead of > vtkTextMapper under-the-covers, but this doesn't exist yet (AFAIK). > (I take that back -- BillboardTextActor3D wouldn't change size with depth. vtkTextActor3D + vtkFollower would). -------------- next part -------------- An HTML attachment was scrubbed... URL: From Joan.Hensen at outlook.de Thu Oct 13 17:26:47 2016 From: Joan.Hensen at outlook.de (Joan Hensen) Date: Thu, 13 Oct 2016 21:26:47 +0000 Subject: [vtkusers] Question regarding mean curvature computation in VTK Message-ID: I tried to figure out how the mean curvature is computed in VTK. Unfortunately, the website http://www-ipg.umds.ac.uk/p.batchelor/curvatures/node12.html of the author philip batchelor (?) is not accessible any more. I understand that it is a summation of dihedral angles times the edgle lengths. Afterwards it is normalized by the surface area. Is my assumption correct that VTK chooses one third of the one-ring area around a vertex as this surface area? Thank you for your help. J -------------- next part -------------- An HTML attachment was scrubbed... URL: From cardstudent at balgrist.ch Fri Oct 14 04:11:15 2016 From: cardstudent at balgrist.ch (CARD Student) Date: Fri, 14 Oct 2016 08:11:15 +0000 Subject: [vtkusers] Scalars and diffuse lighting In-Reply-To: References: <1476365307324-5740758.post@n5.nabble.com>, Message-ID: <72e219ee44ff48708d4fa28521f9be7b@balgrist.ch> Hi Ken My issue is the following: I have an OpenGl Actor, created like this: var mapper = vtkPolyDataMapper.New(); mapper.SetInput(polyData); mapper.ImmediateModeRenderingOn(); var actor = vtkActor.New(); actor.SetProperty(vtkProperty.New()); actor.GetProperty().SetColor(0.5, 0.5, 0.5); actor.GetProperty().SetInterpolationToFlat(); actor.GetProperty().SetAmbient(0.45); actor.GetProperty().SetDiffuse(0.55); At this point, the model looks like this: [cid:d9f17763-1db4-4acb-8505-51aa685ba65c] Then scalars get added: polyData.GetPointData().AddArray(data); polyData.GetPointData().SetActiveScalars("name"); actor.GetMapper().SetScalarMode(1); // this is VTK_SCALAR_MODE_USE_POINT_DATA actor.GetMapper().SetInterpolateScalarsBeforeMapping(1); actor.GetMapper().SetScalarVisibility(1); Then it looks like this (which is fine): [cid:b5c1ab6c-6c84-40df-8cb2-cfbf056fd6f0] To disable the scalars again, we do the following: actor.GetMapper().SetScalarVisibility(0); But now, the orignial color is rendered brighter, like this: [cid:585b5372-dfe7-48fa-ac12-f38bbab10bea] So my question is, how can I get back to the original state (with the darker grey)? I'm stuck using VTK 5.8 since we use the free Kitware ActiViz C# wrapper. After some googling I suspected that my problem is related to the thread I answered to, but any help is appreciated. I tried messing with the scalars material mode, resetting the scalars using 'polyData.GetPointData().GetScalars().Reset();' and resetting the diffuse lighting to 0.55. None of which helped. The current workaround is to have separate PolyDataMappers, one with the original state, and another where scalars are never set to active. And instead of showing and hiding scalars, we swap the mapper. But this seems like a hack... Best regards, Frederik ________________________________ Von: Ken Martin Gesendet: Donnerstag, 13. Oktober 2016 17:22 An: CARD Student Cc: vtk Betreff: Re: [vtkusers] Scalars and diffuse lighting I am not completely following your issue. But .. if you are using VTK with the OpenGL2 back end then the diffuse is based the actor's property when scalars are not visible. Note that colors and intensity in the actor's property cover a range of 0.0 to 1.0 not 0.0 to 255.0. If you can explain your problem a bit more specifically, including what version of VTK you are using and what rendering backend, the I might be able to help more. Thanks Ken On Thu, Oct 13, 2016 at 9:28 AM, Zivi, Der > wrote: Hi David Sorry for digging out this ancient post, but I'm now having the same problem. More specifically, I don't mind that the diffuse coefficient is 1 when scalars are shown. But at some point the scalar visibility is reset to 0, but the diffues coefficient stays at 1. How can I switch back to using the diffuse coefficient set in the actor properties? Because the diffuse coefficient is only set to 1 once the active scalar is set, and there is no reset method... Frederik -- View this message in context: http://vtk.1045678.n5.nabble.com/Scalars-and-diffuse-lighting-tp4298628p5740758.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 -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: before.PNG Type: image/png Size: 17654 bytes Desc: before.PNG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: scalars.PNG Type: image/png Size: 59898 bytes Desc: scalars.PNG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: after.PNG Type: image/png Size: 14515 bytes Desc: after.PNG URL: From horstausprag at gmx.de Fri Oct 14 05:53:55 2016 From: horstausprag at gmx.de (Horst) Date: Fri, 14 Oct 2016 11:53:55 +0200 Subject: [vtkusers] GTKmm + VTK Message-ID: Hello everybody, I am trying to integrate a VTK rendering into a GTKmm based window. The GTK widget contains a GLarea (https://developer.gnome.org/gtkmm/stable/classGtk_1_1GLArea.html), and I want to render into that context. The problem is, that I end up with two windows. One by GTK and one by VTK. I was inspired by this: http://www.vtk.org/Wiki/VTK/Examples/Cxx/GLUT but renWin->InitializeFromCurrentContext(); is maybe not the way to go? In the VTK blog I read about the ExternalVTKWidget and vtkExternalOpenGLRenderWindow. But this still did not work (https://gitlab.kitware.com/vtk/vtk/blob/0b7d6de3dddbcdb5dd9267a9586d59962464819e/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx) for me. So my question: What is the proper way of rendering into a GTK::GLArea (or in general using VTK with GTK), while still get the proper event from VTK (pointing on a cone in the view and get the event-position). Or do I need to use a separate event loop instead of the one provided by vtkRenderWindowInteractor? Thanks a lot and every hint is welcome! Kind regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From carmen.liechti at vtg.admin.ch Fri Oct 14 07:37:24 2016 From: carmen.liechti at vtg.admin.ch (xy_xy) Date: Fri, 14 Oct 2016 04:37:24 -0700 (MST) Subject: [vtkusers] Fail because Position 0x00000000 Message-ID: <1476445044860-5740771.post@n5.nabble.com> Hi I'm trying to do something with VTK. I tryed some example but nothing works. The Fail are always a null pointer (Position 0x00000000) and I don't know why it is null. Can anybody help me? Thanks #include "vtkGraphLayoutView.h" #include "vtkRandomGraphSource.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" vtkRandomGraphSource* source = vtkRandomGraphSource::New(); vtkGraphLayoutView* view = vtkGraphLayoutView::New(); *// <= Fail!* view->SetRepresentationFromInputConnection(source->GetOutputPort()); view->ResetCamera(); view->Render(); view->GetInteractor()->Start(); source->Delete(); view->Delete(); -- View this message in context: http://vtk.1045678.n5.nabble.com/Fail-because-Position-0x00000000-tp5740771.html Sent from the VTK - Users mailing list archive at Nabble.com. From tonio.guillen at gmail.com Fri Oct 14 08:56:06 2016 From: tonio.guillen at gmail.com (galera) Date: Fri, 14 Oct 2016 05:56:06 -0700 (MST) Subject: [vtkusers] Geometrical/Data filter Message-ID: <1476449766738-5740772.post@n5.nabble.com> I have for example an unstructuredgrid build xwith cells which are triangle. I Have a dataField value associated to each traingle. How can I hide triangle which have given values using a filter for example. Which kind of filter, where can i found an example? Thank a lot for your help -- View this message in context: http://vtk.1045678.n5.nabble.com/Geometrical-Data-filter-tp5740772.html Sent from the VTK - Users mailing list archive at Nabble.com. From jose.de.paula at live.com Fri Oct 14 10:22:13 2016 From: jose.de.paula at live.com (Jose Barreto) Date: Fri, 14 Oct 2016 07:22:13 -0700 (MST) Subject: [vtkusers] interaction with vtk widget's Message-ID: <1476454933838-5740774.post@n5.nabble.com> Hello guys, There is a way to add just one Widget in more than one renderer ? And with him interact more than on interactor ? -- View this message in context: http://vtk.1045678.n5.nabble.com/interaction-with-vtk-widget-s-tp5740774.html Sent from the VTK - Users mailing list archive at Nabble.com. From jimmigoo at gmail.com Fri Oct 14 10:39:13 2016 From: jimmigoo at gmail.com (jimmigoo) Date: Fri, 14 Oct 2016 07:39:13 -0700 (MST) Subject: [vtkusers] Issues using VTK 6.1.0 and Windows Server 2012 R2 Message-ID: <1476455953800-5740775.post@n5.nabble.com> Hi everyone :) I was wondering if anyone found any issue using VTK 6.1.0 in an executable application on Windows Server 2012 R2. In details, I encountered an application crash using the vtkCommonDataModel-6.1.dll. I'm looking for any kind reply Best regards, jimmigoo -- View this message in context: http://vtk.1045678.n5.nabble.com/Issues-using-VTK-6-1-0-and-Windows-Server-2012-R2-tp5740775.html Sent from the VTK - Users mailing list archive at Nabble.com. From dave.demarle at kitware.com Fri Oct 14 12:25:32 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 14 Oct 2016 12:25:32 -0400 Subject: [vtkusers] VTK 7.1.0 release candidates started Message-ID: Hello VTKers, Just a quick note to let you know that 7.1.0 is approaching. Read all about it here. https://blog.kitware.com/vtk-7-1-0-enters-release-candidate-cycle/ I'll repeat for emphasis here the bit there about don't forget to mark the issues you find and the merge requests you want included with the 7.1 tag. For developers, remember that the best practice is to start your topics from the 7.1.0.rc1 tag. That way they will merge and test cleanly in both the master and release branches. 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 tonio.guillen at gmail.com Sat Oct 15 12:50:16 2016 From: tonio.guillen at gmail.com (galera) Date: Sat, 15 Oct 2016 09:50:16 -0700 (MST) Subject: [vtkusers] How to visuaze only some labelled cells Message-ID: <1476550216660-5740791.post@n5.nabble.com> HI all, I have an unstructuredGrid each cell have a scalar value (for ex: from 0 to 10). I want visualize this unstructuredgrid with the cells containing value between 2 and 3 and in the same shoot cells with value equal to 6 and cells with value equal To 9. How can I do this operation? Using Threshold is impossible so may be there is another tool which one? -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-visuaze-only-some-labelled-cells-tp5740791.html Sent from the VTK - Users mailing list archive at Nabble.com. From vincentrivola at hotmail.com Sat Oct 15 15:06:36 2016 From: vincentrivola at hotmail.com (vincentrivola) Date: Sat, 15 Oct 2016 12:06:36 -0700 (MST) Subject: [vtkusers] How to visuaze only some labelled cells In-Reply-To: <1476550216660-5740791.post@n5.nabble.com> References: <1476550216660-5740791.post@n5.nabble.com> Message-ID: <1476558396398-5740793.post@n5.nabble.com> You can use multiple threshold to get the values between 2 and 3 in one dataset, the values equal to 6 in another one and finaly the values equal to 9 in the last dataset. Then you can use the append filter, to group the three precedent datasets. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-visuaze-only-some-labelled-cells-tp5740791p5740793.html Sent from the VTK - Users mailing list archive at Nabble.com. From technword at gmail.com Sun Oct 16 20:43:44 2016 From: technword at gmail.com (High Techno) Date: Mon, 17 Oct 2016 00:43:44 +0000 Subject: [vtkusers] (no subject) Message-ID: Hi I have 5Gigabyte of memory available. When i want to visualize a data of 512*512*609 voxels with VTKmarchingCube I get this error *ERROR: In C:\Test\vtk\vtk-6.3.0.source\vtk-6.3.0\common\core\vtkDataArrayTemplate.txx, line 308* *vtkIdTypeArray (456B9208): Unable to allocate 33128476 elements of size 4 bytes.* I use: --VTK 6.3.0 ,Qt creator and VS2010 as a Compiler --WINDOWS 7 64 bits thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From technword at gmail.com Sun Oct 16 20:45:09 2016 From: technword at gmail.com (High Techno) Date: Mon, 17 Oct 2016 00:45:09 +0000 Subject: [vtkusers] ERROR Rendering in VTK 6.3.0 version Message-ID: Hi I have 5Gigabyte of memory available. When i want to visualize a data of 512*512*609 voxels with VTKmarchingCube I get this error *ERROR: In C:\Test\vtk\vtk-6.3.0.source\vtk-6.3.0\common\core\vtkDataArrayTemplate.txx, line 308* *vtkIdTypeArray (456B9208): Unable to allocate 33128476 elements of size 4 bytes.* I use: --VTK 6.3.0 ,Qt creator and VS2010 as a Compiler --WINDOWS 7 64 bits thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivameline at gmail.com Mon Oct 17 05:17:08 2016 From: olivameline at gmail.com (Olivier Ameline) Date: Mon, 17 Oct 2016 02:17:08 -0700 (MST) Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time In-Reply-To: References: <1476203151673-5740730.post@n5.nabble.com> <1476277459658-5740741.post@n5.nabble.com> <1476359690103-5740757.post@n5.nabble.com> <1476372458726-5740762.post@n5.nabble.com> Message-ID: <1476695828249-5740797.post@n5.nabble.com> Hello, I think I can manage with no zoom on the labels. I just have a last question : I can't manage to use a array of different labels (with vtkStringArray). I get the error message "vtkDynamic2DLabelMapper (000001FE6E572970): Could not find label array (labels) in input", and no labels are displayed but only the arrows. Here is a part of my code : int num_pts = 10; vtkPoints *ptsText = vtkPoints::New(); ptsText->SetNumberOfPoints(num_pts); for (int i = 1; i < num_pts; i++) { ptsText->InsertNextPoint(i, 0, 0); } vtkStringArray *strings = vtkStringArray::New(); strings->SetNumberOfValues(num_pts); strings->SetName("labels"); for (int i = 1; i < 5; i++) { strings->InsertNextValue("bob"); } for (int i = 5; i < 10; i++) { strings->InsertNextValue("bob2"); } vtkPolyData *polydata = vtkPolyData::New(); polydata->SetPoints(ptsText); polydata->GetFieldData()->AddArray(strings); vtkDynamic2DLabelMapper *labeledDataMapper = vtkDynamic2DLabelMapper::New(); labeledDataMapper->SetInputData(polydata); labeledDataMapper->SetLabelModeToLabelFieldData(); labeledDataMapperBis->SetFieldDataName(strings->GetName()); vtkActor2D *actorText = vtkActor2D::New(); actorText->SetMapper(labeledDataMapper); Do you see where the problem come from ? Thanks Olivier -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-slow-to-display-300-vtkArrowSource-in-real-time-tp5740730p5740797.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Mon Oct 17 10:24:46 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 17 Oct 2016 10:24:46 -0400 Subject: [vtkusers] Fail because Position 0x00000000 In-Reply-To: <1476445044860-5740771.post@n5.nabble.com> References: <1476445044860-5740771.post@n5.nabble.com> Message-ID: Hi, Please see this page. http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines It will explain why you are getting NULL objects and how to fix the problem. Best, Cory On Fri, Oct 14, 2016 at 7:37 AM, xy_xy wrote: > Hi > > I'm trying to do something with VTK. I tryed some example but nothing > works. > The Fail are always a null pointer (Position 0x00000000) and I don't know > why it is null. > Can anybody help me? > > Thanks > > > #include "vtkGraphLayoutView.h" > #include "vtkRandomGraphSource.h" > #include "vtkRenderWindow.h" > #include "vtkRenderWindowInteractor.h" > > vtkRandomGraphSource* source = vtkRandomGraphSource::New(); > vtkGraphLayoutView* view = vtkGraphLayoutView::New(); *// <= Fail!* > view->SetRepresentationFromInputConnection(source->GetOutputPort()); > > view->ResetCamera(); > view->Render(); > view->GetInteractor()->Start(); > > source->Delete(); > view->Delete(); > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/Fail-because-Position-0x00000000-tp5740771.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 Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Mon Oct 17 11:20:06 2016 From: david.lonie at kitware.com (David Lonie) Date: Mon, 17 Oct 2016 11:20:06 -0400 Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time In-Reply-To: <1476695828249-5740797.post@n5.nabble.com> References: <1476203151673-5740730.post@n5.nabble.com> <1476277459658-5740741.post@n5.nabble.com> <1476359690103-5740757.post@n5.nabble.com> <1476372458726-5740762.post@n5.nabble.com> <1476695828249-5740797.post@n5.nabble.com> Message-ID: I spot an issue with the vtkPoints setup: > int num_pts = 10; > > vtkPoints *ptsText = vtkPoints::New(); > ptsText->SetNumberOfPoints(num_pts); > > for (int i = 1; i < num_pts; i++) > { > ptsText->InsertNextPoint(i, 0, 0); > } > SetNumberOfPoints resizes the array to hold 10 points, and then the loop appends an additional 10 points, so ptsText now contains 20 points, with the first 10 containing uninitialized memory. Try using SetPoint instead of InsertNextPoint. > vtkStringArray *strings = vtkStringArray::New(); > strings->SetNumberOfValues(num_pts); > strings->SetName("labels"); > for (int i = 1; i < 5; i++) > { > strings->InsertNextValue("bob"); > } > for (int i = 5; i < 10; i++) > { > strings->InsertNextValue("bob2"); > } > Same here. Looks like this is also wrong (my bad, I told you to do this earlier :P): polydata->GetFieldData()->AddArray(strings); > Despite the method name referring to FieldData, I just checked the implementation and it's actually looking in the PointData for the label array. Change this line to: polydata->GetPointData()->AddArray(strings); and I think you'll have it. HTH, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivameline at gmail.com Mon Oct 17 12:29:49 2016 From: olivameline at gmail.com (Olivier Ameline) Date: Mon, 17 Oct 2016 09:29:49 -0700 (MST) Subject: [vtkusers] VTK slow to display 300 vtkArrowSource in real-time In-Reply-To: References: <1476277459658-5740741.post@n5.nabble.com> <1476359690103-5740757.post@n5.nabble.com> <1476372458726-5740762.post@n5.nabble.com> <1476695828249-5740797.post@n5.nabble.com> Message-ID: <1476721789537-5740800.post@n5.nabble.com> Thanks Dave, it's working perfectly now. Olivier -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-slow-to-display-300-vtkArrowSource-in-real-time-tp5740730p5740800.html Sent from the VTK - Users mailing list archive at Nabble.com. From tjlp at netease.com Mon Oct 17 12:19:26 2016 From: tjlp at netease.com (Liu_tj) Date: Tue, 18 Oct 2016 00:19:26 +0800 (CST) Subject: [vtkusers] How to decide a point is on the 3D model? Message-ID: <788e76c7.9.157d370c8dc.Coremail.tjlp@netease.com> Hi, Given a 3d world position of a point and a 3d model generated from DICOM series, how can I know whether this point is on the model? Thanks Liu Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From CAOwens at mdanderson.org Mon Oct 17 13:23:04 2016 From: CAOwens at mdanderson.org (Owens,Constance A) Date: Mon, 17 Oct 2016 17:23:04 +0000 Subject: [vtkusers] matVTK Message-ID: <603A32F9BAA25B4FBF30F3ADF057B0872C75D280@DCPWPEXMBX01.mdanderson.edu> Hi Erich, I've been trying to use matVTK 1.0 beta1 (downloaded from http://www.cir.meduniwien.ac.at/team/birngruber/matvtk/ ). I believe that since I am using a windows computer, this is the version that I should be using. Perhaps I am implementing it incorrectly in MATLAB, but I get the following error: [cid:image001.jpg at 01D22871.35F882A0] I'm trying to plot a 3D surface mesh. I only downloaded the matVTK bundle. I'm not sure what is meant by: set environment variables MSSdk=C:\Program Files\Microsoft SDKs\Windows\v6.1 VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools Add the path of the VTK binaries (.lib, .dll) to the Windows PATH variable. It can be found in bin\Release below the directory that was chosen as output directory during the cmake configuration. I have Visual Studio 9.0 and Microsoft SDKs v6.0A. I am using VTK 7.0.0. Thanks, Constance Owens Graduate Research Assistant The University of Texas Graduate School of Biomedical Sciences at Houston Medical Physics CAOwens at mdanderson.org The information contained in this e-mail message may be privileged, confidential, and/or protected from disclosure. This e-mail message may contain protected health information (PHI); dissemination of PHI should comply with applicable federal and state laws. If you are not the intended recipient, or an authorized representative of the intended recipient, any further review, disclosure, use, dissemination, distribution, or copying of this message or any attachment (or the information contained therein) is strictly prohibited. If you think that you have received this e-mail message in error, please notify the sender by return e-mail and delete all references to it and its contents from your systems. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 67224 bytes Desc: image001.jpg URL: From patriciop at gmail.com Mon Oct 17 17:28:05 2016 From: patriciop at gmail.com (Patricio Palma C.) Date: Mon, 17 Oct 2016 18:28:05 -0300 Subject: [vtkusers] Noise appears when extreme zooming in In-Reply-To: References: Message-ID: Hi experts, does anybody has any idea of what could causing the issue described in the previous email? Recently I have noted that something similar occurs on 3D structures when zooming in extremely to the structure and then rotating it. It appears a kind of pattern to generate the shadow of the face but as you rotate the structure the face begin to get noisy. My current setup is VTK git development branch using OpenGL2 as rendering backend. mesa 12.0.1 with AVX. I have also tried using mesa 11.2 and the results are the same. Thanks! Regards Patricio El Monday, October 3, 2016, Patricio Palma C. escribi?: > Dear Experts > > I'm using VTK 7.1 (latest Git version) and Mesa 12.0 with AVX. I have an > application that display a 2D structure and some data on it. After zooming > in a couple times in the same spot of the structure it begins to appear > some noise over the 2D structure that increase after continuing zooming in. > > Is this a known issue? is there a way to solve/avoid this? > > I've attached some pictures showing how the noise appears while zooming > in. > > [image: Inline image 2] > [image: Inline image 3] > [image: Inline image 5] > [image: Inline image 6] > > -- > Patricio Palma Contreras > -- Patricio Palma Contreras -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step0.jpg Type: image/jpeg Size: 3073 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step2.jpg Type: image/jpeg Size: 5141 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step1.jpg Type: image/jpeg Size: 2217 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step3.jpg Type: image/jpeg Size: 8251 bytes Desc: not available URL: From ken.martin at kitware.com Mon Oct 17 19:21:16 2016 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 17 Oct 2016 19:21:16 -0400 Subject: [vtkusers] Noise appears when extreme zooming in In-Reply-To: References: Message-ID: It could be a few things, we would really need more details to narrow it down. Two things you can check 1) maybe a lighting issue, if you change your actors to be only ambient, no diffuse, do you still see the issue? 2) maybe a zbuffer issue, If you zoom too far you can end up with bad (not ideal) zbuffer clipping ranges. To narrow that down - are these Actors or Actor2D, what mapper are you using, do you have overlapping or coincident geometry? - when you see the problem what is the value of - the camera's clipping range - camera's position, and focal point, distance - the bounds of your data Generally you do not want any of those values to be really small or large relative to the square root of the range a float can normally hold. On Mon, Oct 17, 2016 at 5:28 PM, Patricio Palma C. wrote: > Hi experts, does anybody has any idea of what could causing the issue > described in the previous email? > Recently I have noted that something similar occurs on 3D structures when > zooming in extremely to the structure and then rotating it. It appears > a kind of pattern to generate the shadow of the face but as you rotate the > structure the face begin to get noisy. > > My current setup is VTK git development branch using OpenGL2 as rendering > backend. mesa 12.0.1 with AVX. I have also tried using mesa 11.2 and the > results are the same. > > Thanks! > Regards > Patricio > > El Monday, October 3, 2016, Patricio Palma C. > escribi?: > >> Dear Experts >> >> I'm using VTK 7.1 (latest Git version) and Mesa 12.0 with AVX. I have an >> application that display a 2D structure and some data on it. After zooming >> in a couple times in the same spot of the structure it begins to appear >> some noise over the 2D structure that increase after continuing zooming in. >> >> Is this a known issue? is there a way to solve/avoid this? >> >> I've attached some pictures showing how the noise appears while zooming >> in. >> >> [image: Inline image 2] >> [image: Inline image 3] >> [image: Inline image 5] >> [image: Inline image 6] >> >> -- >> Patricio Palma Contreras >> > > > -- > Patricio Palma Contreras > > > _______________________________________________ > 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 > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step2.jpg Type: image/jpeg Size: 5141 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step0.jpg Type: image/jpeg Size: 3073 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step1.jpg Type: image/jpeg Size: 2217 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step3.jpg Type: image/jpeg Size: 8251 bytes Desc: not available URL: From patriciop at gmail.com Tue Oct 18 01:01:48 2016 From: patriciop at gmail.com (Patricio Palma C.) Date: Tue, 18 Oct 2016 02:01:48 -0300 Subject: [vtkusers] Noise appears when extreme zooming in In-Reply-To: References: Message-ID: Hi Ken, experts, Thank you for the quick response. Regarding point one, SetDiffuse(0.0) was applied to all actors, the structure looks darker with no shadows, but the issue still occurs. About point 2: - the actor we use is derived from vtkQuadricLODActor - and there are some overlapping geometries Below is a image of the structure in the beginning. Clipping range, position, focal point and distance are shown below [image: Inline image 1] Debug: Camera clipping range: 3.61282 4.44839 Debug: Camera position: -1.93487 2.37646 2.48559 Debug: Camera focal point: 0.0543755 -0.0598546 0.0492757 Debug: Camera distance: 3.97849 Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , 0.05 ] After zooming in a bit, it appears a soft pattern of lines over the face of the structure [image: Inline image 2] Debug: Camera clipping range: 3.61282 4.44839 Debug: Camera position: -1.92875 2.37186 2.4952 Debug: Camera focal point: 0.0604954 -0.0644594 0.0588774 Debug: Camera distance: 3.97849 Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , 0.05 ] Finally after zooming in a couple of steps more, it appears noise/lines over the face. [image: Inline image 3] Debug: Camera clipping range: 3.61282 4.44839 Debug: Camera position: -1.92882 2.37202 2.49498 Debug: Camera focal point: 0.0604254 -0.0643013 0.0586621 Debug: Camera distance: 3.97849 Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , 0.05 ] It calls my attention that only position and focal point are being updated after zooming in. Thanks Patricio On Mon, Oct 17, 2016 at 8:21 PM, Ken Martin wrote: > It could be a few things, we would really need more details to narrow it > down. Two things you can check > > 1) maybe a lighting issue, if you change your actors to be only ambient, > no diffuse, do you still see the issue? > > 2) maybe a zbuffer issue, If you zoom too far you can end up with bad (not > ideal) zbuffer clipping ranges. To narrow that down > - are these Actors or Actor2D, what mapper are you using, > ?? > do you have overlapping or coincident geometry? > - when you see the problem what is the value of > ?? > - the camera's clipping range > - camera's position, and focal point, distance > - the bounds of your data > > Generally you do not want any of those values to be really small or large > relative to the square root of the range a float can normally hold. > > > > > > On Mon, Oct 17, 2016 at 5:28 PM, Patricio Palma C. > wrote: > >> Hi experts, does anybody has any idea of what could causing the issue >> described in the previous email? >> Recently I have noted that something similar occurs on 3D structures when >> zooming in extremely to the structure and then rotating it. It appears >> a kind of pattern to generate the shadow of the face but as you rotate the >> structure the face begin to get noisy. >> >> My current setup is VTK git development branch using OpenGL2 as rendering >> backend. mesa 12.0.1 with AVX. I have also tried using mesa 11.2 and the >> results are the same. >> >> Thanks! >> Regards >> Patricio >> >> El Monday, October 3, 2016, Patricio Palma C. >> escribi?: >> >>> Dear Experts >>> >>> I'm using VTK 7.1 (latest Git version) and Mesa 12.0 with AVX. I have an >>> application that display a 2D structure and some data on it. After zooming >>> in a couple times in the same spot of the structure it begins to appear >>> some noise over the 2D structure that increase after continuing zooming in. >>> >>> Is this a known issue? is there a way to solve/avoid this? >>> >>> I've attached some pictures showing how the noise appears while zooming >>> in. >>> >>> [image: Inline image 2] >>> [image: Inline image 3] >>> [image: Inline image 5] >>> [image: Inline image 6] >>> >>> -- >>> Patricio Palma Contreras >>> >> >> >> -- >> Patricio Palma Contreras >> >> >> _______________________________________________ >> 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 >> >> > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. > -- Patricio Palma Contreras -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step2.jpg Type: image/jpeg Size: 5141 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom2.jpg Type: image/jpeg Size: 46634 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom3.jpg Type: image/jpeg Size: 66880 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step1.jpg Type: image/jpeg Size: 2217 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step0.jpg Type: image/jpeg Size: 3073 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step3.jpg Type: image/jpeg Size: 8251 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom1.jpg Type: image/jpeg Size: 37655 bytes Desc: not available URL: From lorepunmanee at hotmail.com Tue Oct 18 02:49:41 2016 From: lorepunmanee at hotmail.com (lorepunmanee) Date: Mon, 17 Oct 2016 23:49:41 -0700 (MST) Subject: [vtkusers] I got problem, please anybody help me Message-ID: <1476773381770-5740807.post@n5.nabble.com> Hi all, I tried to make VTK but I got error below. CMake Error at CMake/ExternalData.cmake:1005 (message): Object MD5=e7a580e1a541358ed43d93e8bcea44c0 not found at: http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=e7a580e1a541358ed43d93e8bcea44c0&algorithm=MD5 ("Unsupported protocol") http://www.vtk.org/files/ExternalData/MD5/e7a580e1a541358ed43d93e8bcea44c0 ("Timeout was reached") Call Stack (most recent call first): CMake/ExternalData.cmake:1027 (_ExternalData_download_object) make[2]: *** [ExternalData/Filters/Core/Testing/Data/Baseline/fieldToRGrid_1.png.md5-stamp] Error 1 make[1]: *** [CMakeFiles/VTKData.dir/all] Error 2 make: *** [all] Error 2 Please help me to solve this problem Thank you. -- View this message in context: http://vtk.1045678.n5.nabble.com/I-got-problem-please-anybody-help-me-tp5740807.html Sent from the VTK - Users mailing list archive at Nabble.com. From mathieu.westphal at kitware.com Tue Oct 18 03:55:58 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Tue, 18 Oct 2016 09:55:58 +0200 Subject: [vtkusers] matVTK In-Reply-To: <603A32F9BAA25B4FBF30F3ADF057B0872C75D280@DCPWPEXMBX01.mdanderson.edu> References: <603A32F9BAA25B4FBF30F3ADF057B0872C75D280@DCPWPEXMBX01.mdanderson.edu> Message-ID: Hello matVTK is not created nor supported by Kitware and this mailing list concerns only VTK. If you can reproduce your issue without a matlab context, please let us know. As stated by this page : http://www.cir.meduniwien.ac.at/team/birngruber/matvtk/ I suggest you contact Erich Birngruber. http://www.cir.meduniwien.ac.at/team/birngruber/ for matVTK related questions. Regards, Mathieu Westphal On Mon, Oct 17, 2016 at 7:23 PM, Owens,Constance A wrote: > Hi Erich, > > > > I?ve been trying to use matVTK 1.0 beta1 (downloaded from > http://www.cir.meduniwien.ac.at/team/birngruber/matvtk/ ). I believe that > since I am using a windows computer, this is the version that I should be > using. Perhaps I am implementing it incorrectly in MATLAB, but I get the > following error: > > > > > > I?m trying to plot a 3D surface mesh. I only downloaded the matVTK bundle. > I?m not sure what is meant by: > > > > *set environment variables* > > MSSdk=C:\Program Files\Microsoft SDKs\Windows\v6.1 > VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools > > Add the path of the VTK binaries (.lib, .dll) to the Windows PATH > variable. It can be found in bin\Release below the directory that was > chosen as output directory during the cmake configuration. > > I have Visual Studio 9.0 and Microsoft SDKs v6.0A. I am using VTK 7.0.0. > > > > Thanks, > > Constance Owens > > Graduate Research Assistant > > *The University of Texas Graduate School of Biomedical Sciences at Houston* > Medical Physics > > CAOwens at mdanderson.org > > > > > > > The information contained in this e-mail message may be privileged, > confidential, and/or protected from disclosure. This e-mail message may > contain protected health information (PHI); dissemination of PHI should > comply with applicable federal and state laws. If you are not the intended > recipient, or an authorized representative of the intended recipient, any > further review, disclosure, use, dissemination, distribution, or copying of > this message or any attachment (or the information contained therein) is > strictly prohibited. If you think that you have received this e-mail > message in error, please notify the sender by return e-mail and delete all > references to it and its contents from your systems. > > _______________________________________________ > 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: image001.jpg Type: image/jpeg Size: 67224 bytes Desc: not available URL: From lorepunmanee at hotmail.com Tue Oct 18 04:01:28 2016 From: lorepunmanee at hotmail.com (lorepunmanee) Date: Tue, 18 Oct 2016 01:01:28 -0700 (MST) Subject: [vtkusers] VTK_WARP_JAVA issue, please help me Message-ID: <1476777688682-5740809.post@n5.nabble.com> I tried to make VTK, but i got error below, *** No rule to make target `/usr/lib/jvm/jre/lib/amd64/libjawt.so', needed by `lib/libvtkRenderingCoreJava.so'. Stop. make[1]: *** [Rendering/Core/CMakeFiles/vtkRenderingCoreJava.dir/all] Error 2 make: *** [all] Error 2 Please anybody help me to slove this problem -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-WARP-JAVA-issue-please-help-me-tp5740809.html Sent from the VTK - Users mailing list archive at Nabble.com. From horstausprag at gmx.de Tue Oct 18 04:30:58 2016 From: horstausprag at gmx.de (Horst) Date: Tue, 18 Oct 2016 10:30:58 +0200 Subject: [vtkusers] GTKmm + VTK In-Reply-To: References: Message-ID: Hello, I tested a bit more. Here is an example, where I have 1 resulting window, but the rendering is wrong. The environment is a Ubuntu 16.04. Any help is welcome. Kind regards Am 14.10.2016 um 11:53 schrieb Horst: > > Hello everybody, > > I am trying to integrate a VTK rendering into a GTKmm based window. > The GTK widget contains a GLarea > (https://developer.gnome.org/gtkmm/stable/classGtk_1_1GLArea.html), > and I want to render into that context. > > The problem is, that I end up with two windows. One by GTK and one by > VTK. I was inspired by this: > http://www.vtk.org/Wiki/VTK/Examples/Cxx/GLUT but > > renWin->InitializeFromCurrentContext(); > is maybe not the way to go? > In the VTK blog I read about the ExternalVTKWidget and > vtkExternalOpenGLRenderWindow. But this still did not work > (https://gitlab.kitware.com/vtk/vtk/blob/0b7d6de3dddbcdb5dd9267a9586d59962464819e/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx) > for me. > > So my question: What is the proper way of rendering into a GTK::GLArea > (or in general using VTK with GTK), while still get the proper event > from VTK (pointing on a cone in the view and get the event-position). > Or do I need to use a separate event loop instead of the one provided > by vtkRenderWindowInteractor? > > Thanks a lot and every hint is welcome! > > Kind 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: -------------- next part -------------- project(Test03) cmake_minimum_required(VERSION 2.8) list( APPEND CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations") # Use the package PkgConfig to detect GTK+ headers/library files find_package(PkgConfig REQUIRED) pkg_check_modules(GTK3MM REQUIRED gtkmm-3.0) include_directories(${GTK3MM_INCLUDE_DIRS}) link_directories(${GTK3MM_LIBRARY_DIRS}) add_definitions(${GTK3MM_CFLAGS_OTHER}) include_directories(src) find_package(VTK 6.2 REQUIRED) include_directories(${VTK_INCLUDE_DIRS}) link_directories(${VTK_LIBRARY_DIRS}) #add_definitions(${VTK_DEFINITIONS}) link_directories(${EXT_DIR}) add_executable(${PROJECT_NAME} src/main.cpp src/test03.cpp src/test03.h) target_link_libraries(${PROJECT_NAME} ${GTK3MM_LIBRARIES} ${VTK_LIBRARIES} ) -------------- next part -------------- A non-text attachment was scrubbed... Name: main.cpp Type: text/x-c++src Size: 198 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test03.cpp Type: text/x-c++src Size: 2633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test03.h Type: text/x-chdr Size: 1263 bytes Desc: not available URL: From dave.demarle at kitware.com Tue Oct 18 05:53:42 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 18 Oct 2016 05:53:42 -0400 Subject: [vtkusers] I got problem, please anybody help me In-Reply-To: <1476773381770-5740807.post@n5.nabble.com> References: <1476773381770-5740807.post@n5.nabble.com> Message-ID: One thing to do is to turn off tests, this will prevent the build from trying to download our regression test data. Another thing to do is to manually download the regression test data zipfiles/tarballs, unzip/untar in your source directory and then the build won't need to download them. . David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Oct 18, 2016 at 2:49 AM, lorepunmanee wrote: > Hi all, > I tried to make VTK but I got error below. > > CMake Error at CMake/ExternalData.cmake:1005 (message): > Object MD5=e7a580e1a541358ed43d93e8bcea44c0 not found at: > > > http://midas3.kitware.com/midas/api/rest?method=midas. > bitstream.download&checksum=e7a580e1a541358ed43d93e8bcea44c0&algorithm=MD5 > ("Unsupported protocol") > > http://www.vtk.org/files/ExternalData/MD5/e7a580e1a541358ed43d93e8bcea44c0 > ("Timeout was reached") > Call Stack (most recent call first): > CMake/ExternalData.cmake:1027 (_ExternalData_download_object) > > > make[2]: *** > [ExternalData/Filters/Core/Testing/Data/Baseline/ > fieldToRGrid_1.png.md5-stamp] > Error 1 > make[1]: *** [CMakeFiles/VTKData.dir/all] Error 2 > make: *** [all] Error 2 > > Please help me to solve this problem > Thank you. > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/I-got-problem-please-anybody-help-me-tp5740807.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 dave.demarle at kitware.com Tue Oct 18 05:56:57 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 18 Oct 2016 05:56:57 -0400 Subject: [vtkusers] VTK_WARP_JAVA issue, please help me In-Reply-To: <1476777688682-5740809.post@n5.nabble.com> References: <1476777688682-5740809.post@n5.nabble.com> Message-ID: On Tue, Oct 18, 2016 at 4:01 AM, lorepunmanee wrote: > /usr/lib/jvm/jre/lib/amd64/libjawt.so > This is part of the java and it appears to be missing on your machine. Check that you've installed java fully and that it includes jawt. 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 lorepunmanee at hotmail.com Tue Oct 18 07:38:37 2016 From: lorepunmanee at hotmail.com (lorepunmanee) Date: Tue, 18 Oct 2016 04:38:37 -0700 (MST) Subject: [vtkusers] Error in vtkJavaTesting Message-ID: <1476790717819-5740813.post@n5.nabble.com> I make vtk but I got error below, /home/globus/VTK-7.0.0/java/vtk/vtkJavaTesting.java:11: error: cannot find symbol import vtk.vtkTesting; ^ symbol: class vtkTesting location: package vtk /home/globus/VTK-7.0.0/java/vtk/vtkJavaTesting.java:131: error: cannot find symbol private static vtkTesting Tester = null; ^ symbol: class vtkTesting location: class vtkJavaTesting /home/globus/VTK-7.0.0/java/vtk/vtkJavaTesting.java:78: error: cannot find symbol vtkJavaTesting.Tester = new vtk.vtkTesting(); ^ symbol: class vtkTesting location: package vtk 3 errors make[2]: *** [java/javac_stamp.txt] Error 1 make[1]: *** [Wrapping/Java/CMakeFiles/VTKJavaClasses.dir/all] Error 2 make: *** [all] Error 2 For the error, it doesn't have vtkTesting.java in vtk floder Please anybody help me to solve. -- View this message in context: http://vtk.1045678.n5.nabble.com/Error-in-vtkJavaTesting-tp5740813.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Tue Oct 18 08:42:38 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 18 Oct 2016 08:42:38 -0400 Subject: [vtkusers] I got problem, please anybody help me In-Reply-To: References: <1476773381770-5740807.post@n5.nabble.com> Message-ID: Hi, I suspect that the problem is that your CMake was not built with OpenSSL support. The data download requests using the http protocol are forwarded to an address with the https protocol, but your CMake doesn't speak https, hence the error. I recommend downloading an installer from https://cmake.org/download/ and using it if you need the test data. Otherwise, David's recommendation should work, too. HTH, Cory On Tue, Oct 18, 2016 at 5:53 AM, David E DeMarle wrote: > One thing to do is to turn off tests, this will prevent the build from > trying to download our regression test data. > > Another thing to do is to manually download the regression test data > zipfiles/tarballs, unzip/untar in your source directory and then the build > won't need to download them. > . > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Tue, Oct 18, 2016 at 2:49 AM, lorepunmanee > wrote: > >> Hi all, >> I tried to make VTK but I got error below. >> >> CMake Error at CMake/ExternalData.cmake:1005 (message): >> Object MD5=e7a580e1a541358ed43d93e8bcea44c0 not found at: >> >> >> http://midas3.kitware.com/midas/api/rest?method=midas.bitstr >> eam.download&checksum=e7a580e1a541358ed43d93e8bcea44c0&algorithm=MD5 >> ("Unsupported protocol") >> >> http://www.vtk.org/files/ExternalData/MD5/e7a580e1a541358ed4 >> 3d93e8bcea44c0 >> ("Timeout was reached") >> Call Stack (most recent call first): >> CMake/ExternalData.cmake:1027 (_ExternalData_download_object) >> >> >> make[2]: *** >> [ExternalData/Filters/Core/Testing/Data/Baseline/fieldToRGri >> d_1.png.md5-stamp] >> Error 1 >> make[1]: *** [CMakeFiles/VTKData.dir/all] Error 2 >> make: *** [all] Error 2 >> >> Please help me to solve this problem >> Thank you. >> >> >> >> >> -- >> View this message in context: http://vtk.1045678.n5.nabble.c >> om/I-got-problem-please-anybody-help-me-tp5740807.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 > > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Tue Oct 18 08:49:08 2016 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 18 Oct 2016 08:49:08 -0400 Subject: [vtkusers] Noise appears when extreme zooming in In-Reply-To: References: Message-ID: Are you zooming using one of VTK's interactor styles? or are you explicitly calling zoom or dolly on the camera? Using dolly() the distance on the camera should be changing and as you noticed it isn't. Since you mentioned you have coincident geometry that can be an issue. When you have two polygons at the same location the rendering process can result in a random determination of which is on top. If the coincident geometry is in two different mappers you can use the void SetRelativeCoincidentTopologyPolygonOffsetParameters( double factor, double units); method to move one of the mappers slightly in front of the other. On Tue, Oct 18, 2016 at 1:01 AM, Patricio Palma C. wrote: > Hi Ken, experts, > > Thank you for the quick response. > Regarding point one, SetDiffuse(0.0) was applied to all actors, the > structure looks darker with no shadows, but the issue still occurs. > > About point 2: > - the actor we use is derived from vtkQuadricLODActor > - and there are some overlapping geometries > > Below is a image of the structure in the beginning. Clipping range, > position, focal point and distance are shown below > [image: Inline image 1] > Debug: Camera clipping range: 3.61282 4.44839 > Debug: Camera position: -1.93487 2.37646 2.48559 > Debug: Camera focal point: 0.0543755 -0.0598546 0.0492757 > Debug: Camera distance: 3.97849 > Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , > 0.05 ] > > After zooming in a bit, it appears a soft pattern of lines over the face > of the structure > [image: Inline image 2] > Debug: Camera clipping range: 3.61282 4.44839 > Debug: Camera position: -1.92875 2.37186 2.4952 > Debug: Camera focal point: 0.0604954 -0.0644594 0.0588774 > Debug: Camera distance: 3.97849 > Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , > 0.05 ] > > Finally after zooming in a couple of steps more, it appears noise/lines > over the face. > [image: Inline image 3] > Debug: Camera clipping range: 3.61282 4.44839 > Debug: Camera position: -1.92882 2.37202 2.49498 > Debug: Camera focal point: 0.0604254 -0.0643013 0.0586621 > Debug: Camera distance: 3.97849 > Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , > 0.05 ] > > It calls my attention that only position and focal point are being updated > after zooming in. > > Thanks > Patricio > > On Mon, Oct 17, 2016 at 8:21 PM, Ken Martin > wrote: > >> It could be a few things, we would really need more details to narrow it >> down. Two things you can check >> >> 1) maybe a lighting issue, if you change your actors to be only ambient, >> no diffuse, do you still see the issue? >> >> 2) maybe a zbuffer issue, If you zoom too far you can end up with bad >> (not ideal) zbuffer clipping ranges. To narrow that down >> - are these Actors or Actor2D, what mapper are you using, >> ?? >> do you have overlapping or coincident geometry? >> - when you see the problem what is the value of >> ?? >> - the camera's clipping range >> - camera's position, and focal point, distance >> - the bounds of your data >> >> Generally you do not want any of those values to be really small or large >> relative to the square root of the range a float can normally hold. >> >> >> >> >> >> On Mon, Oct 17, 2016 at 5:28 PM, Patricio Palma C. >> wrote: >> >>> Hi experts, does anybody has any idea of what could causing the issue >>> described in the previous email? >>> Recently I have noted that something similar occurs on 3D >>> structures when zooming in extremely to the structure and then rotating it. >>> It appears a kind of pattern to generate the shadow of the face but as you >>> rotate the structure the face begin to get noisy. >>> >>> My current setup is VTK git development branch using OpenGL2 as >>> rendering backend. mesa 12.0.1 with AVX. I have also tried using mesa 11.2 >>> and the results are the same. >>> >>> Thanks! >>> Regards >>> Patricio >>> >>> El Monday, October 3, 2016, Patricio Palma C. >>> escribi?: >>> >>>> Dear Experts >>>> >>>> I'm using VTK 7.1 (latest Git version) and Mesa 12.0 with AVX. I have >>>> an application that display a 2D structure and some data on it. After >>>> zooming in a couple times in the same spot of the structure it begins to >>>> appear some noise over the 2D structure that increase after continuing >>>> zooming in. >>>> >>>> Is this a known issue? is there a way to solve/avoid this? >>>> >>>> I've attached some pictures showing how the noise appears while zooming >>>> in. >>>> >>>> [image: Inline image 2] >>>> [image: Inline image 3] >>>> [image: Inline image 5] >>>> [image: Inline image 6] >>>> >>>> -- >>>> Patricio Palma Contreras >>>> >>> >>> >>> -- >>> Patricio Palma Contreras >>> >>> >>> _______________________________________________ >>> 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 >>> >>> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> 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. >> > > > > -- > Patricio Palma Contreras > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step0.jpg Type: image/jpeg Size: 3073 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom2.jpg Type: image/jpeg Size: 46634 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom3.jpg Type: image/jpeg Size: 66880 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step1.jpg Type: image/jpeg Size: 2217 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step3.jpg Type: image/jpeg Size: 8251 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step2.jpg Type: image/jpeg Size: 5141 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom1.jpg Type: image/jpeg Size: 37655 bytes Desc: not available URL: From ilindsay at insigniamedical.co.uk Tue Oct 18 09:24:12 2016 From: ilindsay at insigniamedical.co.uk (ianl) Date: Tue, 18 Oct 2016 06:24:12 -0700 (MST) Subject: [vtkusers] OpenGL driver issue with VTK 7.0 In-Reply-To: References: <35d826a4.16.15375cddc12.Coremail.tjlp@netease.com> <7f3c22d7.4.15377ced08a.Coremail.tjlp@netease.com> <1475081188518-5740581.post@n5.nabble.com> <1475152114300-5740586.post@n5.nabble.com> <1475228858351-5740609.post@n5.nabble.com> <1475576350413-5740653.post@n5.nabble.com> Message-ID: <1476797052457-5740817.post@n5.nabble.com> Is this worth raising as an issue in the bug tracker as VTK 7.1 has reached release candidate stage? -- View this message in context: http://vtk.1045678.n5.nabble.com/OpenGL-driver-issue-with-VTK-7-0-tp5737190p5740817.html Sent from the VTK - Users mailing list archive at Nabble.com. From ilindsay at insigniamedical.co.uk Tue Oct 18 09:29:56 2016 From: ilindsay at insigniamedical.co.uk (ianl) Date: Tue, 18 Oct 2016 06:29:56 -0700 (MST) Subject: [vtkusers] OpenGL2 using mesa In-Reply-To: <1475228483513-5740608.post@n5.nabble.com> References: <1474985195187-5740568.post@n5.nabble.com> <1474986380344-5740570.post@n5.nabble.com> <006d01d218cd$ef375970$cda60c50$@gmail.com> <1474992223541-5740573.post@n5.nabble.com> <1475151764285-5740585.post@n5.nabble.com> <1475228483513-5740608.post@n5.nabble.com> Message-ID: <1476797396213-5740818.post@n5.nabble.com> Hi, has there been any progress on this? We are now running with the old OpenGL back end which works for us, and makes use of the limited OpenGL support in the VirtualBox driver. Obviously if the new OpenGL2 back end were to work with Mesa, we would not get any of the performance benefits, but we can at least test against the OpenGL2 back end as this is what we would like to use in production. -- View this message in context: http://vtk.1045678.n5.nabble.com/OpenGL2-using-mesa-tp5740561p5740818.html Sent from the VTK - Users mailing list archive at Nabble.com. From ilindsay at insigniamedical.co.uk Tue Oct 18 09:31:51 2016 From: ilindsay at insigniamedical.co.uk (ianl) Date: Tue, 18 Oct 2016 06:31:51 -0700 (MST) Subject: [vtkusers] GPU Memory Detection In-Reply-To: <1474623153403-5740504.post@n5.nabble.com> References: <1473697280617-5740281.post@n5.nabble.com> <1473762391998-5740291.post@n5.nabble.com> <1474015784546-5740351.post@n5.nabble.com> <1474623153403-5740504.post@n5.nabble.com> Message-ID: <1476797511035-5740819.post@n5.nabble.com> Hi, sorry to bump this thread again. Is it worth raising this as an issue in the bug tracker as the VTK 7.1 release is coming up, or have I misunderstood something here? -- View this message in context: http://vtk.1045678.n5.nabble.com/GPU-Memory-Detection-tp5740281p5740819.html Sent from the VTK - Users mailing list archive at Nabble.com. From ken.martin at kitware.com Tue Oct 18 09:59:39 2016 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 18 Oct 2016 09:59:39 -0400 Subject: [vtkusers] OpenGL2 using mesa In-Reply-To: <1476797396213-5740818.post@n5.nabble.com> References: <1474985195187-5740568.post@n5.nabble.com> <1474986380344-5740570.post@n5.nabble.com> <006d01d218cd$ef375970$cda60c50$@gmail.com> <1474992223541-5740573.post@n5.nabble.com> <1475151764285-5740585.post@n5.nabble.com> <1475228483513-5740608.post@n5.nabble.com> <1476797396213-5740818.post@n5.nabble.com> Message-ID: There is a fix in VTK that may make this work. Specifically https://gitlab.kitware.com/vtk/vtk/merge_requests/2065 although I think that fix was for Windows Mesa with SWR but it may be more general and help Windows+Mesa+llvmpipe. Not sure if you have tested since that change was merged. If it still fails then I can help you debug it to try to nail down the problem, you would need to step through some code in the debugger and let me know where it fails. On Tue, Oct 18, 2016 at 9:29 AM, ianl wrote: > Hi, has there been any progress on this? We are now running with the old > OpenGL back end which works for us, and makes use of the limited OpenGL > support in the VirtualBox driver. > > Obviously if the new OpenGL2 back end were to work with Mesa, we would not > get any of the performance benefits, but we can at least test against the > OpenGL2 back end as this is what we would like to use in production. > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/OpenGL2-using-mesa-tp5740561p5740818.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 > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lbaronti at gmail.com Tue Oct 18 10:03:24 2016 From: lbaronti at gmail.com (Luca Baronti) Date: Tue, 18 Oct 2016 15:03:24 +0100 Subject: [vtkusers] Problems with new vtk 6 modules Message-ID: [I'm reposting this issue since somehow it wasn't sent in the mailing list the first time] Hi, I'm a PCL user that have recently upgraded his system to Ubuntu 16.04 The new PCL version present in that release use the most recent 6.2 version of the VTK library (from 5.8). Previously in my (PCL) application I just had to link the QVTK library and everything worked just fine. Now the QVTK shared object is not present anymore, and I don't know exactly which library contains what I need. For instance, any set of library that allow to compile this small example will do the work for me http://pointclouds.org/documentation/tutorials/qt_visualizer.php I've tried to link some .so that might contain the code I need but I'm still stuck in finding some libraries (for instance where can i find the data/functions for DataSetMapper?) I've also took a look at this guide http://www.vtk.org/Wiki/VTK/VTK_6_Migration_Guide without any success (actually, I'm not very familiar with the VTK framework, since I'm mostly using PCL) Thanks for the help, Luca -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Tue Oct 18 10:06:39 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 18 Oct 2016 08:06:39 -0600 Subject: [vtkusers] Error in vtkJavaTesting In-Reply-To: <1476790717819-5740813.post@n5.nabble.com> References: <1476790717819-5740813.post@n5.nabble.com> Message-ID: Probably coming from the C++ side. Anyway, could you explain all the steps and settings you've done when trying to build VTK. On Tue, Oct 18, 2016 at 5:38 AM, lorepunmanee wrote: > I make vtk but I got error below, > > /home/globus/VTK-7.0.0/java/vtk/vtkJavaTesting.java:11: error: cannot find > symbol > import vtk.vtkTesting; > ^ > symbol: class vtkTesting > location: package vtk > /home/globus/VTK-7.0.0/java/vtk/vtkJavaTesting.java:131: error: cannot > find > symbol > private static vtkTesting Tester = null; > ^ > symbol: class vtkTesting > location: class vtkJavaTesting > /home/globus/VTK-7.0.0/java/vtk/vtkJavaTesting.java:78: error: cannot find > symbol > vtkJavaTesting.Tester = new vtk.vtkTesting(); > ^ > symbol: class vtkTesting > location: package vtk > 3 errors > make[2]: *** [java/javac_stamp.txt] Error 1 > make[1]: *** [Wrapping/Java/CMakeFiles/VTKJavaClasses.dir/all] Error 2 > make: *** [all] Error 2 > > For the error, it doesn't have vtkTesting.java in vtk floder > Please anybody help me to solve. > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/Error-in-vtkJavaTesting-tp5740813.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 elvis.stansvik at orexplore.com Tue Oct 18 10:40:41 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 18 Oct 2016 16:40:41 +0200 Subject: [vtkusers] Can't control the number of bins used by vtkImageHistogramStatistics? Message-ID: It seems that even if I call SetNumberOfBins(256), the default (65536) is always used (float input). The docs says "By default, 65536 bins are used for float data, giving at least 16 bits of precision.", which I thought meant that I could change this default. Is it possible? Elvis From david.gobbi at gmail.com Tue Oct 18 10:53:43 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 18 Oct 2016 08:53:43 -0600 Subject: [vtkusers] Can't control the number of bins used by vtkImageHistogramStatistics? In-Reply-To: References: Message-ID: Hi Elvis, Call AutomaticBinningOff() and SetNumberOfBins(n). If you have negative values, also call SetBinOrigin(x) where 'x' is the minimum expected data value. Use SetBinSpacing() to adjust the bin width. - David On Tue, Oct 18, 2016 at 8:40 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > It seems that even if I call SetNumberOfBins(256), the default (65536) > is always used (float input). > > The docs says "By default, 65536 bins are used for float data, giving > at least 16 bits of precision.", which I thought meant that I could > change this default. > > Is it possible? > > Elvis > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Tue Oct 18 11:10:40 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 18 Oct 2016 17:10:40 +0200 Subject: [vtkusers] Can't control the number of bins used by vtkImageHistogramStatistics? In-Reply-To: References: Message-ID: 2016-10-18 16:53 GMT+02:00 David Gobbi : > Hi Elvis, > > Call AutomaticBinningOff() and SetNumberOfBins(n). Bah, sorry. Don't know why I didn't see the AutomaticBinning option. Thanks. Elvis > If you have negative values, also call SetBinOrigin(x) > where 'x' is the minimum expected data value. Use > SetBinSpacing() to adjust the bin width. > > - David > > > On Tue, Oct 18, 2016 at 8:40 AM, Elvis Stansvik > wrote: >> >> It seems that even if I call SetNumberOfBins(256), the default (65536) >> is always used (float input). >> >> The docs says "By default, 65536 bins are used for float data, giving >> at least 16 bits of precision.", which I thought meant that I could >> change this default. >> >> Is it possible? >> >> Elvis From david.gobbi at gmail.com Tue Oct 18 11:18:28 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 18 Oct 2016 09:18:28 -0600 Subject: [vtkusers] Can't control the number of bins used by vtkImageHistogramStatistics? In-Reply-To: References: Message-ID: Out of curiosity, do you want to increase the number of bins in order to increase the precision? When I wrote this class, my main intent was to compute statistics on 8-bit and 16-bit images, and a histogram-based method is very fast for integer images and also is also very robust. It's also very robust for float images, in the sense that the error is small and bounded. However, if you want to compute statistics on float data, and to close to the limits of float precision, then other methods might be better. - David On Tue, Oct 18, 2016 at 9:10 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > 2016-10-18 16:53 GMT+02:00 David Gobbi : > > On Tue, Oct 18, 2016 at 8:40 AM, Elvis Stansvik > > wrote: > >> > >> It seems that even if I call SetNumberOfBins(256), the default (65536) > >> is always used (float input). > >> > >> The docs says "By default, 65536 bins are used for float data, giving > >> at least 16 bits of precision.", which I thought meant that I could > >> change this default. > >> > >> Is it possible? > >> > >> Elvis > -------------- next part -------------- An HTML attachment was scrubbed... URL: From leonid_dulman at yahoo.co.uk Tue Oct 18 11:25:35 2016 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Tue, 18 Oct 2016 15:25:35 +0000 (UTC) Subject: [vtkusers] VTK 7.1rc1 : vtkPainter.h need vtkRenderingOpenGLModule.h References: <403595146.5160517.1476804335480.ref@mail.yahoo.com> Message-ID: <403595146.5160517.1476804335480@mail.yahoo.com> Hi to AllHow I can use vtkPainter with OpenGL2 Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From mattkingc at gmail.com Tue Oct 18 12:04:08 2016 From: mattkingc at gmail.com (Matt C) Date: Tue, 18 Oct 2016 09:04:08 -0700 (MST) Subject: [vtkusers] QT Button on top of QVTKWidget Mac OS Message-ID: <1476806648693-5740828.post@n5.nabble.com> I'm trying to display Qt buttons on top of a QVTKWidget. This works correct in Linux but using Mac OS 10.11.16, QT 4.8.7 and VTK 7.0 the buttons are invisible. (I can click them if I know where they are). I considered drawing the buttons right in VTK but we want to use the QT styling and some of their more complex ui objects. Any suggestions? The following minimal example shows the problem: #include #include #include #include #include #include #include #include int main( int argc, char **argv ) { QApplication app( argc, argv ); QVTKWidget widget; widget.resize(640,384); #if QT_VERSION < 0x040000 app.setMainWidget(&widget); #endif vtkRenderer *renderer = vtkRenderer::New(); vtkRenderWindow *renderWindow = vtkRenderWindow::New(); renderWindow->AddRenderer(renderer); widget.SetRenderWindow(renderWindow); QLayout* gridLayout = new QGridLayout(&widget); QPushButton button("Should show up"); button.raise(); button.raise(); button.raise(); gridLayout->addWidget(&button); widget.setLayout(gridLayout); widget.show(); app.exec(); return 0; } -- View this message in context: http://vtk.1045678.n5.nabble.com/QT-Button-on-top-of-QVTKWidget-Mac-OS-tp5740828.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Tue Oct 18 12:26:41 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 18 Oct 2016 18:26:41 +0200 Subject: [vtkusers] Can't control the number of bins used by vtkImageHistogramStatistics? In-Reply-To: References: Message-ID: Den 18 okt. 2016 5:18 em skrev "David Gobbi" : > > Out of curiosity, do you want to increase the number of bins in > order to increase the precision? Ah, no the opposite actually. I wanted to reduce the number of bins from the default of 65536 (for float) to something like 256 or 512, as I had no need for greater precision. The reason I picked this class was because it seemed convenient that I could get both the histogram itself and also some rough stats at the same time. Elvis > > When I wrote this class, my main intent was to compute statistics > on 8-bit and 16-bit images, and a histogram-based method is very > fast for integer images and also is also very robust. It's also very > robust for float images, in the sense that the error is small and > bounded. > > However, if you want to compute statistics on float data, and to close > to the limits of float precision, then other methods might be better. > > - David > > On Tue, Oct 18, 2016 at 9:10 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: >> >> 2016-10-18 16:53 GMT+02:00 David Gobbi : >> > On Tue, Oct 18, 2016 at 8:40 AM, Elvis Stansvik >> > wrote: >> >> >> >> It seems that even if I call SetNumberOfBins(256), the default (65536) >> >> is always used (float input). >> >> >> >> The docs says "By default, 65536 bins are used for float data, giving >> >> at least 16 bits of precision.", which I thought meant that I could >> >> change this default. >> >> >> >> Is it possible? >> >> >> >> Elvis > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Tue Oct 18 12:40:09 2016 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 18 Oct 2016 12:40:09 -0400 Subject: [vtkusers] VTK 7.1rc1 : vtkPainter.h need vtkRenderingOpenGLModule.h In-Reply-To: <403595146.5160517.1476804335480@mail.yahoo.com> References: <403595146.5160517.1476804335480.ref@mail.yahoo.com> <403595146.5160517.1476804335480@mail.yahoo.com> Message-ID: vtkPainter is an vtkOpenGL1 concept. In vtkOpenGL2 there are generally other ways to accomplish the same goals. On Tue, Oct 18, 2016 at 11:25 AM, Leonid Dulman via vtkusers < vtkusers at vtk.org> wrote: > Hi to All > How I can use vtkPainter with OpenGL2 > Thank you > > _______________________________________________ > 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 > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From patriciop at gmail.com Tue Oct 18 13:24:04 2016 From: patriciop at gmail.com (Patricio Palma C.) Date: Tue, 18 Oct 2016 14:24:04 -0300 Subject: [vtkusers] Noise appears when extreme zooming in In-Reply-To: References: Message-ID: Hi Ken, experts I have double checked and the case shown in previous email, do not have coincident geometries. Regarding the interactor, I'm using a custom interactor style (derived from vtkInteractorStyle) that provides a rubber band zoom into the 3D scene. The code shows Dolly() function in custom interactor is calling camera->Zoom(). Regards Patricio On Tue, Oct 18, 2016 at 9:49 AM, Ken Martin wrote: > Are you zooming using one of VTK's interactor styles? or are you > explicitly calling zoom or dolly on the camera? Using dolly() the distance > on the camera should be changing and as you noticed it isn't. > > Since you mentioned you have coincident geometry that can be an issue. > When you have two polygons at the same location the rendering process can > result in a random determination of which is on top. If the coincident > geometry is in two different mappers you can use the > > void SetRelativeCoincidentTopologyPolygonOffsetParameters( > double factor, double units); > > method to move one of the mappers slightly in front of the other. > > > > > > On Tue, Oct 18, 2016 at 1:01 AM, Patricio Palma C. > wrote: > >> Hi Ken, experts, >> >> Thank you for the quick response. >> Regarding point one, SetDiffuse(0.0) was applied to all actors, the >> structure looks darker with no shadows, but the issue still occurs. >> >> About point 2: >> - the actor we use is derived from vtkQuadricLODActor >> - and there are some overlapping geometries >> >> Below is a image of the structure in the beginning. Clipping range, >> position, focal point and distance are shown below >> [image: Inline image 1] >> Debug: Camera clipping range: 3.61282 4.44839 >> Debug: Camera position: -1.93487 2.37646 2.48559 >> Debug: Camera focal point: 0.0543755 -0.0598546 0.0492757 >> Debug: Camera distance: 3.97849 >> Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , >> 0.05 ] >> >> After zooming in a bit, it appears a soft pattern of lines over the face >> of the structure >> [image: Inline image 2] >> Debug: Camera clipping range: 3.61282 4.44839 >> Debug: Camera position: -1.92875 2.37186 2.4952 >> Debug: Camera focal point: 0.0604954 -0.0644594 0.0588774 >> Debug: Camera distance: 3.97849 >> Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , >> 0.05 ] >> >> Finally after zooming in a couple of steps more, it appears noise/lines >> over the face. >> [image: Inline image 3] >> Debug: Camera clipping range: 3.61282 4.44839 >> Debug: Camera position: -1.92882 2.37202 2.49498 >> Debug: Camera focal point: 0.0604254 -0.0643013 0.0586621 >> Debug: Camera distance: 3.97849 >> Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , >> 0.05 ] >> >> It calls my attention that only position and focal point are being >> updated after zooming in. >> >> Thanks >> Patricio >> >> On Mon, Oct 17, 2016 at 8:21 PM, Ken Martin >> wrote: >> >>> It could be a few things, we would really need more details to narrow it >>> down. Two things you can check >>> >>> 1) maybe a lighting issue, if you change your actors to be only ambient, >>> no diffuse, do you still see the issue? >>> >>> 2) maybe a zbuffer issue, If you zoom too far you can end up with bad >>> (not ideal) zbuffer clipping ranges. To narrow that down >>> - are these Actors or Actor2D, what mapper are you using, >>> ?? >>> do you have overlapping or coincident geometry? >>> - when you see the problem what is the value of >>> ?? >>> - the camera's clipping range >>> - camera's position, and focal point, distance >>> - the bounds of your data >>> >>> Generally you do not want any of those values to be really small or >>> large relative to the square root of the range a float can normally hold. >>> >>> >>> >>> >>> >>> On Mon, Oct 17, 2016 at 5:28 PM, Patricio Palma C. >>> wrote: >>> >>>> Hi experts, does anybody has any idea of what could causing the issue >>>> described in the previous email? >>>> Recently I have noted that something similar occurs on 3D >>>> structures when zooming in extremely to the structure and then rotating it. >>>> It appears a kind of pattern to generate the shadow of the face but as you >>>> rotate the structure the face begin to get noisy. >>>> >>>> My current setup is VTK git development branch using OpenGL2 as >>>> rendering backend. mesa 12.0.1 with AVX. I have also tried using mesa 11.2 >>>> and the results are the same. >>>> >>>> Thanks! >>>> Regards >>>> Patricio >>>> >>>> El Monday, October 3, 2016, Patricio Palma C. >>>> escribi?: >>>> >>>>> Dear Experts >>>>> >>>>> I'm using VTK 7.1 (latest Git version) and Mesa 12.0 with AVX. I have >>>>> an application that display a 2D structure and some data on it. After >>>>> zooming in a couple times in the same spot of the structure it begins to >>>>> appear some noise over the 2D structure that increase after continuing >>>>> zooming in. >>>>> >>>>> Is this a known issue? is there a way to solve/avoid this? >>>>> >>>>> I've attached some pictures showing how the noise appears while >>>>> zooming in. >>>>> >>>>> [image: Inline image 2] >>>>> [image: Inline image 3] >>>>> [image: Inline image 5] >>>>> [image: Inline image 6] >>>>> >>>>> -- >>>>> Patricio Palma Contreras >>>>> >>>> >>>> >>>> -- >>>> Patricio Palma Contreras >>>> >>>> >>>> _______________________________________________ >>>> 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 >>>> >>>> >>> >>> >>> -- >>> Ken Martin PhD >>> Chairman & CFO >>> Kitware Inc. >>> 28 Corporate Drive >>> Clifton Park NY 12065 >>> 518 371 3971 >>> >>> 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. >>> >> >> >> >> -- >> Patricio Palma Contreras >> > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. > -- Patricio Palma Contreras -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step0.jpg Type: image/jpeg Size: 3073 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom2.jpg Type: image/jpeg Size: 46634 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step1.jpg Type: image/jpeg Size: 2217 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom1.jpg Type: image/jpeg Size: 37655 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step2.jpg Type: image/jpeg Size: 5141 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step3.jpg Type: image/jpeg Size: 8251 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom3.jpg Type: image/jpeg Size: 66880 bytes Desc: not available URL: From ken.martin at kitware.com Tue Oct 18 14:06:21 2016 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 18 Oct 2016 14:06:21 -0400 Subject: [vtkusers] Noise appears when extreme zooming in In-Reply-To: References: Message-ID: OK in that case you want to print out the ViewAngle of the camera. It could be that the view angle is getting really small leading to some issues. It might be worth trying to use Dolly instead of Zoom. The difference is that Zoom adjust the view angle while Dolly moves the position. On Tue, Oct 18, 2016 at 1:24 PM, Patricio Palma C. wrote: > Hi Ken, experts > > I have double checked and the case shown in previous email, do not have > coincident geometries. > > Regarding the interactor, I'm using a custom interactor style (derived > from vtkInteractorStyle) that provides a rubber band zoom into the 3D > scene. The code shows Dolly() function in custom interactor is calling > camera->Zoom(). > > Regards > Patricio > > > On Tue, Oct 18, 2016 at 9:49 AM, Ken Martin > wrote: > >> Are you zooming using one of VTK's interactor styles? or are you >> explicitly calling zoom or dolly on the camera? Using dolly() the distance >> on the camera should be changing and as you noticed it isn't. >> >> Since you mentioned you have coincident geometry that can be an issue. >> When you have two polygons at the same location the rendering process can >> result in a random determination of which is on top. If the coincident >> geometry is in two different mappers you can use the >> >> void SetRelativeCoincidentTopologyPolygonOffsetParameters( >> double factor, double units); >> >> method to move one of the mappers slightly in front of the other. >> >> >> >> >> >> On Tue, Oct 18, 2016 at 1:01 AM, Patricio Palma C. >> wrote: >> >>> Hi Ken, experts, >>> >>> Thank you for the quick response. >>> Regarding point one, SetDiffuse(0.0) was applied to all actors, the >>> structure looks darker with no shadows, but the issue still occurs. >>> >>> About point 2: >>> - the actor we use is derived from vtkQuadricLODActor >>> - and there are some overlapping geometries >>> >>> Below is a image of the structure in the beginning. Clipping range, >>> position, focal point and distance are shown below >>> [image: Inline image 1] >>> Debug: Camera clipping range: 3.61282 4.44839 >>> Debug: Camera position: -1.93487 2.37646 2.48559 >>> Debug: Camera focal point: 0.0543755 -0.0598546 0.0492757 >>> Debug: Camera distance: 3.97849 >>> Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , >>> 0.05 ] >>> >>> After zooming in a bit, it appears a soft pattern of lines over the face >>> of the structure >>> [image: Inline image 2] >>> Debug: Camera clipping range: 3.61282 4.44839 >>> Debug: Camera position: -1.92875 2.37186 2.4952 >>> Debug: Camera focal point: 0.0604954 -0.0644594 0.0588774 >>> Debug: Camera distance: 3.97849 >>> Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , >>> 0.05 ] >>> >>> Finally after zooming in a couple of steps more, it appears noise/lines >>> over the face. >>> [image: Inline image 3] >>> Debug: Camera clipping range: 3.61282 4.44839 >>> Debug: Camera position: -1.92882 2.37202 2.49498 >>> Debug: Camera focal point: 0.0604254 -0.0643013 0.0586621 >>> Debug: Camera distance: 3.97849 >>> Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 , >>> 0.05 ] >>> >>> It calls my attention that only position and focal point are being >>> updated after zooming in. >>> >>> Thanks >>> Patricio >>> >>> On Mon, Oct 17, 2016 at 8:21 PM, Ken Martin >>> wrote: >>> >>>> It could be a few things, we would really need more details to narrow >>>> it down. Two things you can check >>>> >>>> 1) maybe a lighting issue, if you change your actors to be only >>>> ambient, no diffuse, do you still see the issue? >>>> >>>> 2) maybe a zbuffer issue, If you zoom too far you can end up with bad >>>> (not ideal) zbuffer clipping ranges. To narrow that down >>>> - are these Actors or Actor2D, what mapper are you using, >>>> ?? >>>> do you have overlapping or coincident geometry? >>>> - when you see the problem what is the value of >>>> ?? >>>> - the camera's clipping range >>>> - camera's position, and focal point, distance >>>> - the bounds of your data >>>> >>>> Generally you do not want any of those values to be really small or >>>> large relative to the square root of the range a float can normally hold. >>>> >>>> >>>> >>>> >>>> >>>> On Mon, Oct 17, 2016 at 5:28 PM, Patricio Palma C. >>> > wrote: >>>> >>>>> Hi experts, does anybody has any idea of what could causing the issue >>>>> described in the previous email? >>>>> Recently I have noted that something similar occurs on 3D >>>>> structures when zooming in extremely to the structure and then rotating it. >>>>> It appears a kind of pattern to generate the shadow of the face but as you >>>>> rotate the structure the face begin to get noisy. >>>>> >>>>> My current setup is VTK git development branch using OpenGL2 as >>>>> rendering backend. mesa 12.0.1 with AVX. I have also tried using mesa 11.2 >>>>> and the results are the same. >>>>> >>>>> Thanks! >>>>> Regards >>>>> Patricio >>>>> >>>>> El Monday, October 3, 2016, Patricio Palma C. >>>>> escribi?: >>>>> >>>>>> Dear Experts >>>>>> >>>>>> I'm using VTK 7.1 (latest Git version) and Mesa 12.0 with AVX. I have >>>>>> an application that display a 2D structure and some data on it. After >>>>>> zooming in a couple times in the same spot of the structure it begins to >>>>>> appear some noise over the 2D structure that increase after continuing >>>>>> zooming in. >>>>>> >>>>>> Is this a known issue? is there a way to solve/avoid this? >>>>>> >>>>>> I've attached some pictures showing how the noise appears while >>>>>> zooming in. >>>>>> >>>>>> [image: Inline image 2] >>>>>> [image: Inline image 3] >>>>>> [image: Inline image 5] >>>>>> [image: Inline image 6] >>>>>> >>>>>> -- >>>>>> Patricio Palma Contreras >>>>>> >>>>> >>>>> >>>>> -- >>>>> Patricio Palma Contreras >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>>>> >>>>> >>>> >>>> >>>> -- >>>> Ken Martin PhD >>>> Chairman & CFO >>>> Kitware Inc. >>>> 28 Corporate Drive >>>> Clifton Park NY 12065 >>>> 518 371 3971 >>>> >>>> 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. >>>> >>> >>> >>> >>> -- >>> Patricio Palma Contreras >>> >> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> 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. >> > > > > -- > Patricio Palma Contreras > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step1.jpg Type: image/jpeg Size: 2217 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step2.jpg Type: image/jpeg Size: 5141 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom2.jpg Type: image/jpeg Size: 46634 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step0.jpg Type: image/jpeg Size: 3073 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step3.jpg Type: image/jpeg Size: 8251 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom1.jpg Type: image/jpeg Size: 37655 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom3.jpg Type: image/jpeg Size: 66880 bytes Desc: not available URL: From bebe0705 at colorado.edu Tue Oct 18 21:06:21 2016 From: bebe0705 at colorado.edu (BBerco) Date: Tue, 18 Oct 2016 18:06:21 -0700 (MST) Subject: [vtkusers] QVTK Widget and Retina MacBook (High-DPI screen) In-Reply-To: <57F261AC.8060803@bluequartz.net> References: <1467824973975-5739142.post@n5.nabble.com> <20160708144525.GC26651@megas.kitware.com> <1467990195610-5739181.post@n5.nabble.com> <20160708150519.GB5418@megas.kitware.com> <1475290148232-5740626.post@n5.nabble.com> <57F261AC.8060803@bluequartz.net> Message-ID: <1476839181895-5740834.post@n5.nabble.com> Michael, thanks for the heads-up. Forgive this silly question of mine: in order to retrieve this fix, I have to clone the master branch of https://github.com/Kitware/VTK and rebuild it completely, correct? Thanks, Ben -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTK-Widget-and-Retina-MacBook-High-DPI-screen-tp5739142p5740834.html Sent from the VTK - Users mailing list archive at Nabble.com. From wekel at gmx.de Tue Oct 18 23:59:06 2016 From: wekel at gmx.de (Tilman Wekel) Date: Wed, 19 Oct 2016 05:59:06 +0200 Subject: [vtkusers] OpenGL2 + Qt5, is it supposed to work? Message-ID: <380BA464-0473-4A81-B154-081C028B4D6D@gmx.de> Hi, I compiled vtk 7.0 with the OpenGL2 rendering backend and with Qt5. However, there seems to be a problem when using OpenGL2 and Qt5 related modules (QVTKWidget ?). I get segmentation faults when I run my own Applications that are based on QVTKWidget and when trying to start related examples such those that use vtkGUISupportQt ?. I tried this on different (windows 7) machines. Mostly with onBoard graphic adapters (Intel HD5500). Newest drivers have been installed. My question: is this supposed to work, if yes, what am I doing wrong? Many thanks, Tilman -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.suttie at ucl.ac.uk Wed Oct 19 05:15:04 2016 From: m.suttie at ucl.ac.uk (mykiesutt) Date: Wed, 19 Oct 2016 02:15:04 -0700 (MST) Subject: [vtkusers] Save screenshot of a rendered chart In-Reply-To: <1453238576385-5736031.post@n5.nabble.com> References: <1453238576385-5736031.post@n5.nabble.com> Message-ID: <1476868504167-5740837.post@n5.nabble.com> Did this ever get resolved as I am having the exact issue png is saved however is is corrupted. -- View this message in context: http://vtk.1045678.n5.nabble.com/Save-screenshot-of-a-rendered-chart-tp5736031p5740837.html Sent from the VTK - Users mailing list archive at Nabble.com. From m.suttie at ucl.ac.uk Wed Oct 19 05:15:56 2016 From: m.suttie at ucl.ac.uk (mykiesutt) Date: Wed, 19 Oct 2016 02:15:56 -0700 (MST) Subject: [vtkusers] Save screenshot of a rendered chart In-Reply-To: <1453238576385-5736031.post@n5.nabble.com> References: <1453238576385-5736031.post@n5.nabble.com> Message-ID: <1476868556933-5740838.post@n5.nabble.com> Did this ever get resolved? I am having the exact issue png is saved however is is corrupted. -- View this message in context: http://vtk.1045678.n5.nabble.com/Save-screenshot-of-a-rendered-chart-tp5736031p5740838.html Sent from the VTK - Users mailing list archive at Nabble.com. From mathieu.westphal at kitware.com Wed Oct 19 05:41:21 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Wed, 19 Oct 2016 11:41:21 +0200 Subject: [vtkusers] Save screenshot of a rendered chart In-Reply-To: <1476868556933-5740838.post@n5.nabble.com> References: <1453238576385-5736031.post@n5.nabble.com> <1476868556933-5740838.post@n5.nabble.com> Message-ID: Could you attach your corrupted image ? Thanks. Mathieu Westphal On Wed, Oct 19, 2016 at 11:15 AM, mykiesutt wrote: > Did this ever get resolved? I am having the exact issue png is saved > however > is is corrupted. > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/Save-screenshot-of-a-rendered-chart-tp5736031p5740838.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 qt.itk.vtk.help at gmail.com Wed Oct 19 07:36:20 2016 From: qt.itk.vtk.help at gmail.com (QtITK VTKHelp) Date: Wed, 19 Oct 2016 17:06:20 +0530 Subject: [vtkusers] Regarding area calculation of clipped surface Message-ID: Hi friends, I want to calculate the area of the clipped surface.As shown in image below, I want to calculate the area of red region / read only read region. How can we do that ? [image: Inline image 1] Code: vtkSmartPointer superquadricSource = vtkSmartPointer::New(); superquadricSource->SetPhiRoundness(3.1); superquadricSource->SetThetaRoundness(2.2); // Define a clipping plane vtkSmartPointer clipPlane = vtkSmartPointer::New(); clipPlane->SetNormal(1.0, -1.0, -1.0); clipPlane->SetOrigin(0.0, 0.0, 0.0); // Clip the source with the plane vtkSmartPointer clipper = vtkSmartPointer::New(); clipper->SetInputConnection(superquadricSource->GetOutputPort()); clipper->SetClipFunction(clipPlane); //Create a mapper and actor vtkSmartPointer superquadricMapper = vtkSmartPointer::New(); superquadricMapper->SetInputConnection(clipper->GetOutputPort()); vtkSmartPointer superquadricActor = vtkSmartPointer::New(); superquadricActor->SetMapper(superquadricMapper); // 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); //backFaces->SetAmbientColor(1.0000, 0, 0.0); //backFaces->SetOpacity(0.7); superquadricActor->SetBackfaceProperty(backFaces); // Create a renderer vtkSmartPointer renderer = vtkSmartPointer::New(); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->SetWindowName("SolidClip"); renderWindow->AddRenderer(renderer); vtkSmartPointer renderWindowInteractor = vtkSmartPointer::New(); renderWindowInteractor->SetRenderWindow(renderWindow); //Add actors to the renderers renderer->AddActor(superquadricActor); renderWindow->Render(); //Interact with the window renderWindowInteractor->Start(); -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 24062 bytes Desc: not available URL: From shawn.waldon at kitware.com Wed Oct 19 08:55:24 2016 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Wed, 19 Oct 2016 08:55:24 -0400 Subject: [vtkusers] OpenGL2 + Qt5, is it supposed to work? In-Reply-To: <380BA464-0473-4A81-B154-081C028B4D6D@gmx.de> References: <380BA464-0473-4A81-B154-081C028B4D6D@gmx.de> Message-ID: Hi Tilman, As far as I know it is supposed to work. One application I work on has been using the OpenGL2 backend with Qt5 since last January, but we used the VTK that was current on master at the time rather than 7.0 (for other features not Qt5 support). I don't know of any major Qt5-related fixes between 7.0 and then though. I know the currrent master/7.1RC works since we are using that now. Come to think of it, there have been several fixes in the OpenGL2 backend for various Intel onboard graphics chips since 7.0 so that may be your problem. You should try master or the release candidate for 7.1 and see if the problem still happens. HTH, Shawn On Tue, Oct 18, 2016 at 11:59 PM, Tilman Wekel wrote: > Hi, > > I compiled vtk 7.0 with the* OpenGL2* rendering backend and with *Qt5*. > However, > there seems to be a problem when using *OpenGL2 and Qt5 related *modules ( > *QVTKWidget* ?). > I get *segmentation faults* when I run my own Applications that are based > on* QVTKWidget* and when trying to > start related examples such those that use *vtkGUISupportQt *?. > > I tried this on different (*windows 7*) machines. Mostly with onBoard > graphic adapters (*Intel HD5500*). > *Newest drivers* have been installed. > > My question: is this supposed to work, if yes, what am I doing wrong? > > > Many thanks, > Tilman > > _______________________________________________ > 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 ben.boeckel at kitware.com Wed Oct 19 09:05:35 2016 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Wed, 19 Oct 2016 09:05:35 -0400 Subject: [vtkusers] QVTK Widget and Retina MacBook (High-DPI screen) In-Reply-To: <1476839181895-5740834.post@n5.nabble.com> References: <1467824973975-5739142.post@n5.nabble.com> <20160708144525.GC26651@megas.kitware.com> <1467990195610-5739181.post@n5.nabble.com> <20160708150519.GB5418@megas.kitware.com> <1475290148232-5740626.post@n5.nabble.com> <57F261AC.8060803@bluequartz.net> <1476839181895-5740834.post@n5.nabble.com> Message-ID: <20161019130535.GA17858@megas.kitware.com> On Tue, Oct 18, 2016 at 18:06:21 -0700, BBerco wrote: > Michael, thanks for the heads-up. > > Forgive this silly question of mine: in order to retrieve this fix, I have > to clone the master branch of https://github.com/Kitware/VTK and rebuild it > completely, correct? The main repo is actually: https://gitlab.kitware.com/vtk/vtk.git but the github repo is a mirror (I think it is sync'd every 1 or 5 minutes; I forget which). It is also part of the 7.1.0-rc1 release. --Ben From mattkingc at gmail.com Wed Oct 19 09:48:47 2016 From: mattkingc at gmail.com (Matt C) Date: Wed, 19 Oct 2016 06:48:47 -0700 (MST) Subject: [vtkusers] QT Button on top of QVTKWidget Mac OS In-Reply-To: <1476806648693-5740828.post@n5.nabble.com> References: <1476806648693-5740828.post@n5.nabble.com> Message-ID: <1476884927404-5740845.post@n5.nabble.com> I tried with QT 5.5.1 with the same results. Have anyone had success overlaying QT Widgets on a QVTKWidget on Mac OS? -- View this message in context: http://vtk.1045678.n5.nabble.com/QT-Button-on-top-of-QVTKWidget-Mac-OS-tp5740828p5740845.html Sent from the VTK - Users mailing list archive at Nabble.com. From clinton at elemtech.com Wed Oct 19 10:12:10 2016 From: clinton at elemtech.com (clinton at elemtech.com) Date: Wed, 19 Oct 2016 08:12:10 -0600 (MDT) Subject: [vtkusers] QT Button on top of QVTKWidget Mac OS In-Reply-To: <1476884927404-5740845.post@n5.nabble.com> References: <1476806648693-5740828.post@n5.nabble.com> <1476884927404-5740845.post@n5.nabble.com> Message-ID: <415265818.46324204.1476886330001.JavaMail.zimbra@elemtech.com> ----- On Oct 19, 2016, at 7:48 AM, Matt C mattkingc at gmail.com wrote: > I tried with QT 5.5.1 with the same results. > > Have anyone had success overlaying QT Widgets on a QVTKWidget on Mac OS? > > You are probably seeing the issue described here: https://bugreports.qt.io/browse/QTBUG-7140 and on the developers mailing list, a path forward to address it: http://lists.qt-project.org/pipermail/development/2016-October/027479.html Clint From mattkingc at gmail.com Wed Oct 19 11:01:20 2016 From: mattkingc at gmail.com (Matt C) Date: Wed, 19 Oct 2016 08:01:20 -0700 (MST) Subject: [vtkusers] QT Button on top of QVTKWidget Mac OS In-Reply-To: <415265818.46324204.1476886330001.JavaMail.zimbra@elemtech.com> References: <1476806648693-5740828.post@n5.nabble.com> <1476884927404-5740845.post@n5.nabble.com> <415265818.46324204.1476886330001.JavaMail.zimbra@elemtech.com> Message-ID: <1476889280207-5740847.post@n5.nabble.com> Thanks so much. That seems to be the issue. I don't know why I couldn't find that bug report on the Qt forum. Based on the comments in the bug and stack overflow (http://stackoverflow.com/questions/26944831/using-qvtkwidget-and-qopenglwidget-in-the-same-ui) I will try creating custom QVTKWidget3 which uses QOpenGLWidget instead. -- View this message in context: http://vtk.1045678.n5.nabble.com/QT-Button-on-top-of-QVTKWidget-Mac-OS-tp5740828p5740847.html Sent from the VTK - Users mailing list archive at Nabble.com. From bebe0705 at colorado.edu Wed Oct 19 11:06:35 2016 From: bebe0705 at colorado.edu (BBerco) Date: Wed, 19 Oct 2016 08:06:35 -0700 (MST) Subject: [vtkusers] Set colorbar length in vtkHeatmapItem? Message-ID: <1476889595294-5740848.post@n5.nabble.com> Hi all, I am using a vtkHeatmapItem to display the content of a focal plane, thus getting a heatmap showing the distance between each pixel of the focal plane and the hit point on the targeted shape. It works fine, but it seems that I have no control over the length of the legend bar showing the range of the data present in the heatmap. This arises when I resize the cells in the heatmap so as to have a focal plane of arbitrary size fitting within the window. I have attached a picture to illustrate this issue. As you can see, the colorbar is wider than the screen. Is there any way I can control the size of this colorbar? I don't see any resizing method or accessor to the colorbar in the public member of the heatmap. Thanks, Ben -- View this message in context: http://vtk.1045678.n5.nabble.com/Set-colorbar-length-in-vtkHeatmapItem-tp5740848.html Sent from the VTK - Users mailing list archive at Nabble.com. From tluisrs at gmail.com Wed Oct 19 11:16:40 2016 From: tluisrs at gmail.com (Thales Sabino) Date: Wed, 19 Oct 2016 13:16:40 -0200 Subject: [vtkusers] OpenGL2 + Qt5, is it supposed to work? In-Reply-To: <380BA464-0473-4A81-B154-081C028B4D6D@gmx.de> References: <380BA464-0473-4A81-B154-081C028B4D6D@gmx.de> Message-ID: I was getting some related issues. My problem was that I mixed a VTK Debug build with a Qt Release one. The problem was that when the Qt components of VTK loads (QVTKWidget2 for instance) it tries to load the Debug version of Qt subcomponents. I think Qt does not handle this situation very well. To solve this problem I now have two VTK builds (Debug and Release) and its working fine on Windows. ? Thales Luis Rodrigues Sabino PhD Student at PGMC-UFJF Lattes | LinkedIn | ResearchGate > On 19 Oct 2016, at 01:59, Tilman Wekel wrote: > > Hi, > > I compiled vtk 7.0 with the OpenGL2 rendering backend and with Qt5. However, > there seems to be a problem when using OpenGL2 and Qt5 related modules (QVTKWidget ?). > I get segmentation faults when I run my own Applications that are based on QVTKWidget and when trying to > start related examples such those that use vtkGUISupportQt ?. > > I tried this on different (windows 7) machines. Mostly with onBoard graphic adapters (Intel HD5500). > Newest drivers have been installed. > > My question: is this supposed to work, if yes, what am I doing wrong? > > > Many thanks, > Tilman > _______________________________________________ > 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 patriciop at gmail.com Wed Oct 19 15:27:07 2016 From: patriciop at gmail.com (Patricio Palma C.) Date: Wed, 19 Oct 2016 16:27:07 -0300 Subject: [vtkusers] Noise appears when extreme zooming in In-Reply-To: References: Message-ID: With vtkInteractorStyleRubberBandZoom::Zoom() I'm having good results, no noise when getting closer to the structure. However it is easy to go into the structure. Does VTK provides a way to avoid the camera go into the visible object? Thanks ? On Tue, Oct 18, 2016 at 3:06 PM, Ken Martin wrote: > OK in that case you want to print out the ViewAngle of the camera. It > could be that the view angle is getting really small leading to some > issues. > It might be worth trying to use Dolly instead of Zoom. The difference is > that Zoom adjust the view angle while Dolly moves the position. > > On Tue, Oct 18, 2016 at 1:24 PM, Patricio Palma C. > wrote: > >> Hi Ken, experts >> >> I have double checked and the case shown in previous email, do not have >> coincident geometries. >> >> Regarding the interactor, I'm using a custom interactor style (derived >> from vtkInteractorStyle) that provides a rubber band zoom into the 3D >> scene. The code shows Dolly() function in custom interactor is calling >> camera->Zoom(). >> >> Regards >> Patricio >> >> >> On Tue, Oct 18, 2016 at 9:49 AM, Ken Martin >> wrote: >> >>> Are you zooming using one of VTK's interactor styles? or are you >>> explicitly calling zoom or dolly on the camera? Using dolly() the distance >>> on the camera should be changing and as you noticed it isn't. >>> >>> Since you mentioned you have coincident geometry that can be an issue. >>> When you have two polygons at the same location the rendering process can >>> result in a random determination of which is on top. If the coincident >>> geometry is in two different mappers you can use the >>> >>> void SetRelativeCoincidentTopologyPolygonOffsetParameters( >>> double factor, double units); >>> >>> method to move one of the mappers slightly in front of the other. >>> >>> >>> >>> >>> >>> On Tue, Oct 18, 2016 at 1:01 AM, Patricio Palma C. >>> wrote: >>> >>>> Hi Ken, experts, >>>> >>>> Thank you for the quick response. >>>> Regarding point one, SetDiffuse(0.0) was applied to all actors, the >>>> structure looks darker with no shadows, but the issue still occurs. >>>> >>>> About point 2: >>>> - the actor we use is derived from vtkQuadricLODActor >>>> - and there are some overlapping geometries >>>> >>>> Below is a image of the structure in the beginning. Clipping range, >>>> position, focal point and distance are shown below >>>> [image: Inline image 1] >>>> Debug: Camera clipping range: 3.61282 4.44839 >>>> Debug: Camera position: -1.93487 2.37646 2.48559 >>>> Debug: Camera focal point: 0.0543755 -0.0598546 0.0492757 >>>> Debug: Camera distance: 3.97849 >>>> Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 >>>> , 0.05 ] >>>> >>>> After zooming in a bit, it appears a soft pattern of lines over the >>>> face of the structure >>>> [image: Inline image 2] >>>> Debug: Camera clipping range: 3.61282 4.44839 >>>> Debug: Camera position: -1.92875 2.37186 2.4952 >>>> Debug: Camera focal point: 0.0604954 -0.0644594 0.0588774 >>>> Debug: Camera distance: 3.97849 >>>> Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 >>>> , 0.05 ] >>>> >>>> Finally after zooming in a couple of steps more, it appears noise/lines >>>> over the face. >>>> [image: Inline image 3] >>>> Debug: Camera clipping range: 3.61282 4.44839 >>>> Debug: Camera position: -1.92882 2.37202 2.49498 >>>> Debug: Camera focal point: 0.0604254 -0.0643013 0.0586621 >>>> Debug: Camera distance: 3.97849 >>>> Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 >>>> , 0.05 ] >>>> >>>> It calls my attention that only position and focal point are being >>>> updated after zooming in. >>>> >>>> Thanks >>>> Patricio >>>> >>>> On Mon, Oct 17, 2016 at 8:21 PM, Ken Martin >>>> wrote: >>>> >>>>> It could be a few things, we would really need more details to narrow >>>>> it down. Two things you can check >>>>> >>>>> 1) maybe a lighting issue, if you change your actors to be only >>>>> ambient, no diffuse, do you still see the issue? >>>>> >>>>> 2) maybe a zbuffer issue, If you zoom too far you can end up with bad >>>>> (not ideal) zbuffer clipping ranges. To narrow that down >>>>> - are these Actors or Actor2D, what mapper are you using, >>>>> ?? >>>>> do you have overlapping or coincident geometry? >>>>> - when you see the problem what is the value of >>>>> ?? >>>>> - the camera's clipping range >>>>> - camera's position, and focal point, distance >>>>> - the bounds of your data >>>>> >>>>> Generally you do not want any of those values to be really small or >>>>> large relative to the square root of the range a float can normally hold. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Mon, Oct 17, 2016 at 5:28 PM, Patricio Palma C. < >>>>> patriciop at gmail.com> wrote: >>>>> >>>>>> Hi experts, does anybody has any idea of what could causing the issue >>>>>> described in the previous email? >>>>>> Recently I have noted that something similar occurs on 3D >>>>>> structures when zooming in extremely to the structure and then rotating it. >>>>>> It appears a kind of pattern to generate the shadow of the face but as you >>>>>> rotate the structure the face begin to get noisy. >>>>>> >>>>>> My current setup is VTK git development branch using OpenGL2 as >>>>>> rendering backend. mesa 12.0.1 with AVX. I have also tried using mesa 11.2 >>>>>> and the results are the same. >>>>>> >>>>>> Thanks! >>>>>> Regards >>>>>> Patricio >>>>>> >>>>>> El Monday, October 3, 2016, Patricio Palma C. >>>>>> escribi?: >>>>>> >>>>>>> Dear Experts >>>>>>> >>>>>>> I'm using VTK 7.1 (latest Git version) and Mesa 12.0 with AVX. I >>>>>>> have an application that display a 2D structure and some data on it. After >>>>>>> zooming in a couple times in the same spot of the structure it begins to >>>>>>> appear some noise over the 2D structure that increase after continuing >>>>>>> zooming in. >>>>>>> >>>>>>> Is this a known issue? is there a way to solve/avoid this? >>>>>>> >>>>>>> I've attached some pictures showing how the noise appears while >>>>>>> zooming in. >>>>>>> >>>>>>> [image: Inline image 2] >>>>>>> [image: Inline image 3] >>>>>>> [image: Inline image 5] >>>>>>> [image: Inline image 6] >>>>>>> >>>>>>> -- >>>>>>> Patricio Palma Contreras >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Patricio Palma Contreras >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Ken Martin PhD >>>>> Chairman & CFO >>>>> Kitware Inc. >>>>> 28 Corporate Drive >>>>> Clifton Park NY 12065 >>>>> 518 371 3971 >>>>> >>>>> 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. >>>>> >>>> >>>> >>>> >>>> -- >>>> Patricio Palma Contreras >>>> >>> >>> >>> >>> -- >>> Ken Martin PhD >>> Chairman & CFO >>> Kitware Inc. >>> 28 Corporate Drive >>> Clifton Park NY 12065 >>> 518 371 3971 >>> >>> 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. >>> >> >> >> >> -- >> Patricio Palma Contreras >> > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. > -- Patricio Palma Contreras -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step0.jpg Type: image/jpeg Size: 3073 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step1.jpg Type: image/jpeg Size: 2217 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom2.jpg Type: image/jpeg Size: 46634 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step2.jpg Type: image/jpeg Size: 5141 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step3.jpg Type: image/jpeg Size: 8251 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom3.jpg Type: image/jpeg Size: 66880 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom1.jpg Type: image/jpeg Size: 37655 bytes Desc: not available URL: From bebe0705 at colorado.edu Wed Oct 19 18:16:30 2016 From: bebe0705 at colorado.edu (BBerco) Date: Wed, 19 Oct 2016 15:16:30 -0700 (MST) Subject: [vtkusers] QVTKWidget screen tearing and weird behavior In-Reply-To: <1476744946527-5740804.post@n5.nabble.com> References: <1476744946527-5740804.post@n5.nabble.com> Message-ID: <1476915390710-5740851.post@n5.nabble.com> Hi, Same problem here (with solution) http://vtk.1045678.n5.nabble.com/QVTK-Widget-and-Retina-MacBook-High-DPI-screen-td5739142.html Best, ben -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTKWidget-screen-tearing-and-weird-behavior-tp5740804p5740851.html Sent from the VTK - Users mailing list archive at Nabble.com. From bebe0705 at colorado.edu Wed Oct 19 19:07:45 2016 From: bebe0705 at colorado.edu (BBerco) Date: Wed, 19 Oct 2016 16:07:45 -0700 (MST) Subject: [vtkusers] [-Winconsistent-missing-override] after new VTK build Message-ID: <1476918465687-5740852.post@n5.nabble.com> Hi all, I just retrieved the latest tarball of VTK at https://gitlab.kitware.com/vtk/vtk and built it with * cmake ../../vtk/ -G "Unix Makefiles" -DCMAKE_PREFIX_PATH:PATH=/Users/me/Qt/5.6/clang_64/ -DVTK_USE_QVTK:BOOL=ON -DCMAKE_INSTALL_PREFIX=/usr/local -DVTK_USE_GUISUPPORT:BOOL=ON -DQT_QMAKE_EXECUTABLE:PATH=~/Qt/5.6/clang_64/bin/qmake -DVTK_Group_Qt:BOOL=ON -DVTK_QT_VERSION:STRING=5 * followed by *make*. The library built without warnings, but I am now getting hundreds of warnings pertaining to a function definition mismatch ( as the *[-Winconsistent-missing-override]* flag appears everywhere in the error log). Attached is the output of stderr collected when building my application. Attached is also the CMakeLists.txt of my application. Note the *add_definitions(-Wall)*, which used to stay quiet until I moved to the newest version of VTK. Any help is appreciated to solve this mysterious case, thanks! Error log CMakeLists.txt -- View this message in context: http://vtk.1045678.n5.nabble.com/Winconsistent-missing-override-after-new-VTK-build-tp5740852.html Sent from the VTK - Users mailing list archive at Nabble.com. From zhuangming.shen at sphic.org.cn Wed Oct 19 21:17:08 2016 From: zhuangming.shen at sphic.org.cn (=?gb2312?B?yfLXr8P3?=) Date: Thu, 20 Oct 2016 01:17:08 +0000 Subject: [vtkusers] How to get/set pixel value in an image using python-supported VTK Message-ID: <1476926226364.89329@sphic.org.cn> Hi all, I'd like to know how to get/set pixel value in an image using python-supported VTK? Regards, Zhuangming Shen -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Oct 20 03:31:38 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 20 Oct 2016 09:31:38 +0200 Subject: [vtkusers] Merging/combining vtkImageHistogramStatistics from multiple images Message-ID: In our app, multiple volumes are stacked on top of each other in a low-resolution view. The user can select an area along the Z axis which overlaps several volumes. The program will then extract the selected sections and show higher-resolution versions of them in another view. I now need to calculate a histogram for what the user is seeing in this high-res view. I started out using vtkImageHistogramStatistics, since it seemed convenient that it also gave me some stats which I needed. The problem now is that vtkImageHistogramStatistics takes a single image as input, while what I need is to calculate a combined histogram for a set of images. I know I can just sum the histogram arrays (available as a vtkTypeIdArray through vtkImageHistogramStatistics::GetHistogram), but I thought I should ask first: Is there some built-in way of "merging" several vtkImageHistogramStatistics? Or some other better approach which I haven't thought of? One idea would be to first append the images with a vtkImageAppend, and calculate the histogram on the resulting single image. But the problem is that in my case, my images don't always have the same extent (in any of the dimensions). Thanks in advance, Elvis From ilindsay at insigniamedical.co.uk Thu Oct 20 06:45:26 2016 From: ilindsay at insigniamedical.co.uk (ianl) Date: Thu, 20 Oct 2016 03:45:26 -0700 (MST) Subject: [vtkusers] OpenGL2 using mesa In-Reply-To: References: <1474985195187-5740568.post@n5.nabble.com> <1474986380344-5740570.post@n5.nabble.com> <006d01d218cd$ef375970$cda60c50$@gmail.com> <1474992223541-5740573.post@n5.nabble.com> <1475151764285-5740585.post@n5.nabble.com> <1475228483513-5740608.post@n5.nabble.com> <1476797396213-5740818.post@n5.nabble.com> Message-ID: <1476960326303-5740857.post@n5.nabble.com> Hi Ken, that is looking much better. I still get the warning about gpu_shader4, but the app goes on to render successfully - and at reasonable performance considering it is a software implementation running on a virtual machine. Unfortunately, at the moment Visual Studio is point blank refusing to load the symbols for the code I need to step into to debug the VTK call stack for some reason, so I can't give you much more info about the warning than I have already posted. Another interesting data point that may be useful is that when I install the mesa dll following the instructions for adding registry entries here: http://www.mesa3d.org/llvmpipe.html, GLView shows a lot more capabilities filled in. Our app freezes when we do this though, so I ended up just copying the dll into the app's working directory for testing. -- View this message in context: http://vtk.1045678.n5.nabble.com/OpenGL2-using-mesa-tp5740561p5740857.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Thu Oct 20 08:06:54 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 20 Oct 2016 14:06:54 +0200 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? Message-ID: Hi, How can I load a system font through fontconfig and use it with vtkTextMapper/vtkTextProperty? I've called vtkFreeTypeTools::GetInstance()->ForceCompiledFontsOff(), but I can't find any API on vtkTextProperty to set a font family to use for a fontconfig-based search. Elvis From elvis.stansvik at orexplore.com Thu Oct 20 08:48:23 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 20 Oct 2016 14:48:23 +0200 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: 2016-10-20 14:06 GMT+02:00 Elvis Stansvik : > Hi, > > How can I load a system font through fontconfig and use it with > vtkTextMapper/vtkTextProperty? > > I've called vtkFreeTypeTools::GetInstance()->ForceCompiledFontsOff(), > but I can't find any API on vtkTextProperty to set a font family to > use for a fontconfig-based search. Am I supposed to pass the fontconfig family name (e.g. "Noto Sans") to vtkTextProperty::SetFontFamilyAsString(..) ? I tried it but it didn't seem to have any effect. In fact, I just had a look at the build log for the Debian package I built of 7.1.0.rc1, and it's not mentioning "FontConfig" at all (see attached log). Does that mean my build doesn't have fontconfig support? Must I enable the FreeTypeFontConfig module explicitly? (not enough that fontconfig is found on the system?). Elvis > > Elvis From enzo.matsumiya at gmail.com Thu Oct 20 09:34:02 2016 From: enzo.matsumiya at gmail.com (Enzo Matsumiya) Date: Thu, 20 Oct 2016 11:34:02 -0200 Subject: [vtkusers] Rendering bug with VTK 7.0 + Qt 5.7 (non-retina MacBook) Message-ID: Hi, Recently I came across this issue on a non-retina Mac, where the rendering will show some artifacts, but also will perform some unwanted actions by itself, such as windowing, reslicing and some elements (e.g. vtkResliceCursorWidget) goes missing at random. Some information: MacBook mid-2012 Core i5, non-retina Intel HD Graphics 4000 Mac OS X 10.11.6 VTK 7.0 stable Compiled with clang Dynamic libs Release build type OpenGL2 backend Qt 5.7 Default installation from the OSX package Here is an example screenshot of what kind of artifacts I'm seeing: https://i.imgsafe.org/8c735567e8.png Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Oct 20 09:34:37 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 20 Oct 2016 15:34:37 +0200 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: 2016-10-20 14:49 GMT+02:00 Elvis Stansvik : > 2016-10-20 14:48 GMT+02:00 Elvis Stansvik : >> 2016-10-20 14:06 GMT+02:00 Elvis Stansvik : >>> Hi, >>> >>> How can I load a system font through fontconfig and use it with >>> vtkTextMapper/vtkTextProperty? >>> >>> I've called vtkFreeTypeTools::GetInstance()->ForceCompiledFontsOff(), >>> but I can't find any API on vtkTextProperty to set a font family to >>> use for a fontconfig-based search. >> >> Am I supposed to pass the fontconfig family name (e.g. "Noto Sans") to >> vtkTextProperty::SetFontFamilyAsString(..) ? I tried it but it didn't >> seem to have any effect. >> >> In fact, I just had a look at the build log for the Debian package I >> built of 7.1.0.rc1, and it's not mentioning "FontConfig" at all (see >> attached log). Does that mean my build doesn't have fontconfig > > Sorry, forgot the attachment, here it is in case it's too big to be attached: > > https://dl.dropboxusercontent.com/u/22350696/vtk7_7.1.0~rc1-0ubuntu1_amd64.build.bz2 > > Elvis Sorry for the noise. Just adding -DModule_vtkRenderingFreeTypeFontConfig=ON to my build and libfontconfig1-dev to the build dependencies, and I get -- * vtkRenderingFreeTypeFontConfig, requested by Module_vtkRenderingFreeTypeFontConfig. in the VTK CMake output. Building now and will report back how it went. Still interested in if vtkTextProperty::SetFontFamilyAsString(..) is the right API to set the fontconfig family name. Elvis > >> support? Must I enable the FreeTypeFontConfig module explicitly? (not >> enough that fontconfig is found on the system?). >> >> Elvis >> >>> >>> Elvis From shawn.waldon at kitware.com Thu Oct 20 09:49:38 2016 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Thu, 20 Oct 2016 09:49:38 -0400 Subject: [vtkusers] [-Winconsistent-missing-override] after new VTK build In-Reply-To: <1476918465687-5740852.post@n5.nabble.com> References: <1476918465687-5740852.post@n5.nabble.com> Message-ID: Hi BBerco, VTK has started conditionally using override when C++11 is enabled with the VTK_OVERRIDE macro. But we haven't done a sweep that converts everything to use it yet. Some compilers (clang) have made the decision that if your codebase uses override anywhere, then it should use it everywhere. And it warns when there is an override keyword missing. So you could either not build with C++11 or figure out how to get clang to ignore the VTK headers in your project. I think it may be as simple as including them with <> rather than "" in your project, but I'm not sure. Also, if you are building your project with C++11, you will want to make sure that VTK is built with C++11 too (and I think you should have seen these warnings in VTK's build if you did but maybe that warning wasn't on). HTH, Shawn On Wed, Oct 19, 2016 at 7:07 PM, BBerco wrote: > Hi all, > I just retrieved the latest tarball of VTK at > https://gitlab.kitware.com/vtk/vtk and built it with > > * > cmake ../../vtk/ -G "Unix Makefiles" > -DCMAKE_PREFIX_PATH:PATH=/Users/me/Qt/5.6/clang_64/ -DVTK_USE_QVTK:BOOL=ON > -DCMAKE_INSTALL_PREFIX=/usr/local -DVTK_USE_GUISUPPORT:BOOL=ON > -DQT_QMAKE_EXECUTABLE:PATH=~/Qt/5.6/clang_64/bin/qmake > -DVTK_Group_Qt:BOOL=ON -DVTK_QT_VERSION:STRING=5 > * > followed by *make*. The library built without warnings, but I am now > getting > hundreds of warnings pertaining to a function definition mismatch ( as the > *[-Winconsistent-missing-override]* > flag appears everywhere in the error log). > > Attached is the output of stderr collected when building my application. > Attached is also the CMakeLists.txt of my application. Note the > *add_definitions(-Wall)*, which used to stay quiet until I moved to the > newest version of VTK. > > Any help is appreciated to solve this mysterious case, thanks! > > Error log > > CMakeLists.txt > > > > > > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/Winconsistent-missing-override-after-new-VTK-build-tp5740852.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 shawn.waldon at kitware.com Thu Oct 20 09:59:51 2016 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Thu, 20 Oct 2016 09:59:51 -0400 Subject: [vtkusers] Rendering bug with VTK 7.0 + Qt 5.7 (non-retina MacBook) In-Reply-To: References: Message-ID: Hi Enzo, I know there have been some Qt5 + OpenGL2 issues in the past (and possibly still currently in VTK). I would like to point out that Qt 5.5 was current when VTK 7.0 was released, so you are using two library versions that were never tested together. Could you try the 7.1 release candidate? You may have better luck since that has had over a year of fixes (including several for the Qt5 + OpenGL2 case) and has been tested with Qt5.7 in some of our applications. HTH, Shawn On Thu, Oct 20, 2016 at 9:34 AM, Enzo Matsumiya wrote: > Hi, > > Recently I came across this issue on a non-retina Mac, where the rendering > will show some artifacts, but also will perform some unwanted actions by > itself, such as windowing, reslicing and some elements (e.g. > vtkResliceCursorWidget) goes missing at random. > > Some information: > MacBook mid-2012 Core i5, non-retina > Intel HD Graphics 4000 > Mac OS X 10.11.6 > > VTK 7.0 stable > Compiled with clang > Dynamic libs > Release build type > OpenGL2 backend > > Qt 5.7 > Default installation from the OSX package > > Here is an example screenshot of what kind of artifacts I'm seeing: > > https://i.imgsafe.org/8c735567e8.png > > > Thanks in advance. > > > _______________________________________________ > 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 leonid_dulman at yahoo.co.uk Thu Oct 20 10:16:46 2016 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Thu, 20 Oct 2016 14:16:46 +0000 (UTC) Subject: [vtkusers] vtk 7.1.0rc1 generate problems References: <1408136758.949796.1476973006854.ref@mail.yahoo.com> Message-ID: <1408136758.949796.1476973006854@mail.yahoo.com> HiHow I can solved these problems ? Configuring doneCMake Error: Qt5::moc target not found EasyView_automocCMake Error: Qt5::moc target not found CustomLinkView_automocCMake Error: Qt5::moc target not found StatsView_automocGenerating done Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mccormick at kitware.com Thu Oct 20 10:23:19 2016 From: matt.mccormick at kitware.com (Matt McCormick) Date: Thu, 20 Oct 2016 10:23:19 -0400 Subject: [vtkusers] Testing ITK/VTK/PV contributions with (kitware) Gitlab-CI In-Reply-To: References: <20160908131417.GB13993@megas.kitware.com> Message-ID: Hi, Yes, the Insight and Midas journals testing infrastructure is no longer functional. Matt On Mon, Sep 12, 2016 at 9:10 AM, D?enan Zuki? wrote: > Hi Roman, > > I don't think that Insight and Midas journals' testing infrastructure is > functional any more. Perhaps Matt can provide more info? > > Regards, > D?enan > > On Mon, Sep 12, 2016 at 5:49 AM, Grothausmann, Roman Dr. > wrote: >> >> Many thanks Ben and D?enan for Your replies and pointing me to CircleCI. I >> see that testing contributions employing PV,VTK and ITK all together is >> rather challenging. >> >> I wonder though why my pure VTK (PV) based contribution did not get tested >> when submitted to the VTK-Journal, e.g. >> http://www.midasjournal.org/browse/publication/949 >> >> Is the testing the VTK/Midas Journals used to do not available any more? >> >> Regards, >> Roman >> >> On 08/09/16 16:26, D?enan Zuki? wrote: >>> >>> Hi Roman, >>> >>> some of ITK's remote modules are using CircleCI for testing. Two recent >>> examples >>> are RLEImage and >>> MorphologicalContourInterpolation >>> . >>> Of >>> course, you should be familiar, or familiarize yourself with CircleCI >>> . >>> >>> Regards, >>> D?enan >>> >>> On Thu, Sep 8, 2016 at 9:14 AM, Ben Boeckel >> > wrote: >>> >>> On Thu, Sep 08, 2016 at 12:36:40 +0200, Grothausmann, Roman Dr. >>> wrote: >>> > Just getting to know Gitlab-CI, I am wondering whether it is >>> possible to test >>> > contributions to ITK/VTK/PV with Gitlab-CI from gitlab.com >>> or >>> > gitlab.kitware.com . As far as I >>> understand, this >>> basically needs runners, in >>> > this case specific to ITK/VTK/PV. Since kitware has done CI even >>> before the use >>> > of gitlab, I wonder if the former testing environments are >>> available for use >>> > with Gitlab-CI and if so how to use them. >>> >>> We're (VTK and ParaView) using buildbot to manage our testing. The >>> number of settings we test across machines is hard to specify in YAML >>> files (machines also have different settings based on what you're >>> testing, e.g., load up a different compiler or Qt4 or Qt5 and the >>> paths >>> they live in, etc.). We're working on improving the hardware >>> situation >>> buildbot is currently in; things should be getting better over the >>> next >>> few months on that front. >>> >>> > For example, none of my contributions to the ITK/VTK/Midas Journals >>> got into the >>> > testing phase even though marked for testing during submission. So >>> a possibility >>> > to use Gitlab-CI to test the compilation and to run the project >>> test would be >>> > really great, especially for continued development and testing on >>> other OSs. >>> > Specifically, for e.g. testing my FacetAnalyser contribution >>> > (http://www.midasjournal.org/browse/publication/951 >>> >>> > https://gitlab.com/romangrothausmann/FacetAnalyser >>> ) I would need a >>> runner >>> > environment with PV, VTK and ITK ideally for Linux, MacOS and >>> Windows. >>> >>> ITK is using Gerrit and Jenkins, not Gitlab. >>> >>> --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 >>> >>> >>> >> >> -- >> 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 david.lonie at kitware.com Thu Oct 20 10:41:51 2016 From: david.lonie at kitware.com (David Lonie) Date: Thu, 20 Oct 2016 10:41:51 -0400 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: Correct -- Set ForceCompiledFonts off on vtkFreeTypeTools, and set the name of the font using vtkTextProperty::SetFontFamilyAsString. As you discovered, this requires the RenderingFreeTypeFontConfig module to be enabled and linked to the final application. There is an example usage in Rendering/FreeTypeFontConfig/Testing/Cxx/TestSystemFontRendering.cxx if you get stuck. Let us know if you have further issues, AFAIK this functionality is not widely used. HTH, Dave On Thu, Oct 20, 2016 at 9:34 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > 2016-10-20 14:49 GMT+02:00 Elvis Stansvik : > > 2016-10-20 14:48 GMT+02:00 Elvis Stansvik > : > >> 2016-10-20 14:06 GMT+02:00 Elvis Stansvik >: > >>> Hi, > >>> > >>> How can I load a system font through fontconfig and use it with > >>> vtkTextMapper/vtkTextProperty? > >>> > >>> I've called vtkFreeTypeTools::GetInstance()->ForceCompiledFontsOff(), > >>> but I can't find any API on vtkTextProperty to set a font family to > >>> use for a fontconfig-based search. > >> > >> Am I supposed to pass the fontconfig family name (e.g. "Noto Sans") to > >> vtkTextProperty::SetFontFamilyAsString(..) ? I tried it but it didn't > >> seem to have any effect. > >> > >> In fact, I just had a look at the build log for the Debian package I > >> built of 7.1.0.rc1, and it's not mentioning "FontConfig" at all (see > >> attached log). Does that mean my build doesn't have fontconfig > > > > Sorry, forgot the attachment, here it is in case it's too big to be > attached: > > > > https://dl.dropboxusercontent.com/u/22350696/vtk7_7.1.0~rc1- > 0ubuntu1_amd64.build.bz2 > > > > Elvis > > Sorry for the noise. Just adding > -DModule_vtkRenderingFreeTypeFontConfig=ON to my build and > libfontconfig1-dev to the build dependencies, and I get > > -- * vtkRenderingFreeTypeFontConfig, requested by > Module_vtkRenderingFreeTypeFontConfig. > > in the VTK CMake output. Building now and will report back how it went. > > Still interested in if vtkTextProperty::SetFontFamilyAsString(..) is > the right API to set the fontconfig family name. > > Elvis > > > > >> support? Must I enable the FreeTypeFontConfig module explicitly? (not > >> enough that fontconfig is found on the system?). > >> > >> Elvis > >> > >>> > >>> Elvis > _______________________________________________ > 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 mike.jackson at bluequartz.net Thu Oct 20 10:43:10 2016 From: mike.jackson at bluequartz.net (Michael Jackson) Date: Thu, 20 Oct 2016 10:43:10 -0400 Subject: [vtkusers] [-Winconsistent-missing-override] after new VTK build In-Reply-To: References: <1476918465687-5740852.post@n5.nabble.com> Message-ID: <5808D7FE.5060509@bluequartz.net> If your own code causes the issue then you can use the following at the top of your header: #pragma GCC diagnostic ignored "-Winconsistent-missing-override" Then "pop" the pragma at the end of the file. We have done this in order to reduce the number of warnings for VTK and ITK. And of course you should probably enclose that in a #ifdef __CLANG__ -- Mike Jackson [mike.jackson at bluequartz.net] Shawn Waldon wrote: > Hi BBerco, > > VTK has started conditionally using override when C++11 is enabled with > the VTK_OVERRIDE macro. But we haven't done a sweep that converts > everything to use it yet. Some compilers (clang) have made the decision > that if your codebase uses override anywhere, then it should use it > everywhere. And it warns when there is an override keyword missing. So > you could either not build with C++11 or figure out how to get clang to > ignore the VTK headers in your project. I think it may be as simple as > including them with <> rather than "" in your project, but I'm not > sure. Also, if you are building your project with C++11, you will want > to make sure that VTK is built with C++11 too (and I think you should > have seen these warnings in VTK's build if you did but maybe that > warning wasn't on). > > HTH, > Shawn > > On Wed, Oct 19, 2016 at 7:07 PM, BBerco > wrote: > > Hi all, > I just retrieved the latest tarball of VTK at > https://gitlab.kitware.com/vtk/vtk > and built it with > > * > cmake ../../vtk/ -G "Unix Makefiles" > -DCMAKE_PREFIX_PATH:PATH=/Users/me/Qt/5.6/clang_64/ > -DVTK_USE_QVTK:BOOL=ON > -DCMAKE_INSTALL_PREFIX=/usr/local -DVTK_USE_GUISUPPORT:BOOL=ON > -DQT_QMAKE_EXECUTABLE:PATH=~/Qt/5.6/clang_64/bin/qmake > -DVTK_Group_Qt:BOOL=ON -DVTK_QT_VERSION:STRING=5 > * > followed by *make*. The library built without warnings, but I am now > getting > hundreds of warnings pertaining to a function definition mismatch ( > as the > *[-Winconsistent-missing-override]* > flag appears everywhere in the error log). > > Attached is the output of stderr collected when building my application. > Attached is also the CMakeLists.txt of my application. Note the > *add_definitions(-Wall)*, which used to stay quiet until I moved to the > newest version of VTK. > > Any help is appreciated to solve this mysterious case, thanks! > > Error log > > > > CMakeLists.txt > > > > > > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Winconsistent-missing-override-after-new-VTK-build-tp5740852.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 elvis.stansvik at orexplore.com Thu Oct 20 10:48:48 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 20 Oct 2016 16:48:48 +0200 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: 2016-10-20 16:41 GMT+02:00 David Lonie : > Correct -- Set ForceCompiledFonts off on vtkFreeTypeTools, and set the name > of the font using vtkTextProperty::SetFontFamilyAsString. > > As you discovered, this requires the RenderingFreeTypeFontConfig module to > be enabled and linked to the final application. There is an example usage in > Rendering/FreeTypeFontConfig/Testing/Cxx/TestSystemFontRendering.cxx if you > get stuck. > > Let us know if you have further issues, AFAIK this functionality is not > widely used. Yep, it now seems to work. E.g. I can now do: textProperty->SetFontSize(10); textProperty->SetFontFamilyAsString("Noto Sans"); However, one thing puzzles me: The font is much smaller than what I would have expected. I set it to 10 points here, but the result is much smaller (see attached screenshot). My goal is to use QFontDatabase::systemFont(QFontDatabase::GeneralFont) to get the system font through Qt, and use its values for .fontSize() and .family() when constructing my vtkTextProperty, to make the font in VTK match my system font. Any idea why the text is rendered so small? The vtkTextProperty is set on a vtkTextMapper which in turn is set on a vtkActor2D. Thanks in advance, Elvis > > HTH, > Dave > > On Thu, Oct 20, 2016 at 9:34 AM, Elvis Stansvik > wrote: >> >> 2016-10-20 14:49 GMT+02:00 Elvis Stansvik : >> > 2016-10-20 14:48 GMT+02:00 Elvis Stansvik >> > : >> >> 2016-10-20 14:06 GMT+02:00 Elvis Stansvik >> >> : >> >>> Hi, >> >>> >> >>> How can I load a system font through fontconfig and use it with >> >>> vtkTextMapper/vtkTextProperty? >> >>> >> >>> I've called vtkFreeTypeTools::GetInstance()->ForceCompiledFontsOff(), >> >>> but I can't find any API on vtkTextProperty to set a font family to >> >>> use for a fontconfig-based search. >> >> >> >> Am I supposed to pass the fontconfig family name (e.g. "Noto Sans") to >> >> vtkTextProperty::SetFontFamilyAsString(..) ? I tried it but it didn't >> >> seem to have any effect. >> >> >> >> In fact, I just had a look at the build log for the Debian package I >> >> built of 7.1.0.rc1, and it's not mentioning "FontConfig" at all (see >> >> attached log). Does that mean my build doesn't have fontconfig >> > >> > Sorry, forgot the attachment, here it is in case it's too big to be >> > attached: >> > >> > >> > https://dl.dropboxusercontent.com/u/22350696/vtk7_7.1.0~rc1-0ubuntu1_amd64.build.bz2 >> > >> > Elvis >> >> Sorry for the noise. Just adding >> -DModule_vtkRenderingFreeTypeFontConfig=ON to my build and >> libfontconfig1-dev to the build dependencies, and I get >> >> -- * vtkRenderingFreeTypeFontConfig, requested by >> Module_vtkRenderingFreeTypeFontConfig. >> >> in the VTK CMake output. Building now and will report back how it went. >> >> Still interested in if vtkTextProperty::SetFontFamilyAsString(..) is >> the right API to set the fontconfig family name. >> >> Elvis >> >> > >> >> support? Must I enable the FreeTypeFontConfig module explicitly? (not >> >> enough that fontconfig is found on the system?). >> >> >> >> Elvis >> >> >> >>> >> >>> Elvis >> _______________________________________________ >> 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 -------------- A non-text attachment was scrubbed... Name: fontsize.png Type: image/png Size: 2521 bytes Desc: not available URL: From david.gobbi at gmail.com Thu Oct 20 10:49:43 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 20 Oct 2016 08:49:43 -0600 Subject: [vtkusers] Merging/combining vtkImageHistogramStatistics from multiple images In-Reply-To: References: Message-ID: On Thu, Oct 20, 2016 at 1:31 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > > I know I can just sum the histogram arrays (available as a > vtkTypeIdArray through vtkImageHistogramStatistics::GetHistogram), but > I thought I should ask first: Is there some built-in way of "merging" > several vtkImageHistogramStatistics? Or some other better approach > which I haven't thought of? > Summing the arrays is the way to go, vtkImageHistogramStatistics takes a single image input. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Oct 20 10:52:10 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 20 Oct 2016 16:52:10 +0200 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: 2016-10-20 16:48 GMT+02:00 Elvis Stansvik : > 2016-10-20 16:41 GMT+02:00 David Lonie : >> Correct -- Set ForceCompiledFonts off on vtkFreeTypeTools, and set the name >> of the font using vtkTextProperty::SetFontFamilyAsString. >> >> As you discovered, this requires the RenderingFreeTypeFontConfig module to >> be enabled and linked to the final application. There is an example usage in >> Rendering/FreeTypeFontConfig/Testing/Cxx/TestSystemFontRendering.cxx if you >> get stuck. >> >> Let us know if you have further issues, AFAIK this functionality is not >> widely used. > > Yep, it now seems to work. E.g. I can now do: > > textProperty->SetFontSize(10); > textProperty->SetFontFamilyAsString("Noto Sans"); > > However, one thing puzzles me: The font is much smaller than what I > would have expected. I set it to 10 points here, but the result is > much smaller (see attached screenshot). > > My goal is to use > QFontDatabase::systemFont(QFontDatabase::GeneralFont) to get the > system font through Qt, and use its values for .fontSize() and > .family() when constructing my vtkTextProperty, to make the font in > VTK match my system font. > > Any idea why the text is rendered so small? The vtkTextProperty is set > on a vtkTextMapper which in turn is set on a vtkActor2D. I'm attaching another screenshot where some Qt window is visible, for comparison. I would have expected the VTK text size (in the background) to match the Qt one. Elvis > > Thanks in advance, > Elvis > >> >> HTH, >> Dave >> >> On Thu, Oct 20, 2016 at 9:34 AM, Elvis Stansvik >> wrote: >>> >>> 2016-10-20 14:49 GMT+02:00 Elvis Stansvik : >>> > 2016-10-20 14:48 GMT+02:00 Elvis Stansvik >>> > : >>> >> 2016-10-20 14:06 GMT+02:00 Elvis Stansvik >>> >> : >>> >>> Hi, >>> >>> >>> >>> How can I load a system font through fontconfig and use it with >>> >>> vtkTextMapper/vtkTextProperty? >>> >>> >>> >>> I've called vtkFreeTypeTools::GetInstance()->ForceCompiledFontsOff(), >>> >>> but I can't find any API on vtkTextProperty to set a font family to >>> >>> use for a fontconfig-based search. >>> >> >>> >> Am I supposed to pass the fontconfig family name (e.g. "Noto Sans") to >>> >> vtkTextProperty::SetFontFamilyAsString(..) ? I tried it but it didn't >>> >> seem to have any effect. >>> >> >>> >> In fact, I just had a look at the build log for the Debian package I >>> >> built of 7.1.0.rc1, and it's not mentioning "FontConfig" at all (see >>> >> attached log). Does that mean my build doesn't have fontconfig >>> > >>> > Sorry, forgot the attachment, here it is in case it's too big to be >>> > attached: >>> > >>> > >>> > https://dl.dropboxusercontent.com/u/22350696/vtk7_7.1.0~rc1-0ubuntu1_amd64.build.bz2 >>> > >>> > Elvis >>> >>> Sorry for the noise. Just adding >>> -DModule_vtkRenderingFreeTypeFontConfig=ON to my build and >>> libfontconfig1-dev to the build dependencies, and I get >>> >>> -- * vtkRenderingFreeTypeFontConfig, requested by >>> Module_vtkRenderingFreeTypeFontConfig. >>> >>> in the VTK CMake output. Building now and will report back how it went. >>> >>> Still interested in if vtkTextProperty::SetFontFamilyAsString(..) is >>> the right API to set the fontconfig family name. >>> >>> Elvis >>> >>> > >>> >> support? Must I enable the FreeTypeFontConfig module explicitly? (not >>> >> enough that fontconfig is found on the system?). >>> >> >>> >> Elvis >>> >> >>> >>> >>> >>> Elvis >>> _______________________________________________ >>> 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 -------------- A non-text attachment was scrubbed... Name: comparison_to_qt_font.png Type: image/png Size: 53630 bytes Desc: not available URL: From david.lonie at kitware.com Thu Oct 20 10:55:08 2016 From: david.lonie at kitware.com (David Lonie) Date: Thu, 20 Oct 2016 10:55:08 -0400 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: On Thu, Oct 20, 2016 at 10:48 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > 2016-10-20 16:41 GMT+02:00 David Lonie : > > Correct -- Set ForceCompiledFonts off on vtkFreeTypeTools, and set the > name > > of the font using vtkTextProperty::SetFontFamilyAsString. > > > > As you discovered, this requires the RenderingFreeTypeFontConfig module > to > > be enabled and linked to the final application. There is an example > usage in > > Rendering/FreeTypeFontConfig/Testing/Cxx/TestSystemFontRendering.cxx if > you > > get stuck. > > > > Let us know if you have further issues, AFAIK this functionality is not > > widely used. > > Yep, it now seems to work. E.g. I can now do: > > textProperty->SetFontSize(10); > textProperty->SetFontFamilyAsString("Noto Sans"); > > However, one thing puzzles me: The font is much smaller than what I > would have expected. I set it to 10 points here, but the result is > much smaller (see attached screenshot). > > My goal is to use > QFontDatabase::systemFont(QFontDatabase::GeneralFont) to get the > system font through Qt, and use its values for .fontSize() and > .family() when constructing my vtkTextProperty, to make the font in > VTK match my system font. > > Any idea why the text is rendered so small? The vtkTextProperty is set > on a vtkTextMapper which in turn is set on a vtkActor2D. > It's hard to say. How does it compare to a VTK built-in font of the same size? The glyph sizes are set by the freetype library, VTK doesn't have much control over this. It just asks the library for glyphs of a certain size/family and draws them into a texture. You may need to set a scaling factor during the conversion if something seems iffy. Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Oct 20 11:27:17 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 20 Oct 2016 17:27:17 +0200 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: 2016-10-20 16:55 GMT+02:00 David Lonie : > On Thu, Oct 20, 2016 at 10:48 AM, Elvis Stansvik > wrote: >> >> 2016-10-20 16:41 GMT+02:00 David Lonie : >> > Correct -- Set ForceCompiledFonts off on vtkFreeTypeTools, and set the >> > name >> > of the font using vtkTextProperty::SetFontFamilyAsString. >> > >> > As you discovered, this requires the RenderingFreeTypeFontConfig module >> > to >> > be enabled and linked to the final application. There is an example >> > usage in >> > Rendering/FreeTypeFontConfig/Testing/Cxx/TestSystemFontRendering.cxx if >> > you >> > get stuck. >> > >> > Let us know if you have further issues, AFAIK this functionality is not >> > widely used. >> >> Yep, it now seems to work. E.g. I can now do: >> >> textProperty->SetFontSize(10); >> textProperty->SetFontFamilyAsString("Noto Sans"); >> >> However, one thing puzzles me: The font is much smaller than what I >> would have expected. I set it to 10 points here, but the result is >> much smaller (see attached screenshot). >> >> My goal is to use >> QFontDatabase::systemFont(QFontDatabase::GeneralFont) to get the >> system font through Qt, and use its values for .fontSize() and >> .family() when constructing my vtkTextProperty, to make the font in >> VTK match my system font. >> >> Any idea why the text is rendered so small? The vtkTextProperty is set >> on a vtkTextMapper which in turn is set on a vtkActor2D. > > > It's hard to say. How does it compare to a VTK built-in font of the same > size? The glyph sizes are set by the freetype library, VTK doesn't have much > control over this. It just asks the library for glyphs of a certain > size/family and draws them into a texture. You may need to set a scaling > factor during the conversion if something seems iffy. Using built-in fonts I also get text rendered smaller than expected. However, I think it's a matter of DPI. I guess VTK assumes a DPI of 72 somewhere? With the following, the text is rendered in the expected size: auto logicalDpiY = QApplication::screens().at(0)->logicalDotsPerInchY(); ... textProperty->SetFontSize(qRound(10 * (logicalDpiY / 72.0))); textProperty->SetFontFamilyAsString("Noto Sans"); So I'm compensating for VTK's assumption about 72 DPI by increasing the font size (on my system Qt's logicalDotsPerInchY() reports 96.2526). I guess I should also figure out how to be notified when the widget is moved to another screen and update the size, since the DPI of the other screen might be different. Elvis > > Dave From david.lonie at kitware.com Thu Oct 20 11:29:50 2016 From: david.lonie at kitware.com (David Lonie) Date: Thu, 20 Oct 2016 11:29:50 -0400 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: On Thu, Oct 20, 2016 at 11:27 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > Using built-in fonts I also get text rendered smaller than expected. > > However, I think it's a matter of DPI. I guess VTK assumes a DPI of 72 > somewhere? > > With the following, the text is rendered in the expected size: > > auto logicalDpiY = QApplication::screens().at(0)- > >logicalDotsPerInchY(); > ... > textProperty->SetFontSize(qRound(10 * (logicalDpiY / 72.0))); > textProperty->SetFontFamilyAsString("Noto Sans"); > > So I'm compensating for VTK's assumption about 72 DPI by increasing > the font size (on my system Qt's logicalDotsPerInchY() reports > 96.2526). > > I guess I should also figure out how to be notified when the widget is > moved to another screen and update the size, since the DPI of the > other screen might be different. > Aha, yes, VTK does assume 72 DPI by default. We very recently added the ability to change that for text rendering purposes. Call vtkRenderWindow::SetDPI to update it to what Qt is using, and the text rendering should adjust accordingly. Let me know if that fixes it. Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Oct 20 12:25:51 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 20 Oct 2016 18:25:51 +0200 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: Den 20 okt. 2016 5:30 em skrev "David Lonie" : > > On Thu, Oct 20, 2016 at 11:27 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: >> >> Using built-in fonts I also get text rendered smaller than expected. >> >> However, I think it's a matter of DPI. I guess VTK assumes a DPI of 72 >> somewhere? >> >> With the following, the text is rendered in the expected size: >> >> auto logicalDpiY = QApplication::screens().at(0)->logicalDotsPerInchY(); >> ... >> textProperty->SetFontSize(qRound(10 * (logicalDpiY / 72.0))); >> textProperty->SetFontFamilyAsString("Noto Sans"); >> >> So I'm compensating for VTK's assumption about 72 DPI by increasing >> the font size (on my system Qt's logicalDotsPerInchY() reports >> 96.2526). >> >> I guess I should also figure out how to be notified when the widget is >> moved to another screen and update the size, since the DPI of the >> other screen might be different. > > > Aha, yes, VTK does assume 72 DPI by default. We very recently added the ability to change that for text rendering purposes. Call vtkRenderWindow::SetDPI to update it to what Qt is using, and the text rendering should adjust accordingly. Let me know if that fixes it. Aha, thanks for the tip. On my way home now but will test tomorrow. Do you know if it's in 7.1rc1? I'm building my Debian package from that tag Elvis > > Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Thu Oct 20 12:27:21 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 20 Oct 2016 18:27:21 +0200 Subject: [vtkusers] Merging/combining vtkImageHistogramStatistics from multiple images In-Reply-To: References: Message-ID: Den 20 okt. 2016 4:50 em skrev "David Gobbi" : > > On Thu, Oct 20, 2016 at 1:31 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: >> >> >> I know I can just sum the histogram arrays (available as a >> vtkTypeIdArray through vtkImageHistogramStatistics::GetHistogram), but >> I thought I should ask first: Is there some built-in way of "merging" >> several vtkImageHistogramStatistics? Or some other better approach >> which I haven't thought of? > > > Summing the arrays is the way to go, vtkImageHistogramStatistics takes a single image input. Alright, thanks David. Elvis > > - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Thu Oct 20 12:29:29 2016 From: david.lonie at kitware.com (David Lonie) Date: Thu, 20 Oct 2016 12:29:29 -0400 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: On Thu, Oct 20, 2016 at 12:25 PM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > Den 20 okt. 2016 5:30 em skrev "David Lonie" : > > > > On Thu, Oct 20, 2016 at 11:27 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> > >> Using built-in fonts I also get text rendered smaller than expected. > >> > >> However, I think it's a matter of DPI. I guess VTK assumes a DPI of 72 > >> somewhere? > >> > >> With the following, the text is rendered in the expected size: > >> > >> auto logicalDpiY = QApplication::screens().at(0)- > >logicalDotsPerInchY(); > >> ... > >> textProperty->SetFontSize(qRound(10 * (logicalDpiY / 72.0))); > >> textProperty->SetFontFamilyAsString("Noto Sans"); > >> > >> So I'm compensating for VTK's assumption about 72 DPI by increasing > >> the font size (on my system Qt's logicalDotsPerInchY() reports > >> 96.2526). > >> > >> I guess I should also figure out how to be notified when the widget is > >> moved to another screen and update the size, since the DPI of the > >> other screen might be different. > > > > > > Aha, yes, VTK does assume 72 DPI by default. We very recently added the > ability to change that for text rendering purposes. Call > vtkRenderWindow::SetDPI to update it to what Qt is using, and the text > rendering should adjust accordingly. Let me know if that fixes it. > > Aha, thanks for the tip. On my way home now but will test tomorrow. Do you > know if it's in 7.1rc1? I'm building my Debian package from that tag > It is. We added this about a year ago, but like the fontconfig stuff, it hasn't seen widespread use yet so any feedback would be great :) Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Thu Oct 20 12:31:16 2016 From: david.lonie at kitware.com (David Lonie) Date: Thu, 20 Oct 2016 12:31:16 -0400 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: On Thu, Oct 20, 2016 at 12:29 PM, David Lonie wrote: > On Thu, Oct 20, 2016 at 12:25 PM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> Den 20 okt. 2016 5:30 em skrev "David Lonie" : >> > >> > On Thu, Oct 20, 2016 at 11:27 AM, Elvis Stansvik < >> elvis.stansvik at orexplore.com> wrote: >> >> >> >> Using built-in fonts I also get text rendered smaller than expected. >> >> >> >> However, I think it's a matter of DPI. I guess VTK assumes a DPI of 72 >> >> somewhere? >> >> >> >> With the following, the text is rendered in the expected size: >> >> >> >> auto logicalDpiY = QApplication::screens().at(0)- >> >logicalDotsPerInchY(); >> >> ... >> >> textProperty->SetFontSize(qRound(10 * (logicalDpiY / 72.0))); >> >> textProperty->SetFontFamilyAsString("Noto Sans"); >> >> >> >> So I'm compensating for VTK's assumption about 72 DPI by increasing >> >> the font size (on my system Qt's logicalDotsPerInchY() reports >> >> 96.2526). >> >> >> >> I guess I should also figure out how to be notified when the widget is >> >> moved to another screen and update the size, since the DPI of the >> >> other screen might be different. >> > >> > >> > Aha, yes, VTK does assume 72 DPI by default. We very recently added the >> ability to change that for text rendering purposes. Call >> vtkRenderWindow::SetDPI to update it to what Qt is using, and the text >> rendering should adjust accordingly. Let me know if that fixes it. >> >> Aha, thanks for the tip. On my way home now but will test tomorrow. Do >> you know if it's in 7.1rc1? I'm building my Debian package from that tag >> > > It is. We added this about a year ago, but like the fontconfig stuff, it > hasn't seen widespread use yet so any feedback would be great :) > Also I should point out the vtkWindow::DetectDPI() method, which detects and sets the DPI automatically. It's only available on Windows atm (IIRC), but the return boolean will indicate if it worked or not. Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From enzo.matsumiya at gmail.com Thu Oct 20 15:33:23 2016 From: enzo.matsumiya at gmail.com (Enzo Matsumiya) Date: Thu, 20 Oct 2016 17:33:23 -0200 Subject: [vtkusers] Rendering bug with VTK 7.0 + Qt 5.7 (non-retina MacBook) In-Reply-To: References: Message-ID: Hi Shawn, Thanks for the fast reply. I would like to report that I still had the same issues with both 7.1 RC and the master branch. But I would like to add that when using an external monitor and setting it as the main screen, the artifacts and some of the weird behaviors goes away, but the QVTKWidget goes missing when clicking outside of it. Thanks, On 20 October 2016 at 11:59, Shawn Waldon wrote: > Hi Enzo, > > I know there have been some Qt5 + OpenGL2 issues in the past (and possibly > still currently in VTK). I would like to point out that Qt 5.5 was current > when VTK 7.0 was released, so you are using two library versions that were > never tested together. Could you try the 7.1 release candidate? You may > have better luck since that has had over a year of fixes (including several > for the Qt5 + OpenGL2 case) and has been tested with Qt5.7 in some of our > applications. > > HTH, > Shawn > > On Thu, Oct 20, 2016 at 9:34 AM, Enzo Matsumiya > wrote: > >> Hi, >> >> Recently I came across this issue on a non-retina Mac, where the >> rendering will show some artifacts, but also will perform some unwanted >> actions by itself, such as windowing, reslicing and some elements (e.g. >> vtkResliceCursorWidget) goes missing at random. >> >> Some information: >> MacBook mid-2012 Core i5, non-retina >> Intel HD Graphics 4000 >> Mac OS X 10.11.6 >> >> VTK 7.0 stable >> Compiled with clang >> Dynamic libs >> Release build type >> OpenGL2 backend >> >> Qt 5.7 >> Default installation from the OSX package >> >> Here is an example screenshot of what kind of artifacts I'm seeing: >> >> https://i.imgsafe.org/8c735567e8.png >> >> >> Thanks in advance. >> >> >> _______________________________________________ >> 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 >> >> > -- Enzo Ferlin Matsumiya enzo.matsumiya AT gmail DOT com -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Fri Oct 21 01:44:04 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 21 Oct 2016 07:44:04 +0200 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: 2016-10-20 18:31 GMT+02:00 David Lonie : > On Thu, Oct 20, 2016 at 12:29 PM, David Lonie > wrote: >> >> On Thu, Oct 20, 2016 at 12:25 PM, Elvis Stansvik >> wrote: >>> >>> Den 20 okt. 2016 5:30 em skrev "David Lonie" : >>> > >>> > On Thu, Oct 20, 2016 at 11:27 AM, Elvis Stansvik >>> > wrote: >>> >> >>> >> Using built-in fonts I also get text rendered smaller than expected. >>> >> >>> >> However, I think it's a matter of DPI. I guess VTK assumes a DPI of 72 >>> >> somewhere? >>> >> >>> >> With the following, the text is rendered in the expected size: >>> >> >>> >> auto logicalDpiY = >>> >> QApplication::screens().at(0)->logicalDotsPerInchY(); >>> >> ... >>> >> textProperty->SetFontSize(qRound(10 * (logicalDpiY / 72.0))); >>> >> textProperty->SetFontFamilyAsString("Noto Sans"); >>> >> >>> >> So I'm compensating for VTK's assumption about 72 DPI by increasing >>> >> the font size (on my system Qt's logicalDotsPerInchY() reports >>> >> 96.2526). >>> >> >>> >> I guess I should also figure out how to be notified when the widget is >>> >> moved to another screen and update the size, since the DPI of the >>> >> other screen might be different. >>> > >>> > >>> > Aha, yes, VTK does assume 72 DPI by default. We very recently added the >>> > ability to change that for text rendering purposes. Call >>> > vtkRenderWindow::SetDPI to update it to what Qt is using, and the text >>> > rendering should adjust accordingly. Let me know if that fixes it. >>> >>> Aha, thanks for the tip. On my way home now but will test tomorrow. Do >>> you know if it's in 7.1rc1? I'm building my Debian package from that tag >> >> >> It is. We added this about a year ago, but like the fontconfig stuff, it >> hasn't seen widespread use yet so any feedback would be great :) > > > Also I should point out the vtkWindow::DetectDPI() method, which detects and > sets the DPI automatically. It's only available on Windows atm (IIRC), but > the return boolean will indicate if it worked or not. Alright, no problem. We're on Linux only so far, but I can rely on Qt for cross-platform detection for now. Elvis > > Dave From carmen.liechti at vtg.admin.ch Fri Oct 21 02:24:21 2016 From: carmen.liechti at vtg.admin.ch (xy_xy) Date: Thu, 20 Oct 2016 23:24:21 -0700 (MST) Subject: [vtkusers] Fail because Position 0x00000000 In-Reply-To: References: <1476445044860-5740771.post@n5.nabble.com> Message-ID: <1477031061438-5740886.post@n5.nabble.com> Thank's :) -- View this message in context: http://vtk.1045678.n5.nabble.com/Fail-because-Position-0x00000000-tp5740771p5740886.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Fri Oct 21 04:22:42 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 21 Oct 2016 10:22:42 +0200 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: 2016-10-20 18:29 GMT+02:00 David Lonie : > On Thu, Oct 20, 2016 at 12:25 PM, Elvis Stansvik > wrote: >> >> Den 20 okt. 2016 5:30 em skrev "David Lonie" : >> > >> > On Thu, Oct 20, 2016 at 11:27 AM, Elvis Stansvik >> > wrote: >> >> >> >> Using built-in fonts I also get text rendered smaller than expected. >> >> >> >> However, I think it's a matter of DPI. I guess VTK assumes a DPI of 72 >> >> somewhere? >> >> >> >> With the following, the text is rendered in the expected size: >> >> >> >> auto logicalDpiY = >> >> QApplication::screens().at(0)->logicalDotsPerInchY(); >> >> ... >> >> textProperty->SetFontSize(qRound(10 * (logicalDpiY / 72.0))); >> >> textProperty->SetFontFamilyAsString("Noto Sans"); >> >> >> >> So I'm compensating for VTK's assumption about 72 DPI by increasing >> >> the font size (on my system Qt's logicalDotsPerInchY() reports >> >> 96.2526). >> >> >> >> I guess I should also figure out how to be notified when the widget is >> >> moved to another screen and update the size, since the DPI of the >> >> other screen might be different. >> > >> > >> > Aha, yes, VTK does assume 72 DPI by default. We very recently added the >> > ability to change that for text rendering purposes. Call >> > vtkRenderWindow::SetDPI to update it to what Qt is using, and the text >> > rendering should adjust accordingly. Let me know if that fixes it. >> >> Aha, thanks for the tip. On my way home now but will test tomorrow. Do you >> know if it's in 7.1rc1? I'm building my Debian package from that tag SetDPI(...) worked great. So in summary, in a VTK/Qt application, you can set the DPI to the one Qt detects with GetRenderWindow()->SetDPI(qRound(windowHandle()->screen()->logicalDotsPerInch())); in your QVTKWidget, and then configure the vtkTextProperty to approximate the general system font with auto font = QFontDatabase::systemFont(QFontDatabase::GeneralFont); textProperty->SetFontSize(font.pointSize()); textProperty->SetFontFamilyAsString(font.family().toUtf8().constData()); textProperty->SetBold(font.bold()); textProperty->SetItalic(font.italic()); Thanks for the pointers David! Elvis > > > It is. We added this about a year ago, but like the fontconfig stuff, it > hasn't seen widespread use yet so any feedback would be great :) > > Dave From david.lonie at kitware.com Fri Oct 21 09:25:55 2016 From: david.lonie at kitware.com (David Lonie) Date: Fri, 21 Oct 2016 09:25:55 -0400 Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: Excellent! Glad to hear that it worked for you :) On Fri, Oct 21, 2016 at 4:22 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > 2016-10-20 18:29 GMT+02:00 David Lonie : > > On Thu, Oct 20, 2016 at 12:25 PM, Elvis Stansvik > > wrote: > >> > >> Den 20 okt. 2016 5:30 em skrev "David Lonie" : > >> > > >> > On Thu, Oct 20, 2016 at 11:27 AM, Elvis Stansvik > >> > wrote: > >> >> > >> >> Using built-in fonts I also get text rendered smaller than expected. > >> >> > >> >> However, I think it's a matter of DPI. I guess VTK assumes a DPI of > 72 > >> >> somewhere? > >> >> > >> >> With the following, the text is rendered in the expected size: > >> >> > >> >> auto logicalDpiY = > >> >> QApplication::screens().at(0)->logicalDotsPerInchY(); > >> >> ... > >> >> textProperty->SetFontSize(qRound(10 * (logicalDpiY / 72.0))); > >> >> textProperty->SetFontFamilyAsString("Noto Sans"); > >> >> > >> >> So I'm compensating for VTK's assumption about 72 DPI by increasing > >> >> the font size (on my system Qt's logicalDotsPerInchY() reports > >> >> 96.2526). > >> >> > >> >> I guess I should also figure out how to be notified when the widget > is > >> >> moved to another screen and update the size, since the DPI of the > >> >> other screen might be different. > >> > > >> > > >> > Aha, yes, VTK does assume 72 DPI by default. We very recently added > the > >> > ability to change that for text rendering purposes. Call > >> > vtkRenderWindow::SetDPI to update it to what Qt is using, and the text > >> > rendering should adjust accordingly. Let me know if that fixes it. > >> > >> Aha, thanks for the tip. On my way home now but will test tomorrow. Do > you > >> know if it's in 7.1rc1? I'm building my Debian package from that tag > > SetDPI(...) worked great. > > So in summary, in a VTK/Qt application, you can set the DPI to the one > Qt detects with > > GetRenderWindow()->SetDPI(qRound(windowHandle()->screen( > )->logicalDotsPerInch())); > > in your QVTKWidget, and then configure the vtkTextProperty to > approximate the general system font with > > auto font = QFontDatabase::systemFont(QFontDatabase::GeneralFont); > textProperty->SetFontSize(font.pointSize()); > textProperty->SetFontFamilyAsString(font. > family().toUtf8().constData()); > textProperty->SetBold(font.bold()); > textProperty->SetItalic(font.italic()); > > Thanks for the pointers David! > > Elvis > > > > > > > It is. We added this about a year ago, but like the fontconfig stuff, it > > hasn't seen widespread use yet so any feedback would be great :) > > > > Dave > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wer.wie.was.wiso.weshalb.warum at googlemail.com Fri Oct 21 09:58:19 2016 From: wer.wie.was.wiso.weshalb.warum at googlemail.com (wer.wie.was.wiso.weshalb.warum at googlemail.com) Date: Fri, 21 Oct 2016 15:58:19 +0200 Subject: [vtkusers] vtkFreeTypeUtilities Message-ID: <20161021135819.GA11124@jerng.de> I've recently updated a project to VTK 7.0.0, until now I've used VTK 6.3.0. I'm using vtkFreeTypeUtilities in order to draw a string onto a DICOM image. With 7.0.0, this class has been removed. Is there another way to draw onto images or do I need to stick to 6.3.0? Best, JE From elvis.stansvik at orexplore.com Fri Oct 21 10:29:31 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 21 Oct 2016 16:29:31 +0200 Subject: [vtkusers] vtkFreeTypeUtilities In-Reply-To: <20161021135819.GA11124@jerng.de> References: <20161021135819.GA11124@jerng.de> Message-ID: 2016-10-21 15:58 GMT+02:00 JE via vtkusers : > I've recently updated a project to VTK 7.0.0, until now I've used VTK > 6.3.0. I'm using vtkFreeTypeUtilities in order to draw a string onto a > DICOM image. With 7.0.0, this class has been removed. Is there another > way to draw onto images or do I need to stick to 6.3.0? vtkFreeTypeTools I think. Elvis > > Best, > JE > _______________________________________________ > 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 wer.wie.was.wiso.weshalb.warum at googlemail.com Fri Oct 21 10:43:40 2016 From: wer.wie.was.wiso.weshalb.warum at googlemail.com (wer.wie.was.wiso.weshalb.warum at googlemail.com) Date: Fri, 21 Oct 2016 16:43:40 +0200 Subject: [vtkusers] vtkFreeTypeUtilities In-Reply-To: References: <20161021135819.GA11124@jerng.de> Message-ID: <20161021144340.GA12038@jerng.de> Very nice. Thank you! On 21.10.16, 16:29, Elvis Stansvik wrote: > 2016-10-21 15:58 GMT+02:00 JE via vtkusers : > > I've recently updated a project to VTK 7.0.0, until now I've used VTK > > 6.3.0. I'm using vtkFreeTypeUtilities in order to draw a string onto a > > DICOM image. With 7.0.0, this class has been removed. Is there another > > way to draw onto images or do I need to stick to 6.3.0? > > vtkFreeTypeTools I think. > > Elvis > > > > > Best, > > JE > > _______________________________________________ > > 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 Oct 21 11:06:31 2016 From: sean at rogue-research.com (Sean McBride) Date: Fri, 21 Oct 2016 11:06:31 -0400 Subject: [vtkusers] QT Button on top of QVTKWidget Mac OS In-Reply-To: <1476806648693-5740828.post@n5.nabble.com> References: <1476806648693-5740828.post@n5.nabble.com> Message-ID: <20161021150631.479389936@mail.rogue-research.com> On Tue, 18 Oct 2016 09:04:08 -0700, Matt C said: >I'm trying to display Qt buttons on top of a QVTKWidget. This works correct >in Linux but using >Mac OS 10.11.16, QT 4.8.7 and VTK 7.0 the buttons are invisible. (I can >click them if I know where they are). The canonical example of overlaying Cocoa controls on OpenGL content is: Basically, you need to use not only NSViews but CALayers also. VTK includes an NSView subclass, but does not include any CALayer subclass. *It's something I'm hoping to do one day when I miraculously have free time.) But it's not too hard to make your own CAOpenGLLayer subclass and tell the vtkrenderwindow to draw into it. I know nothing about Qt, so getting that into the mix will be another wrinkle I'm sure! 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 mattkingc at gmail.com Fri Oct 21 11:17:54 2016 From: mattkingc at gmail.com (Matt C) Date: Fri, 21 Oct 2016 08:17:54 -0700 (MST) Subject: [vtkusers] QT Button on top of QVTKWidget Mac OS In-Reply-To: <20161021150631.479389936@mail.rogue-research.com> References: <1476806648693-5740828.post@n5.nabble.com> <20161021150631.479389936@mail.rogue-research.com> Message-ID: <1477063074058-5740893.post@n5.nabble.com> I've got it working now using the QVtkWidget3 code from the stackoverflow post above. I had to upgrade to Qt 5.5 to support this. I did hit a couple of issues - On the MacBook retina display the sizing was 1/2 size because it uses a size parameter that no longer applies This is a known bug with solution: http://stackoverflow.com/questions/39455504/qt-mainwindow-with-qopenglwidget-in-retina-display-displays-wrong-size - I had to call QSurfaceFormat::setDefaultFormat() before constructing the QApplication which is only required for Mac OS and is noted on http://doc.qt.io/qt-5/qopenglwidget.html - Was trying to use a PCLVisualizer to create the render window but it only support a vtkrenderer so am going back to using straight vtk. -- View this message in context: http://vtk.1045678.n5.nabble.com/QT-Button-on-top-of-QVTKWidget-Mac-OS-tp5740828p5740893.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.lonie at kitware.com Fri Oct 21 12:15:31 2016 From: david.lonie at kitware.com (David Lonie) Date: Fri, 21 Oct 2016 12:15:31 -0400 Subject: [vtkusers] vtkFreeTypeUtilities In-Reply-To: <20161021144340.GA12038@jerng.de> References: <20161021135819.GA11124@jerng.de> <20161021144340.GA12038@jerng.de> Message-ID: vtkFreeTypeTools will work, but I'd recommend using vtkTextRenderer (in Common/Core) for new code. It has a simpler interface and also allows rendering equations / mathtext via matplotlib if enabled. Dave On Fri, Oct 21, 2016 at 10:43 AM, JE via vtkusers wrote: > Very nice. Thank you! > > On 21.10.16, 16:29, Elvis Stansvik wrote: > > 2016-10-21 15:58 GMT+02:00 JE via vtkusers : > > > I've recently updated a project to VTK 7.0.0, until now I've used VTK > > > 6.3.0. I'm using vtkFreeTypeUtilities in order to draw a string onto a > > > DICOM image. With 7.0.0, this class has been removed. Is there another > > > way to draw onto images or do I need to stick to 6.3.0? > > > > vtkFreeTypeTools I think. > > > > Elvis > > > > > > > > Best, > > > JE > > > _______________________________________________ > > > 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 bakkari.abdelkhalek at hotmail.fr Fri Oct 21 12:54:05 2016 From: bakkari.abdelkhalek at hotmail.fr (Abdelkhalek Bakkari) Date: Fri, 21 Oct 2016 16:54:05 +0000 Subject: [vtkusers] Draw with vtkImageCanvasSource2D for all the Slices In-Reply-To: References: Message-ID: Dear VTK users, I read some ct image slices using vtkImageData. Now I want to draw in each slice with vtkImageCanvasSource2D. Could you help me please? Abdelkhalek Bakkari Ph.D candidate in Computer Science Institute of Applied Computer Science Lodz University of Technology, Poland -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: region_growing.png Type: image/png Size: 210243 bytes Desc: region_growing.png URL: From eric.fahlgren at smith-nephew.com Fri Oct 21 15:49:30 2016 From: eric.fahlgren at smith-nephew.com (efahl) Date: Fri, 21 Oct 2016 12:49:30 -0700 (MST) Subject: [vtkusers] Using fontconfig with vtkTextMapper/vtkTextProperty? In-Reply-To: References: Message-ID: <1477079370360-5740896.post@n5.nabble.com> On Thu, Oct 20, 2016 at 12:29 PM, David Lonie <david.lonie@> wrote: > Also I should point out the vtkWindow::DetectDPI() method, which detects > and sets the DPI automatically. It's only available on Windows atm (IIRC), > but the return boolean will indicate if it worked or not. I didn't know about this one, so I tried it out and it works great onWin7-64 with VTK 7.0. Now the VTK fonts render exactly the same size as the WX fonts in the application. Thanks, Eric -- View this message in context: http://vtk.1045678.n5.nabble.com/Using-fontconfig-with-vtkTextMapper-vtkTextProperty-tp5740858p5740896.html Sent from the VTK - Users mailing list archive at Nabble.com. From smrolfe at uw.edu Fri Oct 21 18:36:38 2016 From: smrolfe at uw.edu (SM Rolfe) Date: Fri, 21 Oct 2016 15:36:38 -0700 Subject: [vtkusers] vtkConnectivityFilter Message-ID: Hello, I have been using the vtkConnectivityFilter successfully on polydata stored as .vtp files. I just used it on a new file, and instead of getting the correct number of components, the number of regions was equal to the number of cells. Looking at files, I don't see any obvious differences. Any insight on what could cause this type of error would be helpful. Thanks, Sara -------------- next part -------------- An HTML attachment was scrubbed... URL: From daviddoria at gmail.com Fri Oct 21 19:00:30 2016 From: daviddoria at gmail.com (David Doria) Date: Fri, 21 Oct 2016 18:00:30 -0500 Subject: [vtkusers] vtkConnectivityFilter In-Reply-To: References: Message-ID: On Fri, Oct 21, 2016 at 5:36 PM, SM Rolfe wrote: > Hello, > I have been using the vtkConnectivityFilter successfully on polydata > stored as .vtp files. I just used it on a new file, and instead of getting > the correct number of components, the number of regions was equal to the > number of cells. Looking at files, I don't see any obvious differences. Any > insight on what could cause this type of error would be helpful. > Thanks, > Sara > My guess is that the cells don't actually share geometry/points. That is, imagine two triangles that share an edge. This should be only 4 points (ABC and BCD, where the shared edge is BC). If instead the data has 6 points (ABC and DEF), even if the coordinates of B are the same as E and the coordinates of C are the same as F, they are not "connected" in a topological sense. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Sat Oct 22 01:58:03 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Sat, 22 Oct 2016 07:58:03 +0200 Subject: [vtkusers] vtkFreeTypeUtilities In-Reply-To: References: <20161021135819.GA11124@jerng.de> <20161021144340.GA12038@jerng.de> Message-ID: Den 21 okt. 2016 6:15 em skrev "David Lonie" : > > vtkFreeTypeTools will work, but I'd recommend using vtkTextRenderer (in Common/Core) for new code. It has a simpler interface and also allows rendering equations / mathtext via matplotlib if enabled. Ah, my bad. Thanks David. Elvis > > Dave > > On Fri, Oct 21, 2016 at 10:43 AM, JE via vtkusers wrote: >> >> Very nice. Thank you! >> >> On 21.10.16, 16:29, Elvis Stansvik wrote: >> > 2016-10-21 15:58 GMT+02:00 JE via vtkusers : >> > > I've recently updated a project to VTK 7.0.0, until now I've used VTK >> > > 6.3.0. I'm using vtkFreeTypeUtilities in order to draw a string onto a >> > > DICOM image. With 7.0.0, this class has been removed. Is there another >> > > way to draw onto images or do I need to stick to 6.3.0? >> > >> > vtkFreeTypeTools I think. >> > >> > Elvis >> > >> > > >> > > Best, >> > > JE >> > > _______________________________________________ >> > > 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 daviddoria at gmail.com Sat Oct 22 08:36:16 2016 From: daviddoria at gmail.com (David Doria) Date: Sat, 22 Oct 2016 07:36:16 -0500 Subject: [vtkusers] vtkConnectivityFilter In-Reply-To: References: Message-ID: On Fri, Oct 21, 2016 at 10:42 PM, SM Rolfe wrote: > Thanks David, I think you're right. When I try using the > vtkDataSetSurfaceFilter or vtkExtractEdges I can get a connected surface, > but it changes the original mesh points. Do you have any advice on the best > way to correct the connectivity without altering these points? I am > guessing I could go through each mesh point, look for repeats and add > connectivity, but I'm wondering if there's a more efficient way? > > Thanks for your help, > Sara > I think vtkCleanPolyData does that: http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/CleanPolyData David -------------- next part -------------- An HTML attachment was scrubbed... URL: From smrolfe at uw.edu Sat Oct 22 12:11:24 2016 From: smrolfe at uw.edu (SM Rolfe) Date: Sat, 22 Oct 2016 09:11:24 -0700 Subject: [vtkusers] vtkConnectivityFilter In-Reply-To: References: Message-ID: Hi David, Thanks! The vtkCleanPolyData filter solves the connectivity issue. It also looks like it's reducing the resolution of the output mesh significantly. If it's only deleting the repeated points, I don't think this should be occurring? Thanks, Sara On Sat, Oct 22, 2016 at 5:36 AM, David Doria wrote: > On Fri, Oct 21, 2016 at 10:42 PM, SM Rolfe wrote: > >> Thanks David, I think you're right. When I try using the >> vtkDataSetSurfaceFilter or vtkExtractEdges I can get a connected surface, >> but it changes the original mesh points. Do you have any advice on the best >> way to correct the connectivity without altering these points? I am >> guessing I could go through each mesh point, look for repeats and add >> connectivity, but I'm wondering if there's a more efficient way? >> >> Thanks for your help, >> Sara >> > > I think vtkCleanPolyData does that: http://www.vtk.org/Wiki/VTK/ > Examples/Cxx/PolyData/CleanPolyData > > David > -------------- next part -------------- An HTML attachment was scrubbed... URL: From daviddoria at gmail.com Sat Oct 22 13:03:33 2016 From: daviddoria at gmail.com (David Doria) Date: Sat, 22 Oct 2016 12:03:33 -0500 Subject: [vtkusers] vtkConnectivityFilter In-Reply-To: References: Message-ID: On Sat, Oct 22, 2016 at 11:11 AM, SM Rolfe wrote: > Hi David, > Thanks! The vtkCleanPolyData filter solves the connectivity issue. It also > looks like it's reducing the resolution of the output mesh significantly. > If it's only deleting the repeated points, I don't think this should be > occurring? > Thanks, > Sara > Sorry, I'm not sure about that. It'd probably help your question if you could produce a small example data set that demonstrates the problem. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Sat Oct 22 13:16:06 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sat, 22 Oct 2016 13:16:06 -0400 Subject: [vtkusers] vtkConnectivityFilter In-Reply-To: References: Message-ID: CleanPolyData with its default settings should not reduce the resolution of the mesh. On Sat, Oct 22, 2016 at 1:03 PM, David Doria wrote: > On Sat, Oct 22, 2016 at 11:11 AM, SM Rolfe wrote: >> >> Hi David, >> Thanks! The vtkCleanPolyData filter solves the connectivity issue. It also >> looks like it's reducing the resolution of the output mesh significantly. If >> it's only deleting the repeated points, I don't think this should be >> occurring? >> Thanks, >> Sara > > > Sorry, I'm not sure about that. It'd probably help your question if you > could produce a small example data set that demonstrates the problem. > > David > > > _______________________________________________ > 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 weifeng0715 at gmail.com Sun Oct 23 00:07:19 2016 From: weifeng0715 at gmail.com (weifeng0715) Date: Sat, 22 Oct 2016 21:07:19 -0700 (MST) Subject: [vtkusers] QVTKWidget mouse event detection In-Reply-To: References: Message-ID: <1477195639935-5740905.post@n5.nabble.com> I could not find it in VTK 7.0 package, Could you point out the path again? -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTKWidget-mouse-event-detection-tp1244812p5740905.html Sent from the VTK - Users mailing list archive at Nabble.com. From tjlp at netease.com Sun Oct 23 11:13:14 2016 From: tjlp at netease.com (Liu_tj) Date: Sun, 23 Oct 2016 23:13:14 +0800 (CST) Subject: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? Message-ID: <309cd3ad.d.157f21a54fb.Coremail.tjlp@netease.com> Hi, VTK guys, When I display a vtkCaptionWidget, I want to set the position of the text. So I call the vtkActor2D:;SetPostion() and SetPosition2(), but when the widget is displayed, the text is alway at the left bottom corner, why? Below is my C# code: vtkCaptionRepresentation rep = vtkCaptionRepresentation.New(); rep.GetCaptionActor2D().ThreeDimensionalLeaderOff(); rep.GetCaptionActor2D().GetTextActor().SetTextScaleModeToNone(); rep.GetCaptionActor2D().GetCaptionTextProperty().SetColor(0.0, 1.0, 0.0); rep.GetCaptionActor2D().SetCaption(text); rep.GetCaptionActor2D().GetProperty().SetColor(0.0, 1.0, 0.0); rep.SetAnchorPosition(pointer); rep.GetCaptionActor2D().GetTextActor().SetPosition(textPos1[0], textPos1[1]); rep.GetCaptionActor2D().GetTextActor().SetPosition2(textPos2[0], textPos2[1]); captionWidget.SetRepresentation(rep); m_renderWin.Render(); Thanks Liu Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From satwik.k8 at gmail.com Mon Oct 24 02:01:09 2016 From: satwik.k8 at gmail.com (Satwik) Date: Sun, 23 Oct 2016 23:01:09 -0700 (MST) Subject: [vtkusers] vtkImageSlabReslice Message-ID: <1477288869194-5740908.post@n5.nabble.com> Hi all, I am trying to reproduce double oblique view from the single oblique MPR. I'm facing problem in displaying the Images, when i tried to send the vtkImageSlabReslice output of single oblique MPR to double oblique vtkImageSlabReslice as an input. //code this->m_doubleObliqueReslice->SetInputData(this->m_reslice->GetOutput()); this->m_doubleObliqueReslice->SetResliceAxes(this->m_transform->GetMatrix()); this->m_doubleObliqueReslice->SetInterpolationMode(m_InterpolationMode); this->m_doubleObliqueReslice->Update(); this->m_doubleObliqueOutputImage = this->m_doubleObliqueReslice->GetOutput(); return this->m_doubleObliqueOutputImage; How can i make use of resliced image data as an input to another ImageReslice to produce double Oblique -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageSlabReslice-tp5740908.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Mon Oct 24 09:33:30 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 24 Oct 2016 09:33:30 -0400 Subject: [vtkusers] vtkConnectivityFilter In-Reply-To: References: Message-ID: Is the resolution really reduced, or does it just look more faceted because surface normals have been lost or modified? Try connecting a vtkPolyDataNormals filter after the vtkCleanPolyDataFilter if that is the case. HTH, Cory On Sat, Oct 22, 2016 at 12:11 PM, SM Rolfe wrote: > Hi David, > Thanks! The vtkCleanPolyData filter solves the connectivity issue. It also > looks like it's reducing the resolution of the output mesh significantly. > If it's only deleting the repeated points, I don't think this should be > occurring? > Thanks, > Sara > > On Sat, Oct 22, 2016 at 5:36 AM, David Doria wrote: > >> On Fri, Oct 21, 2016 at 10:42 PM, SM Rolfe wrote: >> >>> Thanks David, I think you're right. When I try using the >>> vtkDataSetSurfaceFilter or vtkExtractEdges I can get a connected surface, >>> but it changes the original mesh points. Do you have any advice on the best >>> way to correct the connectivity without altering these points? I am >>> guessing I could go through each mesh point, look for repeats and add >>> connectivity, but I'm wondering if there's a more efficient way? >>> >>> Thanks for your help, >>> Sara >>> >> >> I think vtkCleanPolyData does that: http://www.vtk.org/Wiki/VTK/Ex >> amples/Cxx/PolyData/CleanPolyData >> >> David >> > > > _______________________________________________ > 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 Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.thompson at kitware.com Mon Oct 24 09:57:24 2016 From: david.thompson at kitware.com (David Thompson) Date: Mon, 24 Oct 2016 09:57:24 -0400 Subject: [vtkusers] vtkConnectivityFilter In-Reply-To: References: Message-ID: <90029D00-8E5F-4186-8792-D7E97E4F70D8@kitware.com> > Is the resolution really reduced, or does it just look more faceted because surface normals have been lost or modified? Try connecting a vtkPolyDataNormals filter after the vtkCleanPolyDataFilter if that is the case. I was thinking it might be because the vtkCleanPolyData filter averages point-scalar values used for coloring when it merges coincident vertices. That makes the mesh appear to lose resolution because it has... there are not as many unique points after coincident vertices are merged. Shy of perturbing coincident points and inserting lots of tiny little triangles to fill the gaps, I don't see a way to get around it and be left with a connected mesh. David > On Sat, Oct 22, 2016 at 12:11 PM, SM Rolfe wrote: > Hi David, > Thanks! The vtkCleanPolyData filter solves the connectivity issue. It also looks like it's reducing the resolution of the output mesh significantly. If it's only deleting the repeated points, I don't think this should be occurring? > Thanks, > Sara > > On Sat, Oct 22, 2016 at 5:36 AM, David Doria wrote: > On Fri, Oct 21, 2016 at 10:42 PM, SM Rolfe wrote: > Thanks David, I think you're right. When I try using the vtkDataSetSurfaceFilter or vtkExtractEdges I can get a connected surface, but it changes the original mesh points. Do you have any advice on the best way to correct the connectivity without altering these points? I am guessing I could go through each mesh point, look for repeats and add connectivity, but I'm wondering if there's a more efficient way? > > Thanks for your help, > Sara > > I think vtkCleanPolyData does that: http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/CleanPolyData > > David > > > _______________________________________________ > 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 > Staff R&D Engineer > Kitware, Inc. > _______________________________________________ > 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 Mon Oct 24 10:19:53 2016 From: david.lonie at kitware.com (David Lonie) Date: Mon, 24 Oct 2016 10:19:53 -0400 Subject: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? In-Reply-To: <309cd3ad.d.157f21a54fb.Coremail.tjlp@netease.com> References: <309cd3ad.d.157f21a54fb.Coremail.tjlp@netease.com> Message-ID: On Sun, Oct 23, 2016 at 11:13 AM, Liu_tj wrote: > Hi, VTK guys, > > When I display a vtkCaptionWidget, I want to set the position of the text. > So I call the vtkActor2D:;SetPostion() and SetPosition2(), but when the > widget is displayed, the text is alway at the left bottom corner, why? > Below is my C# code: > [snip] > rep.GetCaptionActor2D().GetTextActor().SetPosition(textPos1[0], > textPos1[1]); > rep.GetCaptionActor2D().GetTextActor().SetPosition2(textPos2[0], > textPos2[1]); > Try just setting the position of the caption actor itself. When the caption actor renders, it sets the text actor's position. So, rep.GetCaptionActor2D().SetPosition(textPos1[0], textPos1[1]); rep.GetCaptionActor2D().SetPosition2(textPos2[0], textPos2[1]); should get you what you want. HTH, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From tluisrs at gmail.com Mon Oct 24 12:02:34 2016 From: tluisrs at gmail.com (Thales Luis Rodrigues Sabino) Date: Mon, 24 Oct 2016 14:02:34 -0200 Subject: [vtkusers] Email Test Message-ID: Hello Everyone, I just want to know if my emails are being received by the list. I sent an email a while ago but I didn't get a reply. I also posted on a thread but I got the impression that no one received it. Could someone reply to this for my testing purpose? Thanks -- Thales Luis Rodrigues Sabino PhD Student at PGMC-UFJF Lattes | LinkedIn | ResearchGate -------------- next part -------------- An HTML attachment was scrubbed... URL: From dkxls23 at gmail.com Mon Oct 24 12:18:45 2016 From: dkxls23 at gmail.com (Armin Wehrfritz) Date: Mon, 24 Oct 2016 19:18:45 +0300 Subject: [vtkusers] Email Test In-Reply-To: References: Message-ID: <0993a738-ffc6-b727-f15a-32ab468dc280@gmail.com> If you are unsure whether your message made it to the list or not, you can check the archive: http://public.kitware.com/pipermail/vtkusers/ Any message that was distributed over this list should be there. Cheers, Armin On 10/24/2016 07:02 PM, Thales Luis Rodrigues Sabino wrote: > Hello Everyone, > > I just want to know if my emails are being received by the list. > I sent an email a while ago but I didn't get a reply. > I also posted on a thread but I got the impression that no one received it. > > Could someone reply to this for my testing purpose? > > Thanks > > -- > Thales Luis Rodrigues Sabino > > PhD Student at PGMC-UFJF > Lattes | LinkedIn > | ResearchGate > > > > _______________________________________________ > 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 smrolfe at uw.edu Mon Oct 24 14:09:10 2016 From: smrolfe at uw.edu (SM Rolfe) Date: Mon, 24 Oct 2016 11:09:10 -0700 Subject: [vtkusers] vtkConnectivityFilter In-Reply-To: <90029D00-8E5F-4186-8792-D7E97E4F70D8@kitware.com> References: <90029D00-8E5F-4186-8792-D7E97E4F70D8@kitware.com> Message-ID: Thanks, I noticed when I viewed the mesh instead of the surface, that the resolution had not actually changed, but as Cory suggested, the rendered surface just appeared more faceted. Recalculating the surface normals using vtkPolyDataNormals greatly improved the appearance of the surface. Thanks again for your input. On Mon, Oct 24, 2016 at 6:57 AM, David Thompson wrote: > > Is the resolution really reduced, or does it just look more faceted > because surface normals have been lost or modified? Try connecting a > vtkPolyDataNormals filter after the vtkCleanPolyDataFilter if that is the > case. > > I was thinking it might be because the vtkCleanPolyData filter averages > point-scalar values used for coloring when it merges coincident vertices. > That makes the mesh appear to lose resolution because it has... there are > not as many unique points after coincident vertices are merged. Shy of > perturbing coincident points and inserting lots of tiny little triangles to > fill the gaps, I don't see a way to get around it and be left with a > connected mesh. > > David > > > On Sat, Oct 22, 2016 at 12:11 PM, SM Rolfe wrote: > > Hi David, > > Thanks! The vtkCleanPolyData filter solves the connectivity issue. It > also looks like it's reducing the resolution of the output mesh > significantly. If it's only deleting the repeated points, I don't think > this should be occurring? > > Thanks, > > Sara > > > > On Sat, Oct 22, 2016 at 5:36 AM, David Doria > wrote: > > On Fri, Oct 21, 2016 at 10:42 PM, SM Rolfe wrote: > > Thanks David, I think you're right. When I try using the > vtkDataSetSurfaceFilter or vtkExtractEdges I can get a connected surface, > but it changes the original mesh points. Do you have any advice on the best > way to correct the connectivity without altering these points? I am > guessing I could go through each mesh point, look for repeats and add > connectivity, but I'm wondering if there's a more efficient way? > > > > Thanks for your help, > > Sara > > > > I think vtkCleanPolyData does that: http://www.vtk.org/Wiki/VTK/ > Examples/Cxx/PolyData/CleanPolyData > > > > David > > > > > > _______________________________________________ > > 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 > > Staff R&D Engineer > > Kitware, Inc. > > _______________________________________________ > > 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 tjlp at netease.com Tue Oct 25 10:02:09 2016 From: tjlp at netease.com (Liu_tj) Date: Tue, 25 Oct 2016 22:02:09 +0800 (CST) Subject: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? In-Reply-To: References: <309cd3ad.d.157f21a54fb.Coremail.tjlp@netease.com> Message-ID: <4e460a7a.10.157fc25f7f8.Coremail.tjlp@netease.com> Hi, David, I follow your tips. It doesn't work. The text is still displayed at the default position. Thanks Liu Peng ?2016-10-24?"David Lonie" ??? ???:"Liu_tj" ??:"vtkusers" ??:Re: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? On Sun, Oct 23, 2016 at 11:13 AM, Liu_tj wrote: Hi, VTK guys, When I display a vtkCaptionWidget, I want to set the position of the text. So I call the vtkActor2D:;SetPostion() and SetPosition2(), but when the widget is displayed, the text is alway at the left bottom corner, why? Below is my C# code: [snip] rep.GetCaptionActor2D().GetTextActor().SetPosition(textPos1[0], textPos1[1]); rep.GetCaptionActor2D().GetTextActor().SetPosition2(textPos2[0], textPos2[1]); Try just setting the position of the caption actor itself. When the caption actor renders, it sets the text actor's position. So, rep.GetCaptionActor2D().SetPosition(textPos1[0], textPos1[1]); rep.GetCaptionActor2D().SetPosition2(textPos2[0], textPos2[1]); should get you what you want. HTH, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Tue Oct 25 10:16:12 2016 From: david.lonie at kitware.com (David Lonie) Date: Tue, 25 Oct 2016 10:16:12 -0400 Subject: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? In-Reply-To: <4e460a7a.10.157fc25f7f8.Coremail.tjlp@netease.com> References: <309cd3ad.d.157f21a54fb.Coremail.tjlp@netease.com> <4e460a7a.10.157fc25f7f8.Coremail.tjlp@netease.com> Message-ID: Are you also setting the attachment point? From the vtkCaptionActor2D docs: * To use the caption actor, you normally specify the Position and Position2 * coordinates (these are inherited from the vtkActor2D superclass). (Note * that Position2 can be set using vtkActor2D's SetWidth() and SetHeight() * methods.) Position and Position2 define the size of the caption, and a * third point, the AttachmentPoint, defines a point that the caption is * associated with. Also relevant: * The trickiest part about using this class is setting Position, Position2, * and AttachmentPoint correctly. These instance variables are * vtkCoordinates, and can be set up in various ways. In default usage, the * AttachmentPoint is defined in the world coordinate system, Position is the * lower-left corner of the caption and relative to AttachmentPoint (defined * in display coordaintes, i.e., pixels), and Position2 is relative to * Position and is the upper-right corner (also in display * coordinates). HTH, Dave On Tue, Oct 25, 2016 at 10:02 AM, Liu_tj wrote: > Hi, David, > > I follow your tips. It doesn't work. The text is still displayed at the > default position. > > Thanks > Liu Peng > > > > ?2016-10-24?"David Lonie" ??? > > > *???:*"Liu_tj" > *??:*"vtkusers" > *??:*Re: [vtkusers] Why is the text of vtkCaptionWidget displayed at the > default position no matter what position value I set? > > > On Sun, Oct 23, 2016 at 11:13 AM, Liu_tj wrote: > >> Hi, VTK guys, >> >> When I display a vtkCaptionWidget, I want to set the position of the >> text. So I call the vtkActor2D:;SetPostion() and SetPosition2(), but when >> the widget is displayed, the text is alway at the left bottom corner, why? >> Below is my C# code: >> [snip] >> rep.GetCaptionActor2D().GetTextActor().SetPosition(textPos1[0], >> textPos1[1]); >> rep.GetCaptionActor2D().GetTextActor().SetPosition2(textPos2[0], >> textPos2[1]); >> > > Try just setting the position of the caption actor itself. When the > caption actor renders, it sets the text actor's position. So, > > rep.GetCaptionActor2D().SetPosition(textPos1[0], textPos1[1]); > rep.GetCaptionActor2D().SetPosition2(textPos2[0], textPos2[1]); > > should get you what you want. > > HTH, > Dave > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Tue Oct 25 10:18:15 2016 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 25 Oct 2016 10:18:15 -0400 Subject: [vtkusers] Noise appears when extreme zooming in In-Reply-To: References: Message-ID: You can add some code to check the actor bounds against the camera position. In it's simplest form you could do something like if (vtkMath:Distance(actor->GetCenter, camera->GetPosition) < actor->GetLength()) { camera->SetPosition(cam->GetFocalPoint() - camera->DirectionOfProjection*actor->GetLength()*1.1) } Lots of syntax issues above, but that is the idea. On Wed, Oct 19, 2016 at 3:27 PM, Patricio Palma C. wrote: > With vtkInteractorStyleRubberBandZoom::Zoom() I'm having good results, > no noise when getting closer to the structure. However it is easy to go > into the structure. Does VTK provides a way to avoid the camera go into the > visible object? > > Thanks > ? > > On Tue, Oct 18, 2016 at 3:06 PM, Ken Martin > wrote: > >> OK in that case you want to print out the ViewAngle of the camera. It >> could be that the view angle is getting really small leading to some >> issues. >> It might be worth trying to use Dolly instead of Zoom. The difference is >> that Zoom adjust the view angle while Dolly moves the position. >> >> On Tue, Oct 18, 2016 at 1:24 PM, Patricio Palma C. >> wrote: >> >>> Hi Ken, experts >>> >>> I have double checked and the case shown in previous email, do not have >>> coincident geometries. >>> >>> Regarding the interactor, I'm using a custom interactor style (derived >>> from vtkInteractorStyle) that provides a rubber band zoom into the 3D >>> scene. The code shows Dolly() function in custom interactor is calling >>> camera->Zoom(). >>> >>> Regards >>> Patricio >>> >>> >>> On Tue, Oct 18, 2016 at 9:49 AM, Ken Martin >>> wrote: >>> >>>> Are you zooming using one of VTK's interactor styles? or are you >>>> explicitly calling zoom or dolly on the camera? Using dolly() the distance >>>> on the camera should be changing and as you noticed it isn't. >>>> >>>> Since you mentioned you have coincident geometry that can be an issue. >>>> When you have two polygons at the same location the rendering process can >>>> result in a random determination of which is on top. If the coincident >>>> geometry is in two different mappers you can use the >>>> >>>> void SetRelativeCoincidentTopologyPolygonOffsetParameters( >>>> double factor, double units); >>>> >>>> method to move one of the mappers slightly in front of the other. >>>> >>>> >>>> >>>> >>>> >>>> On Tue, Oct 18, 2016 at 1:01 AM, Patricio Palma C. >>> > wrote: >>>> >>>>> Hi Ken, experts, >>>>> >>>>> Thank you for the quick response. >>>>> Regarding point one, SetDiffuse(0.0) was applied to all actors, the >>>>> structure looks darker with no shadows, but the issue still occurs. >>>>> >>>>> About point 2: >>>>> - the actor we use is derived from vtkQuadricLODActor >>>>> - and there are some overlapping geometries >>>>> >>>>> Below is a image of the structure in the beginning. Clipping range, >>>>> position, focal point and distance are shown below >>>>> [image: Inline image 1] >>>>> Debug: Camera clipping range: 3.61282 4.44839 >>>>> Debug: Camera position: -1.93487 2.37646 2.48559 >>>>> Debug: Camera focal point: 0.0543755 -0.0598546 0.0492757 >>>>> Debug: Camera distance: 3.97849 >>>>> Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 >>>>> , 0.05 ] >>>>> >>>>> After zooming in a bit, it appears a soft pattern of lines over the >>>>> face of the structure >>>>> [image: Inline image 2] >>>>> Debug: Camera clipping range: 3.61282 4.44839 >>>>> Debug: Camera position: -1.92875 2.37186 2.4952 >>>>> Debug: Camera focal point: 0.0604954 -0.0644594 0.0588774 >>>>> Debug: Camera distance: 3.97849 >>>>> Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 >>>>> , 0.05 ] >>>>> >>>>> Finally after zooming in a couple of steps more, it appears >>>>> noise/lines over the face. >>>>> [image: Inline image 3] >>>>> Debug: Camera clipping range: 3.61282 4.44839 >>>>> Debug: Camera position: -1.92882 2.37202 2.49498 >>>>> Debug: Camera focal point: 0.0604254 -0.0643013 0.0586621 >>>>> Debug: Camera distance: 3.97849 >>>>> Debug: Bounds : [ -0.100974 , 0.296875 , -0.08 ] [ 0.08 , 0 >>>>> , 0.05 ] >>>>> >>>>> It calls my attention that only position and focal point are being >>>>> updated after zooming in. >>>>> >>>>> Thanks >>>>> Patricio >>>>> >>>>> On Mon, Oct 17, 2016 at 8:21 PM, Ken Martin >>>>> wrote: >>>>> >>>>>> It could be a few things, we would really need more details to narrow >>>>>> it down. Two things you can check >>>>>> >>>>>> 1) maybe a lighting issue, if you change your actors to be only >>>>>> ambient, no diffuse, do you still see the issue? >>>>>> >>>>>> 2) maybe a zbuffer issue, If you zoom too far you can end up with bad >>>>>> (not ideal) zbuffer clipping ranges. To narrow that down >>>>>> - are these Actors or Actor2D, what mapper are you using, >>>>>> ?? >>>>>> do you have overlapping or coincident geometry? >>>>>> - when you see the problem what is the value of >>>>>> ?? >>>>>> - the camera's clipping range >>>>>> - camera's position, and focal point, distance >>>>>> - the bounds of your data >>>>>> >>>>>> Generally you do not want any of those values to be really small or >>>>>> large relative to the square root of the range a float can normally hold. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Mon, Oct 17, 2016 at 5:28 PM, Patricio Palma C. < >>>>>> patriciop at gmail.com> wrote: >>>>>> >>>>>>> Hi experts, does anybody has any idea of what could causing the >>>>>>> issue described in the previous email? >>>>>>> Recently I have noted that something similar occurs on 3D >>>>>>> structures when zooming in extremely to the structure and then rotating it. >>>>>>> It appears a kind of pattern to generate the shadow of the face but as you >>>>>>> rotate the structure the face begin to get noisy. >>>>>>> >>>>>>> My current setup is VTK git development branch using OpenGL2 as >>>>>>> rendering backend. mesa 12.0.1 with AVX. I have also tried using mesa 11.2 >>>>>>> and the results are the same. >>>>>>> >>>>>>> Thanks! >>>>>>> Regards >>>>>>> Patricio >>>>>>> >>>>>>> El Monday, October 3, 2016, Patricio Palma C. >>>>>>> escribi?: >>>>>>> >>>>>>>> Dear Experts >>>>>>>> >>>>>>>> I'm using VTK 7.1 (latest Git version) and Mesa 12.0 with AVX. I >>>>>>>> have an application that display a 2D structure and some data on it. After >>>>>>>> zooming in a couple times in the same spot of the structure it begins to >>>>>>>> appear some noise over the 2D structure that increase after continuing >>>>>>>> zooming in. >>>>>>>> >>>>>>>> Is this a known issue? is there a way to solve/avoid this? >>>>>>>> >>>>>>>> I've attached some pictures showing how the noise appears while >>>>>>>> zooming in. >>>>>>>> >>>>>>>> [image: Inline image 2] >>>>>>>> [image: Inline image 3] >>>>>>>> [image: Inline image 5] >>>>>>>> [image: Inline image 6] >>>>>>>> >>>>>>>> -- >>>>>>>> Patricio Palma Contreras >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Patricio Palma Contreras >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Ken Martin PhD >>>>>> Chairman & CFO >>>>>> Kitware Inc. >>>>>> 28 Corporate Drive >>>>>> Clifton Park NY 12065 >>>>>> 518 371 3971 >>>>>> >>>>>> 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. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Patricio Palma Contreras >>>>> >>>> >>>> >>>> >>>> -- >>>> Ken Martin PhD >>>> Chairman & CFO >>>> Kitware Inc. >>>> 28 Corporate Drive >>>> Clifton Park NY 12065 >>>> 518 371 3971 >>>> >>>> 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. >>>> >>> >>> >>> >>> -- >>> Patricio Palma Contreras >>> >> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> 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. >> > > > > -- > Patricio Palma Contreras > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom3.jpg Type: image/jpeg Size: 66880 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom2.jpg Type: image/jpeg Size: 46634 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step0.jpg Type: image/jpeg Size: 3073 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step1.jpg Type: image/jpeg Size: 2217 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step3.jpg Type: image/jpeg Size: 8251 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: step2.jpg Type: image/jpeg Size: 5141 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: zoom1.jpg Type: image/jpeg Size: 37655 bytes Desc: not available URL: From tjlp at netease.com Tue Oct 25 10:39:50 2016 From: tjlp at netease.com (Liu_tj) Date: Tue, 25 Oct 2016 22:39:50 +0800 (CST) Subject: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? In-Reply-To: References: <309cd3ad.d.157f21a54fb.Coremail.tjlp@netease.com> <4e460a7a.10.157fc25f7f8.Coremail.tjlp@netease.com> Message-ID: <72ee13c2.12.157fc48779c.Coremail.tjlp@netease.com> Hi,David, Yes, I already call rep.SetAnchorPosition(pointer) to set the anchor position, which is also the attachment point. Thanks Liu Peng ?2016-10-25?"David Lonie" ??? -----????----- ???:"David Lonie" ????:2016?10?25? ??? ???:"Liu_tj" ??:"vtkusers" ??:Re: Re: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? Are you also setting the attachment point? From the vtkCaptionActor2D docs: * To use the caption actor, you normally specify the Position and Position2 * coordinates (these are inherited from the vtkActor2D superclass). (Note * that Position2 can be set using vtkActor2D's SetWidth() and SetHeight() * methods.) Position and Position2 define the size of the caption, and a * third point, the AttachmentPoint, defines a point that the caption is * associated with. Also relevant: * The trickiest part about using this class is setting Position, Position2, * and AttachmentPoint correctly. These instance variables are * vtkCoordinates, and can be set up in various ways. In default usage, the * AttachmentPoint is defined in the world coordinate system, Position is the * lower-left corner of the caption and relative to AttachmentPoint (defined * in display coordaintes, i.e., pixels), and Position2 is relative to * Position and is the upper-right corner (also in display * coordinates). HTH, Dave On Tue, Oct 25, 2016 at 10:02 AM, Liu_tj wrote: Hi, David, I follow your tips. It doesn't work. The text is still displayed at the default position. Thanks Liu Peng ?2016-10-24?"David Lonie" ??? ???:"Liu_tj" ??:"vtkusers" ??:Re: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? On Sun, Oct 23, 2016 at 11:13 AM, Liu_tj wrote: Hi, VTK guys, When I display a vtkCaptionWidget, I want to set the position of the text. So I call the vtkActor2D:;SetPostion() and SetPosition2(), but when the widget is displayed, the text is alway at the left bottom corner, why? Below is my C# code: [snip] rep.GetCaptionActor2D().GetTextActor().SetPosition(textPos1[0], textPos1[1]); rep.GetCaptionActor2D().GetTextActor().SetPosition2(textPos2[0], textPos2[1]); Try just setting the position of the caption actor itself. When the caption actor renders, it sets the text actor's position. So, rep.GetCaptionActor2D().SetPosition(textPos1[0], textPos1[1]); rep.GetCaptionActor2D().SetPosition2(textPos2[0], textPos2[1]); should get you what you want. HTH, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Tue Oct 25 10:53:44 2016 From: david.lonie at kitware.com (David Lonie) Date: Tue, 25 Oct 2016 10:53:44 -0400 Subject: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? In-Reply-To: <72ee13c2.12.157fc48779c.Coremail.tjlp@netease.com> References: <309cd3ad.d.157f21a54fb.Coremail.tjlp@netease.com> <4e460a7a.10.157fc25f7f8.Coremail.tjlp@netease.com> <72ee13c2.12.157fc48779c.Coremail.tjlp@netease.com> Message-ID: Hmm...I don't deal with the widget / representation stuff very often, so sorry about the dead ends! It looks like the representation also keeps track of positions and sets them on the caption actor, have you tried rep.SetPosition/rep.SetPosition2? On Tue, Oct 25, 2016 at 10:39 AM, Liu_tj wrote: > Hi,David, > > Yes, I already call rep.SetAnchorPosition(pointer) to set the anchor > position, which is also the attachment point. > > Thanks > Liu Peng > > > ?2016-10-25?"David Lonie" ??? > > -----????----- > *???:*"David Lonie" > *????:*2016?10?25? ??? > *???:*"Liu_tj" > *??:*"vtkusers" > *??:*Re: Re: [vtkusers] Why is the text of vtkCaptionWidget displayed at > the default position no matter what position value I set? > > > Are you also setting the attachment point? From the vtkCaptionActor2D docs: > > * To use the caption actor, you normally specify the Position and > Position2 > * coordinates (these are inherited from the vtkActor2D superclass). (Note > * that Position2 can be set using vtkActor2D's SetWidth() and SetHeight() > * methods.) Position and Position2 define the size of the caption, and a > * third point, the AttachmentPoint, defines a point that the caption is > * associated with. > > Also relevant: > > * The trickiest part about using this class is setting Position, > Position2, > * and AttachmentPoint correctly. These instance variables are > * vtkCoordinates, and can be set up in various ways. In default usage, the > * AttachmentPoint is defined in the world coordinate system, Position is > the > * lower-left corner of the caption and relative to AttachmentPoint > (defined > * in display coordaintes, i.e., pixels), and Position2 is relative to > * Position and is the upper-right corner (also in display > * coordinates). > > HTH, > Dave > > On Tue, Oct 25, 2016 at 10:02 AM, Liu_tj wrote: > >> Hi, David, >> >> I follow your tips. It doesn't work. The text is still displayed at the >> default position. >> >> Thanks >> Liu Peng >> >> >> >> ?2016-10-24?"David Lonie" ??? >> >> >> *???:*"Liu_tj" >> *??:*"vtkusers" >> *??:*Re: [vtkusers] Why is the text of vtkCaptionWidget displayed at the >> default position no matter what position value I set? >> >> >> On Sun, Oct 23, 2016 at 11:13 AM, Liu_tj wrote: >> >>> Hi, VTK guys, >>> >>> When I display a vtkCaptionWidget, I want to set the position of the >>> text. So I call the vtkActor2D:;SetPostion() and SetPosition2(), but when >>> the widget is displayed, the text is alway at the left bottom corner, why? >>> Below is my C# code: >>> [snip] >>> rep.GetCaptionActor2D().GetTextActor().SetPosition(textPos1[0], >>> textPos1[1]); >>> rep.GetCaptionActor2D().GetTextActor().SetPosition2(textPos2[0], >>> textPos2[1]); >>> >> >> Try just setting the position of the caption actor itself. When the >> caption actor renders, it sets the text actor's position. So, >> >> rep.GetCaptionActor2D().SetPosition(textPos1[0], textPos1[1]); >> rep.GetCaptionActor2D().SetPosition2(textPos2[0], textPos2[1]); >> >> should get you what you want. >> >> HTH, >> Dave >> >> >> >> >> > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjlp at netease.com Tue Oct 25 11:43:00 2016 From: tjlp at netease.com (Liu_tj) Date: Tue, 25 Oct 2016 23:43:00 +0800 (CST) Subject: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? In-Reply-To: References: <309cd3ad.d.157f21a54fb.Coremail.tjlp@netease.com> <4e460a7a.10.157fc25f7f8.Coremail.tjlp@netease.com> <72ee13c2.12.157fc48779c.Coremail.tjlp@netease.com> Message-ID: <5790e7af.13.157fc824c41.Coremail.tjlp@netease.com> Hi, David, rep.SetPosition/rep.SetPosition2 works. Thanks you very much! Cool! Thanks Liu Peng ?2016-10-25?"David Lonie" ??? -----????----- ???:"David Lonie" ????:2016?10?25? ??? ???:"Liu_tj" ??:"vtkusers" ??:Re: Re: Re: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? Hmm...I don't deal with the widget / representation stuff very often, so sorry about the dead ends! It looks like the representation also keeps track of positions and sets them on the caption actor, have you tried rep.SetPosition/rep.SetPosition2? On Tue, Oct 25, 2016 at 10:39 AM, Liu_tj wrote: Hi,David, Yes, I already call rep.SetAnchorPosition(pointer) to set the anchor position, which is also the attachment point. Thanks Liu Peng ?2016-10-25?"David Lonie" ??? -----????----- ???:"David Lonie" ????:2016?10?25? ??? ???:"Liu_tj" ??:"vtkusers" ??:Re: Re: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? Are you also setting the attachment point? From the vtkCaptionActor2D docs: * To use the caption actor, you normally specify the Position and Position2 * coordinates (these are inherited from the vtkActor2D superclass). (Note * that Position2 can be set using vtkActor2D's SetWidth() and SetHeight() * methods.) Position and Position2 define the size of the caption, and a * third point, the AttachmentPoint, defines a point that the caption is * associated with. Also relevant: * The trickiest part about using this class is setting Position, Position2, * and AttachmentPoint correctly. These instance variables are * vtkCoordinates, and can be set up in various ways. In default usage, the * AttachmentPoint is defined in the world coordinate system, Position is the * lower-left corner of the caption and relative to AttachmentPoint (defined * in display coordaintes, i.e., pixels), and Position2 is relative to * Position and is the upper-right corner (also in display * coordinates). HTH, Dave On Tue, Oct 25, 2016 at 10:02 AM, Liu_tj wrote: Hi, David, I follow your tips. It doesn't work. The text is still displayed at the default position. Thanks Liu Peng ?2016-10-24?"David Lonie" ??? ???:"Liu_tj" ??:"vtkusers" ??:Re: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? On Sun, Oct 23, 2016 at 11:13 AM, Liu_tj wrote: Hi, VTK guys, When I display a vtkCaptionWidget, I want to set the position of the text. So I call the vtkActor2D:;SetPostion() and SetPosition2(), but when the widget is displayed, the text is alway at the left bottom corner, why? Below is my C# code: [snip] rep.GetCaptionActor2D().GetTextActor().SetPosition(textPos1[0], textPos1[1]); rep.GetCaptionActor2D().GetTextActor().SetPosition2(textPos2[0], textPos2[1]); Try just setting the position of the caption actor itself. When the caption actor renders, it sets the text actor's position. So, rep.GetCaptionActor2D().SetPosition(textPos1[0], textPos1[1]); rep.GetCaptionActor2D().SetPosition2(textPos2[0], textPos2[1]); should get you what you want. HTH, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Tue Oct 25 11:51:14 2016 From: david.lonie at kitware.com (David Lonie) Date: Tue, 25 Oct 2016 11:51:14 -0400 Subject: [vtkusers] Why is the text of vtkCaptionWidget displayed at the default position no matter what position value I set? In-Reply-To: <5790e7af.13.157fc824c41.Coremail.tjlp@netease.com> References: <309cd3ad.d.157f21a54fb.Coremail.tjlp@netease.com> <4e460a7a.10.157fc25f7f8.Coremail.tjlp@netease.com> <72ee13c2.12.157fc48779c.Coremail.tjlp@netease.com> <5790e7af.13.157fc824c41.Coremail.tjlp@netease.com> Message-ID: Great! Glad we figured it out :) Dave On Tue, Oct 25, 2016 at 11:43 AM, Liu_tj wrote: > Hi, David, > > rep.SetPosition/rep.SetPosition2 works. Thanks you very much! Cool! > > Thanks > Liu Peng > > > > ?2016-10-25?"David Lonie" ??? > > -----????----- > *???:*"David Lonie" > *????:*2016?10?25? ??? > *???:*"Liu_tj" > *??:*"vtkusers" > *??:*Re: Re: Re: [vtkusers] Why is the text of vtkCaptionWidget displayed > at the default position no matter what position value I set? > > > Hmm...I don't deal with the widget / representation stuff very often, so > sorry about the dead ends! > > It looks like the representation also keeps track of positions and sets > them on the caption actor, have you tried rep.SetPosition/rep. > SetPosition2? > > On Tue, Oct 25, 2016 at 10:39 AM, Liu_tj wrote: > >> Hi,David, >> >> Yes, I already call rep.SetAnchorPosition(pointer) to set the anchor >> position, which is also the attachment point. >> >> Thanks >> Liu Peng >> >> >> ?2016-10-25?"David Lonie" ??? >> >> -----????----- >> *???:*"David Lonie" >> *????:*2016?10?25? ??? >> *???:*"Liu_tj" >> *??:*"vtkusers" >> *??:*Re: Re: [vtkusers] Why is the text of vtkCaptionWidget displayed at >> the default position no matter what position value I set? >> >> >> Are you also setting the attachment point? From the vtkCaptionActor2D >> docs: >> >> * To use the caption actor, you normally specify the Position and >> Position2 >> * coordinates (these are inherited from the vtkActor2D superclass). (Note >> * that Position2 can be set using vtkActor2D's SetWidth() and SetHeight() >> * methods.) Position and Position2 define the size of the caption, and a >> * third point, the AttachmentPoint, defines a point that the caption is >> * associated with. >> >> Also relevant: >> >> * The trickiest part about using this class is setting Position, >> Position2, >> * and AttachmentPoint correctly. These instance variables are >> * vtkCoordinates, and can be set up in various ways. In default usage, >> the >> * AttachmentPoint is defined in the world coordinate system, Position is >> the >> * lower-left corner of the caption and relative to AttachmentPoint >> (defined >> * in display coordaintes, i.e., pixels), and Position2 is relative to >> * Position and is the upper-right corner (also in display >> * coordinates). >> >> HTH, >> Dave >> >> On Tue, Oct 25, 2016 at 10:02 AM, Liu_tj wrote: >> >>> Hi, David, >>> >>> I follow your tips. It doesn't work. The text is still displayed at the >>> default position. >>> >>> Thanks >>> Liu Peng >>> >>> >>> >>> ?2016-10-24?"David Lonie" ??? >>> >>> >>> *???:*"Liu_tj" >>> *??:*"vtkusers" >>> *??:*Re: [vtkusers] Why is the text of vtkCaptionWidget displayed at >>> the default position no matter what position value I set? >>> >>> >>> On Sun, Oct 23, 2016 at 11:13 AM, Liu_tj wrote: >>> >>>> Hi, VTK guys, >>>> >>>> When I display a vtkCaptionWidget, I want to set the position of the >>>> text. So I call the vtkActor2D:;SetPostion() and SetPosition2(), but when >>>> the widget is displayed, the text is alway at the left bottom corner, why? >>>> Below is my C# code: >>>> [snip] >>>> rep.GetCaptionActor2D().GetTextActor().SetPosition(textPos1[0], >>>> textPos1[1]); >>>> rep.GetCaptionActor2D().GetTextActor().SetPosition2(textPos2[0], >>>> textPos2[1]); >>>> >>> >>> Try just setting the position of the caption actor itself. When the >>> caption actor renders, it sets the text actor's position. So, >>> >>> rep.GetCaptionActor2D().SetPosition(textPos1[0], textPos1[1]); >>> rep.GetCaptionActor2D().SetPosition2(textPos2[0], textPos2[1]); >>> >>> should get you what you want. >>> >>> HTH, >>> Dave >>> >>> >>> >>> >>> >> >> >> >> >> > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjlp at netease.com Tue Oct 25 12:17:41 2016 From: tjlp at netease.com (Liu_tj) Date: Wed, 26 Oct 2016 00:17:41 +0800 (CST) Subject: [vtkusers] how to prevent the point using vtkHandleWidget being moved out of a 3D model? Message-ID: <330d37cd.15.157fca20e9b.Coremail.tjlp@netease.com> Hi, I want to draw a point on a 3D model generated from DICOM files. I use vtkHandleWidget and add PointPlacer. vtkHandleWidget handleWidget = vtkHandleWidget.New(); handleWidget.SetInteractor(m_renderWin.GetInteractor()); vtkSphereHandleRepresentation vtkHandleRepr = vtkSphereHandleRepresentation.New(); vtkHandleRepr.SetHandleSize(5.0); vtkHandleRepr.GetProperty().SetColor(1.0, 0.0, 0.0); vtkHandleRepr.SetSphereRadius(5); vtkHandleRepr.SetRenderer(m_renderer); vtkCellCentersPointPlacer pointPlacer = vtkCellCentersPointPlacer.New(); pointPlacer.AddProp(m_actor); vtkHandleRepr.SetPointPlacer(pointPlacer); vtkHandleRepr.SetWorldPosition(pointer); handleWidget.SetRepresentation(vtkHandleRepr); handleWidget.On(); m_renderWin.Render(); When I firstly select a posistion for this point, I can only select the position on the 3D model. After the point is drawed, when I try to move it, it can be moved out of the 3D model. It seems that the pointplacer does not work. How to solve it? Thanks Liu Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From rickfrank at me.com Tue Oct 25 12:30:24 2016 From: rickfrank at me.com (Richard Frank) Date: Tue, 25 Oct 2016 16:30:24 +0000 (GMT) Subject: [vtkusers] vtkImageReslice rotation when not about center of image. Message-ID: <3b4d9230-4549-4239-bf51-5d5b1c5527c0@me.com> Hi I'm trying to modify the vtkExample to use vtkImageReslice about a point not at the center of the volume. A link to my code is below, which is the Cxx folder from the Imaging Examples, with modifications to the ImageSlicing sub project. https://1drv.ms/f/s!AvWAuQy-GUrmgyOyOKmDWSHhZUPk Also, here is a link to my input data, a small mha file which is easy to see: https://1drv.ms/u/s!AvWAuQy-GUrmg0YOY0ql2vr1StOU if you load the file, you will see an axial view. The volume has an origin of (0,0,0). I compute the center of the volume, and then position the actor on that center point (actors are positioned by the center point). This is analogous to what our application under development does - we position the slice actor in world coordinates using the DICOM Image Position Patient at the top left (depending on orientation) + center offset of the volume. In my example code, when you load up for the first time and left click, and "rotate" with the mouse, I draw an angle widget for your convenience whose joint is on the center of rotation. I compute the matrix for the rotation, and set that in the reslice matrix, followed by? the origin. This works perfectly, and the slice rotates about its center. If you right click, you will change the ctr of rotation in world coordinates. ImageReslice->SetResliceAxesOrigin(rotationCenter[0], rotationCenter[1], rotationCenter[2]); When you then rotate with left mouse, the angle widget joint is in the correct place in the view but? the the image rotates about a point which I can't quite determine. The new center of rotation that the reslice uses seem to be proportionally related to how far away from the center of the image that is right clicked on - the closer to the center of the slice clicked, the less the center of rotation moves away from the click. It seems like there's something I'm missing about how the center of rotation works. Any help appreciated. Thanks Rick -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Tue Oct 25 15:33:56 2016 From: sean at rogue-research.com (Sean McBride) Date: Tue, 25 Oct 2016 15:33:56 -0400 Subject: [vtkusers] [vtk-developers] VTK 7.1.0 release candidates started In-Reply-To: References: Message-ID: <20161025193356.1733265788@mail.rogue-research.com> On Fri, 14 Oct 2016 12:25:32 -0400, David E DeMarle said: >Just a quick note to let you know that 7.1.0 is approaching. >Read all about it here. > >https://blog.kitware.com/vtk-7-1-0-enters-release-candidate-cycle/ Is there a plan/schedule? When is rc2? When is release? (Just trying to get a rough idea so that I can plan accordingly.) We have not found any issues in rc1 so far. 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 dave.demarle at kitware.com Tue Oct 25 15:53:39 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 25 Oct 2016 15:53:39 -0400 Subject: [vtkusers] [vtk-developers] VTK 7.1.0 release candidates started In-Reply-To: <20161025193356.1733265788@mail.rogue-research.com> References: <20161025193356.1733265788@mail.rogue-research.com> Message-ID: Chuck and I are looking at the merge requests and issues this week. Planning to make .rc2 Friday. Two to three weeks after, will do either .rc3 or .0, but leaning heavily to .0. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Oct 25, 2016 at 3:33 PM, Sean McBride wrote: > On Fri, 14 Oct 2016 12:25:32 -0400, David E DeMarle said: > > >Just a quick note to let you know that 7.1.0 is approaching. > >Read all about it here. > > > >https://blog.kitware.com/vtk-7-1-0-enters-release-candidate-cycle/ > > Is there a plan/schedule? When is rc2? When is release? (Just trying to > get a rough idea so that I can plan accordingly.) > > We have not found any issues in rc1 so far. > > 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 tluisrs at gmail.com Tue Oct 25 18:34:59 2016 From: tluisrs at gmail.com (Thales Sabino) Date: Tue, 25 Oct 2016 20:34:59 -0200 Subject: [vtkusers] Email Test In-Reply-To: <0993a738-ffc6-b727-f15a-32ab468dc280@gmail.com> References: <0993a738-ffc6-b727-f15a-32ab468dc280@gmail.com> Message-ID: Thanks for the replies. Now I know there is nothing wrong with my email server and client. ? Thales Luis Rodrigues Sabino PhD Student at PGMC-UFJF Lattes | LinkedIn | ResearchGate > On 24 Oct 2016, at 14:18, Armin Wehrfritz wrote: > > If you are unsure whether your message made it to the list or not, you > can check the archive: > http://public.kitware.com/pipermail/vtkusers/ > > Any message that was distributed over this list should be there. > > Cheers, > Armin > > > > > On 10/24/2016 07:02 PM, Thales Luis Rodrigues Sabino wrote: >> Hello Everyone, >> >> I just want to know if my emails are being received by the list. >> I sent an email a while ago but I didn't get a reply. >> I also posted on a thread but I got the impression that no one received it. >> >> Could someone reply to this for my testing purpose? >> >> Thanks >> >> -- >> Thales Luis Rodrigues Sabino >> >> PhD Student at PGMC-UFJF >> Lattes | LinkedIn >> | ResearchGate >> >> >> >> _______________________________________________ >> 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 f.nellmeldin at open-engineering.com Wed Oct 26 06:23:53 2016 From: f.nellmeldin at open-engineering.com (Fernando Nellmeldin) Date: Wed, 26 Oct 2016 12:23:53 +0200 Subject: [vtkusers] SetActiveVectors when there are many pipelines that use different arrays Message-ID: Hello. I would like to show the deformed mesh of a model based on the values of a point data array of dimension 3 (vectorial data). I have the following pipeline: UnstructuredGrid1 -> WarpVector -> GeometryFilter -> ExtractEdges -> PolyDataMapper -> Actor In the WarpVector, I call to say which array to use WarpVector->SetInputArrayToProcess(0,0,0, FIELD_ASSOCIATION_POINTS,"nameOfArray"); The first time I load the actor in screen, everything is OK. Later, I would like to mirror the input UnstructuredGrid1 because it represents half the model. So I do the following: UnstructuredGrid1 -> ReflectionFilter -> UnstructuredGrid2 {UnstructuredGrid1, UnstructuredGrid2} -> AppendFilter -> UnstructuredGridFull Then, I replace the input of WarpVector by UnstructuredGridFull, and I reload the actor. However, what I see on screen is the same deformed mesh than before, plus another deformed mesh that is not its mirror, it's something different and not correct, of course. If, however, I call: At the beginning: UnstructuredGrid1->GetPointData()->SetActiveVectors("nameOfArray"); After I did the mirroring: UnstructuredGridFull->GetPointData()->SetActiveVectors("nameOfArray"); I don't have the problem and everything works OK. Problem is, I don't want to call setActiveVectors because I can have more than one pipeline that makes uses of the same UnstructuredGrid with different vectorial data, and I noticed that each call to setActive* will modify all the pipelines that makes use of the Scalars/Vectors/Tensors. So this doesn't seem an option. What is the alternative to use here to solve the problem? I tried with vtkAssignAttributes but didn't work. vtkSmartPointer aa = vtkSmartPointer::New(); aa->SetInput(UnstructuredGridFull); aa->Assign("nameOfArray", vtkDataSetAttributes::VECTORS,vtkAssignAttribute::POINT_DATA); aa->Update(); And then: AssignAttribute -> WarpVector instead of UnstructuredGridFull -> WarpVector. but same result... Thank you. -- *Fernando NELLMELDIN* Software Engineer *_______________________________________________________________* *Open Engineering s.a.* Rue Bois Saint-Jean 15/1 B-4102 Seraing (Belgium) Tel: +32.4.353.30.34 http://www.open-engineering.com https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym *_________________________________________________________________________* -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Wed Oct 26 09:13:07 2016 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 26 Oct 2016 09:13:07 -0400 Subject: [vtkusers] Scalars and diffuse lighting In-Reply-To: <72e219ee44ff48708d4fa28521f9be7b@balgrist.ch> References: <1476365307324-5740758.post@n5.nabble.com> <72e219ee44ff48708d4fa28521f9be7b@balgrist.ch> Message-ID: It sounds like something is stuck in a bad state. You could try marking the property modified after you turn the scalar visibility back off. ala actor.GetProperty().Modified(); if that doesn't fix it then you could also try forcing the mapper to rebuild by doing something like mapper->GetInput()->Modified(); last resort also turn off InterpolateScalarsBeforeMapping and call actor->ReleaseGraphicsResources(renderWindow); Hope one of those works for you. Thanks Ken On Fri, Oct 14, 2016 at 4:11 AM, CARD Student wrote: > Hi Ken > > > My issue is the following: I have an OpenGl Actor, created like this: > > > var mapper = vtkPolyDataMapper.New(); > mapper.SetInput(polyData); > mapper.ImmediateModeRenderingOn(); > > var actor = vtkActor.New(); > actor.SetProperty(vtkProperty.New()); > actor.GetProperty().SetColor(0.5, 0.5, 0.5); > actor.GetProperty().SetInterpolationToFlat(); > actor.GetProperty().SetAmbient(0.45); > actor.GetProperty().SetDiffuse(0.55); > > > At this point, the model looks like this: > > > > > Then scalars get added: > > > polyData.GetPointData().AddArray(data); > polyData.GetPointData().SetActiveScalars("name"); > actor.GetMapper().SetScalarMode(1); // this is > VTK_SCALAR_MODE_USE_POINT_DATA > actor.GetMapper().SetInterpolateScalarsBeforeMapping(1); > actor.GetMapper().SetScalarVisibility(1); > > Then it looks like this (which is fine): > > > > To disable the scalars again, we do the following: > > actor.GetMapper().SetScalarVisibility(0); > > But now, the orignial color is rendered brighter, like this: > > > So my question is, how can I get back to the original state (with the > darker grey)? I'm stuck using VTK 5.8 since we use the free Kitware ActiViz > C# wrapper. After some googling I suspected that my problem is related to > the thread I answered to, but any help is appreciated. > > I tried messing with the scalars material mode, resetting the scalars > using 'polyData.GetPointData().GetScalars().Reset();' and resetting the > diffuse lighting to 0.55. None of which helped. The current workaround is > to have separate PolyDataMappers, one with the original state, and another > where scalars are never set to active. And instead of showing and hiding > scalars, we swap the mapper. But this seems like a hack... > > Best regards, > Frederik > > ------------------------------ > *Von:* Ken Martin > *Gesendet:* Donnerstag, 13. Oktober 2016 17:22 > *An:* CARD Student > *Cc:* vtk > *Betreff:* Re: [vtkusers] Scalars and diffuse lighting > > I am not completely following your issue. But .. if you are using VTK with > the OpenGL2 back end then the diffuse is based the actor's property when > scalars are not visible. Note that colors and intensity in the actor's > property cover a range of 0.0 to 1.0 not 0.0 to 255.0. If you can explain > your problem a bit more specifically, including what version of VTK you are > using and what rendering backend, the I might be able to help more. > > Thanks > Ken > > > On Thu, Oct 13, 2016 at 9:28 AM, Zivi, Der > wrote: > >> Hi David >> >> Sorry for digging out this ancient post, but I'm now having the same >> problem. >> >> More specifically, I don't mind that the diffuse coefficient is 1 when >> scalars are shown. But at some point the scalar visibility is reset to 0, >> but the diffues coefficient stays at 1. How can I switch back to using the >> diffuse coefficient set in the actor properties? >> >> Because the diffuse coefficient is only set to 1 once the active scalar is >> set, and there is no reset method... >> >> Frederik >> >> >> >> -- >> View this message in context: http://vtk.1045678.n5.nabble.c >> om/Scalars-and-diffuse-lighting-tp4298628p5740758.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 >> > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: scalars.PNG Type: image/png Size: 59898 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: after.PNG Type: image/png Size: 14515 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: before.PNG Type: image/png Size: 17654 bytes Desc: not available URL: From dan.lipsa at kitware.com Wed Oct 26 09:40:36 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Wed, 26 Oct 2016 09:40:36 -0400 Subject: [vtkusers] SetActiveVectors when there are many pipelines that use different arrays In-Reply-To: References: Message-ID: Fernando, Can you try vtkPassArray to pass the proper vector array to each of your pipelines? Then you can set the active vector on the output of this algorithm. Dan On Wed, Oct 26, 2016 at 6:23 AM, Fernando Nellmeldin < f.nellmeldin at open-engineering.com> wrote: > Hello. > I would like to show the deformed mesh of a model based on the values of a > point data array of dimension 3 (vectorial data). > > I have the following pipeline: > UnstructuredGrid1 -> WarpVector -> GeometryFilter -> ExtractEdges -> > PolyDataMapper -> Actor > In the WarpVector, I call to say which array to use > WarpVector->SetInputArrayToProcess(0,0,0, FIELD_ASSOCIATION_POINTS," > nameOfArray"); > > The first time I load the actor in screen, everything is OK. > > Later, I would like to mirror the input UnstructuredGrid1 because it > represents half the model. So I do the following: > UnstructuredGrid1 -> ReflectionFilter -> UnstructuredGrid2 > {UnstructuredGrid1, UnstructuredGrid2} -> AppendFilter -> > UnstructuredGridFull > > Then, I replace the input of WarpVector by UnstructuredGridFull, and I > reload the actor. > However, what I see on screen is the same deformed mesh than before, plus > another deformed mesh that is not its mirror, it's something different and > not correct, of course. > > If, however, I call: > At the beginning: UnstructuredGrid1->GetPointData()-> > SetActiveVectors("nameOfArray"); > After I did the mirroring: UnstructuredGridFull->GetPointData()-> > SetActiveVectors("nameOfArray"); > I don't have the problem and everything works OK. > > Problem is, I don't want to call setActiveVectors because I can have more > than one pipeline that makes uses of the same UnstructuredGrid with > different vectorial data, and I noticed that each call to setActive* will > modify all the pipelines that makes use of the Scalars/Vectors/Tensors. So > this doesn't seem an option. > > What is the alternative to use here to solve the problem? > > I tried with vtkAssignAttributes but didn't work. > vtkSmartPointer aa = vtkSmartPointer< > vtkAssignAttribute>::New(); > aa->SetInput(UnstructuredGridFull); > aa->Assign("nameOfArray", vtkDataSetAttributes::VECTORS, > vtkAssignAttribute::POINT_DATA); > aa->Update(); > > And then: > AssignAttribute -> WarpVector instead of UnstructuredGridFull -> > WarpVector. > but same result... > > Thank you. > > -- > *Fernando NELLMELDIN* > Software Engineer > *_______________________________________________________________* > > *Open Engineering s.a.* > > Rue Bois Saint-Jean 15/1 > B-4102 Seraing (Belgium) > Tel: +32.4.353.30.34 > > http://www.open-engineering.com > https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym > > *_________________________________________________________________________* > > _______________________________________________ > 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 f.nellmeldin at open-engineering.com Wed Oct 26 10:44:42 2016 From: f.nellmeldin at open-engineering.com (Fernando Nellmeldin) Date: Wed, 26 Oct 2016 16:44:42 +0200 Subject: [vtkusers] SetActiveVectors when there are many pipelines that use different arrays In-Reply-To: References: Message-ID: Hello and thank you for your reply! After your suggestion, I tried using vtkPassArray, but I can't find how to set the Active Vectors. The output is a vtkDataObject*, which of course doesn't have the PointsData and therefore no setActiveVectors. The result is the same as before, when I change the input to Full, I see the wrong deformed mesh. This is my modified code: // given that model is first an UnstructuredGrid1 and then UnstructuredGridFull vtkSmartPointer passArrays = vtkSmartPointer::New(); passArrays->SetInput(model); passArrays->UseFieldTypesOn(); // restrict to only pass what I say passArrays->AddFieldType(vtkDataObject::POINT); passArrays->AddArray(fieldType, "nameOfArray"); passArrays->Update(); //warping vector is a vtkWarpVector warpingVector->SetInputConnection(passArrays->GetProducerPort()); warpingVector->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, "nameOfArray"); // I don't know why this line is needed to see something // the rest of the pipeline is the same... Am I missing something? Thank you. On 26 October 2016 at 15:40, Dan Lipsa wrote: > Fernando, > Can you try vtkPassArray to pass the proper vector array to each of your > pipelines? Then you can set the active vector on the output of this > algorithm. > > Dan > > > On Wed, Oct 26, 2016 at 6:23 AM, Fernando Nellmeldin engineering.com> wrote: > >> Hello. >> I would like to show the deformed mesh of a model based on the values of >> a point data array of dimension 3 (vectorial data). >> >> I have the following pipeline: >> UnstructuredGrid1 -> WarpVector -> GeometryFilter -> ExtractEdges -> >> PolyDataMapper -> Actor >> In the WarpVector, I call to say which array to use >> WarpVector->SetInputArrayToProcess(0,0,0, FIELD_ASSOCIATION_POINTS,"name >> OfArray"); >> >> The first time I load the actor in screen, everything is OK. >> >> Later, I would like to mirror the input UnstructuredGrid1 because it >> represents half the model. So I do the following: >> UnstructuredGrid1 -> ReflectionFilter -> UnstructuredGrid2 >> {UnstructuredGrid1, UnstructuredGrid2} -> AppendFilter -> >> UnstructuredGridFull >> >> Then, I replace the input of WarpVector by UnstructuredGridFull, and I >> reload the actor. >> However, what I see on screen is the same deformed mesh than before, plus >> another deformed mesh that is not its mirror, it's something different and >> not correct, of course. >> >> If, however, I call: >> At the beginning: UnstructuredGrid1->GetPointData()->SetActiveVectors(" >> nameOfArray"); >> After I did the mirroring: UnstructuredGridFull->GetPoint >> Data()->SetActiveVectors("nameOfArray"); >> I don't have the problem and everything works OK. >> >> Problem is, I don't want to call setActiveVectors because I can have more >> than one pipeline that makes uses of the same UnstructuredGrid with >> different vectorial data, and I noticed that each call to setActive* will >> modify all the pipelines that makes use of the Scalars/Vectors/Tensors. So >> this doesn't seem an option. >> >> What is the alternative to use here to solve the problem? >> >> I tried with vtkAssignAttributes but didn't work. >> vtkSmartPointer aa = vtkSmartPointer> bute>::New(); >> aa->SetInput(UnstructuredGridFull); >> aa->Assign("nameOfArray", vtkDataSetAttributes::VECTORS, >> vtkAssignAttribute::POINT_DATA); >> aa->Update(); >> >> And then: >> AssignAttribute -> WarpVector instead of UnstructuredGridFull -> >> WarpVector. >> but same result... >> >> Thank you. >> >> -- >> *Fernando NELLMELDIN* >> Software Engineer >> *_______________________________________________________________* >> >> *Open Engineering s.a.* >> >> Rue Bois Saint-Jean 15/1 >> B-4102 Seraing (Belgium) >> Tel: +32.4.353.30.34 >> >> http://www.open-engineering.com >> https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym >> >> >> *_________________________________________________________________________* >> >> _______________________________________________ >> 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 >> >> > -- *Fernando NELLMELDIN* Software Engineer *_______________________________________________________________* *Open Engineering s.a.* Rue Bois Saint-Jean 15/1 B-4102 Seraing (Belgium) Tel: +32.4.353.30.34 http://www.open-engineering.com https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym *_________________________________________________________________________* -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Wed Oct 26 10:54:41 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Wed, 26 Oct 2016 10:54:41 -0400 Subject: [vtkusers] SetActiveVectors when there are many pipelines that use different arrays In-Reply-To: References: Message-ID: Can you cast the data object to an unstructured grid and then set the active vector on it? Make sure you call update before you do that. Dan On Wed, Oct 26, 2016 at 10:44 AM, Fernando Nellmeldin < f.nellmeldin at open-engineering.com> wrote: > Hello and thank you for your reply! > > After your suggestion, I tried using vtkPassArray, but I can't find how to > set the Active Vectors. The output is a vtkDataObject*, which of course > doesn't have the PointsData and therefore no setActiveVectors. > The result is the same as before, when I change the input to Full, I see > the wrong deformed mesh. > > This is my modified code: > > // given that model is first an UnstructuredGrid1 and then > UnstructuredGridFull > vtkSmartPointer passArrays = vtkSmartPointer > ::New(); > passArrays->SetInput(model); > passArrays->UseFieldTypesOn(); // restrict to only pass what I say > passArrays->AddFieldType(vtkDataObject::POINT); > passArrays->AddArray(fieldType, "nameOfArray"); > passArrays->Update(); > > //warping vector is a vtkWarpVector > warpingVector->SetInputConnection(passArrays->GetProducerPort()); > warpingVector->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, > "nameOfArray"); // I don't know why this line is needed to see something > // the rest of the pipeline is the same... > > Am I missing something? > > Thank you. > > > > On 26 October 2016 at 15:40, Dan Lipsa wrote: > >> Fernando, >> Can you try vtkPassArray to pass the proper vector array to each of your >> pipelines? Then you can set the active vector on the output of this >> algorithm. >> >> Dan >> >> >> On Wed, Oct 26, 2016 at 6:23 AM, Fernando Nellmeldin < >> f.nellmeldin at open-engineering.com> wrote: >> >>> Hello. >>> I would like to show the deformed mesh of a model based on the values of >>> a point data array of dimension 3 (vectorial data). >>> >>> I have the following pipeline: >>> UnstructuredGrid1 -> WarpVector -> GeometryFilter -> ExtractEdges -> >>> PolyDataMapper -> Actor >>> In the WarpVector, I call to say which array to use >>> WarpVector->SetInputArrayToProcess(0,0,0, FIELD_ASSOCIATION_POINTS,"name >>> OfArray"); >>> >>> The first time I load the actor in screen, everything is OK. >>> >>> Later, I would like to mirror the input UnstructuredGrid1 because it >>> represents half the model. So I do the following: >>> UnstructuredGrid1 -> ReflectionFilter -> UnstructuredGrid2 >>> {UnstructuredGrid1, UnstructuredGrid2} -> AppendFilter -> >>> UnstructuredGridFull >>> >>> Then, I replace the input of WarpVector by UnstructuredGridFull, and I >>> reload the actor. >>> However, what I see on screen is the same deformed mesh than before, >>> plus another deformed mesh that is not its mirror, it's something different >>> and not correct, of course. >>> >>> If, however, I call: >>> At the beginning: UnstructuredGrid1->GetPointDat >>> a()->SetActiveVectors("nameOfArray"); >>> After I did the mirroring: UnstructuredGridFull->GetPoint >>> Data()->SetActiveVectors("nameOfArray"); >>> I don't have the problem and everything works OK. >>> >>> Problem is, I don't want to call setActiveVectors because I can have >>> more than one pipeline that makes uses of the same UnstructuredGrid with >>> different vectorial data, and I noticed that each call to setActive* will >>> modify all the pipelines that makes use of the Scalars/Vectors/Tensors. So >>> this doesn't seem an option. >>> >>> What is the alternative to use here to solve the problem? >>> >>> I tried with vtkAssignAttributes but didn't work. >>> vtkSmartPointer aa = vtkSmartPointer>> bute>::New(); >>> aa->SetInput(UnstructuredGridFull); >>> aa->Assign("nameOfArray", vtkDataSetAttributes::VECTORS, >>> vtkAssignAttribute::POINT_DATA); >>> aa->Update(); >>> >>> And then: >>> AssignAttribute -> WarpVector instead of UnstructuredGridFull -> >>> WarpVector. >>> but same result... >>> >>> Thank you. >>> >>> -- >>> *Fernando NELLMELDIN* >>> Software Engineer >>> *_______________________________________________________________* >>> >>> *Open Engineering s.a.* >>> >>> Rue Bois Saint-Jean 15/1 >>> B-4102 Seraing (Belgium) >>> Tel: +32.4.353.30.34 >>> >>> http://www.open-engineering.com >>> https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym >>> >>> >>> *_________________________________________________________________________* >>> >>> _______________________________________________ >>> 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 >>> >>> >> > > > -- > *Fernando NELLMELDIN* > Software Engineer > *_______________________________________________________________* > > *Open Engineering s.a.* > > Rue Bois Saint-Jean 15/1 > B-4102 Seraing (Belgium) > Tel: +32.4.353.30.34 > > http://www.open-engineering.com > https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym > > *_________________________________________________________________________* > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mfaieghi at westerneng.ca Wed Oct 26 10:27:10 2016 From: mfaieghi at westerneng.ca (Reza Faieghi) Date: Wed, 26 Oct 2016 10:27:10 -0400 Subject: [vtkusers] How to write into VTK vertex buffer object from an OpenCL kernel Message-ID: Hello, My code generates a massive polygonal data through an openCL kernel. For rendering purposes, this data copies from GPU memory to host memory. Afterward, there are regular VTK codes to create an unstructured grid, passing data into the renderer and display them. However, the data transfers between device and host memories are time-consuming. In order to speed up the code, I want to pass the polygonal data directly from the openCL kernel to vertex buffer object. I am wondering is there any way that I can bridge between openCL and openGL part of the VTK renderer? I assume that I will need to make few changes in openGL commands like glDrawArrays. I also need to make a few changes in vertex shader just to make sure that the renderer works fine with my data. Other than, the rest of shaders should remain unchanged. Is it possible to access the shaders and make the above changes? I would really appreciate it if you could help me with this. Best Regards, Reza Faieghi -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Oct 26 11:51:44 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 26 Oct 2016 09:51:44 -0600 Subject: [vtkusers] vtkImageReslice rotation when not about center of image. In-Reply-To: <3b4d9230-4549-4239-bf51-5d5b1c5527c0@me.com> References: <3b4d9230-4549-4239-bf51-5d5b1c5527c0@me.com> Message-ID: Hi Rick, I cannot recommend using SetResliceAxesOrigin() to set the center of rotation. Instead, it's best to build the 4x4 matrix that does the transformation that you need, and call SetResliceAxes(matrix). For rotation around a point, you need a matrix that translates the center-of-rotation to (0,0,0), applies a rotation about (0,0,0), and then translates back again. - David On Tue, Oct 25, 2016 at 10:30 AM, Richard Frank wrote: > Hi > > I'm trying to modify the vtkExample to use vtkImageReslice about a point > not at the center of the volume. > > A link to my code is below, which is the Cxx folder from the Imaging > Examples, with modifications to the ImageSlicing sub project. > > > https://1drv.ms/f/s!AvWAuQy-GUrmgyOyOKmDWSHhZUPk > > Also, here is a link to my input data, a small mha file which is easy to > see: > > https://1drv.ms/u/s!AvWAuQy-GUrmg0YOY0ql2vr1StOU > > if you load the file, you will see an axial view. The volume has an origin > of (0,0,0). I compute the center of the volume, and then position the actor > on that center point (actors are positioned by the center point). > > This is analogous to what our application under development does - we > position the slice actor in world coordinates using the DICOM Image > Position Patient at the top left (depending on orientation) + center offset > of the volume. > > In my example code, when you load up for the first time and left click, > and "rotate" with the mouse, I draw an angle widget for your convenience > whose joint is on the center of rotation. I compute the matrix for the > rotation, and set that in the reslice matrix, followed by the origin. This > works perfectly, and the slice rotates about its center. > > If you right click, you will change the ctr of rotation in world > coordinates. > ImageReslice->SetResliceAxesOrigin(rotationCenter[0], rotationCenter[1], > rotationCenter[2]); > > When you then rotate with left mouse, the angle widget joint is in the > correct place in the view but the the image rotates about a point which I > can't quite determine. > > The new center of rotation that the reslice uses seem to be proportionally > related to how far away from the center of the image that is right clicked > on - the closer to the center of the slice clicked, the less the center of > rotation moves away from the click. > > It seems like there's something I'm missing about how the center of > rotation works. > > Any help appreciated. > > > Thanks > > Rick > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Wed Oct 26 12:21:36 2016 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 26 Oct 2016 12:21:36 -0400 Subject: [vtkusers] How to write into VTK vertex buffer object from an OpenCL kernel In-Reply-To: References: Message-ID: The shaders can be updated ala http://www.vtk.org/Wiki/Shader_In_VTK In terms of getting the VBO I believe it has been done, not by me. I think you have to setup your data and render it to get the VBO built. Then you can get it's handle and pass that to cuda or something like that. setup input data with the right size, num points, even if the values are dummy positions polydatamapper->Render() vbo = polydatamapper->GetVBO() handle = vbo->GetHandle() would be nice to have an example. On Wed, Oct 26, 2016 at 10:27 AM, Reza Faieghi wrote: > Hello, > > > > My code generates a massive polygonal data through an openCL kernel. For > rendering purposes, this data copies from GPU memory to host memory. > Afterward, there are regular VTK codes to create an unstructured grid, > passing data into the renderer and display them. However, the data > transfers between device and host memories are time-consuming. > > > In order to speed up the code, I want to pass the polygonal data directly > from the openCL kernel to vertex buffer object. I am wondering is there any > way that I can bridge between openCL and openGL part of the VTK renderer? > > I assume that I will need to make few changes in openGL commands like > glDrawArrays. I also need to make a few changes in vertex shader just to > make sure that the renderer works fine with my data. Other than, the rest > of shaders should remain unchanged. Is it possible to access the shaders > and make the above changes? > > > I would really appreciate it if you could help me with this. > > > > Best Regards, > > Reza Faieghi > > _______________________________________________ > 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 > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Wed Oct 26 12:56:17 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 26 Oct 2016 12:56:17 -0400 Subject: [vtkusers] How to write into VTK vertex buffer object from an OpenCL kernel In-Reply-To: References: Message-ID: You might be able to scrounge some ideas from Accelerators/Piston. Back then we did the direct handoff from cuda to GL via glinterop. See: https://gitlab.kitware.com/vtk/vtk/blob/master/Accelerators/Piston/vtkPistonMapper.cu Warning that project is long deprecated and won't build with anything recent. In particular that was written before Rendering/OpenGL2 existed. I expect that vtk-m will have an entirely revamped version of the concept when it lands in VTK in a couple of months. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Wed, Oct 26, 2016 at 12:21 PM, Ken Martin wrote: > The shaders can be updated ala http://www.vtk.org/Wiki/Shader_In_VTK > > In terms of getting the VBO I believe it has been done, not by me. I think > you have to setup your data and render it to get the VBO built. Then you > can get it's handle and pass that to cuda or something like that. > > setup input data with the right size, num points, even if the values are > dummy positions > polydatamapper->Render() > vbo = polydatamapper->GetVBO() > handle = vbo->GetHandle() > > would be nice to have an example. > > > On Wed, Oct 26, 2016 at 10:27 AM, Reza Faieghi > wrote: > >> Hello, >> >> >> >> My code generates a massive polygonal data through an openCL kernel. For >> rendering purposes, this data copies from GPU memory to host memory. >> Afterward, there are regular VTK codes to create an unstructured grid, >> passing data into the renderer and display them. However, the data >> transfers between device and host memories are time-consuming. >> >> >> In order to speed up the code, I want to pass the polygonal data directly >> from the openCL kernel to vertex buffer object. I am wondering is there any >> way that I can bridge between openCL and openGL part of the VTK renderer? >> >> I assume that I will need to make few changes in openGL commands like >> glDrawArrays. I also need to make a few changes in vertex shader just to >> make sure that the renderer works fine with my data. Other than, the rest >> of shaders should remain unchanged. Is it possible to access the shaders >> and make the above changes? >> >> >> I would really appreciate it if you could help me with this. >> >> >> >> Best Regards, >> >> Reza Faieghi >> >> _______________________________________________ >> 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 >> >> > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. > > _______________________________________________ > 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 rickfrank at me.com Wed Oct 26 13:54:24 2016 From: rickfrank at me.com (Richard Frank) Date: Wed, 26 Oct 2016 17:54:24 +0000 (GMT) Subject: [vtkusers] vtkImageReslice rotation when not about center of image. Message-ID: <127f4caf-c198-40e5-b1ee-88d29090a8d5@me.com> Thanks David, That's what I was doing at first, and it seemed to have the same issues? :>/ But perhaps I did something incorrectly, and I will take another look at the first approach. Thanks Rick On Oct 26, 2016, at 11:52 AM, David Gobbi wrote: Hi Rick, I cannot recommend using SetResliceAxesOrigin() to set the center of rotation.? Instead, it's best to build the 4x4 matrix that does the transformation that you need, and call SetResliceAxes(matrix). For rotation around a point, you need a matrix that translates the center-of-rotation to (0,0,0), applies a rotation about (0,0,0), and then translates back again. ?- David On Tue, Oct 25, 2016 at 10:30 AM, Richard Frank wrote: Hi I'm trying to modify the vtkExample to use vtkImageReslice about a point not at the center of the volume. A link to my code is below, which is the Cxx folder from the Imaging Examples, with modifications to the ImageSlicing sub project. https://1drv.ms/f/s!AvWAuQy-GUrmgyOyOKmDWSHhZUPk Also, here is a link to my input data, a small mha file which is easy to see: https://1drv.ms/u/s!AvWAuQy-GUrmg0YOY0ql2vr1StOU if you load the file, you will see an axial view. The volume has an origin of (0,0,0). I compute the center of the volume, and then position the actor on that center point (actors are positioned by the center point). This is analogous to what our application under development does - we position the slice actor in world coordinates using the DICOM Image Position Patient at the top left (depending on orientation) + center offset of the volume. In my example code, when you load up for the first time and left click, and "rotate" with the mouse, I draw an angle widget for your convenience whose joint is on the center of rotation. I compute the matrix for the rotation, and set that in the reslice matrix, followed by? the origin. This works perfectly, and the slice rotates about its center. If you right click, you will change the ctr of rotation in world coordinates. ImageReslice->SetResliceAxesOrigin(rotationCenter[0], rotationCenter[1], rotationCenter[2]); When you then rotate with left mouse, the angle widget joint is in the correct place in the view but? the the image rotates about a point which I can't quite determine. The new center of rotation that the reslice uses seem to be proportionally related to how far away from the center of the image that is right clicked on - the closer to the center of the slice clicked, the less the center of rotation moves away from the click. It seems like there's something I'm missing about how the center of rotation works. Any help appreciated. Thanks Rick -------------- next part -------------- An HTML attachment was scrubbed... URL: From tharun160190 at gmail.com Thu Oct 27 00:13:08 2016 From: tharun160190 at gmail.com (Tharun) Date: Wed, 26 Oct 2016 21:13:08 -0700 (MST) Subject: [vtkusers] Different result of ExtractVisibleCells example in debug and relase modes Message-ID: <1477541588946-5740944.post@n5.nabble.com> Example at http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/ExtractVisibleCells works in release mode but not in debug mode. When I checked the number of nodes, it turned out to be 2 in debug mode and 1 in release mode. Can anybody help me understand this? -- View this message in context: http://vtk.1045678.n5.nabble.com/Different-result-of-ExtractVisibleCells-example-in-debug-and-relase-modes-tp5740944.html Sent from the VTK - Users mailing list archive at Nabble.com. From f.nellmeldin at open-engineering.com Thu Oct 27 04:38:26 2016 From: f.nellmeldin at open-engineering.com (Fernando Nellmeldin) Date: Thu, 27 Oct 2016 10:38:26 +0200 Subject: [vtkusers] SetActiveVectors when there are many pipelines that use different arrays In-Reply-To: References: Message-ID: Hello, I am still having problems.... I added the casting as you suggested: ----- // given that model is first an UnstructuredGrid1 and then UnstructuredGridFull vtkSmartPointer passArrays = vtkSmartPointer ::New(); passArrays->SetInput(model); passArrays->UseFieldTypesOn(); // restrict to only pass what I say passArrays->AddFieldType(vtkDataObject::POINT); passArrays->AddArray(fieldType, "nameOfArray"); passArrays->Update(); // modelForFilter is a vtkUnstructuredGrid modelForFilter = vtkUnstructuredGrid::SafeDownCast(passArrays->GetOutput()); // cast to UnstructuredGrid modelForFilter->GetPointData()->SetActiveVectors("nameOfArray"); // set the active vectors in the new data modelForFilter->Update(); //warping vector is a vtkWarpVector warpingVector->SetInputConnection(modelForFilter->GetProducerPort()); warpingVector->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, "nameOfArray"); // the rest of the pipeline is the same... ----- The result is the same. I put some modelForFilter->Print(std::cout) and I can see that the selected array is indeed the active vectors... Other thing I tried: modelForFilter->DeepCopy(model); // full copy the model to the new modelForFilter->GetPointData()->SetActiveVectors("nameOfArray"); // set the active in the new modelForFilter->Update(); Still, same result. The only thing that works is: modelForFilter = model; But of course, here I only copy the vtkSmartPointer and not the data, so this is the thing I want to avoid. Any ideas? Thank you! On 26 October 2016 at 16:54, Dan Lipsa wrote: > Can you cast the data object to an unstructured grid and then set the > active vector on it? Make sure you call update before you do that. > > Dan > > > On Wed, Oct 26, 2016 at 10:44 AM, Fernando Nellmeldin engineering.com> wrote: > >> Hello and thank you for your reply! >> >> After your suggestion, I tried using vtkPassArray, but I can't find how >> to set the Active Vectors. The output is a vtkDataObject*, which of course >> doesn't have the PointsData and therefore no setActiveVectors. >> The result is the same as before, when I change the input to Full, I see >> the wrong deformed mesh. >> >> This is my modified code: >> >> // given that model is first an UnstructuredGrid1 and then >> UnstructuredGridFull >> vtkSmartPointer passArrays = vtkSmartPointer >> ::New(); >> passArrays->SetInput(model); >> passArrays->UseFieldTypesOn(); // restrict to only pass what I say >> passArrays->AddFieldType(vtkDataObject::POINT); >> passArrays->AddArray(fieldType, "nameOfArray"); >> passArrays->Update(); >> >> //warping vector is a vtkWarpVector >> warpingVector->SetInputConnection(passArrays->GetProducerPort()); >> warpingVector->SetInputArrayToProcess(0, 0, >> 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, "nameOfArray"); // I don't >> know why this line is needed to see something >> // the rest of the pipeline is the same... >> >> Am I missing something? >> >> Thank you. >> >> >> >> On 26 October 2016 at 15:40, Dan Lipsa wrote: >> >>> Fernando, >>> Can you try vtkPassArray to pass the proper vector array to each of your >>> pipelines? Then you can set the active vector on the output of this >>> algorithm. >>> >>> Dan >>> >>> >>> On Wed, Oct 26, 2016 at 6:23 AM, Fernando Nellmeldin < >>> f.nellmeldin at open-engineering.com> wrote: >>> >>>> Hello. >>>> I would like to show the deformed mesh of a model based on the values >>>> of a point data array of dimension 3 (vectorial data). >>>> >>>> I have the following pipeline: >>>> UnstructuredGrid1 -> WarpVector -> GeometryFilter -> ExtractEdges -> >>>> PolyDataMapper -> Actor >>>> In the WarpVector, I call to say which array to use >>>> WarpVector->SetInputArrayToProcess(0,0,0, >>>> FIELD_ASSOCIATION_POINTS,"nameOfArray"); >>>> >>>> The first time I load the actor in screen, everything is OK. >>>> >>>> Later, I would like to mirror the input UnstructuredGrid1 because it >>>> represents half the model. So I do the following: >>>> UnstructuredGrid1 -> ReflectionFilter -> UnstructuredGrid2 >>>> {UnstructuredGrid1, UnstructuredGrid2} -> AppendFilter -> >>>> UnstructuredGridFull >>>> >>>> Then, I replace the input of WarpVector by UnstructuredGridFull, and I >>>> reload the actor. >>>> However, what I see on screen is the same deformed mesh than before, >>>> plus another deformed mesh that is not its mirror, it's something different >>>> and not correct, of course. >>>> >>>> If, however, I call: >>>> At the beginning: UnstructuredGrid1->GetPointDat >>>> a()->SetActiveVectors("nameOfArray"); >>>> After I did the mirroring: UnstructuredGridFull->GetPoint >>>> Data()->SetActiveVectors("nameOfArray"); >>>> I don't have the problem and everything works OK. >>>> >>>> Problem is, I don't want to call setActiveVectors because I can have >>>> more than one pipeline that makes uses of the same UnstructuredGrid with >>>> different vectorial data, and I noticed that each call to setActive* will >>>> modify all the pipelines that makes use of the Scalars/Vectors/Tensors. So >>>> this doesn't seem an option. >>>> >>>> What is the alternative to use here to solve the problem? >>>> >>>> I tried with vtkAssignAttributes but didn't work. >>>> vtkSmartPointer aa = vtkSmartPointer>>> bute>::New(); >>>> aa->SetInput(UnstructuredGridFull); >>>> aa->Assign("nameOfArray", vtkDataSetAttributes::VECTORS, >>>> vtkAssignAttribute::POINT_DATA); >>>> aa->Update(); >>>> >>>> And then: >>>> AssignAttribute -> WarpVector instead of UnstructuredGridFull -> >>>> WarpVector. >>>> but same result... >>>> >>>> Thank you. >>>> >>>> -- >>>> *Fernando NELLMELDIN* >>>> Software Engineer >>>> *_______________________________________________________________* >>>> >>>> *Open Engineering s.a.* >>>> >>>> Rue Bois Saint-Jean 15/1 >>>> B-4102 Seraing (Belgium) >>>> Tel: +32.4.353.30.34 >>>> >>>> http://www.open-engineering.com >>>> https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym >>>> >>>> >>>> *_________________________________________________________________________* >>>> >>>> _______________________________________________ >>>> 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 >>>> >>>> >>> >> >> >> -- >> *Fernando NELLMELDIN* >> Software Engineer >> *_______________________________________________________________* >> >> *Open Engineering s.a.* >> >> Rue Bois Saint-Jean 15/1 >> B-4102 Seraing (Belgium) >> Tel: +32.4.353.30.34 >> >> http://www.open-engineering.com >> https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym >> >> >> *_________________________________________________________________________* >> > > -- *Fernando NELLMELDIN* Software Engineer *_______________________________________________________________* *Open Engineering s.a.* Rue Bois Saint-Jean 15/1 B-4102 Seraing (Belgium) Tel: +32.4.353.30.34 http://www.open-engineering.com https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym *_________________________________________________________________________* -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabio.riot at gmail.com Thu Oct 27 08:08:24 2016 From: fabio.riot at gmail.com (fabio riot) Date: Thu, 27 Oct 2016 14:08:24 +0200 Subject: [vtkusers] vtk static link in codeblocks Message-ID: Dear All, I have built vtk 7.0 successfully, both static and dynamic lib (.so and .a) in two different folders So I create a project in codeblocks, copy the example cone.cxx into the project. I set the include path and the static library ( lib.a) path. But at the end of the project building i have a lot of: undefined reference errors.... The problem doesn't occur when I set the linker path to the dynamic libs (.so). Furthermore, If I use cmake to generate a codeBlocks-unix makefile, it works both using static and dynamic linking, I would like to know why creating a project directly with codeblocks and using static linking the build fails? Do I miss some setting or linker option? Regards, Fabio -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Thu Oct 27 09:56:43 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Thu, 27 Oct 2016 09:56:43 -0400 Subject: [vtkusers] SetActiveVectors when there are many pipelines that use different arrays In-Reply-To: References: Message-ID: Hi Fernando, I am not sure what is going on. I would save VTK datasets at points in your pipeline to narrow down where the problem is. For instance, save the datasets after the passarray filter. Also save the datasets before and after your append filter that produces the wrong result. You can load those datasets in paraview and to see exactly what you get after each filter. I use the following function in Python. You'll need to convert this to C++. def debugWriteGrid(grid, name): writer = vtk.vtkXMLDataSetWriter() gridType = grid.GetDataObjectType() if (gridType == vtk.VTK_STRUCTURED_GRID): ext = ".vts" elif (gridType == vtk.VTK_UNSTRUCTURED_GRID): ext = ".vtu" elif (gridType == vtk.VTK_POLY_DATA): ext = ".vtp" else: print "Unknown grid type: %d" % gridType ext = ".vtk" writer.SetFileName(name + ext) writer.SetInputData(grid) writer.Write() On Thu, Oct 27, 2016 at 4:38 AM, Fernando Nellmeldin < f.nellmeldin at open-engineering.com> wrote: > Hello, I am still having problems.... > I added the casting as you suggested: > > ----- > // given that model is first an UnstructuredGrid1 and then > UnstructuredGridFull > vtkSmartPointer passArrays = vtkSmartPointer > ::New(); > passArrays->SetInput(model); > passArrays->UseFieldTypesOn(); // restrict to only pass what I say > passArrays->AddFieldType(vtkDataObject::POINT); > passArrays->AddArray(fieldType, "nameOfArray"); > passArrays->Update(); > > // modelForFilter is a vtkUnstructuredGrid > modelForFilter = vtkUnstructuredGrid::SafeDownCast(passArrays->GetOutput()); > // cast to UnstructuredGrid > modelForFilter->GetPointData()->SetActiveVectors("nameOfArray"); // set > the active vectors in the new data > modelForFilter->Update(); > > //warping vector is a vtkWarpVector > warpingVector->SetInputConnection(modelForFilter->GetProducerPort()); > warpingVector->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, > "nameOfArray"); > // the rest of the pipeline is the same... > ----- > The result is the same. I put some modelForFilter->Print(std::cout) and I > can see that the selected array is indeed the active vectors... > > Other thing I tried: > modelForFilter->DeepCopy(model); // full copy the model to the new > modelForFilter->GetPointData()->SetActiveVectors("nameOfArray"); // set > the active in the new > modelForFilter->Update(); > Still, same result. > > The only thing that works is: > modelForFilter = model; > But of course, here I only copy the vtkSmartPointer and not the data, so > this is the thing I want to avoid. > > Any ideas? > Thank you! > > On 26 October 2016 at 16:54, Dan Lipsa wrote: > >> Can you cast the data object to an unstructured grid and then set the >> active vector on it? Make sure you call update before you do that. >> >> Dan >> >> >> On Wed, Oct 26, 2016 at 10:44 AM, Fernando Nellmeldin < >> f.nellmeldin at open-engineering.com> wrote: >> >>> Hello and thank you for your reply! >>> >>> After your suggestion, I tried using vtkPassArray, but I can't find how >>> to set the Active Vectors. The output is a vtkDataObject*, which of course >>> doesn't have the PointsData and therefore no setActiveVectors. >>> The result is the same as before, when I change the input to Full, I see >>> the wrong deformed mesh. >>> >>> This is my modified code: >>> >>> // given that model is first an UnstructuredGrid1 and then >>> UnstructuredGridFull >>> vtkSmartPointer passArrays = >>> vtkSmartPointer::New(); >>> passArrays->SetInput(model); >>> passArrays->UseFieldTypesOn(); // restrict to only pass what I say >>> passArrays->AddFieldType(vtkDataObject::POINT); >>> passArrays->AddArray(fieldType, "nameOfArray"); >>> passArrays->Update(); >>> >>> //warping vector is a vtkWarpVector >>> warpingVector->SetInputConnection(passArrays->GetProducerPort()); >>> warpingVector->SetInputArrayToProcess(0, 0, >>> 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, "nameOfArray"); // I don't >>> know why this line is needed to see something >>> // the rest of the pipeline is the same... >>> >>> Am I missing something? >>> >>> Thank you. >>> >>> >>> >>> On 26 October 2016 at 15:40, Dan Lipsa wrote: >>> >>>> Fernando, >>>> Can you try vtkPassArray to pass the proper vector array to each of >>>> your pipelines? Then you can set the active vector on the output of this >>>> algorithm. >>>> >>>> Dan >>>> >>>> >>>> On Wed, Oct 26, 2016 at 6:23 AM, Fernando Nellmeldin < >>>> f.nellmeldin at open-engineering.com> wrote: >>>> >>>>> Hello. >>>>> I would like to show the deformed mesh of a model based on the values >>>>> of a point data array of dimension 3 (vectorial data). >>>>> >>>>> I have the following pipeline: >>>>> UnstructuredGrid1 -> WarpVector -> GeometryFilter -> ExtractEdges -> >>>>> PolyDataMapper -> Actor >>>>> In the WarpVector, I call to say which array to use >>>>> WarpVector->SetInputArrayToProcess(0,0,0, >>>>> FIELD_ASSOCIATION_POINTS,"nameOfArray"); >>>>> >>>>> The first time I load the actor in screen, everything is OK. >>>>> >>>>> Later, I would like to mirror the input UnstructuredGrid1 because it >>>>> represents half the model. So I do the following: >>>>> UnstructuredGrid1 -> ReflectionFilter -> UnstructuredGrid2 >>>>> {UnstructuredGrid1, UnstructuredGrid2} -> AppendFilter -> >>>>> UnstructuredGridFull >>>>> >>>>> Then, I replace the input of WarpVector by UnstructuredGridFull, and I >>>>> reload the actor. >>>>> However, what I see on screen is the same deformed mesh than before, >>>>> plus another deformed mesh that is not its mirror, it's something different >>>>> and not correct, of course. >>>>> >>>>> If, however, I call: >>>>> At the beginning: UnstructuredGrid1->GetPointDat >>>>> a()->SetActiveVectors("nameOfArray"); >>>>> After I did the mirroring: UnstructuredGridFull->GetPoint >>>>> Data()->SetActiveVectors("nameOfArray"); >>>>> I don't have the problem and everything works OK. >>>>> >>>>> Problem is, I don't want to call setActiveVectors because I can have >>>>> more than one pipeline that makes uses of the same UnstructuredGrid with >>>>> different vectorial data, and I noticed that each call to setActive* will >>>>> modify all the pipelines that makes use of the Scalars/Vectors/Tensors. So >>>>> this doesn't seem an option. >>>>> >>>>> What is the alternative to use here to solve the problem? >>>>> >>>>> I tried with vtkAssignAttributes but didn't work. >>>>> vtkSmartPointer aa = >>>>> vtkSmartPointer::New(); >>>>> aa->SetInput(UnstructuredGridFull); >>>>> aa->Assign("nameOfArray", vtkDataSetAttributes::VECTORS, >>>>> vtkAssignAttribute::POINT_DATA); >>>>> aa->Update(); >>>>> >>>>> And then: >>>>> AssignAttribute -> WarpVector instead of UnstructuredGridFull -> >>>>> WarpVector. >>>>> but same result... >>>>> >>>>> Thank you. >>>>> >>>>> -- >>>>> *Fernando NELLMELDIN* >>>>> Software Engineer >>>>> *_______________________________________________________________* >>>>> >>>>> *Open Engineering s.a.* >>>>> >>>>> Rue Bois Saint-Jean 15/1 >>>>> B-4102 Seraing (Belgium) >>>>> Tel: +32.4.353.30.34 >>>>> >>>>> http://www.open-engineering.com >>>>> https://www.linkedin.com/company/open-engineering?trk=biz-co >>>>> mpanies-cym >>>>> >>>>> >>>>> *_________________________________________________________________________* >>>>> >>>>> _______________________________________________ >>>>> 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 >>>>> >>>>> >>>> >>> >>> >>> -- >>> *Fernando NELLMELDIN* >>> Software Engineer >>> *_______________________________________________________________* >>> >>> *Open Engineering s.a.* >>> >>> Rue Bois Saint-Jean 15/1 >>> B-4102 Seraing (Belgium) >>> Tel: +32.4.353.30.34 >>> >>> http://www.open-engineering.com >>> https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym >>> >>> >>> *_________________________________________________________________________* >>> >> >> > > > -- > *Fernando NELLMELDIN* > Software Engineer > *_______________________________________________________________* > > *Open Engineering s.a.* > > Rue Bois Saint-Jean 15/1 > B-4102 Seraing (Belgium) > Tel: +32.4.353.30.34 > > http://www.open-engineering.com > https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym > > *_________________________________________________________________________* > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aborsic at ne-scientific.com Thu Oct 27 12:46:38 2016 From: aborsic at ne-scientific.com (Andrea Borsic) Date: Thu, 27 Oct 2016 18:46:38 +0200 Subject: [vtkusers] Display Error under Ubuntu 16.04 Message-ID: <5fd8ea8d-e144-18aa-26d9-169827416ba4@ne-scientific.com> Dear All, I have successfully compiled VTK 7.0.0 under Ubuntu 16.04.1 LTS on a computer with the following hw configuration: Processor: Intel Core i7 GPU: NVIDIA GTX Titan Black --- VTK has been configured for: OpenGL 2 back-end Use Qt 5.7 Use OpenMP for SMP Wrap Python 3 (ver 3.5.2 on the system) --- A simple python script which displays an unstructured grid and which works fine under Windows, opens (under Ubuntu) a rendering window and crashes with the message below: X Error of failed request: GLXBadDrawable Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 11 (X_GLXSwapBuffers) Serial number of failed request: 111 Current serial number in output stream: 111 Do you have any hint about this? Should I try the RC 7.1 or switch to the plain OpenGL back-end ? Thanks in advance for any suggestion, Best Regards, Andrea From ken.martin at kitware.com Thu Oct 27 12:56:33 2016 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 27 Oct 2016 12:56:33 -0400 Subject: [vtkusers] Display Error under Ubuntu 16.04 In-Reply-To: <5fd8ea8d-e144-18aa-26d9-169827416ba4@ne-scientific.com> References: <5fd8ea8d-e144-18aa-26d9-169827416ba4@ne-scientific.com> Message-ID: Can you try running ctest -R VBOPLY -VV and let us know the output? On Thu, Oct 27, 2016 at 12:46 PM, Andrea Borsic wrote: > Dear All, > > I have successfully compiled VTK 7.0.0 under Ubuntu 16.04.1 LTS on a > computer with the following hw configuration: > > Processor: Intel Core i7 > > GPU: NVIDIA GTX Titan Black > > --- > > VTK has been configured for: > > OpenGL 2 back-end > > Use Qt 5.7 > > Use OpenMP for SMP > > Wrap Python 3 (ver 3.5.2 on the system) > > --- > > A simple python script which displays an unstructured grid and which works > fine under Windows, opens (under Ubuntu) a rendering window and crashes > with the message below: > > X Error of failed request: GLXBadDrawable > Major opcode of failed request: 154 (GLX) > Minor opcode of failed request: 11 (X_GLXSwapBuffers) > Serial number of failed request: 111 > Current serial number in output stream: 111 > > > Do you have any hint about this? Should I try the RC 7.1 or switch to the > plain OpenGL back-end ? > > Thanks in advance for any suggestion, > > Best Regards, > > Andrea > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/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 > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aborsic at ne-scientific.com Thu Oct 27 14:52:37 2016 From: aborsic at ne-scientific.com (Andrea Borsic) Date: Thu, 27 Oct 2016 20:52:37 +0200 Subject: [vtkusers] Display Error under Ubuntu 16.04 In-Reply-To: References: <5fd8ea8d-e144-18aa-26d9-169827416ba4@ne-scientific.com> Message-ID: Hi, I confirm the same kind of behavior persists with 7.1 RC1 (both with OpenGL2 and OpenGL). The typical Cone.py script works fine though in all configurations tested. I will do some more digging regarding my script which involves passing-in some numpy arrays ... just in case (though this works under Windows) ---- Apologies for the ignorance, but in which folder do I need to run ctest ? Does VTK need to be build with BUILD_TESTING ON for these purposes? Thanks and Best Regards, Andrea On 27/10/2016 18:56, Ken Martin wrote: > Can you try running ctest -R VBOPLY -VV and let us know the output? > > On Thu, Oct 27, 2016 at 12:46 PM, Andrea Borsic > > wrote: > > Dear All, > > I have successfully compiled VTK 7.0.0 under Ubuntu 16.04.1 LTS > on a computer with the following hw configuration: > > Processor: Intel Core i7 > > GPU: NVIDIA GTX Titan Black > > --- > > VTK has been configured for: > > OpenGL 2 back-end > > Use Qt 5.7 > > Use OpenMP for SMP > > Wrap Python 3 (ver 3.5.2 on the system) > > --- > > A simple python script which displays an unstructured grid and > which works fine under Windows, opens (under Ubuntu) a rendering > window and crashes with the message below: > > X Error of failed request: GLXBadDrawable > Major opcode of failed request: 154 (GLX) > Minor opcode of failed request: 11 (X_GLXSwapBuffers) > Serial number of failed request: 111 > Current serial number in output stream: 111 > > > Do you have any hint about this? Should I try the RC 7.1 or switch > to the plain OpenGL back-end ? > > Thanks in advance for any suggestion, > > Best Regards, > > Andrea > > _______________________________________________ > 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 > > > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Thu Oct 27 15:13:48 2016 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 27 Oct 2016 15:13:48 -0400 Subject: [vtkusers] Display Error under Ubuntu 16.04 In-Reply-To: References: <5fd8ea8d-e144-18aa-26d9-169827416ba4@ne-scientific.com> Message-ID: Yes, build with testing on and then you can run it from the top of your build tree. Thanks! On Thu, Oct 27, 2016 at 2:52 PM, Andrea Borsic wrote: > Hi, > > I confirm the same kind of behavior persists with 7.1 RC1 (both with > OpenGL2 and OpenGL). The typical Cone.py script works fine though in all > configurations tested. I will do some more digging regarding my script > which involves passing-in some numpy arrays ... just in case (though this > works under Windows) > > ---- > > Apologies for the ignorance, but in which folder do I need to run ctest ? > Does VTK need to be build with BUILD_TESTING ON for these purposes? > > Thanks and Best Regards, > > Andrea > > > > On 27/10/2016 18:56, Ken Martin wrote: > > Can you try running ctest -R VBOPLY -VV and let us know the output? > > On Thu, Oct 27, 2016 at 12:46 PM, Andrea Borsic > wrote: > >> Dear All, >> >> I have successfully compiled VTK 7.0.0 under Ubuntu 16.04.1 LTS on a >> computer with the following hw configuration: >> >> Processor: Intel Core i7 >> >> GPU: NVIDIA GTX Titan Black >> >> --- >> >> VTK has been configured for: >> >> OpenGL 2 back-end >> >> Use Qt 5.7 >> >> Use OpenMP for SMP >> >> Wrap Python 3 (ver 3.5.2 on the system) >> >> --- >> >> A simple python script which displays an unstructured grid and which >> works fine under Windows, opens (under Ubuntu) a rendering window and >> crashes with the message below: >> >> X Error of failed request: GLXBadDrawable >> Major opcode of failed request: 154 (GLX) >> Minor opcode of failed request: 11 (X_GLXSwapBuffers) >> Serial number of failed request: 111 >> Current serial number in output stream: 111 >> >> >> Do you have any hint about this? Should I try the RC 7.1 or switch to the >> plain OpenGL back-end ? >> >> Thanks in advance for any suggestion, >> >> Best Regards, >> >> Andrea >> >> _______________________________________________ >> 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 >> > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. > > > > _______________________________________________ > 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 > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert.maynard at kitware.com Thu Oct 27 15:55:10 2016 From: robert.maynard at kitware.com (Robert Maynard) Date: Thu, 27 Oct 2016 15:55:10 -0400 Subject: [vtkusers] How to write into VTK vertex buffer object from an OpenCL kernel In-Reply-To: References: Message-ID: As Ken stated we have the ability to have VBO's be shared between OpenGL and OpenCL. The key as was mentioned you need to call GenerateBuffer() on the VBO to get the buffer id, from there you can copy your data from OpenCL into OpenGL. As far as I am aware, it is impossible to pass an OpenCL object to OpenGL. Instead you must allocate in OpenGL and than fill that inside OpenCL. On Wed, Oct 26, 2016 at 12:56 PM, David E DeMarle wrote: > You might be able to scrounge some ideas from Accelerators/Piston. > Back then we did the direct handoff from cuda to GL via glinterop. > > See: > https://gitlab.kitware.com/vtk/vtk/blob/master/Accelerators/Piston/vtkPistonMapper.cu > > Warning that project is long deprecated and won't build with anything > recent. In particular that was written before Rendering/OpenGL2 existed. > > I expect that vtk-m will have an entirely revamped version of the concept > when it lands in VTK in a couple of months. > > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Wed, Oct 26, 2016 at 12:21 PM, Ken Martin wrote: >> >> The shaders can be updated ala http://www.vtk.org/Wiki/Shader_In_VTK >> >> In terms of getting the VBO I believe it has been done, not by me. I think >> you have to setup your data and render it to get the VBO built. Then you can >> get it's handle and pass that to cuda or something like that. >> >> setup input data with the right size, num points, even if the values are >> dummy positions >> polydatamapper->Render() >> vbo = polydatamapper->GetVBO() >> handle = vbo->GetHandle() >> >> would be nice to have an example. >> >> >> On Wed, Oct 26, 2016 at 10:27 AM, Reza Faieghi >> wrote: >>> >>> Hello, >>> >>> >>> >>> My code generates a massive polygonal data through an openCL kernel. For >>> rendering purposes, this data copies from GPU memory to host memory. >>> Afterward, there are regular VTK codes to create an unstructured grid, >>> passing data into the renderer and display them. However, the data transfers >>> between device and host memories are time-consuming. >>> >>> >>> In order to speed up the code, I want to pass the polygonal data directly >>> from the openCL kernel to vertex buffer object. I am wondering is there any >>> way that I can bridge between openCL and openGL part of the VTK renderer? >>> >>> I assume that I will need to make few changes in openGL commands like >>> glDrawArrays. I also need to make a few changes in vertex shader just to >>> make sure that the renderer works fine with my data. Other than, the rest of >>> shaders should remain unchanged. Is it possible to access the shaders and >>> make the above changes? >>> >>> >>> I would really appreciate it if you could help me with this. >>> >>> >>> >>> Best Regards, >>> >>> Reza Faieghi >>> >>> >>> _______________________________________________ >>> 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 >>> >> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> 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. >> >> _______________________________________________ >> 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 aborsic at ne-scientific.com Thu Oct 27 17:16:27 2016 From: aborsic at ne-scientific.com (Andrea Borsic) Date: Thu, 27 Oct 2016 23:16:27 +0200 Subject: [vtkusers] Display Error under Ubuntu 16.04 In-Reply-To: References: <5fd8ea8d-e144-18aa-26d9-169827416ba4@ne-scientific.com> Message-ID: <05478125-ddf1-ae44-223c-c3fbc5c483d7@ne-scientific.com> Hi Ken, The test seems to run fine, I am attaching below the output. Best Regards, Andrea ----------------------- andrea at i7-Desktop:/opt/VTK-7.1.0.rc1-bin$ sudo ctest -R VBOPLY -VV UpdateCTestConfiguration from :/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl Parse Config file:/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl Add coverage exclude regular expressions. Add coverage exclude: vtk.*TCLInit.cxx Add coverage exclude: vtk[^\.]+(Java|Python|Tcl).cxx Add coverage exclude: .*vtkOpenGLState.* Add coverage exclude: .*Testing.Cxx.*cxx Add coverage exclude: .*Testing.Cxx.*h Add coverage exclude: .*moc_.*cxx Add coverage exclude: .*/Rendering/OpenGL/vtkgl.* Add coverage exclude: .*/Utilities/.* Add coverage exclude: .*/ThirdParty/.* Add coverage exclude: .*vtkOpenGLPolyDataMapper.* SetCTestConfiguration:CMakeCommand:/usr/bin/cmake UpdateCTestConfiguration from :/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl Parse Config file:/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl Test project /opt/VTK-7.1.0.rc1-bin Constructing a list of tests Done constructing a list of tests Checking test dependency graph... Checking test dependency graph end test 1551 Start 1551: vtkRenderingOpenGL2Cxx-TestVBOPLYMapper 1551: Test command: /opt/VTK-7.1.0.rc1-bin/bin/vtkRenderingOpenGL2CxxTests "TestVBOPLYMapper" "-D" "/opt/VTK-7.1.0.rc1-bin/ExternalData//Testing" "-T" "/opt/VTK-7.1.0.rc1-bin/Testing/Temporary" "-V" "/opt/VTK-7.1.0.rc1-bin/ExternalData/Rendering/OpenGL2/Testing/Data/Baseline/TestVBOPLYMapper.png" 1551: Test timeout computed to be: 3600 1551: first render time: 0.132993 1551: opengl version 4.5 1551: interactive render time: 0.0166377 1551: number of triangles: 871414 1551: triangles per second: 5.2376e+07 1551: 0Standard0.059715 1551: 0.037073 1/1 Test #1551: vtkRenderingOpenGL2Cxx-TestVBOPLYMapper ... Passed 0.91 sec The following tests passed: vtkRenderingOpenGL2Cxx-TestVBOPLYMapper 100% tests passed, 0 tests failed out of 1 Label Time Summary: vtkRenderingOpenGL2 = 0.91 sec (1 test) Total Test time (real) = 0.97 sec On 27/10/2016 18:56, Ken Martin wrote: > Can you try running ctest -R VBOPLY -VV and let us know the output? > > On Thu, Oct 27, 2016 at 12:46 PM, Andrea Borsic > > wrote: > > Dear All, > > I have successfully compiled VTK 7.0.0 under Ubuntu 16.04.1 LTS > on a computer with the following hw configuration: > > Processor: Intel Core i7 > > GPU: NVIDIA GTX Titan Black > > --- > > VTK has been configured for: > > OpenGL 2 back-end > > Use Qt 5.7 > > Use OpenMP for SMP > > Wrap Python 3 (ver 3.5.2 on the system) > > --- > > A simple python script which displays an unstructured grid and > which works fine under Windows, opens (under Ubuntu) a rendering > window and crashes with the message below: > > X Error of failed request: GLXBadDrawable > Major opcode of failed request: 154 (GLX) > Minor opcode of failed request: 11 (X_GLXSwapBuffers) > Serial number of failed request: 111 > Current serial number in output stream: 111 > > > Do you have any hint about this? Should I try the RC 7.1 or switch > to the plain OpenGL back-end ? > > Thanks in advance for any suggestion, > > Best Regards, > > Andrea > > _______________________________________________ > 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 > > > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Thu Oct 27 17:25:38 2016 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 27 Oct 2016 17:25:38 -0400 Subject: [vtkusers] Display Error under Ubuntu 16.04 In-Reply-To: <05478125-ddf1-ae44-223c-c3fbc5c483d7@ne-scientific.com> References: <5fd8ea8d-e144-18aa-26d9-169827416ba4@ne-scientific.com> <05478125-ddf1-ae44-223c-c3fbc5c483d7@ne-scientific.com> Message-ID: Hmm, well that means VTK's rendering engine is initializing OK and running. So it could be something specific to the python app. If you run some of the python tests do they work? ala ctest -R Python -I ,,23 thats runs 1/23rd of the python tests if those all pass then it must be something specific to your script On Thu, Oct 27, 2016 at 5:16 PM, Andrea Borsic wrote: > Hi Ken, > > The test seems to run fine, I am attaching below the output. > > Best Regards, > > Andrea > > > ----------------------- > > andrea at i7-Desktop:/opt/VTK-7.1.0.rc1-bin$ sudo ctest -R VBOPLY -VV > UpdateCTestConfiguration from :/opt/VTK-7.1.0.rc1-bin/ > DartConfiguration.tcl > Parse Config file:/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl > Add coverage exclude regular expressions. > Add coverage exclude: vtk.*TCLInit.cxx > Add coverage exclude: vtk[^\.]+(Java|Python|Tcl).cxx > Add coverage exclude: .*vtkOpenGLState.* > Add coverage exclude: .*Testing.Cxx.*cxx > Add coverage exclude: .*Testing.Cxx.*h > Add coverage exclude: .*moc_.*cxx > Add coverage exclude: .*/Rendering/OpenGL/vtkgl.* > Add coverage exclude: .*/Utilities/.* > Add coverage exclude: .*/ThirdParty/.* > Add coverage exclude: .*vtkOpenGLPolyDataMapper.* > SetCTestConfiguration:CMakeCommand:/usr/bin/cmake > UpdateCTestConfiguration from :/opt/VTK-7.1.0.rc1-bin/ > DartConfiguration.tcl > Parse Config file:/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl > Test project /opt/VTK-7.1.0.rc1-bin > Constructing a list of tests > Done constructing a list of tests > Checking test dependency graph... > Checking test dependency graph end > test 1551 > Start 1551: vtkRenderingOpenGL2Cxx-TestVBOPLYMapper > > 1551: Test command: /opt/VTK-7.1.0.rc1-bin/bin/vtkRenderingOpenGL2CxxTests > "TestVBOPLYMapper" "-D" "/opt/VTK-7.1.0.rc1-bin/ExternalData//Testing" > "-T" "/opt/VTK-7.1.0.rc1-bin/Testing/Temporary" "-V" > "/opt/VTK-7.1.0.rc1-bin/ExternalData/Rendering/ > OpenGL2/Testing/Data/Baseline/TestVBOPLYMapper.png" > 1551: Test timeout computed to be: 3600 > 1551: first render time: 0.132993 > 1551: opengl version 4.5 > 1551: interactive render time: 0.0166377 > 1551: number of triangles: 871414 > 1551: triangles per second: 5.2376e+07 > 1551: 0 DartMeasurement> type="text/string">Standard name="WallTime" type="numeric/double">0.059715 > 1551: 0. > 037073 > 1/1 Test #1551: vtkRenderingOpenGL2Cxx-TestVBOPLYMapper ... Passed > 0.91 sec > > The following tests passed: > vtkRenderingOpenGL2Cxx-TestVBOPLYMapper > > 100% tests passed, 0 tests failed out of 1 > > Label Time Summary: > vtkRenderingOpenGL2 = 0.91 sec (1 test) > > Total Test time (real) = 0.97 sec > > > > > > On 27/10/2016 18:56, Ken Martin wrote: > > Can you try running ctest -R VBOPLY -VV and let us know the output? > > On Thu, Oct 27, 2016 at 12:46 PM, Andrea Borsic > wrote: > >> Dear All, >> >> I have successfully compiled VTK 7.0.0 under Ubuntu 16.04.1 LTS on a >> computer with the following hw configuration: >> >> Processor: Intel Core i7 >> >> GPU: NVIDIA GTX Titan Black >> >> --- >> >> VTK has been configured for: >> >> OpenGL 2 back-end >> >> Use Qt 5.7 >> >> Use OpenMP for SMP >> >> Wrap Python 3 (ver 3.5.2 on the system) >> >> --- >> >> A simple python script which displays an unstructured grid and which >> works fine under Windows, opens (under Ubuntu) a rendering window and >> crashes with the message below: >> >> X Error of failed request: GLXBadDrawable >> Major opcode of failed request: 154 (GLX) >> Minor opcode of failed request: 11 (X_GLXSwapBuffers) >> Serial number of failed request: 111 >> Current serial number in output stream: 111 >> >> >> Do you have any hint about this? Should I try the RC 7.1 or switch to the >> plain OpenGL back-end ? >> >> Thanks in advance for any suggestion, >> >> Best Regards, >> >> Andrea >> >> _______________________________________________ >> 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 >> > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. > > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aborsic at ne-scientific.com Fri Oct 28 05:05:46 2016 From: aborsic at ne-scientific.com (Andrea Borsic) Date: Fri, 28 Oct 2016 11:05:46 +0200 Subject: [vtkusers] Display Error under Ubuntu 16.04 In-Reply-To: References: <5fd8ea8d-e144-18aa-26d9-169827416ba4@ne-scientific.com> <05478125-ddf1-ae44-223c-c3fbc5c483d7@ne-scientific.com> Message-ID: <56f148d0-33da-f2c2-e449-79fec4a663fe@ne-scientific.com> Hi, Thanks for your kind consideration. I have run the ctest Python tests and they all run fine. I am still trying to workout why the script would crash and I have found out that it will crash (under Linux) when the interactor is started. The same script on the same data works fine with VTK 7.0 OpenGL2 under Windows 10. Just in case, I am attaching a minimal script that demonstrates the problem. The script will load python pickled data that I have saved in a single file available at: https://www.dropbox.com/s/me8cbtjh9p8qfid/data.pck?dl=0 The script displays the data, waits 5 seconds, and than starts the interactor (crashing). Best Regards, Andrea On 27/10/2016 23:25, Ken Martin wrote: > Hmm, well that means VTK's rendering engine is initializing OK and > running. So it could be something specific to the python app. If you > run some of the python tests do they work? ala > > ctest -R Python -I ,,23 > > thats runs 1/23rd of the python tests > > if those all pass then it must be something specific to your script > > > > On Thu, Oct 27, 2016 at 5:16 PM, Andrea Borsic > > wrote: > > Hi Ken, > > The test seems to run fine, I am attaching below the output. > > Best Regards, > > Andrea > > > ----------------------- > > andrea at i7-Desktop:/opt/VTK-7.1.0.rc1-bin$ > sudo ctest -R > VBOPLY -VV > UpdateCTestConfiguration from > :/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl > Parse Config file:/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl > Add coverage exclude regular expressions. > Add coverage exclude: vtk.*TCLInit.cxx > Add coverage exclude: vtk[^\.]+(Java|Python|Tcl).cxx > Add coverage exclude: .*vtkOpenGLState.* > Add coverage exclude: .*Testing.Cxx.*cxx > Add coverage exclude: .*Testing.Cxx.*h > Add coverage exclude: .*moc_.*cxx > Add coverage exclude: .*/Rendering/OpenGL/vtkgl.* > Add coverage exclude: .*/Utilities/.* > Add coverage exclude: .*/ThirdParty/.* > Add coverage exclude: .*vtkOpenGLPolyDataMapper.* > SetCTestConfiguration:CMakeCommand:/usr/bin/cmake > UpdateCTestConfiguration from > :/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl > Parse Config file:/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl > Test project /opt/VTK-7.1.0.rc1-bin > Constructing a list of tests > Done constructing a list of tests > Checking test dependency graph... > Checking test dependency graph end > test 1551 > Start 1551: vtkRenderingOpenGL2Cxx-TestVBOPLYMapper > > 1551: Test command: > /opt/VTK-7.1.0.rc1-bin/bin/vtkRenderingOpenGL2CxxTests > "TestVBOPLYMapper" "-D" > "/opt/VTK-7.1.0.rc1-bin/ExternalData//Testing" "-T" > "/opt/VTK-7.1.0.rc1-bin/Testing/Temporary" "-V" > "/opt/VTK-7.1.0.rc1-bin/ExternalData/Rendering/OpenGL2/Testing/Data/Baseline/TestVBOPLYMapper.png" > 1551: Test timeout computed to be: 3600 > 1551: first render time: 0.132993 > 1551: opengl version 4.5 > 1551: interactive render time: 0.0166377 > 1551: number of triangles: 871414 > 1551: triangles per second: 5.2376e+07 > 1551: type="numeric/double">0 name="BaselineImage" > type="text/string">Standard name="WallTime" type="numeric/double">0.059715 > 1551: type="numeric/double">0.037073 > 1/1 Test #1551: vtkRenderingOpenGL2Cxx-TestVBOPLYMapper ... > Passed 0.91 sec > > The following tests passed: > vtkRenderingOpenGL2Cxx-TestVBOPLYMapper > > 100% tests passed, 0 tests failed out of 1 > > Label Time Summary: > vtkRenderingOpenGL2 = 0.91 sec (1 test) > > Total Test time (real) = 0.97 sec > > > > > > On 27/10/2016 18:56, Ken Martin wrote: >> Can you try running ctest -R VBOPLY -VV and let us know the output? >> >> On Thu, Oct 27, 2016 at 12:46 PM, Andrea Borsic >> > wrote: >> >> Dear All, >> >> I have successfully compiled VTK 7.0.0 under Ubuntu 16.04.1 >> LTS on a computer with the following hw configuration: >> >> Processor: Intel Core i7 >> >> GPU: NVIDIA GTX Titan Black >> >> --- >> >> VTK has been configured for: >> >> OpenGL 2 back-end >> >> Use Qt 5.7 >> >> Use OpenMP for SMP >> >> Wrap Python 3 (ver 3.5.2 on the system) >> >> --- >> >> A simple python script which displays an unstructured grid >> and which works fine under Windows, opens (under Ubuntu) a >> rendering window and crashes with the message below: >> >> X Error of failed request: GLXBadDrawable >> Major opcode of failed request: 154 (GLX) >> Minor opcode of failed request: 11 (X_GLXSwapBuffers) >> Serial number of failed request: 111 >> Current serial number in output stream: 111 >> >> >> Do you have any hint about this? Should I try the RC 7.1 or >> switch to the plain OpenGL back-end ? >> >> Thanks in advance for any suggestion, >> >> Best Regards, >> >> Andrea >> >> _______________________________________________ >> 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 >> >> >> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> 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. > > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DisplayExample.py Type: text/x-python Size: 3424 bytes Desc: not available URL: From elvis.stansvik at orexplore.com Fri Oct 28 06:58:54 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 28 Oct 2016 12:58:54 +0200 Subject: [vtkusers] Display Error under Ubuntu 16.04 In-Reply-To: <56f148d0-33da-f2c2-e449-79fec4a663fe@ne-scientific.com> References: <5fd8ea8d-e144-18aa-26d9-169827416ba4@ne-scientific.com> <05478125-ddf1-ae44-223c-c3fbc5c483d7@ne-scientific.com> <56f148d0-33da-f2c2-e449-79fec4a663fe@ne-scientific.com> Message-ID: 2016-10-28 11:05 GMT+02:00 Andrea Borsic : > Hi, > > Thanks for your kind consideration. I have run the ctest Python tests and > they all run fine. > > I am still trying to workout why the script would crash and I have found out > that it will crash (under Linux) when the interactor is started. The same > script on the same data works fine with VTK 7.0 OpenGL2 under Windows 10. > > Just in case, I am attaching a minimal script that demonstrates the problem. > The script will load python pickled data that I have saved in a single file > available at: https://www.dropbox.com/s/me8cbtjh9p8qfid/data.pck?dl=0 > > The script displays the data, waits 5 seconds, and than starts the > interactor (crashing). I tested your example with the 7.1.0.rc1 build we use at work (also Ubuntu 16.04), and I also get an X error, though a slightly different one: X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 11 (X_GLXSwapBuffers) Serial number of failed request: 2141 Current serial number in output stream: 2143 I can confirm that commenting the interactor initialization/start, it terminates OK. Haven't looked closer at what's happening, but just thought I should share. For brevity, these are the flags we use when configuring our build: -DCMAKE_INSTALL_PREFIX=/opt/VTK7 \ -DVTK_Group_Qt=ON \ -DVTK_QT_VERSION=5 \ -DVTK_Group_Imaging=ON \ -DVTK_Group_Views=ON \ -DModule_vtkRenderingFreeTypeFontConfig=ON \ -DVTK_WRAP_PYTHON=ON \ -DVTK_PYTHON_VERSION=3 \ -DPYTHON_EXECUTABLE=/usr/bin/python3 \ -DPYTHON_INCLUDE_DIR=/usr/include/python3.5 \ -DPYTHON_LIBRARY=/usr/lib/$(DEB_HOST_MULTIARCH)/libpython3.5m.so \ -DBUILD_TESTING=OFF \ -DVTK_USE_SYSTEM_LIBRARIES=ON \ -DVTK_USE_SYSTEM_LIBPROJ4=OFF \ -DVTK_USE_SYSTEM_GL2PS=OFF \ -DCMAKE_BUILD_TYPE=Release Elvis > > Best Regards, > > Andrea > > > > On 27/10/2016 23:25, Ken Martin wrote: > > Hmm, well that means VTK's rendering engine is initializing OK and running. > So it could be something specific to the python app. If you run some of the > python tests do they work? ala > > ctest -R Python -I ,,23 > > thats runs 1/23rd of the python tests > > if those all pass then it must be something specific to your script > > > > On Thu, Oct 27, 2016 at 5:16 PM, Andrea Borsic > wrote: >> >> Hi Ken, >> >> The test seems to run fine, I am attaching below the output. >> >> Best Regards, >> >> Andrea >> >> >> ----------------------- >> >> andrea at i7-Desktop:/opt/VTK-7.1.0.rc1-bin$ sudo ctest -R VBOPLY -VV >> UpdateCTestConfiguration from >> :/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl >> Parse Config file:/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl >> Add coverage exclude regular expressions. >> Add coverage exclude: vtk.*TCLInit.cxx >> Add coverage exclude: vtk[^\.]+(Java|Python|Tcl).cxx >> Add coverage exclude: .*vtkOpenGLState.* >> Add coverage exclude: .*Testing.Cxx.*cxx >> Add coverage exclude: .*Testing.Cxx.*h >> Add coverage exclude: .*moc_.*cxx >> Add coverage exclude: .*/Rendering/OpenGL/vtkgl.* >> Add coverage exclude: .*/Utilities/.* >> Add coverage exclude: .*/ThirdParty/.* >> Add coverage exclude: .*vtkOpenGLPolyDataMapper.* >> SetCTestConfiguration:CMakeCommand:/usr/bin/cmake >> UpdateCTestConfiguration from >> :/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl >> Parse Config file:/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl >> Test project /opt/VTK-7.1.0.rc1-bin >> Constructing a list of tests >> Done constructing a list of tests >> Checking test dependency graph... >> Checking test dependency graph end >> test 1551 >> Start 1551: vtkRenderingOpenGL2Cxx-TestVBOPLYMapper >> >> 1551: Test command: /opt/VTK-7.1.0.rc1-bin/bin/vtkRenderingOpenGL2CxxTests >> "TestVBOPLYMapper" "-D" "/opt/VTK-7.1.0.rc1-bin/ExternalData//Testing" "-T" >> "/opt/VTK-7.1.0.rc1-bin/Testing/Temporary" "-V" >> "/opt/VTK-7.1.0.rc1-bin/ExternalData/Rendering/OpenGL2/Testing/Data/Baseline/TestVBOPLYMapper.png" >> 1551: Test timeout computed to be: 3600 >> 1551: first render time: 0.132993 >> 1551: opengl version 4.5 >> 1551: interactive render time: 0.0166377 >> 1551: number of triangles: 871414 >> 1551: triangles per second: 5.2376e+07 >> 1551: > type="numeric/double">0> name="BaselineImage" >> type="text/string">Standard> name="WallTime" type="numeric/double">0.059715 >> 1551: > type="numeric/double">0.037073 >> 1/1 Test #1551: vtkRenderingOpenGL2Cxx-TestVBOPLYMapper ... Passed >> 0.91 sec >> >> The following tests passed: >> vtkRenderingOpenGL2Cxx-TestVBOPLYMapper >> >> 100% tests passed, 0 tests failed out of 1 >> >> Label Time Summary: >> vtkRenderingOpenGL2 = 0.91 sec (1 test) >> >> Total Test time (real) = 0.97 sec >> >> >> >> >> >> On 27/10/2016 18:56, Ken Martin wrote: >> >> Can you try running ctest -R VBOPLY -VV and let us know the output? >> >> On Thu, Oct 27, 2016 at 12:46 PM, Andrea Borsic >> wrote: >>> >>> Dear All, >>> >>> I have successfully compiled VTK 7.0.0 under Ubuntu 16.04.1 LTS on a >>> computer with the following hw configuration: >>> >>> Processor: Intel Core i7 >>> >>> GPU: NVIDIA GTX Titan Black >>> >>> --- >>> >>> VTK has been configured for: >>> >>> OpenGL 2 back-end >>> >>> Use Qt 5.7 >>> >>> Use OpenMP for SMP >>> >>> Wrap Python 3 (ver 3.5.2 on the system) >>> >>> --- >>> >>> A simple python script which displays an unstructured grid and which >>> works fine under Windows, opens (under Ubuntu) a rendering window and >>> crashes with the message below: >>> >>> X Error of failed request: GLXBadDrawable >>> Major opcode of failed request: 154 (GLX) >>> Minor opcode of failed request: 11 (X_GLXSwapBuffers) >>> Serial number of failed request: 111 >>> Current serial number in output stream: 111 >>> >>> >>> Do you have any hint about this? Should I try the RC 7.1 or switch to the >>> plain OpenGL back-end ? >>> >>> Thanks in advance for any suggestion, >>> >>> Best Regards, >>> >>> Andrea >>> >>> _______________________________________________ >>> 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 >> >> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> 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. >> >> > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. > > > > _______________________________________________ > 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 elvis.stansvik at orexplore.com Fri Oct 28 09:13:11 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 28 Oct 2016 15:13:11 +0200 Subject: [vtkusers] off screen rendering and screenshot In-Reply-To: References: Message-ID: 2016-05-08 16:11 GMT+02:00 Wang Q : > Hi vtkusers, > > > I want to offscreen render some objects and save them to images. The example > on the wiki seems only support vtk 5.10 or earlier. It would be greatly > appreciated if anyone could share an executable example on vtk 6.3. I'd like to second this old question: Is there some example of off-screen rendering with current VTK? Elvis > > > Cheers, > > > Chiang > > > _______________________________________________ > 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 elvis.stansvik at orexplore.com Fri Oct 28 09:18:44 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 28 Oct 2016 15:18:44 +0200 Subject: [vtkusers] Combined on-screen and off-screen possible with VTK-7.0.0 on linux/X? In-Reply-To: References: Message-ID: Sorry for sort of necro-posting to this old thread, but I'm also interested in if on- and off-screen rendering is possible with the same build of VTK 7.x (using OpenGL2 backend in my case)? Or will I need separate builds of VTK for this purpose? (and if so, if there are plans to fix that). Thanks in advance, Elvis 2016-02-08 10:52 GMT+01:00 Michael Bachmann : > Hello list! > Hello Sophonet! > > First of all: > => Thank you Sophonet for investigating this issue and for describing the patch to "VTKROOT/CMake/vtkOpenGL.cmake". > I applied your patch and it also re-enables offscreen rendering on a headless machine (were no X DISPLAY is available). > > Actually I really wonder why there are only a few posts about this issue. > For the application I'm working on the ability of VTK7 to perform On-Screen and Off-Screen rendering with a single build of VTK is an absolute must-have! (Just like it was in VTK5 and VTK6) > > Please take the suggestion of Sophonet into account and re-enable it at least for the OpenGL rendering backend. > Making this available for the OpenGL2 backend should also be considered. > > Building the software twice, e.g. like it is done for paraview (non-headless) and the paraview server (headless) is not an option for everyone. > Actually is quite a big burden which has been silently put on the shoulders of VTK users. > > So please: Provide the facilities to perform On-Screen and Off-Screen rendering with a single build of VTK using OSMesa and X on Linux again! > > Best regards, > Michael > > > > Date: Thu, 21 Jan 2016 14:54:46 +0100 > From: Sophonet > To: vtkusers at vtk.org > Subject: Re: [vtkusers] Combined on-screen and off-screen possible > with VTK-7.0.0 on linux/X? > Message-ID: > Content-Type: text/plain; charset=UTF-8; format=flowed > > As one further follow-up of my two earlier e-mails, I have partly answered the question myself... remember, my question is related to the OpenGL (not OpenGL2) rendering backend. > > Two observations: > > 1. It seems that the current CMake flag VTK_OPENGL_HAS_OSMESA is useless, since it does not set anything relevant (see my e-mail below) 2. It seems that combined on-screen / off-screen rendering is possible (on Mesa 9.2.3 using the OpenGL rendering backend): > > As a quick hack, I have changed VTKROOT/CMake/vtkOpenGL.cmake such that > > * VTK_USE_OSMESA = True (triggers find_package OSMesa) > * VTK_USE_X = True (triggers find_package OpenGL) > > ...and (at the bottom) vtk_module_link_libraries links to *both*, ${OSMESA_LIBRARY} and ${OPENGL_LIBRARIES}. > > After this hack, I can successfully launch interactive (glx-)renderwindows as well as set (occasionally) set SetOffscreenRenderingOn(). > > Therefore, my suggestion would be to > > - remove VTK_OPENGL_HAS_OSMESA > - change the vtkOpenGL.cmake such that VTK_USE_OSMESA is exposed as an advanced option and is not exclusive w.r.t. VTK_USE_X, but may be set at the same time. > > Any comments? > > Thanks, > > Sophonet > > > Am 2016-01-19 11:06, schrieb Sophonet: >> As a follow-up, I have done some more investigations myself and am >> still lost: >> >> According to http://www.vtk.org/Wiki/VTK/OSMesa_Support, it seems that >> the legacy OSMesa library on linux systems is not needed anymore, but >> that software renderers (such as gallium llvm) can provide off-screen >> rendering themselves. Correct? >> >> When looking at VTKROOT/CMake/vtkOpenGL.cmake, it appears (not >> perfectly sure though) that in this case VTK_OPENGL_HAS_OSMESA needs >> to be turned on, since this flag sets VTK_CAN_DO_OFFSCREEN to 1. >> However, it seems to me that VTK_CAN_DO_OFFSCREEN is not used anywhere >> else (did a thorough "grep" on that keyword in the source tree). >> >> It seems that Marcus (Hanwell) was responsible for many of these >> changes in CMake - Marcus, can you help? >> >> What I would like to do is (see my first e-mail below) to >> simultaneously use interactive rendering and (occasionally) off-screen >> rendering (for generating static images), which was possible on Linux >> in earlier versions of VTK (e.g. 5.10), but is not possible anymore. >> >> Thanks, >> >> Sophonet >> >> >> Am 2016-01-15 12:44, schrieb Sophonet: >>> Dear list, >>> >>> in my application, I would like to display a vtkRenderWindow for user >>> interaction, but I also would like to use off-screen functionality >>> simultaneously to render pre-defined views / snapshots that are shown >>> as static images, like "thumbnails" for different datasets. >>> >>> This was possible in VTK 5.10 on linux (by creating a dedicated >>> vtkRenderWindow per thumbnail, setting OffScreenRenderingOn, >>> rendering and capturing the resulting image with a vtkWindowToImageFilter). >>> >>> In VTK-7.0.0.rc1, using the OpenGL rendering backend on Mesa 9.2.3, I >>> now get a segfault with the following backtrace: >>> >>> (gdb) bt >>> #0 0x00007fffd045db90 in xcb_glx_get_string_string_length () >>> from /usr/lib64/libxcb-glx.so.0 >>> #1 0x00007fffd0cce605 in ?? () from /usr/lib64/libGL.so.1 >>> #2 0x00007fffd0ccc2b6 in ?? () from /usr/lib64/libGL.so.1 >>> #3 0x00007fffd14cd086 in >>> vtkOpenGLExtensionManager::ReadOpenGLExtensions() () >>> from >>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>> /libvtkRenderingOpenGL-7.0.so.1 >>> #4 0x00007fffd14cbd50 in vtkOpenGLExtensionManager::Update() () >>> from >>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>> /libvtkRenderingOpenGL-7.0.so.1 >>> #5 0x00007fffd14cafd7 in >>> vtkOpenGLExtensionManager::ExtensionSupported(char const*) () >>> from >>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>> /libvtkRenderingOpenGL-7.0.so.1 >>> #6 0x00007fffd14ec8ea in vtkOpenGLRenderWindow::OpenGLInitContext() >>> () >>> from >>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>> /libvtkRenderingOpenGL-7.0.so.1 >>> #7 0x00007fffd14eae6d in vtkOpenGLRenderWindow::OpenGLInit() () >>> from >>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>> /libvtkRenderingOpenGL-7.0.so.1 >>> #8 0x00007fffd1576932 in >>> vtkXOpenGLRenderWindow::CreateOffScreenWindow(int, int) () >>> >>> Besides a remark that probably there could be better error handling >>> than just letting the app crash without an exception being thrown, I >>> would like to know if joint on-screen rendering and off-screen >>> rendering is still possible somehow with VTK-7.0.0. >>> >>> I have made two approaches when configuring via CMake: (i) Setting >>> VTK_OPENGL_HAS_OSMESA=True (no effect, I think I remember that in >>> earlier versions, this allowed OSMESA_INCLUDE_DIR etc. to be set; >>> this is not the case anymore, so does this flag still do something? >>> Note that for VTK 5.10 as mentioned above I did not have to set this >>> explicitly), (ii) Setting USE_OFFSXCREEN_EGL=True - resulting in an >>> error that this could not be combined with VTK_USE_X. >>> >>> On Windows, combining on-screen and off-screen rendering as described >>> in the second paragraph is possible. >>> >>> Any suggestions would be welcome, the Wiki page I have found on this >>> topic is not fully understandable to me >>> (http://www.vtk.org/Wiki/VTK/OSMesa_Support; does this mean that I >>> have to switch on VTK_OPENGL_HAS_OSMESA or not?...) >>> >>> Thanks, >>> >>> sophonet >>> >>> >>> _______________________________________________ >>> 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 > > 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 vtk12af6bc42 at kant.sophonet.de Fri Oct 28 09:31:52 2016 From: vtk12af6bc42 at kant.sophonet.de (Sophonet) Date: Fri, 28 Oct 2016 15:31:52 +0200 Subject: [vtkusers] =?utf-8?q?Combined_on-screen_and_off-screen_possible_w?= =?utf-8?q?ith_VTK-7=2E0=2E0_on_linux/X=3F?= In-Reply-To: References: Message-ID: <32b835610f0233b891eac5fdedb6feaa@srv19.sysproserver.de> Have you tried VTK 7.1.0.rc1? It includes the patch for combining on- and off-screen rendering (you need to set VTK_OPENGL_HAS_OSMESA=True). I have not tried it myself for OpenGL2, but if I recall correctly, the changes should not have been limited to OpenGL, but according to https://gitlab.kitware.com/vtk/vtk/blob/master/CMake/vtkOpenGL.cmake, line 48, VTK_USE_OFFSCREEN_EGL (Offscreen) may not be combined with VTK_USE_X (Onscreen). Am 2016-10-28 15:18, schrieb Elvis Stansvik: > Sorry for sort of necro-posting to this old thread, but I'm also > interested in if on- and off-screen rendering is possible with the > same build of VTK 7.x (using OpenGL2 backend in my case)? Or will I > need separate builds of VTK for this purpose? (and if so, if there are > plans to fix that). > > Thanks in advance, > Elvis > > 2016-02-08 10:52 GMT+01:00 Michael Bachmann > : >> Hello list! >> Hello Sophonet! >> >> First of all: >> => Thank you Sophonet for investigating this issue and for describing >> the patch to "VTKROOT/CMake/vtkOpenGL.cmake". >> I applied your patch and it also re-enables offscreen rendering >> on a headless machine (were no X DISPLAY is available). >> >> Actually I really wonder why there are only a few posts about this >> issue. >> For the application I'm working on the ability of VTK7 to perform >> On-Screen and Off-Screen rendering with a single build of VTK is an >> absolute must-have! (Just like it was in VTK5 and VTK6) >> >> Please take the suggestion of Sophonet into account and re-enable it >> at least for the OpenGL rendering backend. >> Making this available for the OpenGL2 backend should also be >> considered. >> >> Building the software twice, e.g. like it is done for paraview >> (non-headless) and the paraview server (headless) is not an option for >> everyone. >> Actually is quite a big burden which has been silently put on the >> shoulders of VTK users. >> >> So please: Provide the facilities to perform On-Screen and Off-Screen >> rendering with a single build of VTK using OSMesa and X on Linux >> again! >> >> Best regards, >> Michael >> >> >> >> Date: Thu, 21 Jan 2016 14:54:46 +0100 >> From: Sophonet >> To: vtkusers at vtk.org >> Subject: Re: [vtkusers] Combined on-screen and off-screen possible >> with VTK-7.0.0 on linux/X? >> Message-ID: >> Content-Type: text/plain; charset=UTF-8; format=flowed >> >> As one further follow-up of my two earlier e-mails, I have partly >> answered the question myself... remember, my question is related to >> the OpenGL (not OpenGL2) rendering backend. >> >> Two observations: >> >> 1. It seems that the current CMake flag VTK_OPENGL_HAS_OSMESA is >> useless, since it does not set anything relevant (see my e-mail below) >> 2. It seems that combined on-screen / off-screen rendering is possible >> (on Mesa 9.2.3 using the OpenGL rendering backend): >> >> As a quick hack, I have changed VTKROOT/CMake/vtkOpenGL.cmake such >> that >> >> * VTK_USE_OSMESA = True (triggers find_package OSMesa) >> * VTK_USE_X = True (triggers find_package OpenGL) >> >> ...and (at the bottom) vtk_module_link_libraries links to *both*, >> ${OSMESA_LIBRARY} and ${OPENGL_LIBRARIES}. >> >> After this hack, I can successfully launch interactive >> (glx-)renderwindows as well as set (occasionally) set >> SetOffscreenRenderingOn(). >> >> Therefore, my suggestion would be to >> >> - remove VTK_OPENGL_HAS_OSMESA >> - change the vtkOpenGL.cmake such that VTK_USE_OSMESA is exposed as an >> advanced option and is not exclusive w.r.t. VTK_USE_X, but may be set >> at the same time. >> >> Any comments? >> >> Thanks, >> >> Sophonet >> >> >> Am 2016-01-19 11:06, schrieb Sophonet: >>> As a follow-up, I have done some more investigations myself and am >>> still lost: >>> >>> According to http://www.vtk.org/Wiki/VTK/OSMesa_Support, it seems >>> that >>> the legacy OSMesa library on linux systems is not needed anymore, but >>> that software renderers (such as gallium llvm) can provide off-screen >>> rendering themselves. Correct? >>> >>> When looking at VTKROOT/CMake/vtkOpenGL.cmake, it appears (not >>> perfectly sure though) that in this case VTK_OPENGL_HAS_OSMESA needs >>> to be turned on, since this flag sets VTK_CAN_DO_OFFSCREEN to 1. >>> However, it seems to me that VTK_CAN_DO_OFFSCREEN is not used >>> anywhere >>> else (did a thorough "grep" on that keyword in the source tree). >>> >>> It seems that Marcus (Hanwell) was responsible for many of these >>> changes in CMake - Marcus, can you help? >>> >>> What I would like to do is (see my first e-mail below) to >>> simultaneously use interactive rendering and (occasionally) >>> off-screen >>> rendering (for generating static images), which was possible on Linux >>> in earlier versions of VTK (e.g. 5.10), but is not possible anymore. >>> >>> Thanks, >>> >>> Sophonet >>> >>> >>> Am 2016-01-15 12:44, schrieb Sophonet: >>>> Dear list, >>>> >>>> in my application, I would like to display a vtkRenderWindow for >>>> user >>>> interaction, but I also would like to use off-screen functionality >>>> simultaneously to render pre-defined views / snapshots that are >>>> shown >>>> as static images, like "thumbnails" for different datasets. >>>> >>>> This was possible in VTK 5.10 on linux (by creating a dedicated >>>> vtkRenderWindow per thumbnail, setting OffScreenRenderingOn, >>>> rendering and capturing the resulting image with a >>>> vtkWindowToImageFilter). >>>> >>>> In VTK-7.0.0.rc1, using the OpenGL rendering backend on Mesa 9.2.3, >>>> I >>>> now get a segfault with the following backtrace: >>>> >>>> (gdb) bt >>>> #0 0x00007fffd045db90 in xcb_glx_get_string_string_length () >>>> from /usr/lib64/libxcb-glx.so.0 >>>> #1 0x00007fffd0cce605 in ?? () from /usr/lib64/libGL.so.1 >>>> #2 0x00007fffd0ccc2b6 in ?? () from /usr/lib64/libGL.so.1 >>>> #3 0x00007fffd14cd086 in >>>> vtkOpenGLExtensionManager::ReadOpenGLExtensions() () >>>> from >>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>>> /libvtkRenderingOpenGL-7.0.so.1 >>>> #4 0x00007fffd14cbd50 in vtkOpenGLExtensionManager::Update() () >>>> from >>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>>> /libvtkRenderingOpenGL-7.0.so.1 >>>> #5 0x00007fffd14cafd7 in >>>> vtkOpenGLExtensionManager::ExtensionSupported(char const*) () >>>> from >>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>>> /libvtkRenderingOpenGL-7.0.so.1 >>>> #6 0x00007fffd14ec8ea in vtkOpenGLRenderWindow::OpenGLInitContext() >>>> () >>>> from >>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>>> /libvtkRenderingOpenGL-7.0.so.1 >>>> #7 0x00007fffd14eae6d in vtkOpenGLRenderWindow::OpenGLInit() () >>>> from >>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>>> /libvtkRenderingOpenGL-7.0.so.1 >>>> #8 0x00007fffd1576932 in >>>> vtkXOpenGLRenderWindow::CreateOffScreenWindow(int, int) () >>>> >>>> Besides a remark that probably there could be better error handling >>>> than just letting the app crash without an exception being thrown, I >>>> would like to know if joint on-screen rendering and off-screen >>>> rendering is still possible somehow with VTK-7.0.0. >>>> >>>> I have made two approaches when configuring via CMake: (i) Setting >>>> VTK_OPENGL_HAS_OSMESA=True (no effect, I think I remember that in >>>> earlier versions, this allowed OSMESA_INCLUDE_DIR etc. to be set; >>>> this is not the case anymore, so does this flag still do something? >>>> Note that for VTK 5.10 as mentioned above I did not have to set this >>>> explicitly), (ii) Setting USE_OFFSXCREEN_EGL=True - resulting in an >>>> error that this could not be combined with VTK_USE_X. >>>> >>>> On Windows, combining on-screen and off-screen rendering as >>>> described >>>> in the second paragraph is possible. >>>> >>>> Any suggestions would be welcome, the Wiki page I have found on this >>>> topic is not fully understandable to me >>>> (http://www.vtk.org/Wiki/VTK/OSMesa_Support; does this mean that I >>>> have to switch on VTK_OPENGL_HAS_OSMESA or not?...) >>>> >>>> Thanks, >>>> >>>> sophonet >>>> >>>> >>>> _______________________________________________ >>>> 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 >> >> 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 elvis.stansvik at orexplore.com Fri Oct 28 09:45:11 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 28 Oct 2016 15:45:11 +0200 Subject: [vtkusers] Combined on-screen and off-screen possible with VTK-7.0.0 on linux/X? In-Reply-To: <32b835610f0233b891eac5fdedb6feaa@srv19.sysproserver.de> References: <32b835610f0233b891eac5fdedb6feaa@srv19.sysproserver.de> Message-ID: 2016-10-28 15:31 GMT+02:00 Sophonet : > Have you tried VTK 7.1.0.rc1? It includes the patch for combining on- and > off-screen rendering (you need to set VTK_OPENGL_HAS_OSMESA=True). I have > not tried it myself for OpenGL2, but if I recall correctly, the changes > should not have been limited to OpenGL, but according to > https://gitlab.kitware.com/vtk/vtk/blob/master/CMake/vtkOpenGL.cmake, line > 48, VTK_USE_OFFSCREEN_EGL (Offscreen) may not be combined with VTK_USE_X > (Onscreen). Aha, thanks. I am using 7.1.0.rc1, but I'm not using that option. I'll try turning it on. Do you happen to know if there's an example of off-screen rendering with VTK 7.x somewhere? The one at http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/OffScreenRendering is for <= 5.10. Elvis > > > > Am 2016-10-28 15:18, schrieb Elvis Stansvik: >> >> Sorry for sort of necro-posting to this old thread, but I'm also >> interested in if on- and off-screen rendering is possible with the >> same build of VTK 7.x (using OpenGL2 backend in my case)? Or will I >> need separate builds of VTK for this purpose? (and if so, if there are >> plans to fix that). >> >> Thanks in advance, >> Elvis >> >> 2016-02-08 10:52 GMT+01:00 Michael Bachmann >> : >>> >>> Hello list! >>> Hello Sophonet! >>> >>> First of all: >>> => Thank you Sophonet for investigating this issue and for describing the >>> patch to "VTKROOT/CMake/vtkOpenGL.cmake". >>> I applied your patch and it also re-enables offscreen rendering on a >>> headless machine (were no X DISPLAY is available). >>> >>> Actually I really wonder why there are only a few posts about this issue. >>> For the application I'm working on the ability of VTK7 to perform >>> On-Screen and Off-Screen rendering with a single build of VTK is an absolute >>> must-have! (Just like it was in VTK5 and VTK6) >>> >>> Please take the suggestion of Sophonet into account and re-enable it at >>> least for the OpenGL rendering backend. >>> Making this available for the OpenGL2 backend should also be considered. >>> >>> Building the software twice, e.g. like it is done for paraview >>> (non-headless) and the paraview server (headless) is not an option for >>> everyone. >>> Actually is quite a big burden which has been silently put on the >>> shoulders of VTK users. >>> >>> So please: Provide the facilities to perform On-Screen and Off-Screen >>> rendering with a single build of VTK using OSMesa and X on Linux again! >>> >>> Best regards, >>> Michael >>> >>> >>> >>> Date: Thu, 21 Jan 2016 14:54:46 +0100 >>> From: Sophonet >>> To: vtkusers at vtk.org >>> Subject: Re: [vtkusers] Combined on-screen and off-screen possible >>> with VTK-7.0.0 on linux/X? >>> Message-ID: >>> Content-Type: text/plain; charset=UTF-8; format=flowed >>> >>> As one further follow-up of my two earlier e-mails, I have partly >>> answered the question myself... remember, my question is related to the >>> OpenGL (not OpenGL2) rendering backend. >>> >>> Two observations: >>> >>> 1. It seems that the current CMake flag VTK_OPENGL_HAS_OSMESA is useless, >>> since it does not set anything relevant (see my e-mail below) 2. It seems >>> that combined on-screen / off-screen rendering is possible (on Mesa 9.2.3 >>> using the OpenGL rendering backend): >>> >>> As a quick hack, I have changed VTKROOT/CMake/vtkOpenGL.cmake such >>> that >>> >>> * VTK_USE_OSMESA = True (triggers find_package OSMesa) >>> * VTK_USE_X = True (triggers find_package OpenGL) >>> >>> ...and (at the bottom) vtk_module_link_libraries links to *both*, >>> ${OSMESA_LIBRARY} and ${OPENGL_LIBRARIES}. >>> >>> After this hack, I can successfully launch interactive >>> (glx-)renderwindows as well as set (occasionally) set >>> SetOffscreenRenderingOn(). >>> >>> Therefore, my suggestion would be to >>> >>> - remove VTK_OPENGL_HAS_OSMESA >>> - change the vtkOpenGL.cmake such that VTK_USE_OSMESA is exposed as an >>> advanced option and is not exclusive w.r.t. VTK_USE_X, but may be set at the >>> same time. >>> >>> Any comments? >>> >>> Thanks, >>> >>> Sophonet >>> >>> >>> Am 2016-01-19 11:06, schrieb Sophonet: >>>> >>>> As a follow-up, I have done some more investigations myself and am >>>> still lost: >>>> >>>> According to http://www.vtk.org/Wiki/VTK/OSMesa_Support, it seems that >>>> the legacy OSMesa library on linux systems is not needed anymore, but >>>> that software renderers (such as gallium llvm) can provide off-screen >>>> rendering themselves. Correct? >>>> >>>> When looking at VTKROOT/CMake/vtkOpenGL.cmake, it appears (not >>>> perfectly sure though) that in this case VTK_OPENGL_HAS_OSMESA needs >>>> to be turned on, since this flag sets VTK_CAN_DO_OFFSCREEN to 1. >>>> However, it seems to me that VTK_CAN_DO_OFFSCREEN is not used anywhere >>>> else (did a thorough "grep" on that keyword in the source tree). >>>> >>>> It seems that Marcus (Hanwell) was responsible for many of these >>>> changes in CMake - Marcus, can you help? >>>> >>>> What I would like to do is (see my first e-mail below) to >>>> simultaneously use interactive rendering and (occasionally) off-screen >>>> rendering (for generating static images), which was possible on Linux >>>> in earlier versions of VTK (e.g. 5.10), but is not possible anymore. >>>> >>>> Thanks, >>>> >>>> Sophonet >>>> >>>> >>>> Am 2016-01-15 12:44, schrieb Sophonet: >>>>> >>>>> Dear list, >>>>> >>>>> in my application, I would like to display a vtkRenderWindow for user >>>>> interaction, but I also would like to use off-screen functionality >>>>> simultaneously to render pre-defined views / snapshots that are shown >>>>> as static images, like "thumbnails" for different datasets. >>>>> >>>>> This was possible in VTK 5.10 on linux (by creating a dedicated >>>>> vtkRenderWindow per thumbnail, setting OffScreenRenderingOn, >>>>> rendering and capturing the resulting image with a >>>>> vtkWindowToImageFilter). >>>>> >>>>> In VTK-7.0.0.rc1, using the OpenGL rendering backend on Mesa 9.2.3, I >>>>> now get a segfault with the following backtrace: >>>>> >>>>> (gdb) bt >>>>> #0 0x00007fffd045db90 in xcb_glx_get_string_string_length () >>>>> from /usr/lib64/libxcb-glx.so.0 >>>>> #1 0x00007fffd0cce605 in ?? () from /usr/lib64/libGL.so.1 >>>>> #2 0x00007fffd0ccc2b6 in ?? () from /usr/lib64/libGL.so.1 >>>>> #3 0x00007fffd14cd086 in >>>>> vtkOpenGLExtensionManager::ReadOpenGLExtensions() () >>>>> from >>>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>>>> /libvtkRenderingOpenGL-7.0.so.1 >>>>> #4 0x00007fffd14cbd50 in vtkOpenGLExtensionManager::Update() () >>>>> from >>>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>>>> /libvtkRenderingOpenGL-7.0.so.1 >>>>> #5 0x00007fffd14cafd7 in >>>>> vtkOpenGLExtensionManager::ExtensionSupported(char const*) () >>>>> from >>>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>>>> /libvtkRenderingOpenGL-7.0.so.1 >>>>> #6 0x00007fffd14ec8ea in vtkOpenGLRenderWindow::OpenGLInitContext() >>>>> () >>>>> from >>>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>>>> /libvtkRenderingOpenGL-7.0.so.1 >>>>> #7 0x00007fffd14eae6d in vtkOpenGLRenderWindow::OpenGLInit() () >>>>> from >>>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >>>>> /libvtkRenderingOpenGL-7.0.so.1 >>>>> #8 0x00007fffd1576932 in >>>>> vtkXOpenGLRenderWindow::CreateOffScreenWindow(int, int) () >>>>> >>>>> Besides a remark that probably there could be better error handling >>>>> than just letting the app crash without an exception being thrown, I >>>>> would like to know if joint on-screen rendering and off-screen >>>>> rendering is still possible somehow with VTK-7.0.0. >>>>> >>>>> I have made two approaches when configuring via CMake: (i) Setting >>>>> VTK_OPENGL_HAS_OSMESA=True (no effect, I think I remember that in >>>>> earlier versions, this allowed OSMESA_INCLUDE_DIR etc. to be set; >>>>> this is not the case anymore, so does this flag still do something? >>>>> Note that for VTK 5.10 as mentioned above I did not have to set this >>>>> explicitly), (ii) Setting USE_OFFSXCREEN_EGL=True - resulting in an >>>>> error that this could not be combined with VTK_USE_X. >>>>> >>>>> On Windows, combining on-screen and off-screen rendering as described >>>>> in the second paragraph is possible. >>>>> >>>>> Any suggestions would be welcome, the Wiki page I have found on this >>>>> topic is not fully understandable to me >>>>> (http://www.vtk.org/Wiki/VTK/OSMesa_Support; does this mean that I >>>>> have to switch on VTK_OPENGL_HAS_OSMESA or not?...) >>>>> >>>>> Thanks, >>>>> >>>>> sophonet >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>> >>> 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 > > 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 ken.martin at kitware.com Fri Oct 28 09:49:22 2016 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 28 Oct 2016 09:49:22 -0400 Subject: [vtkusers] Combined on-screen and off-screen possible with VTK-7.0.0 on linux/X? In-Reply-To: References: <32b835610f0233b891eac5fdedb6feaa@srv19.sysproserver.de> Message-ID: I believe you can use renderWindow->OffScreenRenderingOn(); renderWindow->Render(); renderWindow->OffScreenRenderingOff(); renderWindow->Render(); to swap between on/offscreen. There is a new test TestToggleOSWithInteractor that checks for this. As a warning that test works on OpenGL2 with Windows and Linux (not EGL) only I think. Other combinations may have issues. Revamping the window creation/offscreen code is on my list for the next release. On Fri, Oct 28, 2016 at 9:45 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > 2016-10-28 15:31 GMT+02:00 Sophonet : > > Have you tried VTK 7.1.0.rc1? It includes the patch for combining on- and > > off-screen rendering (you need to set VTK_OPENGL_HAS_OSMESA=True). I have > > not tried it myself for OpenGL2, but if I recall correctly, the changes > > should not have been limited to OpenGL, but according to > > https://gitlab.kitware.com/vtk/vtk/blob/master/CMake/vtkOpenGL.cmake, > line > > 48, VTK_USE_OFFSCREEN_EGL (Offscreen) may not be combined with VTK_USE_X > > (Onscreen). > > Aha, thanks. I am using 7.1.0.rc1, but I'm not using that option. I'll > try turning it on. > > Do you happen to know if there's an example of off-screen rendering > with VTK 7.x somewhere? The one at > > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/OffScreenRendering > > is for <= 5.10. > > Elvis > > > > > > > > > Am 2016-10-28 15:18, schrieb Elvis Stansvik: > >> > >> Sorry for sort of necro-posting to this old thread, but I'm also > >> interested in if on- and off-screen rendering is possible with the > >> same build of VTK 7.x (using OpenGL2 backend in my case)? Or will I > >> need separate builds of VTK for this purpose? (and if so, if there are > >> plans to fix that). > >> > >> Thanks in advance, > >> Elvis > >> > >> 2016-02-08 10:52 GMT+01:00 Michael Bachmann > >> : > >>> > >>> Hello list! > >>> Hello Sophonet! > >>> > >>> First of all: > >>> => Thank you Sophonet for investigating this issue and for describing > the > >>> patch to "VTKROOT/CMake/vtkOpenGL.cmake". > >>> I applied your patch and it also re-enables offscreen rendering > on a > >>> headless machine (were no X DISPLAY is available). > >>> > >>> Actually I really wonder why there are only a few posts about this > issue. > >>> For the application I'm working on the ability of VTK7 to perform > >>> On-Screen and Off-Screen rendering with a single build of VTK is an > absolute > >>> must-have! (Just like it was in VTK5 and VTK6) > >>> > >>> Please take the suggestion of Sophonet into account and re-enable it at > >>> least for the OpenGL rendering backend. > >>> Making this available for the OpenGL2 backend should also be > considered. > >>> > >>> Building the software twice, e.g. like it is done for paraview > >>> (non-headless) and the paraview server (headless) is not an option for > >>> everyone. > >>> Actually is quite a big burden which has been silently put on the > >>> shoulders of VTK users. > >>> > >>> So please: Provide the facilities to perform On-Screen and Off-Screen > >>> rendering with a single build of VTK using OSMesa and X on Linux again! > >>> > >>> Best regards, > >>> Michael > >>> > >>> > >>> > >>> Date: Thu, 21 Jan 2016 14:54:46 +0100 > >>> From: Sophonet > >>> To: vtkusers at vtk.org > >>> Subject: Re: [vtkusers] Combined on-screen and off-screen possible > >>> with VTK-7.0.0 on linux/X? > >>> Message-ID: > >>> Content-Type: text/plain; charset=UTF-8; format=flowed > >>> > >>> As one further follow-up of my two earlier e-mails, I have partly > >>> answered the question myself... remember, my question is related to the > >>> OpenGL (not OpenGL2) rendering backend. > >>> > >>> Two observations: > >>> > >>> 1. It seems that the current CMake flag VTK_OPENGL_HAS_OSMESA is > useless, > >>> since it does not set anything relevant (see my e-mail below) 2. It > seems > >>> that combined on-screen / off-screen rendering is possible (on Mesa > 9.2.3 > >>> using the OpenGL rendering backend): > >>> > >>> As a quick hack, I have changed VTKROOT/CMake/vtkOpenGL.cmake such > >>> that > >>> > >>> * VTK_USE_OSMESA = True (triggers find_package OSMesa) > >>> * VTK_USE_X = True (triggers find_package OpenGL) > >>> > >>> ...and (at the bottom) vtk_module_link_libraries links to *both*, > >>> ${OSMESA_LIBRARY} and ${OPENGL_LIBRARIES}. > >>> > >>> After this hack, I can successfully launch interactive > >>> (glx-)renderwindows as well as set (occasionally) set > >>> SetOffscreenRenderingOn(). > >>> > >>> Therefore, my suggestion would be to > >>> > >>> - remove VTK_OPENGL_HAS_OSMESA > >>> - change the vtkOpenGL.cmake such that VTK_USE_OSMESA is exposed as an > >>> advanced option and is not exclusive w.r.t. VTK_USE_X, but may be set > at the > >>> same time. > >>> > >>> Any comments? > >>> > >>> Thanks, > >>> > >>> Sophonet > >>> > >>> > >>> Am 2016-01-19 11:06, schrieb Sophonet: > >>>> > >>>> As a follow-up, I have done some more investigations myself and am > >>>> still lost: > >>>> > >>>> According to http://www.vtk.org/Wiki/VTK/OSMesa_Support, it seems > that > >>>> the legacy OSMesa library on linux systems is not needed anymore, but > >>>> that software renderers (such as gallium llvm) can provide off-screen > >>>> rendering themselves. Correct? > >>>> > >>>> When looking at VTKROOT/CMake/vtkOpenGL.cmake, it appears (not > >>>> perfectly sure though) that in this case VTK_OPENGL_HAS_OSMESA needs > >>>> to be turned on, since this flag sets VTK_CAN_DO_OFFSCREEN to 1. > >>>> However, it seems to me that VTK_CAN_DO_OFFSCREEN is not used anywhere > >>>> else (did a thorough "grep" on that keyword in the source tree). > >>>> > >>>> It seems that Marcus (Hanwell) was responsible for many of these > >>>> changes in CMake - Marcus, can you help? > >>>> > >>>> What I would like to do is (see my first e-mail below) to > >>>> simultaneously use interactive rendering and (occasionally) off-screen > >>>> rendering (for generating static images), which was possible on Linux > >>>> in earlier versions of VTK (e.g. 5.10), but is not possible anymore. > >>>> > >>>> Thanks, > >>>> > >>>> Sophonet > >>>> > >>>> > >>>> Am 2016-01-15 12:44, schrieb Sophonet: > >>>>> > >>>>> Dear list, > >>>>> > >>>>> in my application, I would like to display a vtkRenderWindow for user > >>>>> interaction, but I also would like to use off-screen functionality > >>>>> simultaneously to render pre-defined views / snapshots that are shown > >>>>> as static images, like "thumbnails" for different datasets. > >>>>> > >>>>> This was possible in VTK 5.10 on linux (by creating a dedicated > >>>>> vtkRenderWindow per thumbnail, setting OffScreenRenderingOn, > >>>>> rendering and capturing the resulting image with a > >>>>> vtkWindowToImageFilter). > >>>>> > >>>>> In VTK-7.0.0.rc1, using the OpenGL rendering backend on Mesa 9.2.3, I > >>>>> now get a segfault with the following backtrace: > >>>>> > >>>>> (gdb) bt > >>>>> #0 0x00007fffd045db90 in xcb_glx_get_string_string_length () > >>>>> from /usr/lib64/libxcb-glx.so.0 > >>>>> #1 0x00007fffd0cce605 in ?? () from /usr/lib64/libGL.so.1 > >>>>> #2 0x00007fffd0ccc2b6 in ?? () from /usr/lib64/libGL.so.1 > >>>>> #3 0x00007fffd14cd086 in > >>>>> vtkOpenGLExtensionManager::ReadOpenGLExtensions() () > >>>>> from > >>>>> /import/QUINTA/non-public/software/linux-install/quinta_ > gcc_debug/lib > >>>>> /libvtkRenderingOpenGL-7.0.so.1 > >>>>> #4 0x00007fffd14cbd50 in vtkOpenGLExtensionManager::Update() () > >>>>> from > >>>>> /import/QUINTA/non-public/software/linux-install/quinta_ > gcc_debug/lib > >>>>> /libvtkRenderingOpenGL-7.0.so.1 > >>>>> #5 0x00007fffd14cafd7 in > >>>>> vtkOpenGLExtensionManager::ExtensionSupported(char const*) () > >>>>> from > >>>>> /import/QUINTA/non-public/software/linux-install/quinta_ > gcc_debug/lib > >>>>> /libvtkRenderingOpenGL-7.0.so.1 > >>>>> #6 0x00007fffd14ec8ea in vtkOpenGLRenderWindow::OpenGLInitContext() > >>>>> () > >>>>> from > >>>>> /import/QUINTA/non-public/software/linux-install/quinta_ > gcc_debug/lib > >>>>> /libvtkRenderingOpenGL-7.0.so.1 > >>>>> #7 0x00007fffd14eae6d in vtkOpenGLRenderWindow::OpenGLInit() () > >>>>> from > >>>>> /import/QUINTA/non-public/software/linux-install/quinta_ > gcc_debug/lib > >>>>> /libvtkRenderingOpenGL-7.0.so.1 > >>>>> #8 0x00007fffd1576932 in > >>>>> vtkXOpenGLRenderWindow::CreateOffScreenWindow(int, int) () > >>>>> > >>>>> Besides a remark that probably there could be better error handling > >>>>> than just letting the app crash without an exception being thrown, I > >>>>> would like to know if joint on-screen rendering and off-screen > >>>>> rendering is still possible somehow with VTK-7.0.0. > >>>>> > >>>>> I have made two approaches when configuring via CMake: (i) Setting > >>>>> VTK_OPENGL_HAS_OSMESA=True (no effect, I think I remember that in > >>>>> earlier versions, this allowed OSMESA_INCLUDE_DIR etc. to be set; > >>>>> this is not the case anymore, so does this flag still do something? > >>>>> Note that for VTK 5.10 as mentioned above I did not have to set this > >>>>> explicitly), (ii) Setting USE_OFFSXCREEN_EGL=True - resulting in an > >>>>> error that this could not be combined with VTK_USE_X. > >>>>> > >>>>> On Windows, combining on-screen and off-screen rendering as described > >>>>> in the second paragraph is possible. > >>>>> > >>>>> Any suggestions would be welcome, the Wiki page I have found on this > >>>>> topic is not fully understandable to me > >>>>> (http://www.vtk.org/Wiki/VTK/OSMesa_Support; does this mean that I > >>>>> have to switch on VTK_OPENGL_HAS_OSMESA or not?...) > >>>>> > >>>>> Thanks, > >>>>> > >>>>> sophonet > >>>>> > >>>>> > >>>>> _______________________________________________ > >>>>> 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 > >>> > >>> 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 > > > > 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 > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Fri Oct 28 09:52:02 2016 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 28 Oct 2016 15:52:02 +0200 Subject: [vtkusers] Combined on-screen and off-screen possible with VTK-7.0.0 on linux/X? In-Reply-To: References: <32b835610f0233b891eac5fdedb6feaa@srv19.sysproserver.de> Message-ID: 2016-10-28 15:49 GMT+02:00 Ken Martin : > I believe you can use > > renderWindow->OffScreenRenderingOn(); > renderWindow->Render(); > renderWindow->OffScreenRenderingOff(); > renderWindow->Render(); > > to swap between on/offscreen. There is a new test TestToggleOSWithInteractor > that checks for this. As a warning that test works on OpenGL2 with Windows > and Linux (not EGL) only I think. Other combinations may have issues. > Revamping the window creation/offscreen code is on my list for the next > release. Aha, as simple as that. Thanks Ken. Elvis > > > > > > On Fri, Oct 28, 2016 at 9:45 AM, Elvis Stansvik > wrote: >> >> 2016-10-28 15:31 GMT+02:00 Sophonet : >> > Have you tried VTK 7.1.0.rc1? It includes the patch for combining on- >> > and >> > off-screen rendering (you need to set VTK_OPENGL_HAS_OSMESA=True). I >> > have >> > not tried it myself for OpenGL2, but if I recall correctly, the changes >> > should not have been limited to OpenGL, but according to >> > https://gitlab.kitware.com/vtk/vtk/blob/master/CMake/vtkOpenGL.cmake, >> > line >> > 48, VTK_USE_OFFSCREEN_EGL (Offscreen) may not be combined with VTK_USE_X >> > (Onscreen). >> >> Aha, thanks. I am using 7.1.0.rc1, but I'm not using that option. I'll >> try turning it on. >> >> Do you happen to know if there's an example of off-screen rendering >> with VTK 7.x somewhere? The one at >> >> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/OffScreenRendering >> >> is for <= 5.10. >> >> Elvis >> >> > >> > >> > >> > Am 2016-10-28 15:18, schrieb Elvis Stansvik: >> >> >> >> Sorry for sort of necro-posting to this old thread, but I'm also >> >> interested in if on- and off-screen rendering is possible with the >> >> same build of VTK 7.x (using OpenGL2 backend in my case)? Or will I >> >> need separate builds of VTK for this purpose? (and if so, if there are >> >> plans to fix that). >> >> >> >> Thanks in advance, >> >> Elvis >> >> >> >> 2016-02-08 10:52 GMT+01:00 Michael Bachmann >> >> : >> >>> >> >>> Hello list! >> >>> Hello Sophonet! >> >>> >> >>> First of all: >> >>> => Thank you Sophonet for investigating this issue and for describing >> >>> the >> >>> patch to "VTKROOT/CMake/vtkOpenGL.cmake". >> >>> I applied your patch and it also re-enables offscreen rendering >> >>> on a >> >>> headless machine (were no X DISPLAY is available). >> >>> >> >>> Actually I really wonder why there are only a few posts about this >> >>> issue. >> >>> For the application I'm working on the ability of VTK7 to perform >> >>> On-Screen and Off-Screen rendering with a single build of VTK is an >> >>> absolute >> >>> must-have! (Just like it was in VTK5 and VTK6) >> >>> >> >>> Please take the suggestion of Sophonet into account and re-enable it >> >>> at >> >>> least for the OpenGL rendering backend. >> >>> Making this available for the OpenGL2 backend should also be >> >>> considered. >> >>> >> >>> Building the software twice, e.g. like it is done for paraview >> >>> (non-headless) and the paraview server (headless) is not an option for >> >>> everyone. >> >>> Actually is quite a big burden which has been silently put on the >> >>> shoulders of VTK users. >> >>> >> >>> So please: Provide the facilities to perform On-Screen and Off-Screen >> >>> rendering with a single build of VTK using OSMesa and X on Linux >> >>> again! >> >>> >> >>> Best regards, >> >>> Michael >> >>> >> >>> >> >>> >> >>> Date: Thu, 21 Jan 2016 14:54:46 +0100 >> >>> From: Sophonet >> >>> To: vtkusers at vtk.org >> >>> Subject: Re: [vtkusers] Combined on-screen and off-screen possible >> >>> with VTK-7.0.0 on linux/X? >> >>> Message-ID: >> >>> Content-Type: text/plain; charset=UTF-8; format=flowed >> >>> >> >>> As one further follow-up of my two earlier e-mails, I have partly >> >>> answered the question myself... remember, my question is related to >> >>> the >> >>> OpenGL (not OpenGL2) rendering backend. >> >>> >> >>> Two observations: >> >>> >> >>> 1. It seems that the current CMake flag VTK_OPENGL_HAS_OSMESA is >> >>> useless, >> >>> since it does not set anything relevant (see my e-mail below) 2. It >> >>> seems >> >>> that combined on-screen / off-screen rendering is possible (on Mesa >> >>> 9.2.3 >> >>> using the OpenGL rendering backend): >> >>> >> >>> As a quick hack, I have changed VTKROOT/CMake/vtkOpenGL.cmake such >> >>> that >> >>> >> >>> * VTK_USE_OSMESA = True (triggers find_package OSMesa) >> >>> * VTK_USE_X = True (triggers find_package OpenGL) >> >>> >> >>> ...and (at the bottom) vtk_module_link_libraries links to *both*, >> >>> ${OSMESA_LIBRARY} and ${OPENGL_LIBRARIES}. >> >>> >> >>> After this hack, I can successfully launch interactive >> >>> (glx-)renderwindows as well as set (occasionally) set >> >>> SetOffscreenRenderingOn(). >> >>> >> >>> Therefore, my suggestion would be to >> >>> >> >>> - remove VTK_OPENGL_HAS_OSMESA >> >>> - change the vtkOpenGL.cmake such that VTK_USE_OSMESA is exposed as an >> >>> advanced option and is not exclusive w.r.t. VTK_USE_X, but may be set >> >>> at the >> >>> same time. >> >>> >> >>> Any comments? >> >>> >> >>> Thanks, >> >>> >> >>> Sophonet >> >>> >> >>> >> >>> Am 2016-01-19 11:06, schrieb Sophonet: >> >>>> >> >>>> As a follow-up, I have done some more investigations myself and am >> >>>> still lost: >> >>>> >> >>>> According to http://www.vtk.org/Wiki/VTK/OSMesa_Support, it seems >> >>>> that >> >>>> the legacy OSMesa library on linux systems is not needed anymore, but >> >>>> that software renderers (such as gallium llvm) can provide off-screen >> >>>> rendering themselves. Correct? >> >>>> >> >>>> When looking at VTKROOT/CMake/vtkOpenGL.cmake, it appears (not >> >>>> perfectly sure though) that in this case VTK_OPENGL_HAS_OSMESA needs >> >>>> to be turned on, since this flag sets VTK_CAN_DO_OFFSCREEN to 1. >> >>>> However, it seems to me that VTK_CAN_DO_OFFSCREEN is not used >> >>>> anywhere >> >>>> else (did a thorough "grep" on that keyword in the source tree). >> >>>> >> >>>> It seems that Marcus (Hanwell) was responsible for many of these >> >>>> changes in CMake - Marcus, can you help? >> >>>> >> >>>> What I would like to do is (see my first e-mail below) to >> >>>> simultaneously use interactive rendering and (occasionally) >> >>>> off-screen >> >>>> rendering (for generating static images), which was possible on Linux >> >>>> in earlier versions of VTK (e.g. 5.10), but is not possible anymore. >> >>>> >> >>>> Thanks, >> >>>> >> >>>> Sophonet >> >>>> >> >>>> >> >>>> Am 2016-01-15 12:44, schrieb Sophonet: >> >>>>> >> >>>>> Dear list, >> >>>>> >> >>>>> in my application, I would like to display a vtkRenderWindow for >> >>>>> user >> >>>>> interaction, but I also would like to use off-screen functionality >> >>>>> simultaneously to render pre-defined views / snapshots that are >> >>>>> shown >> >>>>> as static images, like "thumbnails" for different datasets. >> >>>>> >> >>>>> This was possible in VTK 5.10 on linux (by creating a dedicated >> >>>>> vtkRenderWindow per thumbnail, setting OffScreenRenderingOn, >> >>>>> rendering and capturing the resulting image with a >> >>>>> vtkWindowToImageFilter). >> >>>>> >> >>>>> In VTK-7.0.0.rc1, using the OpenGL rendering backend on Mesa 9.2.3, >> >>>>> I >> >>>>> now get a segfault with the following backtrace: >> >>>>> >> >>>>> (gdb) bt >> >>>>> #0 0x00007fffd045db90 in xcb_glx_get_string_string_length () >> >>>>> from /usr/lib64/libxcb-glx.so.0 >> >>>>> #1 0x00007fffd0cce605 in ?? () from /usr/lib64/libGL.so.1 >> >>>>> #2 0x00007fffd0ccc2b6 in ?? () from /usr/lib64/libGL.so.1 >> >>>>> #3 0x00007fffd14cd086 in >> >>>>> vtkOpenGLExtensionManager::ReadOpenGLExtensions() () >> >>>>> from >> >>>>> >> >>>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >> >>>>> /libvtkRenderingOpenGL-7.0.so.1 >> >>>>> #4 0x00007fffd14cbd50 in vtkOpenGLExtensionManager::Update() () >> >>>>> from >> >>>>> >> >>>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >> >>>>> /libvtkRenderingOpenGL-7.0.so.1 >> >>>>> #5 0x00007fffd14cafd7 in >> >>>>> vtkOpenGLExtensionManager::ExtensionSupported(char const*) () >> >>>>> from >> >>>>> >> >>>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >> >>>>> /libvtkRenderingOpenGL-7.0.so.1 >> >>>>> #6 0x00007fffd14ec8ea in vtkOpenGLRenderWindow::OpenGLInitContext() >> >>>>> () >> >>>>> from >> >>>>> >> >>>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >> >>>>> /libvtkRenderingOpenGL-7.0.so.1 >> >>>>> #7 0x00007fffd14eae6d in vtkOpenGLRenderWindow::OpenGLInit() () >> >>>>> from >> >>>>> >> >>>>> /import/QUINTA/non-public/software/linux-install/quinta_gcc_debug/lib >> >>>>> /libvtkRenderingOpenGL-7.0.so.1 >> >>>>> #8 0x00007fffd1576932 in >> >>>>> vtkXOpenGLRenderWindow::CreateOffScreenWindow(int, int) () >> >>>>> >> >>>>> Besides a remark that probably there could be better error handling >> >>>>> than just letting the app crash without an exception being thrown, I >> >>>>> would like to know if joint on-screen rendering and off-screen >> >>>>> rendering is still possible somehow with VTK-7.0.0. >> >>>>> >> >>>>> I have made two approaches when configuring via CMake: (i) Setting >> >>>>> VTK_OPENGL_HAS_OSMESA=True (no effect, I think I remember that in >> >>>>> earlier versions, this allowed OSMESA_INCLUDE_DIR etc. to be set; >> >>>>> this is not the case anymore, so does this flag still do something? >> >>>>> Note that for VTK 5.10 as mentioned above I did not have to set this >> >>>>> explicitly), (ii) Setting USE_OFFSXCREEN_EGL=True - resulting in an >> >>>>> error that this could not be combined with VTK_USE_X. >> >>>>> >> >>>>> On Windows, combining on-screen and off-screen rendering as >> >>>>> described >> >>>>> in the second paragraph is possible. >> >>>>> >> >>>>> Any suggestions would be welcome, the Wiki page I have found on this >> >>>>> topic is not fully understandable to me >> >>>>> (http://www.vtk.org/Wiki/VTK/OSMesa_Support; does this mean that I >> >>>>> have to switch on VTK_OPENGL_HAS_OSMESA or not?...) >> >>>>> >> >>>>> Thanks, >> >>>>> >> >>>>> sophonet >> >>>>> >> >>>>> >> >>>>> _______________________________________________ >> >>>>> 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 >> >>> >> >>> 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 >> > >> > 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 > > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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 aborsic at ne-scientific.com Fri Oct 28 10:39:02 2016 From: aborsic at ne-scientific.com (Andrea Borsic) Date: Fri, 28 Oct 2016 16:39:02 +0200 Subject: [vtkusers] Display Error under Ubuntu 16.04 In-Reply-To: References: <5fd8ea8d-e144-18aa-26d9-169827416ba4@ne-scientific.com> <05478125-ddf1-ae44-223c-c3fbc5c483d7@ne-scientific.com> <56f148d0-33da-f2c2-e449-79fec4a663fe@ne-scientific.com> Message-ID: <9bc8b0d4-0920-5e64-255e-08d4b48d11cd@ne-scientific.com> Hi Elvis, Thanks for testing this. Actually I started out on Ubuntu with your Jumbo VTK package, and is it was throwing this error, I switched to compiling from source - with the same result. Cheers, Andrea > I tested your example with the 7.1.0.rc1 build we use at work (also > Ubuntu 16.04), and I also get an X error, though a slightly different > one: > > X Error of failed request: BadMatch (invalid parameter attributes) > Major opcode of failed request: 154 (GLX) > Minor opcode of failed request: 11 (X_GLXSwapBuffers) > Serial number of failed request: 2141 > Current serial number in output stream: 2143 > > I can confirm that commenting the interactor initialization/start, it > terminates OK. > > Haven't looked closer at what's happening, but just thought I should share. > > For brevity, these are the flags we use when configuring our build: > > -DCMAKE_INSTALL_PREFIX=/opt/VTK7 \ > -DVTK_Group_Qt=ON \ > -DVTK_QT_VERSION=5 \ > -DVTK_Group_Imaging=ON \ > -DVTK_Group_Views=ON \ > -DModule_vtkRenderingFreeTypeFontConfig=ON \ > -DVTK_WRAP_PYTHON=ON \ > -DVTK_PYTHON_VERSION=3 \ > -DPYTHON_EXECUTABLE=/usr/bin/python3 \ > -DPYTHON_INCLUDE_DIR=/usr/include/python3.5 \ > -DPYTHON_LIBRARY=/usr/lib/$(DEB_HOST_MULTIARCH)/libpython3.5m.so \ > -DBUILD_TESTING=OFF \ > -DVTK_USE_SYSTEM_LIBRARIES=ON \ > -DVTK_USE_SYSTEM_LIBPROJ4=OFF \ > -DVTK_USE_SYSTEM_GL2PS=OFF \ > -DCMAKE_BUILD_TYPE=Release > > Elvis > >> Best Regards, >> >> Andrea >> >> >> >> On 27/10/2016 23:25, Ken Martin wrote: >> >> Hmm, well that means VTK's rendering engine is initializing OK and running. >> So it could be something specific to the python app. If you run some of the >> python tests do they work? ala >> >> ctest -R Python -I ,,23 >> >> thats runs 1/23rd of the python tests >> >> if those all pass then it must be something specific to your script >> >> >> >> On Thu, Oct 27, 2016 at 5:16 PM, Andrea Borsic >> wrote: >>> Hi Ken, >>> >>> The test seems to run fine, I am attaching below the output. >>> >>> Best Regards, >>> >>> Andrea >>> >>> >>> ----------------------- >>> >>> andrea at i7-Desktop:/opt/VTK-7.1.0.rc1-bin$ sudo ctest -R VBOPLY -VV >>> UpdateCTestConfiguration from >>> :/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl >>> Parse Config file:/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl >>> Add coverage exclude regular expressions. >>> Add coverage exclude: vtk.*TCLInit.cxx >>> Add coverage exclude: vtk[^\.]+(Java|Python|Tcl).cxx >>> Add coverage exclude: .*vtkOpenGLState.* >>> Add coverage exclude: .*Testing.Cxx.*cxx >>> Add coverage exclude: .*Testing.Cxx.*h >>> Add coverage exclude: .*moc_.*cxx >>> Add coverage exclude: .*/Rendering/OpenGL/vtkgl.* >>> Add coverage exclude: .*/Utilities/.* >>> Add coverage exclude: .*/ThirdParty/.* >>> Add coverage exclude: .*vtkOpenGLPolyDataMapper.* >>> SetCTestConfiguration:CMakeCommand:/usr/bin/cmake >>> UpdateCTestConfiguration from >>> :/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl >>> Parse Config file:/opt/VTK-7.1.0.rc1-bin/DartConfiguration.tcl >>> Test project /opt/VTK-7.1.0.rc1-bin >>> Constructing a list of tests >>> Done constructing a list of tests >>> Checking test dependency graph... >>> Checking test dependency graph end >>> test 1551 >>> Start 1551: vtkRenderingOpenGL2Cxx-TestVBOPLYMapper >>> >>> 1551: Test command: /opt/VTK-7.1.0.rc1-bin/bin/vtkRenderingOpenGL2CxxTests >>> "TestVBOPLYMapper" "-D" "/opt/VTK-7.1.0.rc1-bin/ExternalData//Testing" "-T" >>> "/opt/VTK-7.1.0.rc1-bin/Testing/Temporary" "-V" >>> "/opt/VTK-7.1.0.rc1-bin/ExternalData/Rendering/OpenGL2/Testing/Data/Baseline/TestVBOPLYMapper.png" >>> 1551: Test timeout computed to be: 3600 >>> 1551: first render time: 0.132993 >>> 1551: opengl version 4.5 >>> 1551: interactive render time: 0.0166377 >>> 1551: number of triangles: 871414 >>> 1551: triangles per second: 5.2376e+07 >>> 1551: >> type="numeric/double">0>> name="BaselineImage" >>> type="text/string">Standard>> name="WallTime" type="numeric/double">0.059715 >>> 1551: >> type="numeric/double">0.037073 >>> 1/1 Test #1551: vtkRenderingOpenGL2Cxx-TestVBOPLYMapper ... Passed >>> 0.91 sec >>> >>> The following tests passed: >>> vtkRenderingOpenGL2Cxx-TestVBOPLYMapper >>> >>> 100% tests passed, 0 tests failed out of 1 >>> >>> Label Time Summary: >>> vtkRenderingOpenGL2 = 0.91 sec (1 test) >>> >>> Total Test time (real) = 0.97 sec >>> >>> >>> >>> >>> >>> On 27/10/2016 18:56, Ken Martin wrote: >>> >>> Can you try running ctest -R VBOPLY -VV and let us know the output? >>> >>> On Thu, Oct 27, 2016 at 12:46 PM, Andrea Borsic >>> wrote: >>>> Dear All, >>>> >>>> I have successfully compiled VTK 7.0.0 under Ubuntu 16.04.1 LTS on a >>>> computer with the following hw configuration: >>>> >>>> Processor: Intel Core i7 >>>> >>>> GPU: NVIDIA GTX Titan Black >>>> >>>> --- >>>> >>>> VTK has been configured for: >>>> >>>> OpenGL 2 back-end >>>> >>>> Use Qt 5.7 >>>> >>>> Use OpenMP for SMP >>>> >>>> Wrap Python 3 (ver 3.5.2 on the system) >>>> >>>> --- >>>> >>>> A simple python script which displays an unstructured grid and which >>>> works fine under Windows, opens (under Ubuntu) a rendering window and >>>> crashes with the message below: >>>> >>>> X Error of failed request: GLXBadDrawable >>>> Major opcode of failed request: 154 (GLX) >>>> Minor opcode of failed request: 11 (X_GLXSwapBuffers) >>>> Serial number of failed request: 111 >>>> Current serial number in output stream: 111 >>>> >>>> >>>> Do you have any hint about this? Should I try the RC 7.1 or switch to the >>>> plain OpenGL back-end ? >>>> >>>> Thanks in advance for any suggestion, >>>> >>>> Best Regards, >>>> >>>> Andrea >>>> >>>> _______________________________________________ >>>> 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 >>> >>> >>> >>> -- >>> Ken Martin PhD >>> Chairman & CFO >>> Kitware Inc. >>> 28 Corporate Drive >>> Clifton Park NY 12065 >>> 518 371 3971 >>> >>> 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. >>> >>> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> 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. >> >> >> >> _______________________________________________ >> 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 luis.vieira at vektore.com Fri Oct 28 11:04:58 2016 From: luis.vieira at vektore.com (Luis Vieira) Date: Fri, 28 Oct 2016 11:04:58 -0400 Subject: [vtkusers] Warning: Faking Email Spam/Virus named VTKusers and Eade Tim Message-ID: <15bf01d2312c$a7c91160$f75b3420$@vektore.com> Hello everyone, Somebody called: vtkusers ; Eade Tim Is using vtkusers name to spread a Spam/Virus with the mail subject "exciting news" Please be careful, Luis Vieira Consultant, Software Engineer Vektore Exploration Consulting Corporation ca.linkedin.com/in/joaoluisvieira luis.vieira at vektore.com www.vektore.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bebe0705 at colorado.edu Fri Oct 28 21:26:04 2016 From: bebe0705 at colorado.edu (BBerco) Date: Fri, 28 Oct 2016 18:26:04 -0700 (MST) Subject: [vtkusers] Missing texture file in vtkTexturedSphere example? Message-ID: <1477704364766-5740971.post@n5.nabble.com> Hi all, I have been trying to map a 2D texture onto a spherical surface following the tutorial on vtkTexturedSphere http://www.paraview.org/Wiki/VTK/Examples/Cxx/Texture/TexturedSphere Unfortunately, no information on the image used in this example (dimensions, image pre-processing , not to mention the actual file) is provided to the user. Applying the example code to an arbitrary rectangular image results in an incorrect results, as if the texture image was wrapped multiple times around the sphere. I'm thinking that the input file used in the example was probably applied some sort of transform before being fed to vtk. I tried to use the SetScale method in vtkTexturedSphere, to no avail (I honestly don't know which way to look here). Any advice as to how I could get rid of the wrapping discrepancies using a rectangular image such as this one ? Thanks! Ben -- View this message in context: http://vtk.1045678.n5.nabble.com/Missing-texture-file-in-vtkTexturedSphere-example-tp5740971.html Sent from the VTK - Users mailing list archive at Nabble.com. From tharun160190 at gmail.com Sat Oct 29 01:54:52 2016 From: tharun160190 at gmail.com (Tharun) Date: Fri, 28 Oct 2016 22:54:52 -0700 (MST) Subject: [vtkusers] cell picker tolerance zoom dependence In-Reply-To: References: Message-ID: <1477720492440-5740972.post@n5.nabble.com> Did you find any solution for this problem? -- View this message in context: http://vtk.1045678.n5.nabble.com/cell-picker-tolerance-zoom-dependence-tp4938548p5740972.html Sent from the VTK - Users mailing list archive at Nabble.com. From bill.lorensen at gmail.com Sun Oct 30 15:22:03 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sun, 30 Oct 2016 12:22:03 -0700 Subject: [vtkusers] Missing texture file in vtkTexturedSphere example? In-Reply-To: <1477704364766-5740971.post@n5.nabble.com> References: <1477704364766-5740971.post@n5.nabble.com> Message-ID: Here is the texture for the example: https://github.com/lorensen/VTKWikiExamples/blob/master/Testing/Data/earth.ppm On Fri, Oct 28, 2016 at 6:26 PM, BBerco wrote: > Hi all, > > I have been trying to map a 2D texture onto a spherical surface following > the tutorial on vtkTexturedSphere > > http://www.paraview.org/Wiki/VTK/Examples/Cxx/Texture/TexturedSphere > > Unfortunately, no information on the image used in this example (dimensions, > image pre-processing , not to mention the actual file) is provided to the > user. Applying the example code to an arbitrary rectangular image results in > an incorrect results, as if the texture image was wrapped multiple times > around the sphere. > > I'm thinking that the input file used in the example was probably applied > some sort of transform before being fed to vtk. I tried to use the SetScale > method in vtkTexturedSphere, to no avail (I honestly don't know which way to > look here). > > Any advice as to how I could get rid of the wrapping discrepancies using a > rectangular image such as this one > > ? > > Thanks! > > Ben > > > > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/Missing-texture-file-in-vtkTexturedSphere-example-tp5740971.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 bill.lorensen at gmail.com Sun Oct 30 15:28:39 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sun, 30 Oct 2016 12:28:39 -0700 Subject: [vtkusers] Missing texture file in vtkTexturedSphere example? In-Reply-To: References: <1477704364766-5740971.post@n5.nabble.com> Message-ID: Looks like the example is not working correctly. It is not producing the image shown on the web page. I'll look into it. On Sun, Oct 30, 2016 at 12:22 PM, Bill Lorensen wrote: > Here is the texture for the example: > https://github.com/lorensen/VTKWikiExamples/blob/master/Testing/Data/earth.ppm > > > On Fri, Oct 28, 2016 at 6:26 PM, BBerco wrote: >> Hi all, >> >> I have been trying to map a 2D texture onto a spherical surface following >> the tutorial on vtkTexturedSphere >> >> http://www.paraview.org/Wiki/VTK/Examples/Cxx/Texture/TexturedSphere >> >> Unfortunately, no information on the image used in this example (dimensions, >> image pre-processing , not to mention the actual file) is provided to the >> user. Applying the example code to an arbitrary rectangular image results in >> an incorrect results, as if the texture image was wrapped multiple times >> around the sphere. >> >> I'm thinking that the input file used in the example was probably applied >> some sort of transform before being fed to vtk. I tried to use the SetScale >> method in vtkTexturedSphere, to no avail (I honestly don't know which way to >> look here). >> >> Any advice as to how I could get rid of the wrapping discrepancies using a >> rectangular image such as this one >> >> ? >> >> Thanks! >> >> Ben >> >> >> >> >> >> >> >> -- >> View this message in context: http://vtk.1045678.n5.nabble.com/Missing-texture-file-in-vtkTexturedSphere-example-tp5740971.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 -- Unpaid intern in BillsBasement at noware dot com From bebe0705 at colorado.edu Sun Oct 30 15:33:42 2016 From: bebe0705 at colorado.edu (BBerco) Date: Sun, 30 Oct 2016 12:33:42 -0700 (MST) Subject: [vtkusers] Missing texture file in vtkTexturedSphere example? In-Reply-To: References: <1477704364766-5740971.post@n5.nabble.com> Message-ID: <1477856022934-5740976.post@n5.nabble.com> Bill, thanks a lot! Ben -- View this message in context: http://vtk.1045678.n5.nabble.com/Missing-texture-file-in-vtkTexturedSphere-example-tp5740971p5740976.html Sent from the VTK - Users mailing list archive at Nabble.com. From polly_sukting at hotmail.com Mon Oct 31 10:09:08 2016 From: polly_sukting at hotmail.com (Polly Pui) Date: Mon, 31 Oct 2016 14:09:08 +0000 Subject: [vtkusers] Couldnt build my work in Visual studio Message-ID: Dear all, I am a newbie in VTK. I am doing a test run from the code I got from my senior. I got errors when I clicked on the ALL_BUILD (see the attachment). I could run the VTK samples (SimplePointsReader) as a test on my Visual Studio. I would appreciate if anyone can provide advises and guidance. Thank you so much. Regards, Polly -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture.PNG Type: image/png Size: 219622 bytes Desc: Capture.PNG URL: From tjlp at netease.com Mon Oct 31 11:11:50 2016 From: tjlp at netease.com (Liu_tj) Date: Mon, 31 Oct 2016 23:11:50 +0800 (CST) Subject: [vtkusers] How to keep the distance text of vtkDistanceWidget always visible? Message-ID: <70fbbda8.11.1581b4bed22.Coremail.tjlp@netease.com> Hi, I am using vtkDistanceWidget for measure the distance on 3D model. I use vtkDistanceRepresentation3D for this widget because the widget should be rotated when I rotate the 3D model. So, with the vtkDistanceRepresentation3D, the distance text can't be always visible because at some position it will be covered by the 3D model. How can I make the distance text always visible? Thanks Liu Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From terry.farnham at quanergy.com Mon Oct 31 14:28:16 2016 From: terry.farnham at quanergy.com (Terry Farnham) Date: Mon, 31 Oct 2016 11:28:16 -0700 Subject: [vtkusers] vtkOpenGLTexture GetIndex Message-ID: I am very new to using vtk. I am interested in getting access to the underlying OpenGL texture index from vtkOpenGLTexture. Currently, when I initially create and load a texture, the call to GetIndex() always returns zero. After rendering a frame or more, the GetIndex() appears to become valid and then I can make my OpenGL calls using it. Is there an event that indicates when this index becomes valid, or is there some other way to know exactly when glGenTextures occurs so I can make my modifications? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.de.paula at live.com Mon Oct 31 14:59:18 2016 From: jose.de.paula at live.com (Jose Barreto) Date: Mon, 31 Oct 2016 11:59:18 -0700 (MST) Subject: [vtkusers] problem with vtkactor Message-ID: <1477940358047-5740983.post@n5.nabble.com> Hi guys, about vtkActor has anyone had trouble adding the same actor in more of a "vtkRenderer" I have three vtkRenderer in three vtkRenderWindow. I add one actor inside three vtkRenderer, but the actor process only the first vtkRenderer. -- View this message in context: http://vtk.1045678.n5.nabble.com/problem-with-vtkactor-tp5740983.html Sent from the VTK - Users mailing list archive at Nabble.com. From ken.martin at kitware.com Mon Oct 31 15:24:21 2016 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 31 Oct 2016 15:24:21 -0400 Subject: [vtkusers] problem with vtkactor In-Reply-To: <1477940358047-5740983.post@n5.nabble.com> References: <1477940358047-5740983.post@n5.nabble.com> Message-ID: Generally actors and mappers are not intended to be shared between windows. The input to a mapper can be shared but not the mapper itself. On Mon, Oct 31, 2016 at 2:59 PM, Jose Barreto wrote: > Hi guys, > about vtkActor has anyone had trouble adding the same actor in more of a > "vtkRenderer" > > I have three vtkRenderer in three vtkRenderWindow. > I add one actor inside three vtkRenderer, but the actor process only the > first vtkRenderer. > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/problem-with-vtkactor-tp5740983.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 > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.de.paula at live.com Mon Oct 31 15:33:20 2016 From: jose.de.paula at live.com (Jose Barreto) Date: Mon, 31 Oct 2016 12:33:20 -0700 (MST) Subject: [vtkusers] problem with vtkactor In-Reply-To: References: <1477940358047-5740983.post@n5.nabble.com> Message-ID: <1477942400967-5740985.post@n5.nabble.com> Okay. So to have the same object in three different "renderer" I need a mapper for the three actors? And when I do some interaction with one of them I need to manually updating the other two? -- View this message in context: http://vtk.1045678.n5.nabble.com/problem-with-vtkactor-tp5740983p5740985.html Sent from the VTK - Users mailing list archive at Nabble.com. From ken.martin at kitware.com Mon Oct 31 15:59:32 2016 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 31 Oct 2016 15:59:32 -0400 Subject: [vtkusers] problem with vtkactor In-Reply-To: <1477942400967-5740985.post@n5.nabble.com> References: <1477940358047-5740983.post@n5.nabble.com> <1477942400967-5740985.post@n5.nabble.com> Message-ID: I think one actor in three renderers is OK if they are all in the same RenderWindow. It is multiple RenderWindows that is the issue. With three RenderWindows then yes, you you need three actors, three mappers, and then copy any changes from one to the others. (maybe actor->ShallowCopy(actor2) etc. On Mon, Oct 31, 2016 at 3:33 PM, Jose Barreto wrote: > Okay. So to have the same object in three different "renderer" I need a > mapper for the three actors? And when I do some interaction with one of > them > I need to manually updating the other two? > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/problem-with-vtkactor-tp5740983p5740985.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 > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: