From polly_sukting at hotmail.com Tue Jan 1 04:28:02 2019 From: polly_sukting at hotmail.com (Polly Pui) Date: Tue, 1 Jan 2019 09:28:02 +0000 Subject: [vtkusers] How to load multiple csv files into VTK and save the processed data into csv files? Message-ID: Hi, Happy New Year! I would like to ask how can I process multiple csv files in once into VTK. Then, I want to save the processed data or result into another csv (proper divided with row and column accordingly to xyz coordinates). Currently, I am loading the csv files one by one and copy the result manually into csv file. Please advice. Thank you very much. Regards, Polly -------------- next part -------------- An HTML attachment was scrubbed... URL: From lasso at queensu.ca Wed Jan 2 01:08:50 2019 From: lasso at queensu.ca (Andras Lasso) Date: Wed, 2 Jan 2019 06:08:50 +0000 Subject: [vtkusers] VTK compatible LCD shutter glasses? In-Reply-To: References: Message-ID: > I want to buy a pair of liquid crystal display (LCD) shutter glasses to use with VTK Shutter glasses were not even popular 10-20 years ago. Now that immersive, high-resolution virtual reality has become so inexpensive and widely available, shutter glasses have become largely irrelevant. The few remaining meaningful use cases will most likely evaporate quite quickly as virtual/augmented reality technology improves. Therefore, I would not recommend buying shutter glasses and compatible monitor and video card. Instead, get a Windows Mixed Reality headset + controllers for $300 (or a more expensive HTC Vive or Oculus Rift) and try VTK in virtual reality using 3D Slicer (https://github.com/KitwareMedical/SlicerVirtualReality) or ParaView (https://blog.kitware.com/taking-paraview-into-virtual-reality/). Andras From: vtkusers On Behalf Of The Merper Sent: Tuesday, December 11, 2018 9:43 AM To: vtkusers at public.kitware.com Subject: [vtkusers] VTK compatible LCD shutter glasses? Hi VTKers, I want to buy a pair of liquid crystal display (LCD) shutter glasses to use with VTK, but there don't seem to be many options available and it is not clear to me what glasses are compatible with VTK. Can anyone recommend a pair to get? Alternatively, does anyone know if NVIDIA's 3D vision glasses (version 1 or 2) will work with VTK? https://www.nvidia.com/object/3d-vision-glasses.html thank you for your help, -Merps -------------- next part -------------- An HTML attachment was scrubbed... URL: From massinissa.bandou at gmail.com Wed Jan 2 10:36:08 2019 From: massinissa.bandou at gmail.com (massinissa bandou) Date: Wed, 2 Jan 2019 08:36:08 -0700 (MST) Subject: [vtkusers] QVTKWidget visual studio 2017 linking issue Message-ID: <1546443368492-0.post@n5.nabble.com> I have built VTK 7.1.1 with Qt5 on windows platform with visual studio 2017. I have copied QVTKWidgetPlugin.lib to Qt lib as well as QVTKWidgetPlugin.dll in Qt plugin folder. I have also obtained the QVTKWidget when opening Qt designer. I created a new Qt project on visual studio and included the headers and linked it with libraries generated by Cmake when building VTK. However I got the following linking problem when compiling my project: /MainWindow.obj : *error LNK2019: unresolved external symbol "public: __cdecl QVTKWidget::QVTKWidget*(class QWidget *,class QFlags)" (??0QVTKWidget@@QEAA at PEAVQWidget@@V?$QFlags at W4WindowType@Qt@@@@@Z) referenced in function "public: void __cdecl Ui_MainWindowClass::setupUi(class QMainWindow *)" (?setupUi at Ui_MainWindowClass@@QEAAXPEAVQMainWindow@@@Z) 1>C:\Users\massi\OneDrive\Desktop\ImageAnalyzer\ImageAnalyzer\x64\Release\\ImageAnalyzer.exe : fatal error LNK1120: 1 unresolved externals/ Can you help me on this matter? Thanks in advance! Massinissa Bandou ----- Software Design Engineer -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From sk.shadabanwar at gmail.com Wed Jan 2 10:41:47 2019 From: sk.shadabanwar at gmail.com (shadab anwar) Date: Wed, 2 Jan 2019 10:41:47 -0500 Subject: [vtkusers] QVTKWidget visual studio 2017 linking issue In-Reply-To: <1546443368492-0.post@n5.nabble.com> References: <1546443368492-0.post@n5.nabble.com> Message-ID: Hi, Check whether QT is build on 64 bit or 32 bit ( by going in ?about?). The libraries should be build with same version i.e. 64 or 32 bit as that of QT. Best, Shadab On Wed, 2 Jan 2019 at 10:36 AM, massinissa bandou < massinissa.bandou at gmail.com> wrote: > I have built VTK 7.1.1 with Qt5 on windows platform with visual studio > 2017. > I have copied QVTKWidgetPlugin.lib to Qt lib as well as > QVTKWidgetPlugin.dll > in Qt plugin folder. I have also obtained the QVTKWidget when opening Qt > designer. I created a new Qt project on visual studio and included the > headers and linked it with libraries generated by Cmake when building VTK. > However I got the following linking problem when compiling my project: > > /MainWindow.obj : *error LNK2019: unresolved external symbol "public: > __cdecl QVTKWidget::QVTKWidget*(class QWidget *,class QFlags Qt::WindowType>)" > (??0QVTKWidget@@QEAA at PEAVQWidget@@V?$QFlags at W4WindowType@Qt@@@@@Z) > referenced in function "public: void __cdecl > Ui_MainWindowClass::setupUi(class QMainWindow *)" > (?setupUi at Ui_MainWindowClass@@QEAAXPEAVQMainWindow@@@Z) > > 1>C:\Users\massi\OneDrive\Desktop\ImageAnalyzer\ImageAnalyzer\x64\Release\\ImageAnalyzer.exe > : fatal error LNK1120: 1 unresolved externals/ > > Can you help me on this matter? > > Thanks in advance! > > Massinissa Bandou > > > > > ----- > Software Design Engineer > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinander at gmail.com Wed Jan 2 10:48:56 2019 From: chinander at gmail.com (Mike Chinander) Date: Wed, 2 Jan 2019 09:48:56 -0600 Subject: [vtkusers] QVTKWidget visual studio 2017 linking issue In-Reply-To: <1546443368492-0.post@n5.nabble.com> References: <1546443368492-0.post@n5.nabble.com> Message-ID: QVTKWidgetPlugin lib is for Qt's Designer application, not for your application (i.e., doesn't provide QVTKWidget). Can you show your CMakeLists.txt file? On Wed, Jan 2, 2019 at 9:36 AM massinissa bandou < massinissa.bandou at gmail.com> wrote: > I have built VTK 7.1.1 with Qt5 on windows platform with visual studio > 2017. > I have copied QVTKWidgetPlugin.lib to Qt lib as well as > QVTKWidgetPlugin.dll > in Qt plugin folder. I have also obtained the QVTKWidget when opening Qt > designer. I created a new Qt project on visual studio and included the > headers and linked it with libraries generated by Cmake when building VTK. > However I got the following linking problem when compiling my project: > > /MainWindow.obj : *error LNK2019: unresolved external symbol "public: > __cdecl QVTKWidget::QVTKWidget*(class QWidget *,class QFlags Qt::WindowType>)" > (??0QVTKWidget@@QEAA at PEAVQWidget@@V?$QFlags at W4WindowType@Qt@@@@@Z) > referenced in function "public: void __cdecl > Ui_MainWindowClass::setupUi(class QMainWindow *)" > (?setupUi at Ui_MainWindowClass@@QEAAXPEAVQMainWindow@@@Z) > > 1>C:\Users\massi\OneDrive\Desktop\ImageAnalyzer\ImageAnalyzer\x64\Release\\ImageAnalyzer.exe > : fatal error LNK1120: 1 unresolved externals/ > > Can you help me on this matter? > > Thanks in advance! > > Massinissa Bandou > > > > > ----- > Software Design Engineer > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From massinissa.bandou at gmail.com Wed Jan 2 19:22:23 2019 From: massinissa.bandou at gmail.com (massinissa bandou) Date: Wed, 2 Jan 2019 17:22:23 -0700 (MST) Subject: [vtkusers] QVTKWidget visual studio 2017 linking issue In-Reply-To: References: <1546443368492-0.post@n5.nabble.com> Message-ID: <1546474943395-0.post@n5.nabble.com> Hello, thanks for your quick reply! I have installed *Qt 5.12.0 64x* and built VTK using CMAKE gui with *visual studio 15 2017 win64* configuration. I have linked the generated VTK libraries to my visual studio project (properties->Linker->General) I really don't understand why the linking problem. Did I miss something there? ----- Software Design Engineer -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From massinissa.bandou at gmail.com Wed Jan 2 19:33:28 2019 From: massinissa.bandou at gmail.com (massinissa bandou) Date: Wed, 2 Jan 2019 17:33:28 -0700 (MST) Subject: [vtkusers] QVTKWidget visual studio 2017 linking issue In-Reply-To: References: <1546443368492-0.post@n5.nabble.com> Message-ID: <1546475608910-0.post@n5.nabble.com> CMakeLists.txt ----- Software Design Engineer -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From lasso at queensu.ca Wed Jan 2 23:25:35 2019 From: lasso at queensu.ca (Andras Lasso) Date: Thu, 3 Jan 2019 04:25:35 +0000 Subject: [vtkusers] QVTKWidget visual studio 2017 linking issue In-Reply-To: <1546475608910-0.post@n5.nabble.com> References: <1546443368492-0.post@n5.nabble.com> <1546475608910-0.post@n5.nabble.com> Message-ID: You can start building an application from scratch (these examples may be good starting points: https://github.com/Kitware/VTK/tree/master/Examples/Build), but I would recommend to find a similar open-source project and fork it or contribute to that instead. You can save several years of development effort and it is much more fun to work with others. Andras -----Original Message----- From: vtkusers On Behalf Of massinissa bandou Sent: Wednesday, January 2, 2019 7:33 PM To: vtkusers at vtk.org Subject: Re: [vtkusers] QVTKWidget visual studio 2017 linking issue CMakeLists.txt ----- Software Design Engineer -- Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Classo%40queensu.ca%7Cd7feebe8d20448b8984908d67113177e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636820724155793401&sdata=5sB3XWet0Bncn1UqIYZRU%2Fkh4RxMnETfHEeM3d8Dkcc%3D&reserved=0 _______________________________________________ Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Cd7feebe8d20448b8984908d67113177e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636820724155793401&sdata=TKRXgvYUGhMgvJJGnfNHH9Hr4sfGe69N3EbbP3hq%2FGA%3D&reserved=0 Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7Cd7feebe8d20448b8984908d67113177e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636820724155793401&sdata=UuaKPx%2B01ZW%2FhQE%2BqenYYUgidjkxzD98z%2B3ZtYCRlcA%3D&reserved=0 Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7Cd7feebe8d20448b8984908d67113177e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636820724155793401&sdata=3FxR%2BvzIk1GbH4yr36MuqxKO8DhUugOcBa%2FSihb1Ix0%3D&reserved=0 Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cd7feebe8d20448b8984908d67113177e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636820724155793401&sdata=o2%2FvTSRdipT81zqrnhGSo4Fz3nKScAfWaik3%2BGX5OBA%3D&reserved=0 Follow this link to subscribe/unsubscribe: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cd7feebe8d20448b8984908d67113177e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636820724155793401&sdata=q2Jjg6g%2B1xLDDYy52oalbiQihbyEYO2coPRXb68LVGs%3D&reserved=0 From dave.demarle at kitware.com Thu Jan 3 13:47:45 2019 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 3 Jan 2019 13:47:45 -0500 Subject: [vtkusers] vtk 8.2.rc2 and python 3.7.1 install weirdness In-Reply-To: References: Message-ID: Hi Kurt, I am thinking that this had to do with this change https://gitlab.kitware.com/vtk/vtk/merge_requests/3523/ Which changed the install location rules a bit. Note that in rc2, VTK_INSTALL_PYTHON_MODULE_DIR was restored but renamed to VTK_INSTALL_PYTHON_MODULES_DIR which has an extra S. David E DeMarle Kitware, Inc. Principal Engineer On Wed, Dec 5, 2018 at 3:48 PM Kurt Sansom wrote: > Hi all, > I am trying to build vmtk which builds ITK and VTK. I was able to get it > to all compile, but the python wrappers are getting installed in > ${CMAKE_INSTALL_PREFIX}/lib/lib/python3.7/site-packages/vtkmodules > > instead of > ${CMAKE_INSTALL_PREFIX}/lib/python3.7/site-packages/vtkmodules > > can someone help identify where the build is adding the additional /lib? > > Regards, > ~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: > https://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.stuart at dautomation.com Fri Jan 4 11:14:01 2019 From: t.stuart at dautomation.com (Stuart, Travis) Date: Fri, 4 Jan 2019 16:14:01 +0000 Subject: [vtkusers] Camera Inverting Issue when Locking Z Message-ID: <9BD404E7D759A24FB34ACE0E4C9F162BB1E259@es002.dautomation.local> Hi, I'm able to lock the Z axis always upwards when interacting with my camera via the code below. However, when moving the camera so that it's looking directly above or below the scene, the display will flip back and forth inverting. Do you know of a better way to lock the Z axis or how can I prevent the camera from getting too close to being directly above or below the scene? class Interactor(vtk.vtkInteractorStyleMultiTouchCamera): def __init__(self): self.AddObserver("MouseMoveEvent", self.on_mouse_move) def on_mouse_move(self, obj, event): camera = vtk_renderer.GetActiveCamera() camera.SetViewUp(0, 0, 1) self.OnMouseMove() Regards, Travis Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL: From massinissa.bandou at gmail.com Fri Jan 4 11:46:40 2019 From: massinissa.bandou at gmail.com (Massinissa Bandou) Date: Fri, 4 Jan 2019 17:46:40 +0100 Subject: [vtkusers] Stop receiving email from daily digest Message-ID: Dear VTK, I would like to know how to stop receiving email from daily digest. Can you show me how to do that? Thanks in advance! Massinissa Bandou -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Fri Jan 4 11:49:31 2019 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 4 Jan 2019 11:49:31 -0500 Subject: [vtkusers] Stop receiving email from daily digest In-Reply-To: References: Message-ID: Hi Massinissa, You can make changes to your subscription on this page: https://www.vtk.org/mailman/listinfo/vtkusers hth David E DeMarle Kitware, Inc. Principal Engineer On Fri, Jan 4, 2019 at 11:46 AM Massinissa Bandou < massinissa.bandou at gmail.com> wrote: > Dear VTK, > > I would like to know how to stop receiving email from daily digest. > Can you show me how to do that? > > Thanks in advance! > > Massinissa Bandou > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szx0112 at gmail.com Sun Jan 6 18:37:13 2019 From: szx0112 at gmail.com (szx0112) Date: Sun, 6 Jan 2019 16:37:13 -0700 (MST) Subject: [vtkusers] VTK Screenshot save images different as the visualization in renderer window Message-ID: <1546817833217-0.post@n5.nabble.com> I follow the tutorial for screenshot in python: https://lorensen.github.io/VTKExamples/site/Python/Utilities/Screenshot/ This is the camera view in the renderer window The screen shot suppose to capture this camera view, however the saved png image is a different view: Am I using the right method? Any comment is appreciated -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From marco.musy at gmail.com Mon Jan 7 09:16:45 2019 From: marco.musy at gmail.com (mmusy) Date: Mon, 7 Jan 2019 07:16:45 -0700 (MST) Subject: [vtkusers] VTK python module for analysis and simulations In-Reply-To: <1542620861333-0.post@n5.nabble.com> References: <1542461995694-0.post@n5.nabble.com> <1542620861333-0.post@n5.nabble.com> Message-ID: <1546870605408-0.post@n5.nabble.com> Thanks, I just wrote some documentation of the examples, have a look if interested (scroll to bottom): https://github.com/marcomusy/vtkplotter/tree/master/examples/basic https://github.com/marcomusy/vtkplotter/tree/master/examples/advanced https://github.com/marcomusy/vtkplotter/tree/master/examples/volumetric regards -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From christoph.bosshard at hslu.ch Mon Jan 7 13:10:05 2019 From: christoph.bosshard at hslu.ch (Bosshard Christoph HSLU T&A) Date: Mon, 7 Jan 2019 18:10:05 +0000 Subject: [vtkusers] How to read and store face values (OpenFOAM) Message-ID: <1546884605259.41243@hslu.ch> Hi To analyze a flow, I need to read in a surfaceScalarField from OpenFOAM. An example is OpenFOAM/tutorials/incompressible/icoFoam/cavity/cavity/0.1$/phi. This is a field that is defined on the faces (opposed to point values and cell values). vtkOpenFOAMReader does not read in this field, so I have to write new code for this purpose. My question is: Is there any possibility to store this field in vtk? I cannot use the point or cell values. For this example, the velocity U (cell) contains 400 values, the coordinates (point) 882 values, but the phi field (face) 760 values. Any help would be much appreciated. Christoph -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Mon Jan 7 14:25:30 2019 From: dave.demarle at kitware.com (David E DeMarle) Date: Mon, 7 Jan 2019 14:25:30 -0500 Subject: [vtkusers] How to read and store face values (OpenFOAM) In-Reply-To: <1546884605259.41243@hslu.ch> References: <1546884605259.41243@hslu.ch> Message-ID: VTK doesn't have solid built in support for this. The prevailing strategy for data that is not strictly aligned on points or cells is to make a field data array and then add to the cells/points an index array that points into the field array. The indexing can make use of standard face and edge ordering for cases where a single cell requires multiple values. Gauss Points ( https://www.vtk.org/Wiki/images/7/78/VTK-Quadrature-Point-Design-Doc.pdf) and XDMF's FiniteElementFunctions are examples. Note that the approach tends to lead to custom filters that know how to work with these "non-standard" data arrays. David E DeMarle Kitware, Inc. Principal Engineer On Mon, Jan 7, 2019 at 1:22 PM Bosshard Christoph HSLU T&A < christoph.bosshard at hslu.ch> wrote: > Hi > > To analyze a flow, I need to read in a surfaceScalarField from OpenFOAM. An > example is > OpenFOAM/tutorials/incompressible/icoFoam/cavity/cavity/0.1$/phi. > This is a field that is defined on the faces (opposed to point values and > cell > values). vtkOpenFOAMReader does not read in this field, so I have to write > new > code for this purpose. My question is: Is there any possibility to store > this > field in vtk? I cannot use the point or cell values. For this example, the > velocity U (cell) contains 400 values, the coordinates (point) 882 values, > but > the phi field (face) 760 values. Any help would be much appreciated. > Christoph > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.pletzer at nesi.org.nz Mon Jan 7 16:25:31 2019 From: alexander.pletzer at nesi.org.nz (Alexander Pletzer) Date: Tue, 8 Jan 2019 10:25:31 +1300 Subject: [vtkusers] vtkCellLocator::FindcellsAlongLine does not find all the cells Message-ID: Hi VTK'ians, I found vtkCellLocator to be a very fast way to locate cells but I now stumbled on an issue where the cell locator does not locate all the cells along a line. In the code below, an unstructured 2x4x4 grid and corresponding vtkCellLocator objects are created. The grid is a collection of cells. A line is created that runs along the the bottom of the grid, crossing all the latitudes and longitudes. Shown below are the bottom cells: +----+----+----+----+ | 12 | 13 | *14* | *15* | +----+----+----+----+ | 8 | *9* | *10* | *11* | +----+----+----+----+ | *4* | *5* | *6* | 7 | +----+----+----+----+ | *0* | *1* | 2 | 3 | +----+----+----+----+ I would expect the number of cells found by FindCellsAlongLine to include 0, 5, 10 and 15 (red cells) as these cells are crossed by the line. Cells 1, 4, 6, 9, 11 and 14 touch the line so should also be found (blue cells). The total number of cells is 10. When running the code (VTK 8.1.1 on mac) I get: ... 1: line intersects with cell 0 1: line intersects with cell 1 1: line intersects with cell 4 1: line intersects with cell 5 1: line intersects with cell 6 1: line intersects with cell 9 1: line intersects with cell 10 1: line intersects with cell 14 We see that cells 11 and 15 are missing! Other resolutions return the correct list. I played with the tolerance in FindCellsAlongLine but this seems to have no effect. Any idea what I'm doing wrong? Thanks in advance. --Alex Test code: #undef NDEBUG // turn on asserts #include #include #include #include #include #include #include void testLatLon(size_t nElv, size_t nLat, size_t nLon, const double pa[], const double pb[]) { // // generate vertices // double p[3]; double dElv = 1.0 / double(nElv); double dLat = 180.0 / double(nLat); double dLon = 360.0 / double(nLon); vtkPoints* points = vtkPoints::New(); size_t nCells = nElv * nLat * nLon; points->SetDataTypeToDouble(); points->SetNumberOfPoints(8 * nCells); vtkIdType index = 0; vtkIdType cellId = 0; for (size_t k = 0; k < nElv; ++k) { double elv0 = dElv*k; double elv1 = elv0 + dElv; for (size_t j = 0; j < nLat; ++j) { double lat0 = -90.0 + j*dLat; double lat1 = lat0 + dLat; for (size_t i = 0; i < nLon; ++i) { double lon0 = -180.0 + i*dLon; double lon1 = lon0 + dLon; p[0] = elv0; p[1] = lat0; p[2] = lon0; points->SetPoint(index, p); index++; p[0] = elv0; p[1] = lat0; p[2] = lon1; points->SetPoint(index, p); index++; p[0] = elv0; p[1] = lat1; p[2] = lon1; points->SetPoint(index, p); index++; p[0] = elv0; p[1] = lat1; p[2] = lon0; points->SetPoint(index, p); index++; p[0] = elv1; p[1] = lat0; p[2] = lon0; points->SetPoint(index, p); index++; p[0] = elv1; p[1] = lat0; p[2] = lon1; points->SetPoint(index, p); index++; p[0] = elv1; p[1] = lat1; p[2] = lon1; points->SetPoint(index, p); index++; p[0] = elv1; p[1] = lat1; p[2] = lon0; points->SetPoint(index, p); index++; std::cout << "cell " << cellId << ": elv = " << elv0 << " -> " << elv1 << " lat = " << lat0 << " -> " << lat1 << " lon = " << lon0 << " -> " << lon1 << '\n'; cellId++; } } } // // create grid // vtkUnstructuredGrid* grid = vtkUnstructuredGrid::New(); grid->SetPoints(points); grid->Allocate(1, 1); vtkIdList* ptIds = vtkIdList::New(); ptIds->SetNumberOfIds(8); for (size_t iCell = 0; iCell < nCells; ++iCell) { for (vtkIdType iVert = 0; iVert < 8; ++iVert) { ptIds->SetId(iVert, 8*iCell + iVert); } grid->InsertNextCell(VTK_HEXAHEDRON, ptIds); std::cout << "inserting cell " << iCell; for (vtkIdType iVert = 0; iVert < 8; ++iVert) { vtkIdType vi = ptIds->GetId(iVert); double vrtx[3]; points->GetPoint(vi, vrtx); std::cout << "\t" << iVert << " vert index: " << vi << " vert coords: " << vrtx[0] << ',' << vrtx[1] << ',' << vrtx[2] << '\n'; } } vtkCellLocator* loc = vtkCellLocator::New(); loc->SetDataSet(grid); loc->BuildLocator(); // find all the cells allong the line vtkIdList* cellIds = vtkIdList:: New(); double tol = 0.01; loc->FindCellsAlongLine((double*) pa, (double*) pb, tol, cellIds); for (vtkIdType i = 0; i < cellIds->GetNumberOfIds(); ++i) { std::cout << "line intersects with cell " << cellIds->GetId(i) << '\n'; } // clean up cellIds->Delete(); loc->Delete(); ptIds->Delete(); grid->Delete(); points->Delete(); } int main(int argc, char** argv) { double pa[] = {0., -90., -180.}; double pb[] = {0., 90., 180.}; testLatLon(2, 4, 4, pa, pb); return 0; } -- Alexander Pletzer HPC Scientific Programmer for New Zealand eScience Infrastructure (NeSI), Wellington NZ mobile: +64 21 085 79661 http://www. nesi.org.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: From elhassan.abdou at gmail.com Tue Jan 8 03:58:47 2019 From: elhassan.abdou at gmail.com (Elhassan Abdou) Date: Tue, 8 Jan 2019 09:58:47 +0100 Subject: [vtkusers] VTK Screenshot save images different as the visualization in renderer window In-Reply-To: <1546817833217-0.post@n5.nabble.com> References: <1546817833217-0.post@n5.nabble.com> Message-ID: Hi all I am facing a similar problem any answer or solution for this issue Regards Elhassan On Mon, Jan 7, 2019 at 12:37 AM szx0112 wrote: > I follow the tutorial for screenshot in python: > https://lorensen.github.io/VTKExamples/site/Python/Utilities/Screenshot/ > > > > This is the camera view in the renderer window > > > The screen shot suppose to capture this camera view, however the saved png > image is a different view: > > > Am I using the right method? Any comment is appreciated > > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From masterwangzx at gmail.com Tue Jan 8 05:43:48 2019 From: masterwangzx at gmail.com (Franks) Date: Tue, 8 Jan 2019 03:43:48 -0700 (MST) Subject: [vtkusers] how to get python documentation easier Message-ID: <1546944228506-0.post@n5.nabble.com> I am using python to create my vtk project. But I found that there are less resources for python than c++. I want to read the documentation for python. 1. I use help() in python. It is somehow helpful. But it is inconvenient to see the documentation in the console. 2. The ducumentation downloaded in the official website is helpful. But I found a problem. It can't expand list by mouse click. 3. I use the vtk installed by pip. It has a problem that my ide(pycharm) can not prompt the inherited function. I must know the parent class name and it prompt the function name. reader = vtk.vtkJPEGReader() # reader.SetFileName() this can not be prompted vtk.vtkImageReader2.SetFileName(reader, '') -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From ckostop at ace-hellas.gr Tue Jan 8 05:59:11 2019 From: ckostop at ace-hellas.gr (arensky1) Date: Tue, 8 Jan 2019 03:59:11 -0700 (MST) Subject: [vtkusers] Rendering a large number of objects Message-ID: <1546945151454-0.post@n5.nabble.com> Hi there I am a new user of VTK and i would like to ask for your help. I have a large number of I cross-section (profile) For each one of them, i know the vertices coordinates (top - bottom) and the direction. I would like to know which is the best way to create the render image and also the wireframe Than you in advanced, any help would be greatly appreciated. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From leonid_dulman at yahoo.co.uk Tue Jan 8 07:09:10 2019 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Tue, 8 Jan 2019 12:09:10 +0000 (UTC) Subject: [vtkusers] ANN: VTK Examples Project reaches 1000 C++ Examples In-Reply-To: References: Message-ID: <519751009.8376746.1546949350881@mail.yahoo.com> Hi to AllI'm looking for examples how to use new classes QVTKOpenGLWindow QVTKOpenGLNativeWidget ?QVTKInteractorAdapter and how to use new classes instead of QVTKWidget2Thank you. Leonid? From: Bill Lorensen To: VTK Developers ; VTK Users Sent: Saturday, December 15, 2018 1:32 AM Subject: [vtkusers] ANN: VTK Examples Project reaches 1000 C++ Examples Folks, We have reached a milestone in the VTK Examples Project (https://lorensen.github.io/VTKExamples/site/). There are now 1000 C++ examples (https://lorensen.github.io/VTKExamples/site/Cxx/).? The total number of examples is now almost 1500 with? 1000 C++ examples, 121? CSharp examples (https://lorensen.github.io/VTKExamples/site/CSharp/), 290 Python examples (https://lorensen.github.io/VTKExamples/site/Python/), and 41 Java examples (https://lorensen.github.io/VTKExamples/site/Java/). The number of Java examples is expanding thanks to our new contributor Bharatesh Chakravarthi from the VE Lab, Chung Ang University, Seoul, South Korea.? Bharatesh has quickly learned our example contribution process and has added over 20 examples. We expect to see many more Java examples in the coming months. We are always looking to new contributors (https://lorensen.github.io/VTKExamples/site/Instructions/ForDevelopers/. As a reminder, the VTK Example Project also hosts a latex version and markdown version of the VTK Textbook. The latex version is an improved version of the current VTK Textbook (https://raw.githubusercontent.com/lorensen/VTKExamples/master/src/VTKBookLaTeX/VTKTextBook.pdf). The markdown version is an interactive, platform friendly version of the book (https://lorensen.github.io/VTKExamples/site/VTKBook/00Preface/). -- Unpaid intern in BillsParadise at noware dot 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: https://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Tue Jan 8 08:32:28 2019 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Tue, 8 Jan 2019 14:32:28 +0100 Subject: [vtkusers] ANN: VTK Examples Project reaches 1000 C++ Examples In-Reply-To: <519751009.8376746.1546949350881@mail.yahoo.com> References: <519751009.8376746.1546949350881@mail.yahoo.com> Message-ID: Hi Leonid, I've forwarded you the message sent to the mailing list "the New QVTKOpenGLWidget" on August 23 2018. As usual, tests can be found in the source code of VTK for these specific classes. Best, Mathieu Westphal On Tue, Jan 8, 2019 at 1:09 PM Leonid Dulman via vtkusers wrote: > Hi to All > I'm looking for examples how to use new classes > > QVTKOpenGLWindow QVTKOpenGLNativeWidget QVTKInteractorAdapter and how to > use new classes instead of QVTKWidget2 > Thank you. Leonid > > > ------------------------------ > *From:* Bill Lorensen > *To:* VTK Developers ; VTK Users > > *Sent:* Saturday, December 15, 2018 1:32 AM > *Subject:* [vtkusers] ANN: VTK Examples Project reaches 1000 C++ Examples > > Folks, > > We have reached a milestone in the VTK Examples Project > (https://lorensen.github.io/VTKExamples/site/). There are now 1000 C++ > examples (https://lorensen.github.io/VTKExamples/site/Cxx/). The > total number of examples is now almost 1500 with 1000 C++ examples, > 121 CSharp examples (https://lorensen.github.io/VTKExamples/site/CSharp/ > ), > 290 Python examples (https://lorensen.github.io/VTKExamples/site/Python/), > and > 41 Java examples (https://lorensen.github.io/VTKExamples/site/Java/). > > The number of Java examples is expanding thanks to our new contributor > Bharatesh Chakravarthi from the VE Lab, Chung Ang University, Seoul, > South Korea. Bharatesh has quickly learned our example contribution > process and has added over 20 examples. We expect to see many more > Java examples in the coming months. We are always looking to new > contributors ( > https://lorensen.github.io/VTKExamples/site/Instructions/ForDevelopers/. > > As a reminder, the VTK Example Project also hosts a latex version and > markdown version of the VTK Textbook. The latex version is an improved > version of the current VTK Textbook > ( > https://raw.githubusercontent.com/lorensen/VTKExamples/master/src/VTKBookLaTeX/VTKTextBook.pdf > ). > The markdown version is an interactive, platform friendly version of > the book (https://lorensen.github.io/VTKExamples/site/VTKBook/00Preface/). > > > -- > Unpaid intern in BillsParadise at noware dot 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: > https://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Jan 8 09:37:24 2019 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 8 Jan 2019 09:37:24 -0500 Subject: [vtkusers] how to get python documentation easier In-Reply-To: <1546944228506-0.post@n5.nabble.com> References: <1546944228506-0.post@n5.nabble.com> Message-ID: On Tue, Jan 8, 2019 at 5:43 AM Franks wrote: > I am using python to create my vtk project. But I found that there are less > resources for python than c++. I want to read the documentation for python. > > 1. I use help() in python. It is somehow helpful. But it is inconvenient to > see the documentation in the console. > > Yes, this can be a bit verbose. To see what methods are available, I find `dir()` to be useful and less verbose. > 2. The ducumentation downloaded in the official website is helpful. But I > found a problem. It can't expand list by mouse click. > < > http://vtk.1045678.n5.nabble.com/file/t342588/TIM%E5%9B%BE%E7%89%8720190108180449.png > > Yes, that's from a missing JavaScript file. We'll get it fixed. 3. I use the vtk installed by pip. It has a problem that my ide(pycharm) can > not prompt the inherited function. I must know the parent class name and it > prompt the function name. > > reader = vtk.vtkJPEGReader() > # reader.SetFileName() this can not be prompted > vtk.vtkImageReader2.SetFileName(reader, '') > I'm not sure about that one. Best, Cory > > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From imsurendra_sah at yahoo.com Tue Jan 8 09:49:14 2019 From: imsurendra_sah at yahoo.com (surendra sah) Date: Tue, 8 Jan 2019 14:49:14 +0000 (UTC) Subject: [vtkusers] visualizing ply file References: <1932711853.14906302.1546958954053.ref@mail.yahoo.com> Message-ID: <1932711853.14906302.1546958954053@mail.yahoo.com> Hi All,I have a .ply file and need to visualize it in C++. I tried paraview in order to get the output view and I could see the visualization. With VTK, I used the below code to read, write and visualize the .ply file but I do not see anything on Render Window. The window is? blank and also the output file is in different format probably binary. Please help me to get the visualization the render window. Thanks Few lines of my .ply file input.ply: ply format ascii 1.0 element vertex 1444314 property float x property float y property float z property uchar red property uchar green property uchar blue property uchar alpha end_header 9.629254 11.183217 2.379896 120 138 143 0 9.687406 11.172439 2.375881 115 133 140 0 9.896527 11.479791 1.872450 32 40 48 0 9.750688 11.167464 2.372992 122 138 145 0 9.943034 11.452575 1.865112 36 34 57 0 9.825553 11.175802 2.372624 119 134 142 0 9.907058 11.464114 1.311501 43 60 71 0 Code://vtkvisualization.cxx #include #include #include #include #include #include #include #include #include #include #include #include #include int main ( int argc, char *argv[] ) { ? vtkSmartPointer colors = ????? vtkSmartPointer::New(); ? // Set the background color. ? std::array bkg{{26, 51, 102, 255}}; ? //colors->SetName("RGB"); ? colors->SetColor("BkgColor", bkg.data()); ? ? //defining source ? if(argc != 2) ??? { ??? std::cout << "Usage: " << argv[0] << "? Filename(.ply)" << std::endl; ??? return EXIT_FAILURE; ??? } ? std::string inputFilename = argv[1]; ? vtkSmartPointer reader = ??? vtkSmartPointer::New(); ? reader->SetFileName ( inputFilename.c_str() ); ? reader->Update(); ? //writing to a file ? vtkSmartPointer plyWriter = ??? vtkSmartPointer::New(); ? plyWriter->SetFileName("output.ply"); ? //plyWriter->SetArrayName("RGB"); ? plyWriter->SetInputData(reader->GetOutput()); ? plyWriter->Write(); ? // Visualize steps: ? //defining mapper ? vtkSmartPointer mapper = ??? vtkSmartPointer::New(); ? mapper->SetInputConnection(reader->GetOutputPort()); ? ? //defining actor ? vtkSmartPointer actor = ??? vtkSmartPointer::New(); ? actor->SetMapper(mapper); ? //defining renderer ? // The renderer generates the image ? // which is then displayed on the render window. ? // It can be thought of as a scene to which the actor is added?? ? ? vtkSmartPointer renderer = ??? vtkSmartPointer::New(); ? renderer->AddActor(actor); //i have put the actor here to tryout ? renderer->SetBackground(colors->GetColor3d("BkgColor").GetData()); ? //renderer->SetBackground(0.1804,0.5451,0.3412); // Sea green ?// Zoom in a little by accessing the camera and invoking its "Zoom" method. ? renderer->ResetCamera(); ? renderer->GetActiveCamera()->Zoom(2.5); ? //defining rendering window ? // The render window is the actual GUI window ? // that appears on the computer screen ? vtkSmartPointer renderWindow = ??? vtkSmartPointer::New(); ? renderWindow->SetSize(300, 300); ? renderWindow->AddRenderer(renderer); ? renderWindow->SetWindowName("Visualization of ply file"); ? //defining interactor ? // The render window interactor captures mouse events ? // and will perform appropriate camera or actor manipulation ? // depending on the nature of the events. ? vtkSmartPointer renderWindowInteractor = ??? vtkSmartPointer::New(); ? renderWindowInteractor->SetRenderWindow(renderWindow); ? //renderer->AddActor(actor);// i think this function should be in renderer, needs to check ? ? ? renderWindow->Render(); // This starts the event loop and as a side effect causes an initial render. ? renderWindowInteractor->Start(); ? return EXIT_SUCCESS; } CMakeLists.txt:cmake_minimum_required(VERSION 2.8) PROJECT(vtkvisualization) find_package(VTK REQUIRED) include(${VTK_USE_FILE}) add_executable(vtkvisualization MACOSX_BUNDLE vtkvisualization.cxx ) target_link_libraries(vtkvisualization ${VTK_LIBRARIES}) output.ply:ply format binary_little_endian 1.0 comment VTK generated PLY File obj_info vtkPolyData points and polygons: vtk4.0 element vertex 1444314 property float x property float y property float z element face 0 property list uchar int vertex_indices end_header mAu\EE2A7P@\9D\FFAO\C22Ao at -XA9\AD7Aq\AC\EF?\D1A\EF\AD2A\DF@\ABA\BF=7A\FD\BB\EE?w5A\D02A\D9 at O\83Am7AD??N A\C6$7A\84-\EE?\82NA\D8\D12A{\BB@\9F\D9A\98{7A\94\DBB?"vA\88:7A\BA\A7?se!A$U7A\C7\F1\ED?\818A?2A:t at R\D5AeV7A\E4A?b\A6 A\80S7A\E0\84\A6?a"A\FE.7A\C5W\ED? AR2A6!@zA\C67Av\FDR>\D9A\C5>7A__??S\80!A;?? ?7A\B8\AD\A5?.p#A -------------- next part -------------- An HTML attachment was scrubbed... URL: From imsurendra_sah at yahoo.com Tue Jan 8 09:57:54 2019 From: imsurendra_sah at yahoo.com (surendra sah) Date: Tue, 8 Jan 2019 14:57:54 +0000 (UTC) Subject: [vtkusers] visualizing ply file In-Reply-To: <1932711853.14906302.1546958954053@mail.yahoo.com> References: <1932711853.14906302.1546958954053.ref@mail.yahoo.com> <1932711853.14906302.1546958954053@mail.yahoo.com> Message-ID: <396628273.14914626.1546959474317@mail.yahoo.com> I forgot to add, I need to visualize this ply file in 3D. On Tuesday, January 8, 2019, 3:49:29 PM GMT+1, surendra sah via vtkusers wrote: Hi All,I have a .ply file and need to visualize it in C++. I tried paraview in order to get the output view and I could see the visualization. With VTK, I used the below code to read, write and visualize the .ply file but I do not see anything on Render Window. The window is? blank and also the output file is in different format probably binary. Please help me to get the visualization the render window. Thanks Few lines of my .ply file input.ply: ply format ascii 1.0 element vertex 1444314 property float x property float y property float z property uchar red property uchar green property uchar blue property uchar alpha end_header 9.629254 11.183217 2.379896 120 138 143 0 9.687406 11.172439 2.375881 115 133 140 0 9.896527 11.479791 1.872450 32 40 48 0 9.750688 11.167464 2.372992 122 138 145 0 9.943034 11.452575 1.865112 36 34 57 0 9.825553 11.175802 2.372624 119 134 142 0 9.907058 11.464114 1.311501 43 60 71 0 Code://vtkvisualization.cxx #include #include #include #include #include #include #include #include #include #include #include #include #include int main ( int argc, char *argv[] ) { ? vtkSmartPointer colors = ????? vtkSmartPointer::New(); ? // Set the background color. ? std::array bkg{{26, 51, 102, 255}}; ? //colors->SetName("RGB"); ? colors->SetColor("BkgColor", bkg.data()); ? ? //defining source ? if(argc != 2) ??? { ??? std::cout << "Usage: " << argv[0] << "? Filename(.ply)" << std::endl; ??? return EXIT_FAILURE; ??? } ? std::string inputFilename = argv[1]; ? vtkSmartPointer reader = ??? vtkSmartPointer::New(); ? reader->SetFileName ( inputFilename.c_str() ); ? reader->Update(); ? //writing to a file ? vtkSmartPointer plyWriter = ??? vtkSmartPointer::New(); ? plyWriter->SetFileName("output.ply"); ? //plyWriter->SetArrayName("RGB"); ? plyWriter->SetInputData(reader->GetOutput()); ? plyWriter->Write(); ? // Visualize steps: ? //defining mapper ? vtkSmartPointer mapper = ??? vtkSmartPointer::New(); ? mapper->SetInputConnection(reader->GetOutputPort()); ? ? //defining actor ? vtkSmartPointer actor = ??? vtkSmartPointer::New(); ? actor->SetMapper(mapper); ? //defining renderer ? // The renderer generates the image ? // which is then displayed on the render window. ? // It can be thought of as a scene to which the actor is added?? ? ? vtkSmartPointer renderer = ??? vtkSmartPointer::New(); ? renderer->AddActor(actor); //i have put the actor here to tryout ? renderer->SetBackground(colors->GetColor3d("BkgColor").GetData()); ? //renderer->SetBackground(0.1804,0.5451,0.3412); // Sea green ?// Zoom in a little by accessing the camera and invoking its "Zoom" method. ? renderer->ResetCamera(); ? renderer->GetActiveCamera()->Zoom(2.5); ? //defining rendering window ? // The render window is the actual GUI window ? // that appears on the computer screen ? vtkSmartPointer renderWindow = ??? vtkSmartPointer::New(); ? renderWindow->SetSize(300, 300); ? renderWindow->AddRenderer(renderer); ? renderWindow->SetWindowName("Visualization of ply file"); ? //defining interactor ? // The render window interactor captures mouse events ? // and will perform appropriate camera or actor manipulation ? // depending on the nature of the events. ? vtkSmartPointer renderWindowInteractor = ??? vtkSmartPointer::New(); ? renderWindowInteractor->SetRenderWindow(renderWindow); ? //renderer->AddActor(actor);// i think this function should be in renderer, needs to check ? ? ? renderWindow->Render(); // This starts the event loop and as a side effect causes an initial render. ? renderWindowInteractor->Start(); ? return EXIT_SUCCESS; } CMakeLists.txt:cmake_minimum_required(VERSION 2.8) PROJECT(vtkvisualization) find_package(VTK REQUIRED) include(${VTK_USE_FILE}) add_executable(vtkvisualization MACOSX_BUNDLE vtkvisualization.cxx ) target_link_libraries(vtkvisualization ${VTK_LIBRARIES}) output.ply:ply format binary_little_endian 1.0 comment VTK generated PLY File obj_info vtkPolyData points and polygons: vtk4.0 element vertex 1444314 property float x property float y property float z element face 0 property list uchar int vertex_indices end_header mAu\EE2A7P@\9D\FFAO\C22Ao at -XA9\AD7Aq\AC\EF?\D1A\EF\AD2A\DF@\ABA\BF=7A\FD\BB\EE?w5A\D02A\D9 at O\83Am7AD??N A\C6$7A\84-\EE?\82NA\D8\D12A{\BB@\9F\D9A\98{7A\94\DBB?"vA\88:7A\BA\A7?se!A$U7A\C7\F1\ED?\818A?2A:t at R\D5AeV7A\E4A?b\A6 A\80S7A\E0\84\A6?a"A\FE.7A\C5W\ED? AR2A6!@zA\C67Av\FDR>\D9A\C5>7A__??S\80!A;?? ?7A\B8\AD\A5?.p#A _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://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: https://vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewkeeling at hotmail.com Tue Jan 8 10:04:55 2019 From: andrewkeeling at hotmail.com (andyjk) Date: Tue, 8 Jan 2019 08:04:55 -0700 (MST) Subject: [vtkusers] visualizing ply file In-Reply-To: <396628273.14914626.1546959474317@mail.yahoo.com> References: <1932711853.14906302.1546958954053@mail.yahoo.com> <396628273.14914626.1546959474317@mail.yahoo.com> Message-ID: <1546959895184-0.post@n5.nabble.com> You don't have any faces in the ply file making it a little trickier in VTK. Use open3d for a simple c++ pointcloud viewer or PointCloudLibrary (which is large and depends on VTK). -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From lasso at queensu.ca Tue Jan 8 10:38:03 2019 From: lasso at queensu.ca (Andras Lasso) Date: Tue, 8 Jan 2019 15:38:03 +0000 Subject: [vtkusers] how to get python documentation easier In-Reply-To: <1546944228506-0.post@n5.nabble.com> References: <1546944228506-0.post@n5.nabble.com> Message-ID: > 3. I use the vtk installed by pip. It has a problem that my ide(pycharm) can not prompt the inherited function. I must know the parent class name and it prompt the function name. If you open the generated skeleton (it should be in a location like c:\Users\(username)\.PyCharm2018.3\system\python_stubs\1414425392\vtk) then you can find this in vtkJPEGReader.py: class vtkJPEGReader(__vtkIOImagePython.vtkImageReader2): I've uploaded skeletons that PyCharm is generated for me: https://1drv.ms/f/s!Arm_AFxB9yqHtqlf6Dgc0G6F8PppPA Unfortunately, PyCharm has trouble understanding qualified class names (__vtkIOImagePython.vtkImageReader2), therefore it cannot identify its parent class. If you replace this line by these lines then it works perfectly (documentation is found for parent class methods): from .vtkImageReader2 import vtkImageReader2 class vtkJPEGReader(vtkImageReader2): I'm not sure if this is an error of PyCharm or in how VTK packages are organized. For example PyCharm generates skeleton for opencv correctly (see in StereoSGBM.py file), so maybe we could try to do something similar what is done in opencv. If we think that qualified class names should work then a bug report should be submitted to PyCharm. Andras -----Original Message----- From: vtkusers On Behalf Of Franks Sent: Tuesday, January 8, 2019 5:44 AM To: vtkusers at vtk.org Subject: [vtkusers] how to get python documentation easier I am using python to create my vtk project. But I found that there are less resources for python than c++. I want to read the documentation for python. 1. I use help() in python. It is somehow helpful. But it is inconvenient to see the documentation in the console. 2. The ducumentation downloaded in the official website is helpful. But I found a problem. It can't expand list by mouse click. 3. I use the vtk installed by pip. It has a problem that my ide(pycharm) can not prompt the inherited function. I must know the parent class name and it prompt the function name. reader = vtk.vtkJPEGReader() # reader.SetFileName() this can not be prompted vtk.vtkImageReader2.SetFileName(reader, '') -- Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Classo%40queensu.ca%7Cdc90d6a9056549f3753408d675562ea5%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636825410348993302&sdata=u4FWYTJVtdFCqseAbnid%2FP%2FTzwo1Q2VKSM7ECSnrdWE%3D&reserved=0 _______________________________________________ Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Cdc90d6a9056549f3753408d675562ea5%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636825410348993302&sdata=NxdthqXiIoQBM9VcIYKJ9uVCFjzQfsCHmt6yzL65YxQ%3D&reserved=0 Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7Cdc90d6a9056549f3753408d675562ea5%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636825410348993302&sdata=4wHn1vnUxo1XbDtnPNKKqfPWr6DegFd5ZBFNRsy1Tl8%3D&reserved=0 Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7Cdc90d6a9056549f3753408d675562ea5%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636825410348993302&sdata=uLrMjODJ4O6iqPvRxQFFIDTPd53q4%2BvBk3y0tk0RaI0%3D&reserved=0 Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cdc90d6a9056549f3753408d675562ea5%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636825410348993302&sdata=yK2BfZhzQCQkqsWkelRhN7w8BNvSp9lkBsqftKklmiA%3D&reserved=0 Follow this link to subscribe/unsubscribe: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cdc90d6a9056549f3753408d675562ea5%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636825410348993302&sdata=hdwBvMtIqoiMYvwBC60rinSc0RGfny0xS4uQ%2FRh3D8U%3D&reserved=0 From imsurendra_sah at yahoo.com Tue Jan 8 10:38:07 2019 From: imsurendra_sah at yahoo.com (surendra sah) Date: Tue, 8 Jan 2019 15:38:07 +0000 (UTC) Subject: [vtkusers] visualizing ply file In-Reply-To: <1546959895184-0.post@n5.nabble.com> References: <1932711853.14906302.1546958954053@mail.yahoo.com> <396628273.14914626.1546959474317@mail.yahoo.com> <1546959895184-0.post@n5.nabble.com> Message-ID: <281154289.14951392.1546961887319@mail.yahoo.com> Hi Andrew, Yeah, that's the trick here, no faces. This file is easily visualize in meshlab or paraview (3D).I am not sure on Pointcloud library. Can you suggest me an example or website to read through. Thanks Sent from Yahoo Mail on Android Am Di., Jan. 8, 2019 at 16:05 schrieb andyjk: You don't have any faces in the ply file making it a little trickier in VTK. Use open3d for a simple c++ pointcloud viewer or PointCloudLibrary (which is large and depends on VTK). -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://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: https://vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.amaclean at gmail.com Tue Jan 8 15:23:43 2019 From: andrew.amaclean at gmail.com (Andrew Maclean) Date: Wed, 9 Jan 2019 07:23:43 +1100 Subject: [vtkusers] VTK Screenshot save images different as the visualization in renderer window In-Reply-To: References: Message-ID: Use the drop in code in https://lorensen.github.io/VTKExamples/site/Python/Snippets/, in particular: https://lorensen.github.io/VTKExamples/site/Python/Snippets/WriteImage/ These are designed for copy/pasting into your code (there is also a C++ equivalent and a cut-down Java one available too). This code works. I suspect that you need to set SetInputBufferTypeToRGB() in vtkWindowToImageFilter. I'm currently working through all the Python examples and I'll fix this one when I get to it. Regards Andrew > ---------- Forwarded message ---------- > From: Elhassan Abdou > To: szx0112 > Cc: VTK Users > Bcc: > Date: Tue, 8 Jan 2019 09:58:47 +0100 > Subject: Re: [vtkusers] VTK Screenshot save images different as the > visualization in renderer window > Hi all > > I am facing a similar problem any answer or solution for this issue > > Regards > Elhassan > > On Mon, Jan 7, 2019 at 12:37 AM szx0112 wrote: > >> I follow the tutorial for screenshot in python: >> https://lorensen.github.io/VTKExamples/site/Python/Utilities/Screenshot/ >> >> >> >> This is the camera view in the renderer window >> >> >> The screen shot suppose to capture this camera view, however the saved png >> image is a different view: >> >> >> Am I using the right method? Any comment is appreciated >> >> >> >> >> -- >> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://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: >> https://vtk.org/mailman/listinfo/vtkusers >> > > > > -- ___________________________________________ Andrew J. P. Maclean ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From famous.osarobo at gmail.com Wed Jan 9 04:12:17 2019 From: famous.osarobo at gmail.com (Osarobo Famous Okhuahesogie) Date: Wed, 9 Jan 2019 09:12:17 +0000 Subject: [vtkusers] vtkMPI problems Message-ID: Hi All, I have installed VTK on my computer. However, when I try to configure the example /ParallelProcessing/Generic/Cxx using CMake, I get the following error message. CMake Error at CMakeLists.txt:3 (include): include could not find load file: vtkMPI CMake Error at C:/VTK-8.1.1/src/CMake/vtkModuleAPI.cmake:143 (message): Requested modules not available: vtkRenderingParallel Call Stack (most recent call first): C:/VTK-8.1.1/build2/VTKConfig.cmake:127 (vtk_module_config) CMakeLists.txt:5 (find_package) CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.13) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. Here is the content of CMakeLists.txt used for the configuration: INCLUDE_REGULAR_EXPRESSION("^(lex|vtk|png|j|Task|Pipe).*$") include(vtkMPI) find_package(VTK COMPONENTS vtkImagingCore vtkImagingGeneral vtkFiltersCore vtkFiltersSources vtkParallelMPI vtkRenderingCore vtkRenderingParallel vtkTestingCore vtkTestingRendering ) include(${VTK_USE_FILE}) # Needed for mpich 2 ADD_DEFINITIONS("-DMPICH_IGNORE_CXX_SEEK") ADD_EXECUTABLE(ParallelIso ParallelIso.cxx) TARGET_LINK_LIBRARIES(ParallelIso LINK_PRIVATE ${VTK_LIBRARIES}) VTK_MPI_LINK(ParallelIso) SET(TaskPara_SRCS TaskParallelism.cxx task1.cxx task2.cxx) ADD_EXECUTABLE(TaskParallelism ${TaskPara_SRCS}) TARGET_LINK_LIBRARIES (TaskParallelism ${VTK_LIBRARIES}) # ADD_EXECUTABLE(SimpleBenchmark SimpleBenchmark.cxx) # TARGET_LINK_LIBRARIES(SimpleBenchmark vtkParallel ${MPI_LIBRARIES} ) I will appreciate if anyone is able to suggest ways to solve the problem Thanks Famous -------------- next part -------------- An HTML attachment was scrubbed... URL: From ckostop at ace-hellas.gr Wed Jan 9 08:05:51 2019 From: ckostop at ace-hellas.gr (arensky1) Date: Wed, 9 Jan 2019 06:05:51 -0700 (MST) Subject: [vtkusers] Help Needed Message-ID: <1547039151468-0.post@n5.nabble.com> Hi, there I was wondering if there is a person who lives in Greece with great experience in VTK in order to help me to my project (there will be appropriate payment) -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From A.Buykx at dianafea.com Wed Jan 9 09:17:22 2019 From: A.Buykx at dianafea.com (Andreas Buykx) Date: Wed, 9 Jan 2019 14:17:22 +0000 Subject: [vtkusers] Building VTK with Intel compiler fails due to MotionFX Message-ID: <490ce223bf6d44a6b945142905436fd1@dianafea.com> Hi, I occasionally contribute fixes to issues in VTK. My last contributions were on the 8.2.rc2 branch end of November 2018. Today I tried to build the head of the master to look at another issue, with our current intel compiler (version 19.0.0.20181018). At first I ran into a problem that CMake/vtkCompilerPlatformFlags.cmake uses VTK_CMAKE_DIR whereas this was renamed to vtk_cmake_dir some time ago. After I fixed that (it also appears in vtkAndroid.cmake, vtkiOS.cmake and some files under Examples/Build) I encountered the following CMake error: CMake Error in IO/MotionFX/CMakeLists.txt: The compiler feature "cxx_generalized_initializers" is not known to CXX compiler "Intel" version 19.0.0.20181018. Looking for the compiler feature string led me to the 3rd party library pegl. I don't need the vtkIOMotionFX library, so I would either like to exclude it entirely or, I suppose, update the IO/MotionFX/vtk.module CONDITION entry such that it does not get built with the intel compiler(?) Could someone help me to achieve this? Thanks a lot! Andreas Buykx DIANA FEA BV Software Developers and Analysis Consultants for Civil and Geotechnical Engineering Delftechpark 19a, 2628XJ, Delft, The Netherlands Tel: +31 88 34262 15 (Direct) ? Tel: +31 88 34262 00 (Switchboard) ? Fax: +31 88 34262 99 http://dianafea.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From purvesmh at ornl.gov Wed Jan 9 09:47:49 2019 From: purvesmh at ornl.gov (Purves, Murray) Date: Wed, 9 Jan 2019 14:47:49 +0000 Subject: [vtkusers] vtkRectilinearGridToTetrahedra: remember scalar field Message-ID: <98016526-A14E-45A7-9B9B-100CBFDBD25A@ornl.gov> Hi, I am currently trying to generate a volume rendering of a 3D scalar field that I read in from an HDF5 file. The data structures within the file represent a rectilinear grid, though are stored in a complex fashion and not directly ?importable? into an array or other structure. I am reading the data and pre-processing to build a vtkRectilinearGrid, which I then run through the vtkRectilinearGridToTetrahedra pipeline to build an unstructured grid which I then volume render. The original rectilinear grid has scalars (representing e.g. temperature, power, density) that I would like to preserve when making this conversion, so that I can apply colour/opacity to the volume based on this. Is this something that is possible to conserve? I can see that it is possible to maintain the original voxel ID as a scalar in the new grid ? should I just use this as an index to re-populate the scalar data in the new grid, or can I do it more directly? Or failing that, should I extend the conversion method to allow for transfer of the original scalar field? Any help/advice is much appreciated. Cheers Murray -------------- next part -------------- An HTML attachment was scrubbed... URL: From sk.shadabanwar at gmail.com Wed Jan 9 14:31:01 2019 From: sk.shadabanwar at gmail.com (shadab anwar) Date: Wed, 9 Jan 2019 11:31:01 -0800 Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata Message-ID: Hi everyone, I am working on a problem consisting of two vtkimagedata, where the first vtkimagedata represents workpiece (3D block) and other vtkimagedata represents tool (cylindrical) in my application. I want to turn off the voxels at the intersection of these two imagedata after that I want to translate the tool to a next position and repeat the same thing. I have tried few methods but no sucess! I'll be really grateful if you can help me with the easiest method to do so or at least show me direction to go. Thanks, Shadab -------------- next part -------------- An HTML attachment was scrubbed... URL: From sk.shadabanwar at gmail.com Wed Jan 9 14:31:01 2019 From: sk.shadabanwar at gmail.com (shadab anwar) Date: Wed, 9 Jan 2019 11:31:01 -0800 Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata Message-ID: Hi everyone, I am working on a problem consisting of two vtkimagedata, where the first vtkimagedata represents workpiece (3D block) and other vtkimagedata represents tool (cylindrical) in my application. I want to turn off the voxels at the intersection of these two imagedata after that I want to translate the tool to a next position and repeat the same thing. I have tried few methods but no sucess! I'll be really grateful if you can help me with the easiest method to do so or at least show me direction to go. Thanks, Shadab -------------- next part -------------- An HTML attachment was scrubbed... URL: From lasso at queensu.ca Wed Jan 9 15:10:08 2019 From: lasso at queensu.ca (Andras Lasso) Date: Wed, 9 Jan 2019 20:10:08 +0000 Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata In-Reply-To: References: Message-ID: You can do the single step of blanking out an image data with another by resampling the two images in the same coordinate system and use vtkImageMask or vtkImageMath to combine them. If you wanted to simulate medical procedures (bone removal, etc.) note that a full suite of tools are available for this in 3D Slicer application (www.slicer.org) and its many extensions. They are based on VTK and fully customizable or extensible in Python and C++. You can connect to almost any position tracker device (it can be a simple webcam that tracks 2D barcodes, or a commercial surgical navigation system) using SlicerIGT extension (www.slicerigt.org) to get tool position in real-time. To remove tissue probably the simplest is to import the tool model as a segment and apply ?volume masking? segment editor effect. You can even compute skill assessment metrics using PerkTutor extension (www.perktutor.org). All the programming that you need to do is writing 20-30 lines of Python code to trigger volume masking automatically when the tool position is changed. If you have any questions you can post it to https://discourse.slicer.org. Andras From: vtkusers On Behalf Of shadab anwar Sent: Wednesday, January 9, 2019 2:31 PM To: vtkusers at public.kitware.com; vtkusers at vtk.org Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata Hi everyone, I am working on a problem consisting of two vtkimagedata, where the first vtkimagedata represents workpiece (3D block) and other vtkimagedata represents tool (cylindrical) in my application. I want to turn off the voxels at the intersection of these two imagedata after that I want to translate the tool to a next position and repeat the same thing. I have tried few methods but no sucess! I'll be really grateful if you can help me with the easiest method to do so or at least show me direction to go. Thanks, Shadab -------------- next part -------------- An HTML attachment was scrubbed... URL: From lasso at queensu.ca Wed Jan 9 15:10:08 2019 From: lasso at queensu.ca (Andras Lasso) Date: Wed, 9 Jan 2019 20:10:08 +0000 Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata In-Reply-To: References: Message-ID: You can do the single step of blanking out an image data with another by resampling the two images in the same coordinate system and use vtkImageMask or vtkImageMath to combine them. If you wanted to simulate medical procedures (bone removal, etc.) note that a full suite of tools are available for this in 3D Slicer application (www.slicer.org) and its many extensions. They are based on VTK and fully customizable or extensible in Python and C++. You can connect to almost any position tracker device (it can be a simple webcam that tracks 2D barcodes, or a commercial surgical navigation system) using SlicerIGT extension (www.slicerigt.org) to get tool position in real-time. To remove tissue probably the simplest is to import the tool model as a segment and apply ?volume masking? segment editor effect. You can even compute skill assessment metrics using PerkTutor extension (www.perktutor.org). All the programming that you need to do is writing 20-30 lines of Python code to trigger volume masking automatically when the tool position is changed. If you have any questions you can post it to https://discourse.slicer.org. Andras From: vtkusers On Behalf Of shadab anwar Sent: Wednesday, January 9, 2019 2:31 PM To: vtkusers at public.kitware.com; vtkusers at vtk.org Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata Hi everyone, I am working on a problem consisting of two vtkimagedata, where the first vtkimagedata represents workpiece (3D block) and other vtkimagedata represents tool (cylindrical) in my application. I want to turn off the voxels at the intersection of these two imagedata after that I want to translate the tool to a next position and repeat the same thing. I have tried few methods but no sucess! I'll be really grateful if you can help me with the easiest method to do so or at least show me direction to go. Thanks, Shadab -------------- next part -------------- An HTML attachment was scrubbed... URL: From sk.shadabanwar at gmail.com Wed Jan 9 15:50:05 2019 From: sk.shadabanwar at gmail.com (shadab anwar) Date: Wed, 9 Jan 2019 15:50:05 -0500 Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata In-Reply-To: References: Message-ID: Hey Andras, Thank You for the quick reply! My application is based on CAD and Machining Dynamics. Also I would like to know the process for translating the vtkimagedata so that I can see the tool moving visually to the next position. I have tried vtkimagereslice and vtktransformfilter. The problem with vtkimagereslice is that if I rotate the model I get a truncated solid. When I use vtktransformfilter I get the output as vtkstructuredgrid instead of vtkimagedata. I'll be happy if you can show me a direction such that I will be able to translate, rotate my imagedata (not the actor). Just to let you know I am using C++. Thanks, Shadab On Wed, 9 Jan 2019 at 3:10 PM, Andras Lasso wrote: > You can do the single step of blanking out an image data with another by > resampling the two images in the same coordinate system and use > vtkImageMask or vtkImageMath to combine them. > > > > If you wanted to simulate medical procedures (bone removal, etc.) note > that a full suite of tools are available for this in 3D Slicer application ( > www.slicer.org) and its many extensions. They are based on VTK and fully > customizable or extensible in Python and C++. You can connect to almost any > position tracker device (it can be a simple webcam that tracks 2D barcodes, > or a commercial surgical navigation system) using SlicerIGT extension ( > www.slicerigt.org) to get tool position in real-time. To remove tissue > probably the simplest is to import the tool model as a segment and apply > ?volume masking? segment editor effect. You can even compute skill > assessment metrics using PerkTutor extension (www.perktutor.org). All the > programming that you need to do is writing 20-30 lines of Python code to > trigger volume masking automatically when the tool position is changed. If > you have any questions you can post it to https://discourse.slicer.org. > > > > Andras > > > > *From:* vtkusers *On Behalf Of *shadab anwar > *Sent:* Wednesday, January 9, 2019 2:31 PM > *To:* vtkusers at public.kitware.com; vtkusers at vtk.org > *Subject:* [vtkusers] Turning off/on voxels at the intersection of two > vtkimagedata > > > > Hi everyone, > > > > I am working on a problem consisting of two vtkimagedata, where the first > vtkimagedata represents workpiece (3D block) and other vtkimagedata > represents tool (cylindrical) in my application. > > I want to turn off the voxels at the intersection of these two imagedata > after that I want to translate the tool to a next position and repeat the > same thing. > > > > I have tried few methods but no sucess! I'll be really grateful if you can > help me with the easiest method to do so or at least show me direction to > go. > > > > Thanks, > > Shadab > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sk.shadabanwar at gmail.com Wed Jan 9 15:50:05 2019 From: sk.shadabanwar at gmail.com (shadab anwar) Date: Wed, 9 Jan 2019 15:50:05 -0500 Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata In-Reply-To: References: Message-ID: Hey Andras, Thank You for the quick reply! My application is based on CAD and Machining Dynamics. Also I would like to know the process for translating the vtkimagedata so that I can see the tool moving visually to the next position. I have tried vtkimagereslice and vtktransformfilter. The problem with vtkimagereslice is that if I rotate the model I get a truncated solid. When I use vtktransformfilter I get the output as vtkstructuredgrid instead of vtkimagedata. I'll be happy if you can show me a direction such that I will be able to translate, rotate my imagedata (not the actor). Just to let you know I am using C++. Thanks, Shadab On Wed, 9 Jan 2019 at 3:10 PM, Andras Lasso wrote: > You can do the single step of blanking out an image data with another by > resampling the two images in the same coordinate system and use > vtkImageMask or vtkImageMath to combine them. > > > > If you wanted to simulate medical procedures (bone removal, etc.) note > that a full suite of tools are available for this in 3D Slicer application ( > www.slicer.org) and its many extensions. They are based on VTK and fully > customizable or extensible in Python and C++. You can connect to almost any > position tracker device (it can be a simple webcam that tracks 2D barcodes, > or a commercial surgical navigation system) using SlicerIGT extension ( > www.slicerigt.org) to get tool position in real-time. To remove tissue > probably the simplest is to import the tool model as a segment and apply > ?volume masking? segment editor effect. You can even compute skill > assessment metrics using PerkTutor extension (www.perktutor.org). All the > programming that you need to do is writing 20-30 lines of Python code to > trigger volume masking automatically when the tool position is changed. If > you have any questions you can post it to https://discourse.slicer.org. > > > > Andras > > > > *From:* vtkusers *On Behalf Of *shadab anwar > *Sent:* Wednesday, January 9, 2019 2:31 PM > *To:* vtkusers at public.kitware.com; vtkusers at vtk.org > *Subject:* [vtkusers] Turning off/on voxels at the intersection of two > vtkimagedata > > > > Hi everyone, > > > > I am working on a problem consisting of two vtkimagedata, where the first > vtkimagedata represents workpiece (3D block) and other vtkimagedata > represents tool (cylindrical) in my application. > > I want to turn off the voxels at the intersection of these two imagedata > after that I want to translate the tool to a next position and repeat the > same thing. > > > > I have tried few methods but no sucess! I'll be really grateful if you can > help me with the easiest method to do so or at least show me direction to > go. > > > > Thanks, > > Shadab > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Wed Jan 9 15:55:34 2019 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 9 Jan 2019 15:55:34 -0500 Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata In-Reply-To: References: Message-ID: TransformFilter changes the data type because vtkImageData has a fundamental limitation of being defined as being axis aligned. David E DeMarle Kitware, Inc. Principal Engineer On Wed, Jan 9, 2019 at 3:50 PM shadab anwar wrote: > Hey Andras, > Thank You for the quick reply! > > My application is based on CAD and Machining Dynamics. > Also I would like to know the process for translating the vtkimagedata so > that I can see the tool moving visually to the next position. I have tried > vtkimagereslice and vtktransformfilter. The problem with vtkimagereslice is > that if I rotate the model I get a truncated solid. When I use > vtktransformfilter I get the output as vtkstructuredgrid instead of > vtkimagedata. > I'll be happy if you can show me a direction such that I will be able to > translate, rotate my imagedata (not the actor). > > Just to let you know I am using C++. > > Thanks, > Shadab > > > > > On Wed, 9 Jan 2019 at 3:10 PM, Andras Lasso wrote: > >> You can do the single step of blanking out an image data with another by >> resampling the two images in the same coordinate system and use >> vtkImageMask or vtkImageMath to combine them. >> >> >> >> If you wanted to simulate medical procedures (bone removal, etc.) note >> that a full suite of tools are available for this in 3D Slicer application ( >> www.slicer.org) and its many extensions. They are based on VTK and fully >> customizable or extensible in Python and C++. You can connect to almost any >> position tracker device (it can be a simple webcam that tracks 2D barcodes, >> or a commercial surgical navigation system) using SlicerIGT extension ( >> www.slicerigt.org) to get tool position in real-time. To remove tissue >> probably the simplest is to import the tool model as a segment and apply >> ?volume masking? segment editor effect. You can even compute skill >> assessment metrics using PerkTutor extension (www.perktutor.org). All >> the programming that you need to do is writing 20-30 lines of Python code >> to trigger volume masking automatically when the tool position is changed. >> If you have any questions you can post it to https://discourse.slicer.org. >> >> >> >> >> Andras >> >> >> >> *From:* vtkusers *On Behalf Of *shadab anwar >> *Sent:* Wednesday, January 9, 2019 2:31 PM >> *To:* vtkusers at public.kitware.com; vtkusers at vtk.org >> *Subject:* [vtkusers] Turning off/on voxels at the intersection of two >> vtkimagedata >> >> >> >> Hi everyone, >> >> >> >> I am working on a problem consisting of two vtkimagedata, where the first >> vtkimagedata represents workpiece (3D block) and other vtkimagedata >> represents tool (cylindrical) in my application. >> >> I want to turn off the voxels at the intersection of these two imagedata >> after that I want to translate the tool to a next position and repeat the >> same thing. >> >> >> >> I have tried few methods but no sucess! I'll be really grateful if you >> can help me with the easiest method to do so or at least show me direction >> to go. >> >> >> >> Thanks, >> >> Shadab >> > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Wed Jan 9 15:55:34 2019 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 9 Jan 2019 15:55:34 -0500 Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata In-Reply-To: References: Message-ID: TransformFilter changes the data type because vtkImageData has a fundamental limitation of being defined as being axis aligned. David E DeMarle Kitware, Inc. Principal Engineer On Wed, Jan 9, 2019 at 3:50 PM shadab anwar wrote: > Hey Andras, > Thank You for the quick reply! > > My application is based on CAD and Machining Dynamics. > Also I would like to know the process for translating the vtkimagedata so > that I can see the tool moving visually to the next position. I have tried > vtkimagereslice and vtktransformfilter. The problem with vtkimagereslice is > that if I rotate the model I get a truncated solid. When I use > vtktransformfilter I get the output as vtkstructuredgrid instead of > vtkimagedata. > I'll be happy if you can show me a direction such that I will be able to > translate, rotate my imagedata (not the actor). > > Just to let you know I am using C++. > > Thanks, > Shadab > > > > > On Wed, 9 Jan 2019 at 3:10 PM, Andras Lasso wrote: > >> You can do the single step of blanking out an image data with another by >> resampling the two images in the same coordinate system and use >> vtkImageMask or vtkImageMath to combine them. >> >> >> >> If you wanted to simulate medical procedures (bone removal, etc.) note >> that a full suite of tools are available for this in 3D Slicer application ( >> www.slicer.org) and its many extensions. They are based on VTK and fully >> customizable or extensible in Python and C++. You can connect to almost any >> position tracker device (it can be a simple webcam that tracks 2D barcodes, >> or a commercial surgical navigation system) using SlicerIGT extension ( >> www.slicerigt.org) to get tool position in real-time. To remove tissue >> probably the simplest is to import the tool model as a segment and apply >> ?volume masking? segment editor effect. You can even compute skill >> assessment metrics using PerkTutor extension (www.perktutor.org). All >> the programming that you need to do is writing 20-30 lines of Python code >> to trigger volume masking automatically when the tool position is changed. >> If you have any questions you can post it to https://discourse.slicer.org. >> >> >> >> >> Andras >> >> >> >> *From:* vtkusers *On Behalf Of *shadab anwar >> *Sent:* Wednesday, January 9, 2019 2:31 PM >> *To:* vtkusers at public.kitware.com; vtkusers at vtk.org >> *Subject:* [vtkusers] Turning off/on voxels at the intersection of two >> vtkimagedata >> >> >> >> Hi everyone, >> >> >> >> I am working on a problem consisting of two vtkimagedata, where the first >> vtkimagedata represents workpiece (3D block) and other vtkimagedata >> represents tool (cylindrical) in my application. >> >> I want to turn off the voxels at the intersection of these two imagedata >> after that I want to translate the tool to a next position and repeat the >> same thing. >> >> >> >> I have tried few methods but no sucess! I'll be really grateful if you >> can help me with the easiest method to do so or at least show me direction >> to go. >> >> >> >> Thanks, >> >> Shadab >> > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lasso at queensu.ca Wed Jan 9 16:00:57 2019 From: lasso at queensu.ca (Andras Lasso) Date: Wed, 9 Jan 2019 21:00:57 +0000 Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata In-Reply-To: References: Message-ID: There are many options. One of them is to create a ?tool? image once and transformation and resample it using vtkImageResample. You do not use vktTransformFilter at all. As far as I remember, vtkImageResample has some padding options but if they are not sufficient then you can use vtkImagePadFilter to make images larger (while keeping their current content). Andras From: shadab anwar Sent: Wednesday, January 9, 2019 3:50 PM To: Andras Lasso Cc: vtkusers at public.kitware.com; vtkusers at vtk.org Subject: Re: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata Hey Andras, Thank You for the quick reply! My application is based on CAD and Machining Dynamics. Also I would like to know the process for translating the vtkimagedata so that I can see the tool moving visually to the next position. I have tried vtkimagereslice and vtktransformfilter. The problem with vtkimagereslice is that if I rotate the model I get a truncated solid. When I use vtktransformfilter I get the output as vtkstructuredgrid instead of vtkimagedata. I'll be happy if you can show me a direction such that I will be able to translate, rotate my imagedata (not the actor). Just to let you know I am using C++. Thanks, Shadab On Wed, 9 Jan 2019 at 3:10 PM, Andras Lasso > wrote: You can do the single step of blanking out an image data with another by resampling the two images in the same coordinate system and use vtkImageMask or vtkImageMath to combine them. If you wanted to simulate medical procedures (bone removal, etc.) note that a full suite of tools are available for this in 3D Slicer application (www.slicer.org) and its many extensions. They are based on VTK and fully customizable or extensible in Python and C++. You can connect to almost any position tracker device (it can be a simple webcam that tracks 2D barcodes, or a commercial surgical navigation system) using SlicerIGT extension (www.slicerigt.org) to get tool position in real-time. To remove tissue probably the simplest is to import the tool model as a segment and apply ?volume masking? segment editor effect. You can even compute skill assessment metrics using PerkTutor extension (www.perktutor.org). All the programming that you need to do is writing 20-30 lines of Python code to trigger volume masking automatically when the tool position is changed. If you have any questions you can post it to https://discourse.slicer.org. Andras From: vtkusers > On Behalf Of shadab anwar Sent: Wednesday, January 9, 2019 2:31 PM To: vtkusers at public.kitware.com; vtkusers at vtk.org Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata Hi everyone, I am working on a problem consisting of two vtkimagedata, where the first vtkimagedata represents workpiece (3D block) and other vtkimagedata represents tool (cylindrical) in my application. I want to turn off the voxels at the intersection of these two imagedata after that I want to translate the tool to a next position and repeat the same thing. I have tried few methods but no sucess! I'll be really grateful if you can help me with the easiest method to do so or at least show me direction to go. Thanks, Shadab -------------- next part -------------- An HTML attachment was scrubbed... URL: From lasso at queensu.ca Wed Jan 9 16:00:57 2019 From: lasso at queensu.ca (Andras Lasso) Date: Wed, 9 Jan 2019 21:00:57 +0000 Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata In-Reply-To: References: Message-ID: There are many options. One of them is to create a ?tool? image once and transformation and resample it using vtkImageResample. You do not use vktTransformFilter at all. As far as I remember, vtkImageResample has some padding options but if they are not sufficient then you can use vtkImagePadFilter to make images larger (while keeping their current content). Andras From: shadab anwar Sent: Wednesday, January 9, 2019 3:50 PM To: Andras Lasso Cc: vtkusers at public.kitware.com; vtkusers at vtk.org Subject: Re: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata Hey Andras, Thank You for the quick reply! My application is based on CAD and Machining Dynamics. Also I would like to know the process for translating the vtkimagedata so that I can see the tool moving visually to the next position. I have tried vtkimagereslice and vtktransformfilter. The problem with vtkimagereslice is that if I rotate the model I get a truncated solid. When I use vtktransformfilter I get the output as vtkstructuredgrid instead of vtkimagedata. I'll be happy if you can show me a direction such that I will be able to translate, rotate my imagedata (not the actor). Just to let you know I am using C++. Thanks, Shadab On Wed, 9 Jan 2019 at 3:10 PM, Andras Lasso > wrote: You can do the single step of blanking out an image data with another by resampling the two images in the same coordinate system and use vtkImageMask or vtkImageMath to combine them. If you wanted to simulate medical procedures (bone removal, etc.) note that a full suite of tools are available for this in 3D Slicer application (www.slicer.org) and its many extensions. They are based on VTK and fully customizable or extensible in Python and C++. You can connect to almost any position tracker device (it can be a simple webcam that tracks 2D barcodes, or a commercial surgical navigation system) using SlicerIGT extension (www.slicerigt.org) to get tool position in real-time. To remove tissue probably the simplest is to import the tool model as a segment and apply ?volume masking? segment editor effect. You can even compute skill assessment metrics using PerkTutor extension (www.perktutor.org). All the programming that you need to do is writing 20-30 lines of Python code to trigger volume masking automatically when the tool position is changed. If you have any questions you can post it to https://discourse.slicer.org. Andras From: vtkusers > On Behalf Of shadab anwar Sent: Wednesday, January 9, 2019 2:31 PM To: vtkusers at public.kitware.com; vtkusers at vtk.org Subject: [vtkusers] Turning off/on voxels at the intersection of two vtkimagedata Hi everyone, I am working on a problem consisting of two vtkimagedata, where the first vtkimagedata represents workpiece (3D block) and other vtkimagedata represents tool (cylindrical) in my application. I want to turn off the voxels at the intersection of these two imagedata after that I want to translate the tool to a next position and repeat the same thing. I have tried few methods but no sucess! I'll be really grateful if you can help me with the easiest method to do so or at least show me direction to go. Thanks, Shadab -------------- next part -------------- An HTML attachment was scrubbed... URL: From 278124177 at qq.com Wed Jan 9 21:29:09 2019 From: 278124177 at qq.com (=?gb18030?B?zui3qM7ozOw=?=) Date: Thu, 10 Jan 2019 10:29:09 +0800 Subject: [vtkusers] Problem of vtkFFMPEGWriter Message-ID: Hi all I'm trying to make a video with vtkFFMPEGWriter, but the fps is 600even when i use setRate(),Is there anyway to change the fps of vtkFFMPEGWriter? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rccm.kyoshimi at gmail.com Thu Jan 10 03:52:07 2019 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Thu, 10 Jan 2019 17:52:07 +0900 Subject: [vtkusers] vtkMPI problems In-Reply-To: References: Message-ID: Hi, The following CMakeLists.txt eliminates the errors if all required modules are installed. ---- cmake_minimum_required(VERSION 3.3 FATAL_ERROR) project(ParallelProcessingGeneric) find_package(VTK COMPONENTS vtkImagingCore vtkImagingGeneral vtkFiltersCore vtkFiltersSources vtkParallelMPI vtkRenderingCore vtkRenderingParallel vtkTestingCore vtkTestingRendering ) include(${VTK_USE_FILE}) include(vtkMPI) add_executable(ParallelIso ParallelIso.cxx) target_link_libraries(ParallelIso PRIVATE ${VTK_LIBRARIES}) set(TaskPara_SRCS TaskParallelism.cxx task1.cxx task2.cxx) add_executable(TaskParallelism ${TaskPara_SRCS}) target_link_libraries(TaskParallelism PRIVATE ${VTK_LIBRARIES}) ---- Regards, 2019?1?9?(?) 18:12 Osarobo Famous Okhuahesogie : > > Hi All, > > I have installed VTK on my computer. However, when I try to configure the example /ParallelProcessing/Generic/Cxx using CMake, I get the following error message. > > CMake Error at CMakeLists.txt:3 (include): > include could not find load file: > > vtkMPI > > CMake Error at C:/VTK-8.1.1/src/CMake/vtkModuleAPI.cmake:143 (message): > Requested modules not available: > > vtkRenderingParallel > Call Stack (most recent call first): > C:/VTK-8.1.1/build2/VTKConfig.cmake:127 (vtk_module_config) > CMakeLists.txt:5 (find_package) > > CMake Warning (dev) in CMakeLists.txt: > No cmake_minimum_required command is present. A line of code such as > > cmake_minimum_required(VERSION 3.13) > > should be added at the top of the file. The version specified may be lower > if you wish to support older CMake versions for this project. For more > information run "cmake --help-policy CMP0000". > This warning is for project developers. Use -Wno-dev to suppress it. > > > > > Here is the content of CMakeLists.txt used for the configuration: > > > INCLUDE_REGULAR_EXPRESSION("^(lex|vtk|png|j|Task|Pipe).*$") include(vtkMPI) find_package(VTK COMPONENTS vtkImagingCore vtkImagingGeneral vtkFiltersCore vtkFiltersSources vtkParallelMPI vtkRenderingCore vtkRenderingParallel vtkTestingCore vtkTestingRendering ) include(${VTK_USE_FILE}) # Needed for mpich 2 ADD_DEFINITIONS("-DMPICH_IGNORE_CXX_SEEK") ADD_EXECUTABLE(ParallelIso ParallelIso.cxx) TARGET_LINK_LIBRARIES(ParallelIso LINK_PRIVATE ${VTK_LIBRARIES}) VTK_MPI_LINK(ParallelIso) SET(TaskPara_SRCS TaskParallelism.cxx task1.cxx task2.cxx) ADD_EXECUTABLE(TaskParallelism ${TaskPara_SRCS}) TARGET_LINK_LIBRARIES (TaskParallelism ${VTK_LIBRARIES}) # ADD_EXECUTABLE(SimpleBenchmark SimpleBenchmark.cxx) # TARGET_LINK_LIBRARIES(SimpleBenchmark vtkParallel ${MPI_LIBRARIES} ) > > > I will appreciate if anyone is able to suggest ways to solve the problem > > > Thanks > > > Famous > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://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: > https://vtk.org/mailman/listinfo/vtkusers From famous.osarobo at gmail.com Thu Jan 10 04:26:53 2019 From: famous.osarobo at gmail.com (Osarobo Famous Okhuahesogie) Date: Thu, 10 Jan 2019 09:26:53 +0000 Subject: [vtkusers] vtkMPI problems In-Reply-To: References: Message-ID: Hi Kenichiro, Thanks for the CMakeList you provided. It works fine now. Kind Regards Famous On Thu, 10 Jan 2019 at 08:52, kenichiro yoshimi wrote: > Hi, > > The following CMakeLists.txt eliminates the errors if all required > modules are installed. > > ---- > cmake_minimum_required(VERSION 3.3 FATAL_ERROR) > project(ParallelProcessingGeneric) > > find_package(VTK > COMPONENTS > vtkImagingCore > vtkImagingGeneral > vtkFiltersCore > vtkFiltersSources > vtkParallelMPI > vtkRenderingCore > vtkRenderingParallel > vtkTestingCore > vtkTestingRendering > ) > include(${VTK_USE_FILE}) > include(vtkMPI) > > add_executable(ParallelIso ParallelIso.cxx) > target_link_libraries(ParallelIso > PRIVATE > ${VTK_LIBRARIES}) > > set(TaskPara_SRCS > TaskParallelism.cxx > task1.cxx > task2.cxx) > > add_executable(TaskParallelism > ${TaskPara_SRCS}) > target_link_libraries(TaskParallelism > PRIVATE > ${VTK_LIBRARIES}) > ---- > > Regards, > > 2019?1?9?(?) 18:12 Osarobo Famous Okhuahesogie : > > > > Hi All, > > > > I have installed VTK on my computer. However, when I try to configure > the example /ParallelProcessing/Generic/Cxx using CMake, I get the > following error message. > > > > CMake Error at CMakeLists.txt:3 (include): > > include could not find load file: > > > > vtkMPI > > > > CMake Error at C:/VTK-8.1.1/src/CMake/vtkModuleAPI.cmake:143 (message): > > Requested modules not available: > > > > vtkRenderingParallel > > Call Stack (most recent call first): > > C:/VTK-8.1.1/build2/VTKConfig.cmake:127 (vtk_module_config) > > CMakeLists.txt:5 (find_package) > > > > CMake Warning (dev) in CMakeLists.txt: > > No cmake_minimum_required command is present. A line of code such as > > > > cmake_minimum_required(VERSION 3.13) > > > > should be added at the top of the file. The version specified may be > lower > > if you wish to support older CMake versions for this project. For more > > information run "cmake --help-policy CMP0000". > > This warning is for project developers. Use -Wno-dev to suppress it. > > > > > > > > > > Here is the content of CMakeLists.txt used for the configuration: > > > > > > INCLUDE_REGULAR_EXPRESSION("^(lex|vtk|png|j|Task|Pipe).*$") > include(vtkMPI) find_package(VTK COMPONENTS vtkImagingCore > vtkImagingGeneral vtkFiltersCore vtkFiltersSources vtkParallelMPI > vtkRenderingCore vtkRenderingParallel vtkTestingCore vtkTestingRendering ) > include(${VTK_USE_FILE}) # Needed for mpich 2 > ADD_DEFINITIONS("-DMPICH_IGNORE_CXX_SEEK") ADD_EXECUTABLE(ParallelIso > ParallelIso.cxx) TARGET_LINK_LIBRARIES(ParallelIso LINK_PRIVATE > ${VTK_LIBRARIES}) VTK_MPI_LINK(ParallelIso) SET(TaskPara_SRCS > TaskParallelism.cxx task1.cxx task2.cxx) ADD_EXECUTABLE(TaskParallelism > ${TaskPara_SRCS}) TARGET_LINK_LIBRARIES (TaskParallelism ${VTK_LIBRARIES}) > # ADD_EXECUTABLE(SimpleBenchmark SimpleBenchmark.cxx) # > TARGET_LINK_LIBRARIES(SimpleBenchmark vtkParallel ${MPI_LIBRARIES} ) > > > > > > I will appreciate if anyone is able to suggest ways to solve the problem > > > > > > Thanks > > > > > > Famous > > > > > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > http://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: > > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From msmerps at gmail.com Thu Jan 10 14:13:17 2019 From: msmerps at gmail.com (The Merper) Date: Thu, 10 Jan 2019 14:13:17 -0500 Subject: [vtkusers] filling in a sphere's intersection with a plane Message-ID: Hi all, I have a set of spheres in a volume that I visualize in 2D slices. When the plane of a 2D slice intersects a sphere, I want the interior of the sphere to be filled. It appears that there three different ways to do this: 1) Use vtkContourTriangulator as recommended here: https://vtk.org/pipermail/vtkusers/2015-May/090826.html with this example as a basis: https://vtk.org/Wiki/VTK/Examples/Cxx/Modelling/ContourTriangulator 2) Use PolyDataToImageData: https://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataToImageData 3) Use PolyDataContourToImageData: https://www.paraview.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataContourToImageData I've tried Option 1 without success. Did I do something wrong or should I try one of the other options. any wisdom would be helpful, -Merps -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Jan 10 17:08:33 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 10 Jan 2019 15:08:33 -0700 Subject: [vtkusers] filling in a sphere's intersection with a plane In-Reply-To: References: Message-ID: On Thu, Jan 10, 2019 at 12:13 PM The Merper wrote: > > I have a set of spheres in a volume that I visualize in 2D slices. When > the plane of a 2D slice intersects a sphere, I want the interior of the > sphere to be filled. > How are the spheres defined? Do you already have them as vtkPolyData objects, or do you just have a list of "center and radius" values to describe the spheres? When you say "visualize in 2D slices" do you mean that you are already visualizing slices of something (e.g. of an image) and you want to display the sphere cuts as an overlay on the image? For your application, does it matter whether the sphere cuts are displayed as voxels (i.e. a vtkImageData) vs polygons? Also, for context, what is the general purpose of your application? Cheers, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From gattia at mcmaster.ca Fri Jan 11 08:42:39 2019 From: gattia at mcmaster.ca (A. Gatti) Date: Fri, 11 Jan 2019 08:42:39 -0500 Subject: [vtkusers] Thickness Maps / surface extraction Message-ID: Hi, I?m emailing to see if there are any suggestions or forewarnings for what I am attempting to do. I work with cartilage segmentation and have used the raw pixel data in the past to calculate thickness values for regions of interest. To do this, I define 2 sides of the cartilage (bone interface and surface). I?ve typically done this by finding contours for the bone and cartilage and if the cartilage contour has a bone Neighbour it is considered to be on the bone-interface, otherwise it is on the surface. Then thickness is calculated for every bone-interface pixel, finding the surface pixel with the minimum Euclidean distance. I am hoping to translate this to vtk for a few reasons. 1. I would like to be able to visualize the thickness maps. - which is a pain to do in pixel format. I?ve tried rendering and it doesn?t look so hot. 2. I?m interested in trying out something like iterative closest point registration between two bone-interface surfaces to be able to make comparisons between thickness maps. My thoughts on how to go about this are to: 1. Use my existing contouring method to get the bone-interface and surface 2. Extract the 3D location of each of these pixels and apply surfaceReconstructionFilter to the bone-interface and surface points separately. 3. Continue with what I have previously done - iterate over every point from the new bone-interface surface to find the closest point on the surface. I would then assign the thickness calculated for every point to that point and be able to view a map of the thicknesses? Alternatively, would it be feasible to assign the thickness values I already calculated in pixel land (simpleitk / numpy) to the bone-interface surface and ski- step 3 all together? Are there any obvious pit falls with this approach? I should have said at the start, I am doing this using the python api for vtk if that makes a difference. I have done some playing already, mostly using marching cubes, which works great with the whole segmentation, but not so great with the surfaces alone :). Thanks, Anthony. Sent from my iPad From inglis.dl at gmail.com Fri Jan 11 08:55:10 2019 From: inglis.dl at gmail.com (Dean Inglis) Date: Fri, 11 Jan 2019 08:55:10 -0500 Subject: [vtkusers] Thickness Maps / surface extraction In-Reply-To: References: Message-ID: Hi Anthony, I wrote all my cartilage segmentation code in VTK some years ago and was able to generate colored 3D triangulated surface maps with EDT thickness values mapped from pixels to triangle vertices. I had an interactive widget that would allow you to mouse over the surface in 3D and probe and display thickness values. If you want to contact me off the forum I can give you my mcmaster contact info. best regards, Dean On Fri, Jan 11, 2019 at 8:42 AM A. Gatti wrote: > Hi, > > I?m emailing to see if there are any suggestions or forewarnings for what > I am attempting to do. > > I work with cartilage segmentation and have used the raw pixel data in the > past to calculate thickness values for regions of interest. To do this, I > define 2 sides of the cartilage (bone interface and surface). I?ve > typically done this by finding contours for the bone and cartilage and if > the cartilage contour has a bone Neighbour it is considered to be on the > bone-interface, otherwise it is on the surface. Then thickness is > calculated for every bone-interface pixel, finding the surface pixel with > the minimum Euclidean distance. > > I am hoping to translate this to vtk for a few reasons. > 1. I would like to be able to visualize the thickness maps. - which is a > pain to do in pixel format. I?ve tried rendering and it doesn?t look so > hot. > 2. I?m interested in trying out something like iterative closest point > registration between two bone-interface surfaces to be able to make > comparisons between thickness maps. > > My thoughts on how to go about this are to: > 1. Use my existing contouring method to get the bone-interface and surface > 2. Extract the 3D location of each of these pixels and apply > surfaceReconstructionFilter to the bone-interface and surface points > separately. > 3. Continue with what I have previously done - iterate over every point > from the new bone-interface surface to find the closest point on the > surface. I would then assign the thickness calculated for every point to > that point and be able to view a map of the thicknesses? > > Alternatively, would it be feasible to assign the thickness values I > already calculated in pixel land (simpleitk / numpy) to the bone-interface > surface and ski- step 3 all together? > > Are there any obvious pit falls with this approach? > > I should have said at the start, I am doing this using the python api for > vtk if that makes a difference. I have done some playing already, mostly > using marching cubes, which works great with the whole segmentation, but > not so great with the surfaces alone :). > > Thanks, > > Anthony. > > Sent from my iPad > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Jan 11 11:37:59 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 11 Jan 2019 09:37:59 -0700 Subject: [vtkusers] filling in a sphere's intersection with a plane In-Reply-To: References: Message-ID: If you already have the spheres as polydata, and if they are already in your volume coord system, then the simplest approach is probably to use these two filters: - vtkCutter, to cut the sphere (this generates a polyline contour of the intersection) - vtkContourTriangulator to fill the polyline contour with triangles When rendering the result on the image, the polydata and your image slice will be coincident in the z-buffer. It might be possible to fix this by calling SetResolveCoincidentTopologyToPolygonOffset() on the polydata mapper. Rendering the filled spheres with voxels would be more complicated. The vtkPolyDataToImageStencil class works volumetrically, i.e. it would be used to fill the entire sphere and produce a binary volume. Then the desired slice of that volume would be rendered as an overlay. David On Fri, Jan 11, 2019 at 8:02 AM The Merper wrote: > Thanks for the speedy reply, David. > The application is a GUI that allows users to mark points in a 3D MRI > volume. The user browses the volume and marks the points in 2D slices of > the volume, which are rendered via a vtkImageViewer2. Once a point is > marked, I represent the location with a sphere. I use vtkSphereSource via > vtkPolyDataMapper to render the spheres. > > I'd be happy using polygons or voxels. > thanks again, > -Merps > > > > > On Thu, Jan 10, 2019 at 5:08 PM David Gobbi wrote: > >> On Thu, Jan 10, 2019 at 12:13 PM The Merper wrote: >> >>> >>> I have a set of spheres in a volume that I visualize in 2D slices. >>> When the plane of a 2D slice intersects a sphere, I want the interior of >>> the sphere to be filled. >>> >> >> How are the spheres defined? Do you already have them as vtkPolyData >> objects, or do you just have a list of "center and radius" values to >> describe the spheres? >> >> When you say "visualize in 2D slices" do you mean that you are already >> visualizing slices of something (e.g. of an image) and you want to display >> the sphere cuts as an overlay on the image? For your application, does it >> matter whether the sphere cuts are displayed as voxels (i.e. a >> vtkImageData) vs polygons? >> >> Also, for context, what is the general purpose of your application? >> >> Cheers, >> David >> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From lotterluke at gmail.com Fri Jan 11 13:03:28 2019 From: lotterluke at gmail.com (lp) Date: Fri, 11 Jan 2019 11:03:28 -0700 (MST) Subject: [vtkusers] VTK8.2RC2: vtkMath.h misses #include for C++17 Message-ID: <1547229808335-0.post@n5.nabble.com> Hi all, In VTK8.2 the function vtkMath::ClampValue in vtkMath.h uses the standard library function std::clamp, if a C++17 compiler is found. But the include that contains std::clamp () is not listed in vtkMath.h. This leads to a compile error, when using VTK8.2RC2 in a project that is compiled with C++17. >From my understanding this could be fixed by adding #include at the beginning of vtkMath.h inside an #if statement that checks for C++17. Regards, Lukas -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From lasso at queensu.ca Fri Jan 11 13:04:12 2019 From: lasso at queensu.ca (Andras Lasso) Date: Fri, 11 Jan 2019 18:04:12 +0000 Subject: [vtkusers] filling in a sphere's intersection with a plane In-Reply-To: References: Message-ID: In general, vtkCutter returns a random (unordered, non-continuous) list of line segments. Can vtkContourTriangulator deal with that (merge points and order line segments to form closed contours)? Usually we apply vtkStripper with a very large MaximumLength on vtkCutter output to create polygons that can be triangulated and rendered. This works well almost every time, but in some cases (cutting very complex geometries with hundreds of thousand of points) stripping does not find closed polygons. It would be nice to have a somewhat simpler and more robust solution. Andras From: vtkusers On Behalf Of David Gobbi Sent: Friday, January 11, 2019 11:38 AM To: The Merper ; VTK Users Subject: Re: [vtkusers] filling in a sphere's intersection with a plane If you already have the spheres as polydata, and if they are already in your volume coord system, then the simplest approach is probably to use these two filters: - vtkCutter, to cut the sphere (this generates a polyline contour of the intersection) - vtkContourTriangulator to fill the polyline contour with triangles When rendering the result on the image, the polydata and your image slice will be coincident in the z-buffer. It might be possible to fix this by calling SetResolveCoincidentTopologyToPolygonOffset() on the polydata mapper. Rendering the filled spheres with voxels would be more complicated. The vtkPolyDataToImageStencil class works volumetrically, i.e. it would be used to fill the entire sphere and produce a binary volume. Then the desired slice of that volume would be rendered as an overlay. David On Fri, Jan 11, 2019 at 8:02 AM The Merper > wrote: Thanks for the speedy reply, David. The application is a GUI that allows users to mark points in a 3D MRI volume. The user browses the volume and marks the points in 2D slices of the volume, which are rendered via a vtkImageViewer2. Once a point is marked, I represent the location with a sphere. I use vtkSphereSource via vtkPolyDataMapper to render the spheres. I'd be happy using polygons or voxels. thanks again, -Merps On Thu, Jan 10, 2019 at 5:08 PM David Gobbi > wrote: On Thu, Jan 10, 2019 at 12:13 PM The Merper > wrote: I have a set of spheres in a volume that I visualize in 2D slices. When the plane of a 2D slice intersects a sphere, I want the interior of the sphere to be filled. How are the spheres defined? Do you already have them as vtkPolyData objects, or do you just have a list of "center and radius" values to describe the spheres? When you say "visualize in 2D slices" do you mean that you are already visualizing slices of something (e.g. of an image) and you want to display the sphere cuts as an overlay on the image? For your application, does it matter whether the sphere cuts are displayed as voxels (i.e. a vtkImageData) vs polygons? Also, for context, what is the general purpose of your application? Cheers, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Fri Jan 11 13:06:35 2019 From: sean at rogue-research.com (Sean McBride) Date: Fri, 11 Jan 2019 13:06:35 -0500 Subject: [vtkusers] VTK8.2RC2: vtkMath.h misses #include for C++17 In-Reply-To: <1547229808335-0.post@n5.nabble.com> References: <1547229808335-0.post@n5.nabble.com> Message-ID: <20190111180635.1735712385@mail.rogue-research.com> On Fri, 11 Jan 2019 11:03:28 -0700, lp said: >In VTK8.2 the function vtkMath::ClampValue in vtkMath.h uses the standard >library function std::clamp, if a C++17 compiler is found. But the include >that contains std::clamp () is not listed in vtkMath.h. >This leads to a compile error, when using VTK8.2RC2 in a project that is >compiled with C++17. > >From my understanding this could be fixed by adding > >#include > >at the beginning of vtkMath.h inside an #if statement that checks for C++17. That's probably my fault... I'll make a patch... 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 david.gobbi at gmail.com Fri Jan 11 13:27:05 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 11 Jan 2019 11:27:05 -0700 Subject: [vtkusers] filling in a sphere's intersection with a plane In-Reply-To: References: Message-ID: On Fri, Jan 11, 2019 at 11:04 AM Andras Lasso wrote: > In general, vtkCutter returns a random (unordered, non-continuous) list of > line segments. > > > > Can vtkContourTriangulator deal with that (merge points and order line > segments to form closed contours)? > Yes. If given unordered line segments, vtkContourTriangulator will sort them. The nightly tests cover this feature. Usually we apply vtkStripper with a very large MaximumLength on vtkCutter > output to create polygons that can be triangulated and rendered. This works > well almost every time, but in some cases (cutting very complex geometries > with hundreds of thousand of points) stripping does not find closed > polygons. It would be nice to have a somewhat simpler and more robust > solution. > The vtkCountourTriangulator code has checks to deal with bad geometry. It's not perfect, but it's much better than vtkPolygon::Triangulate(). I've avoided vtkDelaunay2D because certain geometries will cause it to crash. I wrote vtkClipClosedSurface specifically to deal with complex 3D geometries (it uses vtkContourTriangulator as its final stage). I had meant to write a similar filter called vtkCutClosedSurface filter for cutting (instead of clipping) but that never happened. David > -------------- next part -------------- An HTML attachment was scrubbed... URL: From msmerps at gmail.com Fri Jan 11 14:09:48 2019 From: msmerps at gmail.com (The Merper) Date: Fri, 11 Jan 2019 14:09:48 -0500 Subject: [vtkusers] c# custom interactor exception "could not get registered type - mteIndex='4294967295' " Message-ID: Hi all, I'm trying to create a vtkInteractorStyleImage with a custom right button press event like so: vtkInteractorStyleImage interactorStyle = vtkInteractorStyleImage.New(); interactorStyle.RightButtonPressEvt += new vtkObject.vtkObjectEventHandler( MyRightButtonPress); vtkCellPicker Picker = vtkCellPicker.New(); RenWin.GetInteractor().SetPicker(Picker); RenWin.GetInteractor().SetInteractorStyle(interactorStyle); The interactor works, but sometimes when I use it, I get the following exception: could not get registered type - mteIndex='4294967295' classNameKey='' According to this thread: https://public.kitware.com/pipermail/vtkusers/2013-April/079120.html The problem is that I need to remove to default RightButtonPressEvt before I add my custom event. How can I do this? thank you in advance for any help you can offer, -Merps -------------- next part -------------- An HTML attachment was scrubbed... URL: From trinian.gordon at outlook.com Fri Jan 11 15:09:31 2019 From: trinian.gordon at outlook.com (Trinian Gordon) Date: Fri, 11 Jan 2019 20:09:31 +0000 Subject: [vtkusers] vtkStreamTracer on Unstructured Cell Based Data Message-ID: Hello, Starting from an unstructured grid, I have a cell based vector parameter which I would like to use to generate streamlines. When I load the data into Paraview, I am able to generate valid streamlines, but when I try and use the vtkStreamTracer to generate streamlines in my own application, it appears to only work if the vector data is set on the point data instead of cell data. * Unstructured Grid -> getCellData()->SetVector -> vtkStreamTracer fails because the point data doesn't have vector data. * Unstructured Grid -> getCellData()->SetVector -> vtkCellDataToPointData -> vtkStreamTracer fails because the tracer needs cells which no longer exist. * I can create an unstructured grid with only points located at the cell centers and set the vector on the point data, but it fails because the tracer needs cells which don't exist. Any ideas for generating streamlines based on a cell based vector property? Thanks, Trinian -------------- next part -------------- An HTML attachment was scrubbed... URL: From sk.shadabanwar at gmail.com Fri Jan 11 16:09:33 2019 From: sk.shadabanwar at gmail.com (shadab anwar) Date: Fri, 11 Jan 2019 13:09:33 -0800 Subject: [vtkusers] Structure of a vtkimagedata Message-ID: Hi everyone, I would like to know a book/article which explains vtkimagedata in depth. I am a newbie to vtk. I have gone through vtk documentation and book but I still have few questions. for example, what is the difference between point co-ordinates (e.g. double x, double y, double z) and structured coordinates (int i,int j, int k, in GetScalarPointer(int i, int j, int k)) Best, Shadab -------------- next part -------------- An HTML attachment was scrubbed... URL: From sk.shadabanwar at gmail.com Fri Jan 11 16:09:33 2019 From: sk.shadabanwar at gmail.com (shadab anwar) Date: Fri, 11 Jan 2019 13:09:33 -0800 Subject: [vtkusers] Structure of a vtkimagedata Message-ID: Hi everyone, I would like to know a book/article which explains vtkimagedata in depth. I am a newbie to vtk. I have gone through vtk documentation and book but I still have few questions. for example, what is the difference between point co-ordinates (e.g. double x, double y, double z) and structured coordinates (int i,int j, int k, in GetScalarPointer(int i, int j, int k)) Best, Shadab -------------- next part -------------- An HTML attachment was scrubbed... URL: From nfoudilbey at gmail.com Fri Jan 11 16:43:36 2019 From: nfoudilbey at gmail.com (cimo) Date: Fri, 11 Jan 2019 14:43:36 -0700 (MST) Subject: [vtkusers] Create 3D closed surface frome iso value Message-ID: <1547243016745-0.post@n5.nabble.com> Hi everybody, Small question: How to extract an iso-surface from a property on a StructuredGrid. Thanks for your help. My Example Input: output: . -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From csaba.pinter at queensu.ca Fri Jan 11 16:50:40 2019 From: csaba.pinter at queensu.ca (Csaba Pinter) Date: Fri, 11 Jan 2019 21:50:40 +0000 Subject: [vtkusers] Create 3D closed surface frome iso value In-Reply-To: <1547243016745-0.post@n5.nabble.com> References: <1547243016745-0.post@n5.nabble.com> Message-ID: Hi, Here's how we do it on vtkImageData: https://github.com/SlicerRt/SlicerRT/blob/master/Isodose/Logic/vtkSlicerIsodoseModuleLogic.cxx#L589-L596 Hth, csaba -----Original Message----- From: vtkusers On Behalf Of cimo Sent: Friday, January 11, 2019 16:44 To: vtkusers at vtk.org Subject: [vtkusers] Create 3D closed surface frome iso value Hi everybody, Small question: How to extract an iso-surface from a property on a StructuredGrid. Thanks for your help. My Example Input: output: . -- Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7Ca84eebf4eb3242441cca08d6780dd91c%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636828398214476333&sdata=1Tc2GDgJOYd0c6EYEzvpD9AnQJHMgK2yolu8UsMuC7w%3D&reserved=0 _______________________________________________ Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7Ca84eebf4eb3242441cca08d6780dd91c%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636828398214476333&sdata=t8HbeV1q60RrJC%2BJ736hPKeZFzRdEp7QLL%2BTWeparW0%3D&reserved=0 Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7Ca84eebf4eb3242441cca08d6780dd91c%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636828398214476333&sdata=urCums%2FaYw2qokfBkG5JV4dBLv9lcAaOsXs0wBOTIws%3D&reserved=0 Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7Ca84eebf4eb3242441cca08d6780dd91c%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636828398214486342&sdata=KeUCl4nVZPg9CDMdYVjM1PadouCK%2FjAgkmOWex6H2KQ%3D&reserved=0 Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7Ca84eebf4eb3242441cca08d6780dd91c%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636828398214486342&sdata=aHyAVl2aHJtwwpRgfR1rWp99JRjDAA4AJHyBPThnfQE%3D&reserved=0 Follow this link to subscribe/unsubscribe: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7Ca84eebf4eb3242441cca08d6780dd91c%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636828398214486342&sdata=TVA4jJ3RTfejYVfzVqECOUUTX67p%2BKo64RvISq%2FFaqg%3D&reserved=0 From trinian.gordon at outlook.com Fri Jan 11 19:20:05 2019 From: trinian.gordon at outlook.com (Trinian Gordon) Date: Sat, 12 Jan 2019 00:20:05 +0000 Subject: [vtkusers] vtkStreamTracer on Unstructured Cell Based Data In-Reply-To: References: Message-ID: Here's a possible solution: unStructuredGrid->GetCellData()->SetVectors(vectorsForCells); vtkCellDataToPointData->SetInputData(unStructuredGrid); vtkCellDataToPointData->PassCellDataOn(); vtkStreamTracer->SetInputConnection(vtkCellDataToPointData->GetOutputPort(); Regards, Trinian ________________________________ From: vtkusers on behalf of Trinian Gordon Sent: January 11, 2019 1:09 PM To: VTK Users Mailing List Subject: [vtkusers] vtkStreamTracer on Unstructured Cell Based Data Hello, Starting from an unstructured grid, I have a cell based vector parameter which I would like to use to generate streamlines. When I load the data into Paraview, I am able to generate valid streamlines, but when I try and use the vtkStreamTracer to generate streamlines in my own application, it appears to only work if the vector data is set on the point data instead of cell data. * Unstructured Grid -> getCellData()->SetVector -> vtkStreamTracer fails because the point data doesn't have vector data. * Unstructured Grid -> getCellData()->SetVector -> vtkCellDataToPointData -> vtkStreamTracer fails because the tracer needs cells which no longer exist. * I can create an unstructured grid with only points located at the cell centers and set the vector on the point data, but it fails because the tracer needs cells which don't exist. Any ideas for generating streamlines based on a cell based vector property? Thanks, Trinian -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Fri Jan 11 21:13:38 2019 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Fri, 11 Jan 2019 18:13:38 -0800 Subject: [vtkusers] Structure of a vtkimagedata In-Reply-To: References: Message-ID: Please reread this book chapter. https://lorensen.github.io/VTKExamples/site/VTKBook/05Chapter5/#56-types-of-datasets On Fri, Jan 11, 2019, 1:09 PM shadab anwar Hi everyone, > > I would like to know a book/article which explains vtkimagedata in depth. > I am a newbie to vtk. I have gone through vtk documentation and book but I > still have few questions. > > for example, what is the difference between point co-ordinates (e.g. > double x, double y, double z) > and structured coordinates (int i,int j, int k, in GetScalarPointer(int > i, int j, int k)) > > > Best, > Shadab > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Fri Jan 11 21:13:38 2019 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Fri, 11 Jan 2019 18:13:38 -0800 Subject: [vtkusers] Structure of a vtkimagedata In-Reply-To: References: Message-ID: Please reread this book chapter. https://lorensen.github.io/VTKExamples/site/VTKBook/05Chapter5/#56-types-of-datasets On Fri, Jan 11, 2019, 1:09 PM shadab anwar Hi everyone, > > I would like to know a book/article which explains vtkimagedata in depth. > I am a newbie to vtk. I have gone through vtk documentation and book but I > still have few questions. > > for example, what is the difference between point co-ordinates (e.g. > double x, double y, double z) > and structured coordinates (int i,int j, int k, in GetScalarPointer(int > i, int j, int k)) > > > Best, > Shadab > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From msmerps at gmail.com Fri Jan 11 23:30:10 2019 From: msmerps at gmail.com (The Merper) Date: Fri, 11 Jan 2019 23:30:10 -0500 Subject: [vtkusers] filling in a sphere's intersection with a plane In-Reply-To: References: Message-ID: Thank you David, I tried to do as you suggested with the following code: // Use vtkCutter to derive the contour of the intersection with the Z-plane var Origin=_ZPlaneSource.GetOrigin(); var Normal= _ZPlaneSource.GetNormal(); var TempPlane = vtkPlane.New(); TempPlane.SetOrigin(Origin[0], Origin[1], Origin[2]); TempPlane.SetNormal(Normal[0], Normal[1], Normal[2]); var Cutter = vtkCutter.New(); Cutter.SetCutFunction(TempPlane); Cutter.SetInputConnection(SphereSource.GetOutputPort()); Cutter.Update(); var CutterMapper = vtkPolyDataMapper.New(); CutterMapper.SetInputConnection(Cutter.GetOutputPort()); // Use vtkContourTriangulator to fill the polyline contour with traingles vtkContourTriangulator Poly = vtkContourTriangulator.New(); Poly.SetInputConnection(Cutter.GetOutputPort()); var PolyMapper = vtkDataSetMapper.New(); PolyMapper.SetInputConnection(Poly.GetOutputPort()); PolyMapper.ScalarVisibilityOff(); var PolyActor = vtkActor.New(); PolyActor.GetProperty().SetColor(((double)_LandmarkColors[i].R) / 255, ((double)_LandmarkColors[i].G) / 255, ((double)_LandmarkColors[i].B) / 255); PolyActor.SetMapper(PolyMapper); Ren.AddActor(PolyActor); And it renders a circle in the slice that intersects the center of the sphere (i.e., the attached slice91.png). However, when you go below or above that slice, you just see the outline of the sphere (e.g., slice90.jpg). When you go down one or more slices further you see the bottom of the sphere with 3D shading (e.g., slice89.jpg), until it goes out of view. Did I do something wrong? My PolyMapper instance of vtkDataSetMaper does not have a method SetResolveCoincidentTopologyToPolygonOffset(). thanks again, -M On Fri, Jan 11, 2019 at 11:38 AM David Gobbi wrote: > If you already have the spheres as polydata, and if they are already in > your volume coord system, then the simplest approach is probably to use > these two filters: > - vtkCutter, to cut the sphere (this generates a polyline contour of the > intersection) > - vtkContourTriangulator to fill the polyline contour with triangles > > When rendering the result on the image, the polydata and your image slice > will be coincident in the z-buffer. It might be possible to fix this by > calling SetResolveCoincidentTopologyToPolygonOffset() on the polydata > mapper. > > Rendering the filled spheres with voxels would be more complicated. The > vtkPolyDataToImageStencil class works volumetrically, i.e. it would be used > to fill the entire sphere and produce a binary volume. Then the desired > slice of that volume would be rendered as an overlay. > > David > > > On Fri, Jan 11, 2019 at 8:02 AM The Merper wrote: > >> Thanks for the speedy reply, David. >> The application is a GUI that allows users to mark points in a 3D MRI >> volume. The user browses the volume and marks the points in 2D slices of >> the volume, which are rendered via a vtkImageViewer2. Once a point is >> marked, I represent the location with a sphere. I use vtkSphereSource via >> vtkPolyDataMapper to render the spheres. >> >> I'd be happy using polygons or voxels. >> thanks again, >> -Merps >> >> >> >> >> On Thu, Jan 10, 2019 at 5:08 PM David Gobbi >> wrote: >> >>> On Thu, Jan 10, 2019 at 12:13 PM The Merper wrote: >>> >>>> >>>> I have a set of spheres in a volume that I visualize in 2D slices. >>>> When the plane of a 2D slice intersects a sphere, I want the interior of >>>> the sphere to be filled. >>>> >>> >>> How are the spheres defined? Do you already have them as vtkPolyData >>> objects, or do you just have a list of "center and radius" values to >>> describe the spheres? >>> >>> When you say "visualize in 2D slices" do you mean that you are already >>> visualizing slices of something (e.g. of an image) and you want to display >>> the sphere cuts as an overlay on the image? For your application, does it >>> matter whether the sphere cuts are displayed as voxels (i.e. a >>> vtkImageData) vs polygons? >>> >>> Also, for context, what is the general purpose of your application? >>> >>> Cheers, >>> David >>> >>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: slice90.png Type: image/png Size: 61829 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: slice89.png Type: image/png Size: 61656 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: slice91.png Type: image/png Size: 61774 bytes Desc: not available URL: From lasso at queensu.ca Sat Jan 12 09:46:37 2019 From: lasso at queensu.ca (Andras Lasso) Date: Sat, 12 Jan 2019 14:46:37 +0000 Subject: [vtkusers] filling in a sphere's intersection with a plane In-Reply-To: References: Message-ID: Thanks David, I?ve tried replacing stripper+cleaner+triangulator by your vtkContourTriangulator and it worked very well. Need to do some more testing but probably will switch permanently. Andras From: David Gobbi Sent: Friday, January 11, 2019 1:27 PM To: Andras Lasso Cc: The Merper ; VTK Users Subject: Re: [vtkusers] filling in a sphere's intersection with a plane On Fri, Jan 11, 2019 at 11:04 AM Andras Lasso > wrote: In general, vtkCutter returns a random (unordered, non-continuous) list of line segments. Can vtkContourTriangulator deal with that (merge points and order line segments to form closed contours)? Yes. If given unordered line segments, vtkContourTriangulator will sort them. The nightly tests cover this feature. Usually we apply vtkStripper with a very large MaximumLength on vtkCutter output to create polygons that can be triangulated and rendered. This works well almost every time, but in some cases (cutting very complex geometries with hundreds of thousand of points) stripping does not find closed polygons. It would be nice to have a somewhat simpler and more robust solution. The vtkCountourTriangulator code has checks to deal with bad geometry. It's not perfect, but it's much better than vtkPolygon::Triangulate(). I've avoided vtkDelaunay2D because certain geometries will cause it to crash. I wrote vtkClipClosedSurface specifically to deal with complex 3D geometries (it uses vtkContourTriangulator as its final stage). I had meant to write a similar filter called vtkCutClosedSurface filter for cutting (instead of clipping) but that never happened. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Sat Jan 12 11:22:03 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Sat, 12 Jan 2019 09:22:03 -0700 Subject: [vtkusers] filling in a sphere's intersection with a plane In-Reply-To: References: Message-ID: Hi M, >From the images (especially slice89) it looks like your program still renders the whole sphere, in addition to rendering the cross-section. Remove or disable the code that renders the whole sphere. I'm pretty sure that the problem is that you haven't yet written code that updates the origin of your cut plane when the user changes the slice. Even then, as I mentioned before, there are likely to be rendering problems due to coincident geometry (e.g. the image might get rendered on top of the polydata and thus obscure it). It's possible that the SetResolveCoincidentTopologyToPolygonOffset method isn't available in the language you are using. I know there are other ways of ensuring that the polydata is drawn on top (e.g. move it slightly closer to the camera) but right now I can't recall a simple way to do this in VTK (only complicated ways). David On Fri, Jan 11, 2019 at 9:30 PM The Merper wrote: > > Thank you David, > I tried to do as you suggested with the following code: > > // Use vtkCutter to derive the contour of the > intersection with the Z-plane > var Origin=_ZPlaneSource.GetOrigin(); > var Normal= _ZPlaneSource.GetNormal(); > var TempPlane = vtkPlane.New(); > TempPlane.SetOrigin(Origin[0], Origin[1], Origin[2]); > TempPlane.SetNormal(Normal[0], Normal[1], Normal[2]); > var Cutter = vtkCutter.New(); > Cutter.SetCutFunction(TempPlane); > Cutter.SetInputConnection( > SphereSource.GetOutputPort()); > Cutter.Update(); > var CutterMapper = vtkPolyDataMapper.New(); > CutterMapper.SetInputConnection(Cutter. > GetOutputPort()); > > // Use vtkContourTriangulator to fill the polyline > contour with traingles > vtkContourTriangulator Poly = > vtkContourTriangulator.New(); > Poly.SetInputConnection(Cutter.GetOutputPort()); > var PolyMapper = vtkDataSetMapper.New(); > PolyMapper.SetInputConnection(Poly.GetOutputPort()); > PolyMapper.ScalarVisibilityOff(); > var PolyActor = vtkActor.New(); > PolyActor.GetProperty().SetColor(((double)_LandmarkColors[i].R) > / 255, > ((double)_LandmarkColors[i].G) / 255, > ((double)_LandmarkColors[i].B) / 255); > PolyActor.SetMapper(PolyMapper); > Ren.AddActor(PolyActor); > > And it renders a circle in the slice that intersects the center of the > sphere (i.e., the attached slice91.png). However, when you go below or > above that slice, you just see the outline of the sphere (e.g., > slice90.jpg). When you go down one or more slices further you see the > bottom of the sphere with 3D shading (e.g., slice89.jpg), until it goes out > of view. > > Did I do something wrong? My PolyMapper instance of vtkDataSetMaper does > not have a method SetResolveCoincidentTopologyToPolygonOffset(). > thanks again, > -M > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wangq1979 at outlook.com Sat Jan 12 18:55:39 2019 From: wangq1979 at outlook.com (Q Wang) Date: Sat, 12 Jan 2019 23:55:39 +0000 Subject: [vtkusers] Cut a space with multiple objects Message-ID: Hello vtkusers, I use vtk to render a closed space, e.g. a cylinder, and there are numerous objects inside the cylinder, as in the attached figure. Every object inside the cylinder is rendered with its own actor and mapper, and so on. Now, I want to see the cross-sectional image of the cylinder at arbitary positions. I tried different ways, e.g. using a vtkplane to cut, but cannot get what I want since there are multiple objects at the cross-section. Any suggestion would be appreciated! Best wishes, Chiang -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: strat-82.png Type: image/png Size: 41681 bytes Desc: strat-82.png URL: From swetha.bsharma at gmail.com Sun Jan 13 10:14:48 2019 From: swetha.bsharma at gmail.com (Swetha Sharma) Date: Sun, 13 Jan 2019 20:44:48 +0530 Subject: [vtkusers] view multiple volumes in same/ different viewport Message-ID: Hi All, I am new to VTK , I need to display multiple volumes side by side (eg 4 volumes in 2x2 matrix fashion) ,do some rotation / translation operation which are mutually exclusive from each other save those transformations individually. Is it possible in VTK? Can the same viewport be shared for all the volumes or should it be different? -swetha -------------- next part -------------- An HTML attachment was scrubbed... URL: From liang.cui.95 at gmail.com Mon Jan 14 10:22:14 2019 From: liang.cui.95 at gmail.com (Liang Cui) Date: Mon, 14 Jan 2019 11:22:14 -0400 Subject: [vtkusers] write out pvtu file Message-ID: Hi everyone I am trying writer out an unstructured grid dataset with vtkXMLUnstructuredGridWriter, which can be imported into paraview GUI to generate python script for the paraview catalyst. I have generated the .vtu file but it seems does not work. Do I need to write out the .pvtu file for paraview catalyst and how should I use the vtkXMLUnstructuredGridWriter to achieve this goal? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Mon Jan 14 11:15:17 2019 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Mon, 14 Jan 2019 17:15:17 +0100 Subject: [vtkusers] write out pvtu file In-Reply-To: References: Message-ID: Hi Liang, vtkXMLUnstructuredGridWriter is fine and should allows you to write a readable in ParaView .vtu file Best, Mathieu Westphal On Mon, Jan 14, 2019 at 4:22 PM Liang Cui wrote: > Hi everyone > I am trying writer out an unstructured grid dataset with > vtkXMLUnstructuredGridWriter, which can be imported into paraview GUI to > generate python script for the paraview catalyst. I have generated the .vtu > file but it seems does not work. > Do I need to write out the .pvtu file for paraview catalyst and how should > I use the vtkXMLUnstructuredGridWriter to achieve this goal? > 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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Jan 14 10:52:21 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 14 Jan 2019 08:52:21 -0700 Subject: [vtkusers] filling in a sphere's intersection with a plane In-Reply-To: References: Message-ID: On Mon, Jan 14, 2019 at 8:46 AM The Merper wrote: > > Does anyone know why the method > *SetResolveCoincidentTopologyToPolygonOffset* is not available to > instances of vtkMapper (vtkDataMapper,vtkPolyDataMapper, etc..) in > Activiz.NET? > The only thing special about that method is that it is static. You could check to see if other static methods are missing. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Mon Jan 14 14:41:25 2019 From: dave.demarle at kitware.com (David E DeMarle) Date: Mon, 14 Jan 2019 14:41:25 -0500 Subject: [vtkusers] Cut a space with multiple objects In-Reply-To: References: Message-ID: 2.5 strategies of the top of my head - 1) combine everything into a multiblock data set, rendered with the compositepolydatamapper and clip the multiblock. 2) use one plane fed simultaneously into all of the clip filters (<--- try this first) 2.5) use events/observers to make all of the planes follow the actions of one master hth David E DeMarle Kitware, Inc. Principal Engineer On Sat, Jan 12, 2019 at 6:55 PM Q Wang wrote: > Hello vtkusers, > > I use vtk to render a closed space, e.g. a cylinder, and there are > numerous objects inside the cylinder, as in the attached figure. Every > object inside the cylinder is rendered with its own actor and mapper, and > so on. Now, I want to see the cross-sectional image of the cylinder at > arbitary positions. I tried different ways, e.g. using a vtkplane to cut, > but cannot get what I want since there are multiple objects at the > cross-section. > > Any suggestion would be appreciated! > > Best wishes, > > 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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wangq1979 at outlook.com Mon Jan 14 16:44:30 2019 From: wangq1979 at outlook.com (Q Wang) Date: Mon, 14 Jan 2019 21:44:30 +0000 Subject: [vtkusers] Cut a space with multiple objects In-Reply-To: References: , Message-ID: Thanks David for the tips. I try the first tip with following code, but it shows nothing on the window. Any comments about the missing objects? vtkNew mbds; mbds->SetNumberOfBlocks(spheres.size() + 2); // add small bubbles std::cout << "totally " << spheres.size() << " small bubbles are identified" << std::endl; for (auto i = 0; i < spheres.size(); i++) { vtkSmartPointer sphereSource = vtkSmartPointer::New(); sphereSource->SetThetaResolution(100); sphereSource->SetPhiResolution(50); ... // set sphere here mbds->SetBlock(i+1, sphereSource->GetOutput()); } // Iso-surface using marching cubes vtkSmartPointer contourFilter = vtkSmartPointer::New(); imageData->SetSpacing(pixelDim * scaleFactor, pixelDim * scaleFactor, pixelDim); contourFilter->SetInputData(imageData); contourFilter->ComputeNormalsOn(); contourFilter->SetValue(0, isoValue); mbds->SetBlock(spheres.size()+1, contourFilter->GetOutput()); vtkNew mapper; mapper->SetInputData((vtkPolyData*)mbds.Get()); vtkNew cdsa; mapper->SetCompositeDataDisplayAttributes(cdsa.Get()); vtkNew actor; actor->GetProperty()->SetColor(bubbleColor[0], bubbleColor[1], bubbleColor[2]); actor->GetProperty()->SetOpacity(bubbleColor[3]); actor->SetMapper(mapper.Get()); vtkNew renderer; renderer->SetBackground(1, 1, 1); vtkNew renderWindow; renderWindow->SetSize(1200, 600); renderWindow->SetWindowName("Bubble Visualisation"); renderWindow->AddRenderer(renderer.Get()); vtkNew renderWindowInteractor; renderWindowInteractor->SetRenderWindow(renderWindow.Get()); renderer->AddActor(actor.Get()); renderWindow->Render(); renderWindowInteractor->Start(); In addition, could you shed more light on the second one since I am quite new to VTK? Best wishes, Chiang ________________________________ From: David E DeMarle Sent: 14 January 2019 19:41 To: Q Wang Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Cut a space with multiple objects 2.5 strategies of the top of my head - 1) combine everything into a multiblock data set, rendered with the compositepolydatamapper and clip the multiblock. 2) use one plane fed simultaneously into all of the clip filters (<--- try this first) 2.5) use events/observers to make all of the planes follow the actions of one master hth David E DeMarle Kitware, Inc. Principal Engineer On Sat, Jan 12, 2019 at 6:55 PM Q Wang > wrote: Hello vtkusers, I use vtk to render a closed space, e.g. a cylinder, and there are numerous objects inside the cylinder, as in the attached figure. Every object inside the cylinder is rendered with its own actor and mapper, and so on. Now, I want to see the cross-sectional image of the cylinder at arbitary positions. I tried different ways, e.g. using a vtkplane to cut, but cannot get what I want since there are multiple objects at the cross-section. Any suggestion would be appreciated! Best wishes, 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: https://vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Tue Jan 15 10:52:54 2019 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 15 Jan 2019 08:52:54 -0700 Subject: [vtkusers] Elvis Stansvik Renewals Invoice Message-ID: <2073378322487419951.0782949304131748@public.kitware.com> An HTML attachment was scrubbed... URL: From felix.mayr at tum.de Tue Jan 15 11:50:35 2019 From: felix.mayr at tum.de (Felix Mayr) Date: Tue, 15 Jan 2019 17:50:35 +0100 Subject: [vtkusers] Profiling VTK/Performance improvements (with Python) In-Reply-To: References: Message-ID: <9747c7ea-4715-a822-527c-3316708a0b49@mytum.de> Dear vtkusers, I'm currently working on volumetric visualization of StructuredGrid-data. I'm using python to create the grids from numpy arrays. My basic pipeline is: grid (1.2GiB, dimensions: 241x241x721) ? vtkIsoContourFilter (setting a nonexistent value, as I want to change this dynamically) ? vtkClipPolyData (using an ImplicitFunction generated from PolyData) ? vtkPolyDataNormals (for nice shading) ? vtkPolyDataMapper ? vtkActor (which is stored and added to the scene at a later date). Now, I have constructed a Tk-GUI (using the vtkTkRenderWindowInteractor) and update the IsoContourFilter with new contour values. And well, this process is slow (as well as pipeline creation) and I would seriously like to improve performance and find the bottleneck if there's any. Specifically (VTK 8.1.2): - I don't have a graphics card available on my dev machine. Basically I'm just using the Haswell-era integrated-graphics. On another machine I am running with LLVM-accelerated mesa and it's behaving the same. I don't think this is the problem. - can I somehow time the execution of pipeline parts on updates? (to find, what takes so long) - do the filters I use support SMP (in the python-wrapping?). I compiled it with all parallelization-related variables enabled, but CPU still doesn't go beyond 100%. or is it just an insane dataset and I should start with a sensible VOI of it? Best Regards Felix Mayr Technical University of Munich, Simulation of Nanosystems for Energy Conversion [www.sne.ei.tum.de] From felix.mayr at tum.de Tue Jan 15 11:52:52 2019 From: felix.mayr at tum.de (Felix Mayr) Date: Tue, 15 Jan 2019 17:52:52 +0100 Subject: [vtkusers] Coloring different contours Message-ID: <9df84f1f-0bb6-ef1a-8e34-65e13ef8a328@mytum.de> Dear vtkusers, I'm trying to set different colors for different contour values. To this end I'm creating a vtkColorTransferFunction(): lut = vtkColorTransferFunction() # repeated for all the isovalues lut.AddRGBPoint(isovalue, r, g, b) lut.build() Yielding something like: vtkColorTransferFunction (0x41a0d10) Debug: Off Modified Time: 282517 Reference Count: 1 Registered Events: (none) Alpha: 1 VectorMode: Component VectorComponent: 0 VectorSize: -1 IndexedLookup: OFF AnnotatedValues: 0 entries. Size: 1 Clamping: On Color Space: RGB Scale: Linear Range: 0.0001 to 0.0001 AllowDuplicateScalars: 0 NanColor: 0.5, 0, 0 BelowRangeColor: (0, 0, 0) UseBelowRangeColor: OFF ABoveRangeColor: (1, 1, 1) UseAboveRangeColor: OFF 0 X: 0.0001 R: 1 G: 1 B: 1 Sharpness: 0 Midpoint: 0.5 I then use SetLookupTable on a preexisting vtkActor, where the vtkPolyDataMapper of the pipeline is configured with SetScalarVisibilityOn. For one color this works great. Unfortunately once I add a second one, everything gets still colored the same. Does anyone spot any error? Felix Mayr Technical University of Munich, Simulation of Nanosystems for Energy Conversion [www.sne.ei.tum.de] From aminemzoughi at febus-optics.com Tue Jan 15 11:03:58 2019 From: aminemzoughi at febus-optics.com (Mohamed Amine Mzoughi) Date: Tue, 15 Jan 2019 17:03:58 +0100 Subject: [vtkusers] Elvis Stansvik Renewals Invoice In-Reply-To: <2073378322487419951.0782949304131748@public.kitware.com> References: <2073378322487419951.0782949304131748@public.kitware.com> Message-ID: <0d33c8cc-0e5f-f965-82be-4721c2d59941@febus-optics.com> Phishing e-mail ? Le 15/01/2019 ? 16:52, Elvis Stansvik a ?crit?: > > Dear Valued Elvis Stansvik Client: > > > Can you let me know when payment hits to us please? > > Invoice amount $1,800.25 and > Invoice amount $579.32 > > I have enclosed a copy of the invoice for your reference, you can > download view using this link > > > Thank you for being a valued customer and using Elvis Stansvik. > > > Elvis Stansvik > > 703-387-9491 > e:elvis.stansvik at orexplore.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: > https://vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From ftpronk at engits.com Tue Jan 15 12:54:58 2019 From: ftpronk at engits.com (Fcs) Date: Tue, 15 Jan 2019 10:54:58 -0700 (MST) Subject: [vtkusers] Profiling VTK/Performance improvements (with Python) In-Reply-To: <9747c7ea-4715-a822-527c-3316708a0b49@mytum.de> References: <9747c7ea-4715-a822-527c-3316708a0b49@mytum.de> Message-ID: <1547574898850-0.post@n5.nabble.com> Not much of a VTK optimizer myself, but a few ideas to move the conversation forward: - Did you set the VTK_SMP_IMPLEMENTATION_TYPE flag to the correct backend for your compiler? (If you're using LLVM: OpenMP). And does your version of LLVM support OpenMP? Do you have all the libraries installed? As a side note, maybe this document will help: https://vtk.org/Wiki/images/3/3b/VTK_SMP_Guide.pdf - For timing, you can possibly start by measuring the time elapsed when calling Update(). See for instance the timer.StartTimer() calls in this python code: https://vtk.org/gitweb?p=VTK.git;a=blob;f=Filters/Points/Testing/Python/TestPointInterpolator.py - What do you call slow? 41 million cells is not a particularly big test case, so no need to worry about that. What you do need to keep an eye on, though, is your memory usage. If you run out of memory and your system starts swapping to disk, then VTK will be unbearably slow for sure.. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From eric.fahlgren at smith-nephew.com Tue Jan 15 18:53:09 2019 From: eric.fahlgren at smith-nephew.com (Fahlgren, Eric) Date: Tue, 15 Jan 2019 23:53:09 +0000 Subject: [vtkusers] Slower rendering with OpenMP and Python? Message-ID: Seeing Felix's thread on attempts to speed up his contour filtering, I wanted to try this myself. So, Windows 10, VTK 8.1.2, MSVC 2017, Python 3.7, installed MS MPI tools and SDK v 10.0. I added these to my configuration script: -D VTK_SMP_IMPLEMENTATION_TYPE:STRING=OpenMP \ -D Module_vtkFiltersParallelFlowPaths:BOOL=ON \ -D Module_vtkFiltersParallelGeometry:BOOL=ON \ -D Module_vtkFiltersParallelStatistics:BOOL=ON \ -D Module_vtkFiltersParallelVerdict:BOOL=ON \ -D Module_vtkParallelMPI4Py:BOOL=ON \ -D Module_vtkRenderingParallel:BOOL=ON \ -D Module_vtkRenderingParallelLIC:BOOL=ON \ The test is an animation sequence of the lower spine in a flexion-extension event with a dozen bones, most set to 50% transparency and texture mapped, various other synthetic geometry like cylinders and toroids, pretty simple stuff (no images of any sort, so no pixels or voxels). Animation does reconfigure some rubber-banding objects (spinal discs and some cables from the test rig), but mostly the geometry remains as-is and the rendering at new xforms is the overwhelming time sink. The SMP=Sequential baseline runs on Intel i7-7700k with HD 630 integrated graphics at 35 FPS. With all the above parallelism enabled, it's at about half that, best case maybe 18 FPS. Notably, the CPU usage is 12% (typical one thread on an 8-thread CPU) with Sequential, but pegs 80-90% with OpenMP enabled. When we test on a machine with a GPU, GTX 1050 Ti, we see the baseline for SMP=Sequential is about 41 FPS, but with OpenMP it's 18 FPS here, too. CPU usage is same as above, one-thread max with Sequential and "use it all" with OpenMP. Is this expected for this mix of mostly static geometry? Or am I setting the wrong configuration variables? Or am I just doing something dumb? Thanks, Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From js.alternate at gmail.com Tue Jan 15 18:54:09 2019 From: js.alternate at gmail.com (J S) Date: Tue, 15 Jan 2019 18:54:09 -0500 Subject: [vtkusers] Missing methods in Java generated code Message-ID: <251DCE99-EA7D-4F49-8B27-F6B1B22734DD@gmail.com> Hi - I built vtk 8.1.2 today, and I?m seeing missing methods in the Java generated code. For example in vtkIdTypeArray, the generated class file does not have access to getClassName(), even though it should since that class is an ancestor of vtkObjectBase and that generated class does have that method, and it is public. Before leaving work I did a quick comparison to the generated class files from vtk 6.3 and I do not see this problem - vtkIdTypeArray has the getClassName() method visible in the generated class. Any thoughts on why these methods are missing? I?ve seen some chatter about missing methods in some wrappings in the past - wondering if we are seeing something similar. Thanks for any help in advance! Josh Sent from my iPhone From lasso at queensu.ca Tue Jan 15 21:25:12 2019 From: lasso at queensu.ca (Andras Lasso) Date: Wed, 16 Jan 2019 02:25:12 +0000 Subject: [vtkusers] Slower rendering with OpenMP and Python? In-Reply-To: References: Message-ID: We experienced terrible performance on desktop systems with strong Nvidia GPUs when we switched to VTK OpenGL2 rendering backend. Apparently, Nvidia's threaded optimization off-loaded some work on the CPU and that interfered with VTK's multithreading. Maybe OpenMP backend has the same issue. Switching to SMP backend to TBB solved the issue for us. See more details in this pull request: https://github.com/Slicer/Slicer/pull/930 Andras From: vtkusers On Behalf Of Fahlgren, Eric Sent: Tuesday, January 15, 2019 6:53 PM To: vtkusers at vtk.org Subject: [vtkusers] Slower rendering with OpenMP and Python? Seeing Felix's thread on attempts to speed up his contour filtering, I wanted to try this myself. So, Windows 10, VTK 8.1.2, MSVC 2017, Python 3.7, installed MS MPI tools and SDK v 10.0. I added these to my configuration script: -D VTK_SMP_IMPLEMENTATION_TYPE:STRING=OpenMP \ -D Module_vtkFiltersParallelFlowPaths:BOOL=ON \ -D Module_vtkFiltersParallelGeometry:BOOL=ON \ -D Module_vtkFiltersParallelStatistics:BOOL=ON \ -D Module_vtkFiltersParallelVerdict:BOOL=ON \ -D Module_vtkParallelMPI4Py:BOOL=ON \ -D Module_vtkRenderingParallel:BOOL=ON \ -D Module_vtkRenderingParallelLIC:BOOL=ON \ The test is an animation sequence of the lower spine in a flexion-extension event with a dozen bones, most set to 50% transparency and texture mapped, various other synthetic geometry like cylinders and toroids, pretty simple stuff (no images of any sort, so no pixels or voxels). Animation does reconfigure some rubber-banding objects (spinal discs and some cables from the test rig), but mostly the geometry remains as-is and the rendering at new xforms is the overwhelming time sink. The SMP=Sequential baseline runs on Intel i7-7700k with HD 630 integrated graphics at 35 FPS. With all the above parallelism enabled, it's at about half that, best case maybe 18 FPS. Notably, the CPU usage is 12% (typical one thread on an 8-thread CPU) with Sequential, but pegs 80-90% with OpenMP enabled. When we test on a machine with a GPU, GTX 1050 Ti, we see the baseline for SMP=Sequential is about 41 FPS, but with OpenMP it's 18 FPS here, too. CPU usage is same as above, one-thread max with Sequential and "use it all" with OpenMP. Is this expected for this mix of mostly static geometry? Or am I setting the wrong configuration variables? Or am I just doing something dumb? Thanks, Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From leonid.gluhovsky at gmail.com Wed Jan 16 02:36:08 2019 From: leonid.gluhovsky at gmail.com (leonid) Date: Wed, 16 Jan 2019 00:36:08 -0700 (MST) Subject: [vtkusers] Delaunay3D: find a tetrahedron enclosing a query point Message-ID: <1547624168803-0.post@n5.nabble.com> Hello. Suppose I have built a 3D delaunay triangulation out of N points. Now I have a query point, and I need to find the tetrahedron of the triangulation which encloses the query point. How to do it? I am aware of CellLocator, but the documentation warns that it might be slow. Is there some fast (and ideally simple) method that utilizes the fact that the tetrahedrons are not arbitrary, but rather the result of 3D delaunay? Thank you, leonid -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From eric.fahlgren at smith-nephew.com Wed Jan 16 12:06:39 2019 From: eric.fahlgren at smith-nephew.com (Fahlgren, Eric) Date: Wed, 16 Jan 2019 17:06:39 +0000 Subject: [vtkusers] Slower rendering with OpenMP and Python? In-Reply-To: References: Message-ID: Thanks, Andras, I'll try out TBB again. I had tried to use it in preference to OpenMP initially, but had trouble building it and bailed out. From: Andras Lasso Sent: Tuesday, January 15, 2019 18:25 To: Fahlgren, Eric ; vtkusers at vtk.org Subject: RE: Slower rendering with OpenMP and Python? CAUTION: External email REMINDER: Do not click links or open attachments unless you know the sender & are expecting the email. ________________________________ We experienced terrible performance on desktop systems with strong Nvidia GPUs when we switched to VTK OpenGL2 rendering backend. Apparently, Nvidia's threaded optimization off-loaded some work on the CPU and that interfered with VTK's multithreading. Maybe OpenMP backend has the same issue. Switching to SMP backend to TBB solved the issue for us. See more details in this pull request: https://github.com/Slicer/Slicer/pull/930 Andras From: vtkusers > On Behalf Of Fahlgren, Eric Sent: Tuesday, January 15, 2019 6:53 PM To: vtkusers at vtk.org Subject: [vtkusers] Slower rendering with OpenMP and Python? Seeing Felix's thread on attempts to speed up his contour filtering, I wanted to try this myself. So, Windows 10, VTK 8.1.2, MSVC 2017, Python 3.7, installed MS MPI tools and SDK v 10.0. I added these to my configuration script: -D VTK_SMP_IMPLEMENTATION_TYPE:STRING=OpenMP \ -D Module_vtkFiltersParallelFlowPaths:BOOL=ON \ -D Module_vtkFiltersParallelGeometry:BOOL=ON \ -D Module_vtkFiltersParallelStatistics:BOOL=ON \ -D Module_vtkFiltersParallelVerdict:BOOL=ON \ -D Module_vtkParallelMPI4Py:BOOL=ON \ -D Module_vtkRenderingParallel:BOOL=ON \ -D Module_vtkRenderingParallelLIC:BOOL=ON \ The test is an animation sequence of the lower spine in a flexion-extension event with a dozen bones, most set to 50% transparency and texture mapped, various other synthetic geometry like cylinders and toroids, pretty simple stuff (no images of any sort, so no pixels or voxels). Animation does reconfigure some rubber-banding objects (spinal discs and some cables from the test rig), but mostly the geometry remains as-is and the rendering at new xforms is the overwhelming time sink. The SMP=Sequential baseline runs on Intel i7-7700k with HD 630 integrated graphics at 35 FPS. With all the above parallelism enabled, it's at about half that, best case maybe 18 FPS. Notably, the CPU usage is 12% (typical one thread on an 8-thread CPU) with Sequential, but pegs 80-90% with OpenMP enabled. When we test on a machine with a GPU, GTX 1050 Ti, we see the baseline for SMP=Sequential is about 41 FPS, but with OpenMP it's 18 FPS here, too. CPU usage is same as above, one-thread max with Sequential and "use it all" with OpenMP. Is this expected for this mix of mostly static geometry? Or am I setting the wrong configuration variables? Or am I just doing something dumb? Thanks, Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From js.alternate at gmail.com Wed Jan 16 13:02:04 2019 From: js.alternate at gmail.com (Josh) Date: Wed, 16 Jan 2019 13:02:04 -0500 Subject: [vtkusers] Missing methods in Java generated code Message-ID: An update: Looks like I had a stray reference to an older version of the jar - my apologies. Still seeing some other odd behavior but will address that in a different post. Josh Original message: Hi - I built vtk 8.1.2 today, and I?m seeing missing methods in the Java generated code. For example in vtkIdTypeArray, the generated class file does not have access to getClassName(), even though it should since that class is an ancestor of vtkObjectBase and that generated class does have that method, and it is public. Before leaving work I did a quick comparison to the generated class files from vtk 6.3 and I do not see this problem - vtkIdTypeArray has the getClassName() method visible in the generated class. Any thoughts on why these methods are missing? I?ve seen some chatter about missing methods in some wrappings in the past - wondering if we are seeing something similar. Thanks for any help in advance! Josh Sent from my iPhone -------------- next part -------------- An HTML attachment was scrubbed... URL: From newcfd at yahoo.com Thu Jan 17 02:38:05 2019 From: newcfd at yahoo.com (newcfd) Date: Thu, 17 Jan 2019 00:38:05 -0700 (MST) Subject: [vtkusers] qxcbintegration cannot create platform opengl context neither glx nor egl are enabled Message-ID: <1547710685234-0.post@n5.nabble.com> Luckily I am able to build and run my app with QVTKOpenGLWidget on Ubuntu with OpenGL version 3.0. However, I get the following message when I deploy my build on another Ubuntu with OpenGL version 3.0 and run it. qxcbintegration cannot create platform opengl context neither glx nor egl are enabled The rendering window does not show up. What is wrong? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From felix.mayr at tum.de Thu Jan 17 04:14:09 2019 From: felix.mayr at tum.de (Felix Mayr) Date: Thu, 17 Jan 2019 10:14:09 +0100 Subject: [vtkusers] Profiling VTK/Performance improvements (with Python) In-Reply-To: <1547574898850-0.post@n5.nabble.com> References: <9747c7ea-4715-a822-527c-3316708a0b49@mytum.de> <1547574898850-0.post@n5.nabble.com> Message-ID: <7eb983da-fc93-78ff-93df-dc4339feccb6@mytum.de> Hey, thanks for your reply > - Did you set the VTK_SMP_IMPLEMENTATION_TYPE flag to the correct backend > for your compiler? I did so, though (I'm using LLVM for the MESA-acceleration only). For GCC it should be the same though. Probably this has something to do with the python-wrappers, are they releasing the GIL? > - For timing, you can possibly start by measuring the time elapsed when > calling Update(). See for instance the timer.StartTimer() calls in this > python code: > https://vtk.org/gitweb?p=VTK.git;a=blob;f=Filters/Points/Testing/Python/TestPointInterpolator.py Ok, this is not what I was after, as I hoped for something which could profile the whole pipeline in one go (preferably also breaking down on memory usage, etc). But apparently the best is to measure how much time the Update-call is blocking (which I did with time.time()) > - What do you call slow? 41 million cells is not a particularly big test > case, so no need to worry about that. What you do need to keep an eye on, > though, is your memory usage. If you run out of memory and your system > starts swapping to disk, then VTK will be unbearably slow for sure.. Memory is no problem, there's plenty of it available. And also with a smaller grid, the pipeline takes long. Anyways, I just "instrumented" all the Update()-calls one by one and found this: After isocontours update 4.545 After isonormalizer update 11.738 After isoclipper update 146.398 After filter update 146.399 So basically the vtkClipPolyData ist taking enormously long (the other steps might be slow, but are bearable. Especially as they are twice as fast on the server-nodes). Is there anything which is faster? I tried vtkExtractPolyDataGeometry (don't need cell subdivision), but this was not significantly faster and for the vtkBooleanOperationPolyDataFilter I didn't find any examples... Maybe the clipFunction (135 points) is to complicated, I will try to first cut the bounding box, then apply the vtkClipPolyData (tough this is not really improving to a point where I could get interactive performance, but a constant 30s would be better I guess). Felix Mayr Technical University of Munich, Simulation of Nanosystems for Energy Conversion [www.sne.ei.tum.de] From edo.paskino at gmail.com Thu Jan 17 10:33:18 2019 From: edo.paskino at gmail.com (Edoardo Pasca) Date: Thu, 17 Jan 2019 15:33:18 +0000 Subject: [vtkusers] copy slices of a vtkImageData on another slice Message-ID: Hi all, I've got a 3D vtkImageData with some data on one slice, say number Z=3. I want to copy the content of slice 3 to slice 4. How do I do it? Thanks Edo -- Edo I know you think you understand what you thought I said, but I'm not sure you realize that what you heard is not what I meant (prob. Alan Greenspan) :wq -------------- next part -------------- An HTML attachment was scrubbed... URL: From marciniak.andrzej.zg at gmail.com Thu Jan 17 13:56:29 2019 From: marciniak.andrzej.zg at gmail.com (Andrzej Marciniak) Date: Thu, 17 Jan 2019 11:56:29 -0700 (MST) Subject: [vtkusers] Access to Cells in VTK.js Message-ID: <1547751389074-0.post@n5.nabble.com> Hi All, My question is: for a given IJK data cell position in vtkImageData, how can I get access to: - voxel value, - voxel bounds (position of all 8 vertices of a voxel) - all voxels belonging to a given vtkImageSlice. More detailed description of why I need this: I am working on a tool for annotations and segmentations of MRI images using vtk.js with vtkImageData to represent MRI volume. I tried to use vtkImageSlice for both original image (grayscale) and overlay (color), but since there is no transparency for background voxels in vtkImageSlice (i.e. there is opacity property but no alpha), I had to use a different approach. Now, I am using "my own" transparent canvas as segmentation/annotation layer and vtkImageSlice to represent original image. To establish position of annotation I use picker. Using - picker.getPickedPositions()[0] - picker.getCellIJK() I can get both world position and cell position for a picked point. This works great, including interactions like zooming, pan, windowlevel, slicing etc. (see picture). However, I would like to draw on my canvas not only points (as in the picture), but also full rectangles covering voxels. To do that I need to know position of 4 vertices of voxel in a given plane and its value (I want to mark it with different color regarding the value). Thanks Andrzej -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From sebastien.jourdain at kitware.com Thu Jan 17 15:49:29 2019 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Thu, 17 Jan 2019 13:49:29 -0700 Subject: [vtkusers] Access to Cells in VTK.js In-Reply-To: <1547751389074-0.post@n5.nabble.com> References: <1547751389074-0.post@n5.nabble.com> Message-ID: You can do that by calling getPoint(idx) on the image data based on it's index. idx = i + j * dims[0] + k * dims[0] * dims[1] for the ijk of the points. You can easily convert from the ijk of a cell to the ijk of the point. based on which corner you want. HTH, Seb On Thu, Jan 17, 2019 at 11:56 AM Andrzej Marciniak < marciniak.andrzej.zg at gmail.com> wrote: > Hi All, > > My question is: for a given IJK data cell position in vtkImageData, how can > I get access to: > - voxel value, > - voxel bounds (position of all 8 vertices of a voxel) > - all voxels belonging to a given vtkImageSlice. > > More detailed description of why I need this: > I am working on a tool for annotations and segmentations of MRI images > using > vtk.js with vtkImageData to represent MRI volume. I tried to use > vtkImageSlice for both original image (grayscale) and overlay (color), but > since there is no transparency for background voxels in vtkImageSlice (i.e. > there is opacity property but no alpha), I had to use a different > approach. > > Now, I am using "my own" transparent canvas as segmentation/annotation > layer > and vtkImageSlice to represent original image. > To establish position of annotation I use picker. Using > - picker.getPickedPositions()[0] > - picker.getCellIJK() > I can get both world position and cell position for a picked point. This > works great, including interactions like zooming, pan, windowlevel, slicing > etc. (see picture). > > > However, I would like to draw on my canvas not only points (as in the > picture), but also full rectangles covering voxels. To do that I need to > know position of 4 vertices of voxel in a given plane and its value (I want > to mark it with different color regarding the value). > > Thanks > Andrzej > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From meakcey at gmail.com Thu Jan 17 16:23:16 2019 From: meakcey at gmail.com (meakcey) Date: Thu, 17 Jan 2019 14:23:16 -0700 (MST) Subject: [vtkusers] Inconsistent Rendering Message-ID: <1547760196752-0.post@n5.nabble.com> I am rendering point cloud on QVTKOpenGLWidget in Qt with the code below void SceneWidget::renderCloud(pcl::PointCloud::Ptr p3cloud){ vRenderer->Clear(); vWindow = vtkSmartPointer::New(); SetRenderWindow(vWindow); vRenderer = vtkSmartPointer::New(); vRenderer->SetBackground(0.1, 0.1, 0.1); GetRenderWindow()->AddRenderer(vRenderer); vtkSmartPointer points = vtkSmartPointer::New(); vtkSmartPointer colors = vtkSmartPointer::New(); colors->SetNumberOfComponents(3); colors->SetName ("Colors"); // Set point normals vtkSmartPointer pointNormalsArray = vtkSmartPointer::New(); pointNormalsArray->SetNumberOfComponents(3); //3d normals (ie x,y,z) pointNormalsArray->SetName("Normals"); unsigned char tmpColor[3] = {200, 200, 100}; for(unsigned int i=0; isize(); i++){ points->InsertNextPoint(p3cloud->points[i].x, p3cloud->points[i].y, p3cloud->points[i].z); double pn[3] = {p3cloud->points[i].normal_x, p3cloud->points[i].normal_y, p3cloud->points[i].normal_z}; //pointNormalsArray->InsertNextTypedTuple(pn); colors->InsertNextTypedTuple(tmpColor); } vtkSmartPointer pointsPoly = vtkSmartPointer::New(); pointsPoly->SetPoints(points); vtkSmartPointer vertexFilter = vtkSmartPointer::New(); vertexFilter->SetInputData(pointsPoly); vertexFilter->Update(); vPointCloud = vtkSmartPointer::New(); vPointCloud->ShallowCopy(vertexFilter->GetOutput()); vPointCloud->GetPointData()->SetScalars(colors); sceneMapper = vtkSmartPointer::New(); sceneMapper->SetInputData(vPointCloud); sceneActor = vtkSmartPointer::New(); sceneActor->SetMapper(sceneMapper); sceneActor->GetProperty()->SetPointSize(6); sceneActor->GetProperty()->EdgeVisibilityOff(); vRenderer->AddActor(sceneActor); vRenderer->ResetCamera(sceneActor->GetBounds()); glEnable( GL_POINT_SMOOTH ); glEnable( GL_BLEND ); glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); //glPointSize( 5.0f ); //renderVTK(); this->GetRenderWindow()->Render(); } I am always getting different result on the screen like attached in the pictures Something like it does not render normals. And also, when it is visualized bad, getting rotations very slow. I did not understand root cause of it and so how to solve that. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From rccm.kyoshimi at gmail.com Thu Jan 17 21:10:07 2019 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Fri, 18 Jan 2019 11:10:07 +0900 Subject: [vtkusers] Delaunay3D: find a tetrahedron enclosing a query point In-Reply-To: <1547624168803-0.post@n5.nabble.com> References: <1547624168803-0.post@n5.nabble.com> Message-ID: Hi, Though I'm not sure how helpful that will be for performance improvement, there is a protected member function FindTetra() in vtkDelaunay3D. This way doesn't make use of the Delaunay properties such as convexity, but it might be faster than CellLocator. However, if you try, you need to re-implement this because this cannot be directly accessed outside of the class. Regards, 2019?1?16?(?) 16:36 leonid : > > > Hello. > > Suppose I have built a 3D delaunay triangulation out of N points. Now I > have a query point, and I need to find the tetrahedron of the triangulation > which encloses the query point. How to do it? > > I am aware of CellLocator, but the documentation warns that it might be > slow. Is there some fast (and ideally simple) method that utilizes the fact > that the tetrahedrons are not arbitrary, but rather the result of 3D > delaunay? > > Thank you, > > leonid > > > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://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: > https://vtk.org/mailman/listinfo/vtkusers From masterwangzx at gmail.com Fri Jan 18 04:35:06 2019 From: masterwangzx at gmail.com (Franks) Date: Fri, 18 Jan 2019 02:35:06 -0700 (MST) Subject: [vtkusers] can not open vtkpython and import vtk Message-ID: <1547804106394-0.post@n5.nabble.com> Hi list: I meet some problems in VTK-8.2.0.rc2 with python3.7 in linux(manjaro). When I build the vtk, I set vtkWrapperPython true and specify the version of the python is 3.7. I install the vtk in default path(/usr/local). So its bin and lib path has already been added in environmental variable. I have the following problem. 1. can not open vtkpythonBut the/libvtkWrappingPython37Core-8.2.so.1/ is in /usr/local/lib64, and /usr/local/lib64 has already been added in environmental variable. 2. can not import vtk I add site-packages in PYTHONPATH.But the console still report an error I am looking forward to your help. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From msmerps at gmail.com Fri Jan 18 11:32:32 2019 From: msmerps at gmail.com (The Merper) Date: Fri, 18 Jan 2019 11:32:32 -0500 Subject: [vtkusers] VTK compatible LCD shutter glasses? In-Reply-To: References: Message-ID: On this same binocular rendering thread, can anyone recommend a monitor/display system for using VTK with polarized glasses? thank you in advance, -Merps On Wed, Jan 2, 2019 at 1:08 AM Andras Lasso wrote: > > I want to buy a pair of liquid crystal display (LCD) shutter glasses to > use with VTK > > > > Shutter glasses were not even popular 10-20 years ago. Now that immersive, > high-resolution virtual reality has become so inexpensive and widely > available, shutter glasses have become largely irrelevant. The few > remaining meaningful use cases will most likely evaporate quite quickly as > virtual/augmented reality technology improves. > > > > Therefore, I would not recommend buying shutter glasses and compatible > monitor and video card. Instead, get a Windows Mixed Reality headset + > controllers for $300 (or a more expensive HTC Vive or Oculus Rift) and try > VTK in virtual reality using 3D Slicer ( > https://github.com/KitwareMedical/SlicerVirtualReality) or ParaView ( > https://blog.kitware.com/taking-paraview-into-virtual-reality/). > > > > Andras > > > > *From:* vtkusers * On Behalf Of *The > Merper > *Sent:* Tuesday, December 11, 2018 9:43 AM > *To:* vtkusers at public.kitware.com > *Subject:* [vtkusers] VTK compatible LCD shutter glasses? > > > > Hi VTKers, > > I want to buy a pair of liquid crystal display (LCD) shutter glasses to > use with VTK, but there don't seem to be many options available and it is > not clear to me what glasses are compatible with VTK. Can anyone recommend > a pair to get? > > Alternatively, does anyone know if NVIDIA's 3D vision glasses (version 1 > or 2) will work with VTK? > > > > https://www.nvidia.com/object/3d-vision-glasses.html > > > > > thank you for your help, > > -Merps > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marciniak.andrzej.zg at gmail.com Fri Jan 18 13:42:46 2019 From: marciniak.andrzej.zg at gmail.com (Andrzej Marciniak) Date: Fri, 18 Jan 2019 11:42:46 -0700 (MST) Subject: [vtkusers] Access to Cells in VTK.js In-Reply-To: References: <1547751389074-0.post@n5.nabble.com> Message-ID: <1547836966661-0.post@n5.nabble.com> Hi Sebastien, Thank you for the tip - it works for me. Now, I have only a problem with precision in finding IJK. Should I better use vtkPicker or vtkMappers to get IJK position of selected voxel? I have made a simple experiment with both ways to calculate IJK and I got different results. renderWindow.getInteractor().onRightButtonPress((callData) => { if (renderer !== callData.pokedRenderer) { return; } const pos = callData.position; const point = [pos.x, pos.y, 0.0]; picker.pick(point, renderer); const worldPos = picker.getPickedPositions()[0]; //I have only one Actor in renderer but 3 mappers set on different planes let slices = null; try { slices = mappers.map((el) => { return el.getSliceAtPosition(worldPos) // this is how I get I,J,K with ImageMapper API }); } catch (err) { alert("You cannot pick a point outside MRI volume"); return; } const pointIndex = slices[0] + slices[1] * dims[0] + slices[2] * dims[0] * dims[1]; const pointIndex2 = picker.getCellIJK()[0] + picker.getCellIJK()[1] * dims[0] + picker.getCellIJK()[2] * dims[0] * dims[1]; if (pointIndex===pointIndex2) inputData.getPointData().getScalars().getData()[pointIndex]=1983; else { inputData.getPointData().getScalars().getData()[pointIndex]=1700; inputData.getPointData().getScalars().getData()[pointIndex2] = 1500; } }); As a result I have different voxels marked (please see image). White voxel is when they agree, light- and dark-grey when they don't. The results are different when the selected point on canvas is close to the border of voxel (points 1 and 3). Which way is better? Can be direction of the vtkDataImage problem here (its not aligned with xyz coordinates)? Thank you again Andrzej -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From sk.shadabanwar at gmail.com Fri Jan 18 17:40:04 2019 From: sk.shadabanwar at gmail.com (shadab anwar) Date: Fri, 18 Jan 2019 14:40:04 -0800 Subject: [vtkusers] updating vtkimagedata in animation. Message-ID: Hi everyone, I am working on creating an animation of a tool and a workpiece (vtkimagedata). Where the tool should move to a location and turnoff the voxels (create a hole) at that location. I want to animate a dynamic scene. I am turning off voxels of workpiece (vtkimagedata) in " virtual void Execute () " function of " class vtkTimerCallback" but I am not able to render the updated vtkimagedata. basically I am not able to see the hole at those positions. Any suggestions? directions? on how its done will be a great help. Thanks, Shadab -------------- next part -------------- An HTML attachment was scrubbed... URL: From sk.shadabanwar at gmail.com Fri Jan 18 17:40:04 2019 From: sk.shadabanwar at gmail.com (shadab anwar) Date: Fri, 18 Jan 2019 14:40:04 -0800 Subject: [vtkusers] updating vtkimagedata in animation. Message-ID: Hi everyone, I am working on creating an animation of a tool and a workpiece (vtkimagedata). Where the tool should move to a location and turnoff the voxels (create a hole) at that location. I want to animate a dynamic scene. I am turning off voxels of workpiece (vtkimagedata) in " virtual void Execute () " function of " class vtkTimerCallback" but I am not able to render the updated vtkimagedata. basically I am not able to see the hole at those positions. Any suggestions? directions? on how its done will be a great help. Thanks, Shadab -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Jan 18 17:48:05 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 18 Jan 2019 15:48:05 -0700 Subject: [vtkusers] updating vtkimagedata in animation. In-Reply-To: References: Message-ID: Hi Shadab, When you directly modify data in VTK, it is necessary to call Modified() on the data container or else the pipeline will not update. For vtkImageData, the voxel values are stored in an array that can be retrieved as follows: data->GetPointData()->GetScalars() So when you modify voxels, you should also do the following: data->GetPointData()->GetScalars()->Modified(); data->Modified(); It's been a while since I've done anything similar myself, so there might be other Modifed() calls that are necessary. Cheers, David On Fri, Jan 18, 2019 at 3:40 PM shadab anwar wrote: > Hi everyone, > > I am working on creating an animation of a tool and a workpiece > (vtkimagedata). Where the tool should move to a location and turnoff the > voxels (create a hole) at that location. I want to animate a dynamic scene. > > I am turning off voxels of workpiece (vtkimagedata) in " virtual void > Execute () " function of " class vtkTimerCallback" but I am not able > to render the updated vtkimagedata. > > basically I am not able to see the hole at those positions. > > Any suggestions? directions? on how its done will be a great help. > > Thanks, > Shadab > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Jan 18 17:48:05 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 18 Jan 2019 15:48:05 -0700 Subject: [vtkusers] updating vtkimagedata in animation. In-Reply-To: References: Message-ID: Hi Shadab, When you directly modify data in VTK, it is necessary to call Modified() on the data container or else the pipeline will not update. For vtkImageData, the voxel values are stored in an array that can be retrieved as follows: data->GetPointData()->GetScalars() So when you modify voxels, you should also do the following: data->GetPointData()->GetScalars()->Modified(); data->Modified(); It's been a while since I've done anything similar myself, so there might be other Modifed() calls that are necessary. Cheers, David On Fri, Jan 18, 2019 at 3:40 PM shadab anwar wrote: > Hi everyone, > > I am working on creating an animation of a tool and a workpiece > (vtkimagedata). Where the tool should move to a location and turnoff the > voxels (create a hole) at that location. I want to animate a dynamic scene. > > I am turning off voxels of workpiece (vtkimagedata) in " virtual void > Execute () " function of " class vtkTimerCallback" but I am not able > to render the updated vtkimagedata. > > basically I am not able to see the hole at those positions. > > Any suggestions? directions? on how its done will be a great help. > > Thanks, > Shadab > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sk.shadabanwar at gmail.com Fri Jan 18 18:02:28 2019 From: sk.shadabanwar at gmail.com (shadab anwar) Date: Fri, 18 Jan 2019 15:02:28 -0800 Subject: [vtkusers] updating vtkimagedata in animation. In-Reply-To: References: Message-ID: Hi David; I am still not getting the output. This is what I am doing. I don't know if it makes sense.But I thought it'll better to share the code.Please let me know for any clarifications you need. class vtkTimerCallback2 : public vtkCommand { public: int timerId; static vtkTimerCallback2 *New() { vtkTimerCallback2 *cb = new vtkTimerCallback2; cb->TimerCount = 0; return cb; } virtual void Execute(vtkObject *caller, unsigned long eventId, void * vtkNotUsed(callData)) { if (vtkCommand::TimerEvent == eventId) { ++this->TimerCount; } // std::cout << this->TimerCount << std::endl; vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::SafeDownCast(caller); // vtkRenderer *ren = vtkRenderer::SafeDownCast(caller); if(TimerCount<=toolLocations->GetNumberOfPoints()) { double* location = toolLocations->GetPoint(TimerCount-1); int a = location[0]; int b = location[1]; int c = location[2]; for (unsigned int k =0; k < height; k++){ for (unsigned int j = 0; j < roughingToolWidth; j++) { for (unsigned int i = 0; i < roughingToolWidth; i++) { unsigned char* voxel = static_cast(imageData->GetScalarPointer(i+a, j+b, k+c)); //std::cout<<"voxel value: "<GetPointData()->GetScalars()->Modified(); imageData->Modified(); actorTool->SetPosition(location[0], location[1], location[2]); vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputData(imageData); volume->SetMapper(mapper); //ren->AddViewProp(volume); //iren->GetRenderWindow()->AddRenderer(ren); iren->GetRenderWindow()->Render(); } else { double* location = toolLocations->GetPoint(0); actorTool->SetPosition(location[0], location[1], location[2]); iren->DestroyTimer(this->timerId); // cout << "Timer Destroyed: " <DestroyTimer(this->timerId) << endl; } } private: int TimerCount; public: vtkActor* actorTool; vtkSmartPointer toolLocations; vtkSmartPointer imageData; unsigned int roughingToolWidth; int * roughingToolDepthMap; unsigned int height; vtkSmartPointer volume; }; void MainWindow::on_toolPathSimulation_clicked() { vtkSmartPointer reader = vtkSmartPointer ::New(); reader->SetFileName("C://Users//Shaikh Shadab Anwar//Desktop//cutter.stl"); reader->Update(); //Render Tool to VTK Widget Window vtkSmartPointer mapper = vtkSmartPointer ::New(); mapper->SetInputConnection(reader->GetOutputPort()); actorTool = vtkSmartPointer ::New(); actorTool->SetMapper(mapper); actorTool->GetProperty()->SetColor(0.752941, 0.752941, 0.752941); //(R,G,B) vtkRenderWindowInteractor* renderWindowInteractor = ui->qvtkWidget->GetRenderWindow()->GetInteractor(); renderWindowInteractor->SetRenderWindow(ui->qvtkWidget->GetRenderWindow()); // Add the actor to the scene renderer->AddActor(actorTool); ui->qvtkWidget->GetRenderWindow()->Render(); // Initialize must be called prior to creating timer events. renderWindowInteractor->Initialize(); // ...doing something // inserting few test values for(int i =0;i!=240;i++) { toolPath.push_back({i,128,232}); } // Create a vtkPoints object and store the points in it vtkSmartPointer points = vtkSmartPointer::New(); for (size_t i =0; i < toolPath.size(); i++){ double p[3] = {toolPath[i].x, toolPath[i].y, toolPath[i].z}; points->InsertNextPoint(p); } // Sign up to receive TimerEvent vtkSmartPointer cb = vtkSmartPointer::New(); cb->actorTool = actorTool; cb->imageData = imageData; cb->roughingToolDepthMap=roughingToolDepthMap; cb->roughingToolWidth=roughingToolWidth; cb->height=height; cb->volume = volume; cb->toolLocations = points; renderWindowInteractor->AddObserver(vtkCommand::TimerEvent, cb); renderWindowInteractor->CreateRepeatingTimer(1); } On Fri, Jan 18, 2019 at 2:48 PM David Gobbi wrote: > Hi Shadab, > > When you directly modify data in VTK, it is necessary to call Modified() > on the data container or else the pipeline will not update. > > For vtkImageData, the voxel values are stored in an array that can be > retrieved as follows: > > data->GetPointData()->GetScalars() > > So when you modify voxels, you should also do the following: > > data->GetPointData()->GetScalars()->Modified(); > data->Modified(); > > It's been a while since I've done anything similar myself, so there might > be other Modifed() calls that are necessary. > > Cheers, > David > > > On Fri, Jan 18, 2019 at 3:40 PM shadab anwar > wrote: > >> Hi everyone, >> >> I am working on creating an animation of a tool and a workpiece >> (vtkimagedata). Where the tool should move to a location and turnoff the >> voxels (create a hole) at that location. I want to animate a dynamic scene. >> >> I am turning off voxels of workpiece (vtkimagedata) in " virtual void >> Execute () " function of " class vtkTimerCallback" but I am not able >> to render the updated vtkimagedata. >> >> basically I am not able to see the hole at those positions. >> >> Any suggestions? directions? on how its done will be a great help. >> >> Thanks, >> Shadab >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sk.shadabanwar at gmail.com Fri Jan 18 18:02:28 2019 From: sk.shadabanwar at gmail.com (shadab anwar) Date: Fri, 18 Jan 2019 15:02:28 -0800 Subject: [vtkusers] updating vtkimagedata in animation. In-Reply-To: References: Message-ID: Hi David; I am still not getting the output. This is what I am doing. I don't know if it makes sense.But I thought it'll better to share the code.Please let me know for any clarifications you need. class vtkTimerCallback2 : public vtkCommand { public: int timerId; static vtkTimerCallback2 *New() { vtkTimerCallback2 *cb = new vtkTimerCallback2; cb->TimerCount = 0; return cb; } virtual void Execute(vtkObject *caller, unsigned long eventId, void * vtkNotUsed(callData)) { if (vtkCommand::TimerEvent == eventId) { ++this->TimerCount; } // std::cout << this->TimerCount << std::endl; vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::SafeDownCast(caller); // vtkRenderer *ren = vtkRenderer::SafeDownCast(caller); if(TimerCount<=toolLocations->GetNumberOfPoints()) { double* location = toolLocations->GetPoint(TimerCount-1); int a = location[0]; int b = location[1]; int c = location[2]; for (unsigned int k =0; k < height; k++){ for (unsigned int j = 0; j < roughingToolWidth; j++) { for (unsigned int i = 0; i < roughingToolWidth; i++) { unsigned char* voxel = static_cast(imageData->GetScalarPointer(i+a, j+b, k+c)); //std::cout<<"voxel value: "<GetPointData()->GetScalars()->Modified(); imageData->Modified(); actorTool->SetPosition(location[0], location[1], location[2]); vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputData(imageData); volume->SetMapper(mapper); //ren->AddViewProp(volume); //iren->GetRenderWindow()->AddRenderer(ren); iren->GetRenderWindow()->Render(); } else { double* location = toolLocations->GetPoint(0); actorTool->SetPosition(location[0], location[1], location[2]); iren->DestroyTimer(this->timerId); // cout << "Timer Destroyed: " <DestroyTimer(this->timerId) << endl; } } private: int TimerCount; public: vtkActor* actorTool; vtkSmartPointer toolLocations; vtkSmartPointer imageData; unsigned int roughingToolWidth; int * roughingToolDepthMap; unsigned int height; vtkSmartPointer volume; }; void MainWindow::on_toolPathSimulation_clicked() { vtkSmartPointer reader = vtkSmartPointer ::New(); reader->SetFileName("C://Users//Shaikh Shadab Anwar//Desktop//cutter.stl"); reader->Update(); //Render Tool to VTK Widget Window vtkSmartPointer mapper = vtkSmartPointer ::New(); mapper->SetInputConnection(reader->GetOutputPort()); actorTool = vtkSmartPointer ::New(); actorTool->SetMapper(mapper); actorTool->GetProperty()->SetColor(0.752941, 0.752941, 0.752941); //(R,G,B) vtkRenderWindowInteractor* renderWindowInteractor = ui->qvtkWidget->GetRenderWindow()->GetInteractor(); renderWindowInteractor->SetRenderWindow(ui->qvtkWidget->GetRenderWindow()); // Add the actor to the scene renderer->AddActor(actorTool); ui->qvtkWidget->GetRenderWindow()->Render(); // Initialize must be called prior to creating timer events. renderWindowInteractor->Initialize(); // ...doing something // inserting few test values for(int i =0;i!=240;i++) { toolPath.push_back({i,128,232}); } // Create a vtkPoints object and store the points in it vtkSmartPointer points = vtkSmartPointer::New(); for (size_t i =0; i < toolPath.size(); i++){ double p[3] = {toolPath[i].x, toolPath[i].y, toolPath[i].z}; points->InsertNextPoint(p); } // Sign up to receive TimerEvent vtkSmartPointer cb = vtkSmartPointer::New(); cb->actorTool = actorTool; cb->imageData = imageData; cb->roughingToolDepthMap=roughingToolDepthMap; cb->roughingToolWidth=roughingToolWidth; cb->height=height; cb->volume = volume; cb->toolLocations = points; renderWindowInteractor->AddObserver(vtkCommand::TimerEvent, cb); renderWindowInteractor->CreateRepeatingTimer(1); } On Fri, Jan 18, 2019 at 2:48 PM David Gobbi wrote: > Hi Shadab, > > When you directly modify data in VTK, it is necessary to call Modified() > on the data container or else the pipeline will not update. > > For vtkImageData, the voxel values are stored in an array that can be > retrieved as follows: > > data->GetPointData()->GetScalars() > > So when you modify voxels, you should also do the following: > > data->GetPointData()->GetScalars()->Modified(); > data->Modified(); > > It's been a while since I've done anything similar myself, so there might > be other Modifed() calls that are necessary. > > Cheers, > David > > > On Fri, Jan 18, 2019 at 3:40 PM shadab anwar > wrote: > >> Hi everyone, >> >> I am working on creating an animation of a tool and a workpiece >> (vtkimagedata). Where the tool should move to a location and turnoff the >> voxels (create a hole) at that location. I want to animate a dynamic scene. >> >> I am turning off voxels of workpiece (vtkimagedata) in " virtual void >> Execute () " function of " class vtkTimerCallback" but I am not able >> to render the updated vtkimagedata. >> >> basically I am not able to see the hole at those positions. >> >> Any suggestions? directions? on how its done will be a great help. >> >> Thanks, >> Shadab >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Jan 18 18:17:17 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 18 Jan 2019 16:17:17 -0700 Subject: [vtkusers] updating vtkimagedata in animation. In-Reply-To: References: Message-ID: On Fri, Jan 18, 2019 at 4:02 PM shadab anwar wrote: > Hi David; > > I am still not getting the output. > This is what I am doing. > I don't know if it makes sense.But I thought it'll better to share the > code.Please let me know for any clarifications you need. > You shouldn't create a new mapper every time Execute() is called. Just re-use the same mapper (and it's probably a good idea to call Modified() on it, as well). David -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Fri Jan 18 19:50:23 2019 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Fri, 18 Jan 2019 17:50:23 -0700 Subject: [vtkusers] Access to Cells in VTK.js In-Reply-To: <1547836966661-0.post@n5.nabble.com> References: <1547751389074-0.post@n5.nabble.com> <1547836966661-0.post@n5.nabble.com> Message-ID: point picker or cell picker won't give you the same ijk since one will be the point ijk vs the cell one. On Fri, Jan 18, 2019 at 11:42 AM Andrzej Marciniak < marciniak.andrzej.zg at gmail.com> wrote: > Hi Sebastien, > > Thank you for the tip - it works for me. Now, I have only a problem with > precision in finding IJK. > Should I better use vtkPicker or vtkMappers to get IJK position of selected > voxel? I have made a simple experiment with both ways to calculate IJK and > I > got different results. > > renderWindow.getInteractor().onRightButtonPress((callData) => { > if (renderer !== callData.pokedRenderer) { > return; > } > const pos = callData.position; > const point = [pos.x, pos.y, 0.0]; > picker.pick(point, renderer); > const worldPos = picker.getPickedPositions()[0]; > //I have only one Actor in renderer but 3 mappers set on different planes > let slices = null; > try { > slices = mappers.map((el) => { > return el.getSliceAtPosition(worldPos) // this is how I > get I,J,K with ImageMapper API > }); > } > catch (err) { alert("You cannot pick a point outside MRI > volume"); > return; > } > const pointIndex = slices[0] + slices[1] * dims[0] + slices[2] > * > dims[0] * dims[1]; > const pointIndex2 = picker.getCellIJK()[0] > + picker.getCellIJK()[1] * dims[0] > + picker.getCellIJK()[2] * dims[0] * > dims[1]; > if (pointIndex===pointIndex2) > inputData.getPointData().getScalars().getData()[pointIndex]=1983; > > else { > > inputData.getPointData().getScalars().getData()[pointIndex]=1700; > > inputData.getPointData().getScalars().getData()[pointIndex2] > = 1500; > } > }); > > As a result I have different voxels marked (please see image). White voxel > is when they agree, light- and dark-grey when they don't. The results are > different when the selected point on canvas is close to the border of voxel > (points 1 and 3). > Which way is better? Can be direction of the vtkDataImage problem here > (its > not aligned with xyz coordinates)? > Thank you again > Andrzej > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rvuppal at ncsu.edu Fri Jan 18 21:56:35 2019 From: rvuppal at ncsu.edu (Rohit Vuppala) Date: Fri, 18 Jan 2019 21:56:35 -0500 Subject: [vtkusers] Arbitary Higher Order Lagrange hexahedron elements and data Message-ID: Hi The new versions of ParaView(5.5 and above) supports arbitary order lagrange hexahedron elements. The ordering of the points (lagrange points facepoints+interior+corners)associated with the elements hasn?t been provided either in the ParaView reference guide or in VTK file format specification in VTK guide. (For simple hex the ordering of nodes is clockwise from inside the cell for one face and similar for the nodes in the opp face ). How do we figure such ordering or pattern for the Arbitary Order Lagrange Hexahedron ? Sincerely Rohit K S S Vuppala Graduate Student MAE NCSU -------------- next part -------------- An HTML attachment was scrubbed... URL: From karanovicm at gmail.com Sat Jan 19 21:05:04 2019 From: karanovicm at gmail.com (KM) Date: Sat, 19 Jan 2019 19:05:04 -0700 (MST) Subject: [vtkusers] Problem with delanuay2D Message-ID: <1547949904537-0.post@n5.nabble.com> Hi all, I'm using delaunay2D to generate triangles from point data, and in most of the cases works perfectly fine. But in case that my input points happened to be in regular lattice (like structured points) for some reason Delaunay2D output is wrong, one triangle in the corner is missing. See attached image, I don't see any reason not to create triangle in that corner, because neighborhood cells are using the same points. Any idea is welcome Thanks MK -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From cory.quammen at kitware.com Mon Jan 21 10:22:40 2019 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 21 Jan 2019 10:22:40 -0500 Subject: [vtkusers] VTK Discourse forum is now available Message-ID: Hello VTK community, Following up on our previous discussion about transitioning the VTK mailing lists to Discourse [1], we now have a Discourse forum ready to use to discuss all things VTK. You can find it at https://discourse.vtk.org/ You can sign up for the web site using your Google or GitHub accounts if you prefer, otherwise you can register with a user name and password. Please try it out and leave any feedback you might have under the "Site Feedback" category (https://discourse.vtk.org/c/site-feedback) on the site. To set up Discourse in mailing list mode, please see: https://discourse.vtk.org/t/using-discourse-as-a-mailing-list/ While we expect the bulk of VTK-related discussion to transition to Discourse fairly rapidly in the near term, the current vtkusers at vtk.org and vtk-developers at vtk.org mailing lists will remain active until at least the middle of 2019, and the archives from these lists will remain available after that. See you on discourse.vtk.org! Thanks, Cory [1] https://markmail.org/thread/2dricthoo3ugw7jv -- Cory Quammen Staff R&D Engineer Kitware, Inc. From zmanvortex at gmail.com Mon Jan 21 12:44:59 2019 From: zmanvortex at gmail.com (zmantorn) Date: Mon, 21 Jan 2019 10:44:59 -0700 (MST) Subject: [vtkusers] VTK Discourse forum is now available In-Reply-To: References: Message-ID: <1548092699185-0.post@n5.nabble.com> Will all of the "threads" from the current vtkusers mailing list be imported into the Discourse forum or is it going to start from scratch with new threads? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From cory.quammen at kitware.com Mon Jan 21 12:57:39 2019 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 21 Jan 2019 12:57:39 -0500 Subject: [vtkusers] VTK Discourse forum is now available In-Reply-To: <1548092699185-0.post@n5.nabble.com> References: <1548092699185-0.post@n5.nabble.com> Message-ID: We will not import either existing threads or users who have signed up for the mailing lists. On Mon, Jan 21, 2019 at 12:45 PM zmantorn wrote: > > Will all of the "threads" from the current vtkusers mailing list be imported > into the Discourse forum or is it going to start from scratch with new > threads? > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://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: > https://vtk.org/mailman/listinfo/vtkusers -- Cory Quammen Staff R&D Engineer Kitware, Inc. From zmanvortex at gmail.com Mon Jan 21 13:33:30 2019 From: zmanvortex at gmail.com (zmantorn) Date: Mon, 21 Jan 2019 11:33:30 -0700 (MST) Subject: [vtkusers] VTK Discourse forum is now available In-Reply-To: References: <1548092699185-0.post@n5.nabble.com> Message-ID: <1548095610236-0.post@n5.nabble.com> Should we post new topics on both the mailing list and the forum to get maximum views? I am unsure if I should just post a new question on the forum and trust that it will get the views I need. It could get messy with some reply's coming on the mailing list and some on the forum if I post to both. Just looking for a little guidance for when my next VTK question comes up. VTK - Users mailing list wrote > We will not import either existing threads or users who have signed up > for the mailing lists. > > On Mon, Jan 21, 2019 at 12:45 PM zmantorn < > zmanvortex@ > > wrote: >> >> Will all of the "threads" from the current vtkusers mailing list be >> imported >> into the Discourse forum or is it going to start from scratch with new >> threads? >> >> >> >> -- >> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://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: >> https://vtk.org/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: > https://vtk.org/mailman/listinfo/vtkusers -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From cory.quammen at kitware.com Mon Jan 21 13:35:32 2019 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 21 Jan 2019 13:35:32 -0500 Subject: [vtkusers] VTK Discourse forum is now available In-Reply-To: <1548095610236-0.post@n5.nabble.com> References: <1548092699185-0.post@n5.nabble.com> <1548095610236-0.post@n5.nabble.com> Message-ID: New topics should be started on Discourse. I do not recommend posting to both. On Mon, Jan 21, 2019 at 1:34 PM zmantorn wrote: > > Should we post new topics on both the mailing list and the forum to get > maximum views? I am unsure if I should just post a new question on the forum > and trust that it will get the views I need. It could get messy with some > reply's coming on the mailing list and some on the forum if I post to both. > Just looking for a little guidance for when my next VTK question comes up. > > > VTK - Users mailing list wrote > > We will not import either existing threads or users who have signed up > > for the mailing lists. > > > > On Mon, Jan 21, 2019 at 12:45 PM zmantorn < > > > zmanvortex@ > > > > wrote: > >> > >> Will all of the "threads" from the current vtkusers mailing list be > >> imported > >> into the Discourse forum or is it going to start from scratch with new > >> threads? > >> > >> > >> > >> -- > >> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > >> _______________________________________________ > >> Powered by www.kitware.com > >> > >> Visit other Kitware open-source projects at > >> http://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: > >> https://vtk.org/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: > > https://vtk.org/mailman/listinfo/vtkusers > > > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://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: > https://vtk.org/mailman/listinfo/vtkusers -- Cory Quammen Staff R&D Engineer Kitware, Inc. From ftpronk at engits.com Tue Jan 22 12:19:27 2019 From: ftpronk at engits.com (Fcs) Date: Tue, 22 Jan 2019 10:19:27 -0700 (MST) Subject: [vtkusers] Profiling VTK/Performance improvements (with Python) In-Reply-To: <7eb983da-fc93-78ff-93df-dc4339feccb6@mytum.de> References: <9747c7ea-4715-a822-527c-3316708a0b49@mytum.de> <1547574898850-0.post@n5.nabble.com> <7eb983da-fc93-78ff-93df-dc4339feccb6@mytum.de> Message-ID: <1548177567858-0.post@n5.nabble.com> Some filters can be quite slow indeed. I played around a bit to compare the performance of a vtkClipDataSet and a vtkTableBasedClipDataSet to extract an isosurface on an unstructured grid, and this is what I get: Total number of cells : 41.16 million. Using vtkClipDataSet: -> Clip Time : 83.096 [s] Using vtkTableBasedClipDataSet: -> Clip Time : 6.173 [s] Is that a filter you could consider? They also have some new, fast, isosurface generators which should parallelize nicely: https://vtk.org/doc/nightly/html/classvtkFlyingEdges3D.html#details I haven't worked with them myself, but the claim is that they offer a significant speed-up. I would definitely be interested in hearing if you found a suitable solution, Kind regards, Francois. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From hardenbergh at terarecon.com Tue Jan 22 12:48:19 2019 From: hardenbergh at terarecon.com (Jan Hardenbergh) Date: Tue, 22 Jan 2019 17:48:19 +0000 Subject: [vtkusers] Transition to Discourse - thoughts from lurker Message-ID: There is a question here that has not really been addressed in the Welcome To Discourse page: https://discourse.vtk.org/t/welcome-to-discourse/8 * Why should they come here? What is the motivation for the switch? If this will make it easier to provide support, that's a good reason. A good transition strategy might be to reply to questions that are asked on the mailing list in Discourse, and then reply to the mailing list with the link. Another transition strategy would be to post the Topics Titles active for the past week to get people to go to Discourse if they are interested in that topic. Back to lurking... YON - Jan C. Hardenbergh, VolumePro SW Eng. Mgr. Terarecon, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lasso at queensu.ca Tue Jan 22 13:28:24 2019 From: lasso at queensu.ca (Andras Lasso) Date: Tue, 22 Jan 2019 18:28:24 +0000 Subject: [vtkusers] Transition to Discourse - thoughts from lurker In-Reply-To: References: Message-ID: A soft transition worked quite nicely for both Slicer and ITK. For a while, questions sent to the mailing list were still answered there but a users were reminded that further questions should be posted to the forum. Then we stopped responding on the mailing list but asked people to post messages to discourse. Finally, we disabled posting to the list and set an auto-response message that explained that questions should be now posted on the forum. This transition was completed in a few months. It took a couple of months for google to start indexing the forum with high frequency and about a year to reach the same number of registered members as on the old mailing list. Andras From: vtkusers On Behalf Of Jan Hardenbergh Sent: Tuesday, January 22, 2019 12:48 PM To: vtkusers at vtk.org Subject: [vtkusers] Transition to Discourse - thoughts from lurker There is a question here that has not really been addressed in the Welcome To Discourse page: https://discourse.vtk.org/t/welcome-to-discourse/8 * Why should they come here? What is the motivation for the switch? If this will make it easier to provide support, that's a good reason. A good transition strategy might be to reply to questions that are asked on the mailing list in Discourse, and then reply to the mailing list with the link. Another transition strategy would be to post the Topics Titles active for the past week to get people to go to Discourse if they are interested in that topic. Back to lurking... YON - Jan C. Hardenbergh, VolumePro SW Eng. Mgr. Terarecon, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bebe0705 at colorado.edu Tue Jan 22 17:15:56 2019 From: bebe0705 at colorado.edu (BBerco) Date: Tue, 22 Jan 2019 15:15:56 -0700 (MST) Subject: [vtkusers] Regression in old build system using CMake 3.12? Message-ID: <1548195356973-0.post@n5.nabble.com> I have stumbled upon a weird behavior after upgrading vtk to 8.1.2 this morning via Homebrew. Basically, since this morning, adding VTK to a CMakeLists.txt without specifying the necessary components will cause a number of compilation errors to pop out (see error trace below). This syntax was fine until now in the "old" build system. I have been able to replicate the problem with a random example I pulled from Bill Lorensen's example website. Note that for both the CMakeLists.txt below, cmake will run just fine. It is only upon calling make that hell breaks loose. I've also noted that earlier versions of CMake (3.3 is the one I tested) seem to not be affected. - CMakeLists.txt, will compile with errors cmake_minimum_required(VERSION 3.12) project(BugDemo) find_package(VTK) include(${VTK_USE_FILE}) add_executable(LightActor LightActor.cxx ) target_link_libraries(LightActor PRIVATE ${VTK_LIBRARIES}) - CMakeLists.txt, will compile fine cmake_minimum_required(VERSION 3.12) project(BugDemo) find_package(VTK REQUIRED vtkCommonCore) include(${VTK_USE_FILE}) add_executable(LightActor LightActor.cxx ) target_link_libraries(LightActor PRIVATE ${VTK_LIBRARIES}) Any ideas? ps: here's the compiler error trace provided below Scanning dependencies of target main [ 50%] Building CXX object CMakeFiles/main.dir/main.cpp.o In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: In file included from /usr/local/include/armadillo:26: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace using ::signbit; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace using ::fpclassify; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'? using ::isfinite; ~~^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:749:12: note: 'finite' declared here extern int finite(double) ^ In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: In file included from /usr/local/include/armadillo:26: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace using ::isinf; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace using ::isnan; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace using ::isnormal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:319:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'? using ::isgreater; ^~ /Library/Developer/CommandLineTools/usr/include/c++/v1/functional:720:29: note: '::std::greater' declared here struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool> ^ In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: In file included from /usr/local/include/armadillo:26: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:320:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'? using ::isgreaterequal; ^~ /Library/Developer/CommandLineTools/usr/include/c++/v1/functional:749:29: note: '::std::greater_equal' declared here struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool> ^ In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: In file included from /usr/local/include/armadillo:26: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace using ::isless; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace using ::islessequal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace using ::islessgreater; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace using ::isunordered; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace using ::isunordered; ~~^ 13 errors generated. make[2]: *** [CMakeFiles/main.dir/main.cpp.o] Error 1 make[1]: *** [CMakeFiles/main.dir/all] Error 2 make: *** [all] Error 2 -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From david.gobbi at gmail.com Tue Jan 22 17:49:38 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 22 Jan 2019 15:49:38 -0700 Subject: [vtkusers] Regression in old build system using CMake 3.12? In-Reply-To: <1548195356973-0.post@n5.nabble.com> References: <1548195356973-0.post@n5.nabble.com> Message-ID: Hi Ben, You said that similar errors occurred for a "random example"... can you say which example it was, and give the error trace for that specific example? David On Tue, Jan 22, 2019 at 3:16 PM BBerco wrote: > I have stumbled upon a weird behavior after upgrading vtk to 8.1.2 this > morning via Homebrew. > > Basically, since this morning, adding VTK to a CMakeLists.txt without > specifying the necessary components will cause a number of compilation > errors to pop out (see error trace below). This syntax was fine until now > in > the "old" build system. > > I have been able to replicate the problem with a random example I pulled > from Bill Lorensen's example website. Note that for both the CMakeLists.txt > below, cmake will run just fine. It is only upon calling make that hell > breaks loose. > > I've also noted that earlier versions of CMake (3.3 is the one I tested) > seem to not be affected. > > - CMakeLists.txt, will compile with errors > cmake_minimum_required(VERSION 3.12) > project(BugDemo) > find_package(VTK) > include(${VTK_USE_FILE}) > add_executable(LightActor LightActor.cxx ) > target_link_libraries(LightActor PRIVATE ${VTK_LIBRARIES}) > > > - CMakeLists.txt, will compile fine > cmake_minimum_required(VERSION 3.12) > project(BugDemo) > find_package(VTK REQUIRED vtkCommonCore) > include(${VTK_USE_FILE}) > add_executable(LightActor LightActor.cxx ) > target_link_libraries(LightActor PRIVATE ${VTK_LIBRARIES}) > > Any ideas? > > ps: here's the compiler error trace provided below > > Scanning dependencies of target main > [ 50%] Building CXX object CMakeFiles/main.dir/main.cpp.o > In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: > In file included from /usr/local/include/armadillo:26: > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error: > no member named 'signbit' in the global namespace > using ::signbit; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:314:9: error: > no member named 'fpclassify' in the global namespace > using ::fpclassify; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: error: > no member named 'isfinite' in the global namespace; did you mean 'finite'? > using ::isfinite; > ~~^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:749:12: > note: 'finite' declared here > extern int finite(double) > ^ > In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: > In file included from /usr/local/include/armadillo:26: > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:316:9: error: > no member named 'isinf' in the global namespace > using ::isinf; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:317:9: error: > no member named 'isnan' in the global namespace > using ::isnan; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:318:9: error: > no member named 'isnormal' in the global namespace > using ::isnormal; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:319:7: error: > no member named 'isgreater' in the global namespace; did you mean > '::std::greater'? > using ::isgreater; > ^~ > /Library/Developer/CommandLineTools/usr/include/c++/v1/functional:720:29: > note: '::std::greater' declared here > struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool> > ^ > In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: > In file included from /usr/local/include/armadillo:26: > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:320:7: error: > no member named 'isgreaterequal' in the global namespace; did you mean > '::std::greater_equal'? > using ::isgreaterequal; > ^~ > /Library/Developer/CommandLineTools/usr/include/c++/v1/functional:749:29: > note: '::std::greater_equal' declared here > struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool> > ^ > In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: > In file included from /usr/local/include/armadillo:26: > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:321:9: error: > no member named 'isless' in the global namespace > using ::isless; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:322:9: error: > no member named 'islessequal' in the global namespace > using ::islessequal; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:323:9: error: > no member named 'islessgreater' in the global namespace > using ::islessgreater; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:324:9: error: > no member named 'isunordered' in the global namespace > using ::isunordered; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: > no member named 'isunordered' in the global namespace > using ::isunordered; > ~~^ > 13 errors generated. > make[2]: *** [CMakeFiles/main.dir/main.cpp.o] Error 1 > make[1]: *** [CMakeFiles/main.dir/all] Error 2 > make: *** [all] Error 2 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bebe0705 at colorado.edu Tue Jan 22 18:31:38 2019 From: bebe0705 at colorado.edu (BBerco) Date: Tue, 22 Jan 2019 16:31:38 -0700 (MST) Subject: [vtkusers] Regression in old build system using CMake 3.12? In-Reply-To: References: <1548195356973-0.post@n5.nabble.com> Message-ID: <1548199898109-0.post@n5.nabble.com> I'm sorry for the confusion. Actually, the problem appears to arise when vtk and the armadillo library are loaded together. I haven't tried more combinations of library to see if the problem only arises in this specific case. Anyways, here's an even more minimal example demonstrating the problem. The CMakeLists.txt shows two different ways to find VTK. The call that's relying on COMPONENTS works fine, but the non-specific one leads to the error trace pasted below. *CMakeLists.txt* cmake_minimum_required(VERSION 3.12) project(main CXX) # Find VTK Package. The non-specific call leads to +20 errors to be generated at compile time # find_package(VTK REQUIRED COMPONENTS vtkCommonCore) find_package(VTK REQUIRED) find_package(armadillo) include(${VTK_USE_FILE}) add_executable(main main.cpp) set(library_dependencies ${ARMADILLO_LIBRARIES} ${VTK_LIBRARIES}) target_link_libraries(main PUBLIC ${library_dependencies}) * main.cpp* #include int main(){ return 1; } *log.txt * In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: In file included from /usr/local/include/armadillo:26: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace using ::signbit; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace using ::fpclassify; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'? using ::isfinite; ~~^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:749:12: note: 'finite' declared here extern int finite(double) ^ In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: In file included from /usr/local/include/armadillo:26: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace using ::isinf; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace using ::isnan; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace using ::isnormal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:319:9: error: no member named 'isgreater' in the global namespace using ::isgreater; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:320:9: error: no member named 'isgreaterequal' in the global namespace using ::isgreaterequal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace using ::isless; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace using ::islessequal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace using ::islessgreater; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace using ::isunordered; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace using ::isunordered; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:551:28: error: expected a qualified name after 'typename' _LIBCPP_CONSTEXPR typename enable_if::value, bool>::type ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:551:37: error: expected ';' at end of declaration _LIBCPP_CONSTEXPR typename enable_if::value, bool>::type ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:551:37: error: expected unqualified-id /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563:39: error: use of undeclared identifier 'is_floating_point' _LIBCPP_CONSTEXPR typename enable_if::value, bool>::type ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563:57: error: '_A1' does not refer to a value _LIBCPP_CONSTEXPR typename enable_if::value, bool>::type ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:561:17: note: declared here template ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:563:63: error: definition or redeclaration of 'value' cannot name the global scope _LIBCPP_CONSTEXPR typename enable_if::value, bool>::type ~~^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [CMakeFiles/main.dir/main.cpp.o] Error 1 make[1]: *** [CMakeFiles/main.dir/all] Error 2 make: *** [all] Error 2 -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From cory.quammen at kitware.com Tue Jan 22 18:45:06 2019 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 22 Jan 2019 18:45:06 -0500 Subject: [vtkusers] Transition to Discourse - thoughts from lurker In-Reply-To: References: Message-ID: Thanks for your feedback, Jan. On Tue, Jan 22, 2019 at 1:28 PM Andras Lasso wrote: > > A soft transition worked quite nicely for both Slicer and ITK. For a while, questions sent to the mailing list were still answered there but a users were reminded that further questions should be posted to the forum. Then we stopped responding on the mailing list but asked people to post messages to discourse. Finally, we disabled posting to the list and set an auto-response message that explained that questions should be now posted on the forum. This transition was completed in a few months. We basically took the same approach for the ParaView mailing list transition to discourse.paraview.org and it worked nicely. > Why should they come here? > > What is the motivation for the switch? > > If this will make it easier to provide support, that?s a good reason. Thanks for the feedback. The welcome message is something I have overlooked. I have updated the welcome message to provide information about the forum's purpose. > A good transition strategy might be to reply to questions that are asked on the mailing list in Discourse, and then reply to the mailing list with the link. This seems reasonable at first glance, but I think the process is too complex in the sense that most responders won't opt to do it. Responding to the question and including a reminder of the transition to Discourse is something some of the more active members will be more likely to do as the transition process goes on. By the way, there is a place on the new forum for just this kind of feedback :-) https://discourse.vtk.org/c/site-feedback > Another transition strategy would be to post the Topics Titles active for the past week to get people to go to Discourse if they are interested in that topic. That's a good idea. I'll plan to do that the next couple Fridays at least. - Cory > > > Back to lurking? > > YON ? Jan C. Hardenbergh, VolumePro SW Eng. Mgr. Terarecon, 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: > https://vtk.org/mailman/listinfo/vtkusers -- Cory Quammen Staff R&D Engineer Kitware, Inc. From bebe0705 at colorado.edu Wed Jan 23 00:24:12 2019 From: bebe0705 at colorado.edu (BBerco) Date: Tue, 22 Jan 2019 22:24:12 -0700 (MST) Subject: [vtkusers] Regression in old build system using CMake 3.12? In-Reply-To: <1548199898109-0.post@n5.nabble.com> References: <1548195356973-0.post@n5.nabble.com> <1548199898109-0.post@n5.nabble.com> Message-ID: <1548221052808-0.post@n5.nabble.com> I've started playing around with the component inclusion and noticed that the above error is reproduced even with COMPONENTS, IF vtkIOImage is included. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From suryadwar at gmail.com Wed Jan 23 01:11:47 2019 From: suryadwar at gmail.com (suryadwar) Date: Tue, 22 Jan 2019 23:11:47 -0700 (MST) Subject: [vtkusers] Python and VTK with multiprocessing or joblib libraries In-Reply-To: References: Message-ID: <1548223907707-0.post@n5.nabble.com> I am also facing a similar problem with vtkOBBTree. Is there any solution now to use multiprocessing library with vtkOBBTree? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From bill.lorensen at gmail.com Wed Jan 23 03:37:28 2019 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 23 Jan 2019 00:37:28 -0800 Subject: [vtkusers] Regression in old build system using CMake 3.12? In-Reply-To: <1548195356973-0.post@n5.nabble.com> References: <1548195356973-0.post@n5.nabble.com> Message-ID: I recently updated the. example make to handle the old and new module system. Try the new version here. https://lorensen.github.io/VTKExamples/site/Cxx/Lighting/SpotLights/ On Tue, Jan 22, 2019, 2:16 PM BBerco I have stumbled upon a weird behavior after upgrading vtk to 8.1.2 this > morning via Homebrew. > > Basically, since this morning, adding VTK to a CMakeLists.txt without > specifying the necessary components will cause a number of compilation > errors to pop out (see error trace below). This syntax was fine until now > in > the "old" build system. > > I have been able to replicate the problem with a random example I pulled > from Bill Lorensen's example website. Note that for both the CMakeLists.txt > below, cmake will run just fine. It is only upon calling make that hell > breaks loose. > > I've also noted that earlier versions of CMake (3.3 is the one I tested) > seem to not be affected. > > - CMakeLists.txt, will compile with errors > cmake_minimum_required(VERSION 3.12) > project(BugDemo) > find_package(VTK) > include(${VTK_USE_FILE}) > add_executable(LightActor LightActor.cxx ) > target_link_libraries(LightActor PRIVATE ${VTK_LIBRARIES}) > > > - CMakeLists.txt, will compile fine > cmake_minimum_required(VERSION 3.12) > project(BugDemo) > find_package(VTK REQUIRED vtkCommonCore) > include(${VTK_USE_FILE}) > add_executable(LightActor LightActor.cxx ) > target_link_libraries(LightActor PRIVATE ${VTK_LIBRARIES}) > > Any ideas? > > ps: here's the compiler error trace provided below > > Scanning dependencies of target main > [ 50%] Building CXX object CMakeFiles/main.dir/main.cpp.o > In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: > In file included from /usr/local/include/armadillo:26: > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error: > no member named 'signbit' in the global namespace > using ::signbit; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:314:9: error: > no member named 'fpclassify' in the global namespace > using ::fpclassify; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: error: > no member named 'isfinite' in the global namespace; did you mean 'finite'? > using ::isfinite; > ~~^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:749:12: > note: 'finite' declared here > extern int finite(double) > ^ > In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: > In file included from /usr/local/include/armadillo:26: > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:316:9: error: > no member named 'isinf' in the global namespace > using ::isinf; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:317:9: error: > no member named 'isnan' in the global namespace > using ::isnan; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:318:9: error: > no member named 'isnormal' in the global namespace > using ::isnormal; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:319:7: error: > no member named 'isgreater' in the global namespace; did you mean > '::std::greater'? > using ::isgreater; > ^~ > /Library/Developer/CommandLineTools/usr/include/c++/v1/functional:720:29: > note: '::std::greater' declared here > struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool> > ^ > In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: > In file included from /usr/local/include/armadillo:26: > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:320:7: error: > no member named 'isgreaterequal' in the global namespace; did you mean > '::std::greater_equal'? > using ::isgreaterequal; > ^~ > /Library/Developer/CommandLineTools/usr/include/c++/v1/functional:749:29: > note: '::std::greater_equal' declared here > struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool> > ^ > In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: > In file included from /usr/local/include/armadillo:26: > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:321:9: error: > no member named 'isless' in the global namespace > using ::isless; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:322:9: error: > no member named 'islessequal' in the global namespace > using ::islessequal; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:323:9: error: > no member named 'islessgreater' in the global namespace > using ::islessgreater; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:324:9: error: > no member named 'isunordered' in the global namespace > using ::isunordered; > ~~^ > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: > no member named 'isunordered' in the global namespace > using ::isunordered; > ~~^ > 13 errors generated. > make[2]: *** [CMakeFiles/main.dir/main.cpp.o] Error 1 > make[1]: *** [CMakeFiles/main.dir/all] Error 2 > make: *** [all] Error 2 > > > > > > > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Wed Jan 23 08:47:55 2019 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Wed, 23 Jan 2019 08:47:55 -0500 Subject: [vtkusers] Regression in old build system using CMake 3.12? In-Reply-To: <1548199898109-0.post@n5.nabble.com> References: <1548195356973-0.post@n5.nabble.com> <1548199898109-0.post@n5.nabble.com> Message-ID: <20190123134755.GA30183@megas.kitware.com> On Tue, Jan 22, 2019 at 16:31:38 -0700, BBerco wrote: > I'm sorry for the confusion. Actually, the problem appears to arise when vtk > and the armadillo library are loaded together. I haven't tried more > combinations of library to see if the problem only arises in this specific > case. > > Anyways, here's an even more minimal example demonstrating the problem. The > CMakeLists.txt shows two different ways to find VTK. The call that's relying > on COMPONENTS works fine, but the non-specific one leads to the error trace > pasted below. > > *CMakeLists.txt* > cmake_minimum_required(VERSION 3.12) > project(main CXX) > # Find VTK Package. The non-specific call leads to +20 errors to be > generated at compile time > # find_package(VTK REQUIRED COMPONENTS vtkCommonCore) > find_package(VTK REQUIRED) > find_package(armadillo) > include(${VTK_USE_FILE}) > add_executable(main main.cpp) > set(library_dependencies ${ARMADILLO_LIBRARIES} ${VTK_LIBRARIES}) > target_link_libraries(main PUBLIC ${library_dependencies}) > > * > main.cpp* > #include > int main(){ > return 1; > } > > *log.txt > * > In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3: > In file included from /usr/local/include/armadillo:26: > /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error: > no member named 'signbit' in the global namespace > using ::signbit; This is usually due to the wrong `math.h` being included. If you look at command line (visible with `make VERBOSE=1` or `ninja -v`) for this compilation rule and replace `-o path/to/foo.o` with `-E -o preproc.txt`, the full path to the `math.h` should be output in `preproc.txt`. Ideally, it should come from the SDK beside the `cmath` header, but I suspect it is coming from `/usr/include` or somewhere like that. Basically, something is adding `-isystem /usr/include` or `-I/usr/include` and the system headers there are conflicting with the SDK's headers. --Ben From david.gobbi at gmail.com Wed Jan 23 09:03:37 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 23 Jan 2019 07:03:37 -0700 Subject: [vtkusers] Regression in old build system using CMake 3.12? In-Reply-To: <1548199898109-0.post@n5.nabble.com> References: <1548195356973-0.post@n5.nabble.com> <1548199898109-0.post@n5.nabble.com> Message-ID: On Tue, Jan 22, 2019 at 4:32 PM BBerco wrote: > I'm sorry for the confusion. Actually, the problem appears to arise when > vtk > and the armadillo library are loaded together. I haven't tried more > combinations of library to see if the problem only arises in this specific > case. > > Anyways, here's an even more minimal example demonstrating the problem. The > CMakeLists.txt shows two different ways to find VTK. The call that's > relying > on COMPONENTS works fine, but the non-specific one leads to the error trace > pasted below. > I tried the example with VTK 8.2, cmake 3.13, and armadillo-9.200.7. For that combination, the example builds without errors. When I get to work, I can try again with VTK 8.1. As for COMPONENTS in find_package, the components chosen may change the compile definitions and include directories. For newer versions of cmake, VTK tries to use newer features of cmake for attaching compile definitions and include dirs to the library dependencies that require them. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From bebe0705 at colorado.edu Wed Jan 23 09:35:55 2019 From: bebe0705 at colorado.edu (BBerco) Date: Wed, 23 Jan 2019 07:35:55 -0700 (MST) Subject: [vtkusers] Regression in old build system using CMake 3.12? In-Reply-To: References: <1548195356973-0.post@n5.nabble.com> <1548199898109-0.post@n5.nabble.com> Message-ID: <1548254155384-0.post@n5.nabble.com> Hello David, I think that the culprit is vtkIOImage, since this inclusion of this specific module leads to the errors at compile time. Did its definitions & includes change in 8.1.2? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From david.gobbi at gmail.com Wed Jan 23 13:03:35 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 23 Jan 2019 11:03:35 -0700 Subject: [vtkusers] Regression in old build system using CMake 3.12? In-Reply-To: <1548254155384-0.post@n5.nabble.com> References: <1548195356973-0.post@n5.nabble.com> <1548199898109-0.post@n5.nabble.com> <1548254155384-0.post@n5.nabble.com> Message-ID: On Wed, Jan 23, 2019 at 7:36 AM BBerco wrote: > Hello David, > > I think that the culprit is vtkIOImage, since this inclusion of this > specific module leads to the errors at compile time. Did its definitions & > includes change in 8.1.2? > No, or at least, none were added to its CMakeLists.txt since 7.1 or even since 6.3. I just did a build of your example with VTK 8.1.2, armadillo 9.200.7, cmake 3.13.2 and still didn't see any errors. I'm using the VTK and armadillo that I built from source, though, rather than using homebrew. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Jan 23 13:46:08 2019 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 23 Jan 2019 19:46:08 +0100 Subject: [vtkusers] Transition to Discourse - thoughts from lurker In-Reply-To: References: Message-ID: Meanwhile I see that discussion is still active on the dev mailing list. Shouldn't the VTK developers dogfood and use the Development category on Discourse now? :) Sorry, mostly joking. I'm one of the ones who are sad to see the mailing lists go, and the greater transition to Discourse, as my life is sort of built around my inbox :p I'll grudgingly accept defeat and register of course. Elvis Den tis 22 jan. 2019 kl 19:28 skrev Andras Lasso : > > A soft transition worked quite nicely for both Slicer and ITK. For a while, questions sent to the mailing list were still answered there but a users were reminded that further questions should be posted to the forum. Then we stopped responding on the mailing list but asked people to post messages to discourse. Finally, we disabled posting to the list and set an auto-response message that explained that questions should be now posted on the forum. This transition was completed in a few months. > > > > It took a couple of months for google to start indexing the forum with high frequency and about a year to reach the same number of registered members as on the old mailing list. > > > > Andras > > > > From: vtkusers On Behalf Of Jan Hardenbergh > Sent: Tuesday, January 22, 2019 12:48 PM > To: vtkusers at vtk.org > Subject: [vtkusers] Transition to Discourse - thoughts from lurker > > > > There is a question here that has not really been addressed in the Welcome To Discourse page: > > https://discourse.vtk.org/t/welcome-to-discourse/8 > > > > Why should they come here? > > > > What is the motivation for the switch? > > > > If this will make it easier to provide support, that?s a good reason. A good transition strategy might be to reply to questions that are asked on the mailing list in Discourse, and then reply to the mailing list with the link. > > > > Another transition strategy would be to post the Topics Titles active for the past week to get people to go to Discourse if they are interested in that topic. > > > > Back to lurking? > > YON ? Jan C. Hardenbergh, VolumePro SW Eng. Mgr. Terarecon, 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: > https://vtk.org/mailman/listinfo/vtkusers From cory.quammen at kitware.com Wed Jan 23 13:50:36 2019 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 23 Jan 2019 13:50:36 -0500 Subject: [vtkusers] Transition to Discourse - thoughts from lurker In-Reply-To: References: Message-ID: On Wed, Jan 23, 2019 at 1:46 PM Elvis Stansvik wrote: > > Meanwhile I see that discussion is still active on the dev mailing > list. Shouldn't the VTK developers dogfood and use the Development > category on Discourse now? :) Yep, that's the idea for new developer topics. I think it makes sense for existing discussions to be wrapped up on the mailing list for archival purposes. > Sorry, mostly joking. I'm one of the ones who are sad to see the > mailing lists go, and the greater transition to Discourse, as my life > is sort of built around my inbox :p I'll grudgingly accept defeat and > register of course. You can still use email! Albeit with some of the caveats mentioned in the discussion leading up to this transition. - Cory > > Elvis > > Den tis 22 jan. 2019 kl 19:28 skrev Andras Lasso : > > > > A soft transition worked quite nicely for both Slicer and ITK. For a while, questions sent to the mailing list were still answered there but a users were reminded that further questions should be posted to the forum. Then we stopped responding on the mailing list but asked people to post messages to discourse. Finally, we disabled posting to the list and set an auto-response message that explained that questions should be now posted on the forum. This transition was completed in a few months. > > > > > > > > It took a couple of months for google to start indexing the forum with high frequency and about a year to reach the same number of registered members as on the old mailing list. > > > > > > > > Andras > > > > > > > > From: vtkusers On Behalf Of Jan Hardenbergh > > Sent: Tuesday, January 22, 2019 12:48 PM > > To: vtkusers at vtk.org > > Subject: [vtkusers] Transition to Discourse - thoughts from lurker > > > > > > > > There is a question here that has not really been addressed in the Welcome To Discourse page: > > > > https://discourse.vtk.org/t/welcome-to-discourse/8 > > > > > > > > Why should they come here? > > > > > > > > What is the motivation for the switch? > > > > > > > > If this will make it easier to provide support, that?s a good reason. A good transition strategy might be to reply to questions that are asked on the mailing list in Discourse, and then reply to the mailing list with the link. > > > > > > > > Another transition strategy would be to post the Topics Titles active for the past week to get people to go to Discourse if they are interested in that topic. > > > > > > > > Back to lurking? > > > > YON ? Jan C. Hardenbergh, VolumePro SW Eng. Mgr. Terarecon, 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: > > https://vtk.org/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: > https://vtk.org/mailman/listinfo/vtkusers -- Cory Quammen Staff R&D Engineer Kitware, Inc. From elvis.stansvik at orexplore.com Wed Jan 23 14:05:17 2019 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 23 Jan 2019 20:05:17 +0100 Subject: [vtkusers] Transition to Discourse - thoughts from lurker In-Reply-To: References: Message-ID: Den ons 23 jan. 2019 kl 19:50 skrev Cory Quammen : > > On Wed, Jan 23, 2019 at 1:46 PM Elvis Stansvik > wrote: > > > > Meanwhile I see that discussion is still active on the dev mailing > > list. Shouldn't the VTK developers dogfood and use the Development > > category on Discourse now? :) > > Yep, that's the idea for new developer topics. I think it makes sense > for existing discussions to be wrapped up on the mailing list for > archival purposes. > > > Sorry, mostly joking. I'm one of the ones who are sad to see the > > mailing lists go, and the greater transition to Discourse, as my life > > is sort of built around my inbox :p I'll grudgingly accept defeat and > > register of course. > > You can still use email! Albeit with some of the caveats mentioned in > the discussion leading up to this transition. Yep, threw in some thoughts in that that thread (I think). I participate some in other communities that have transitioned to Discourse (e.g. HDF5), and it's a pain.. I can't collect all my correspondence in one place anymore, marking/unmarking of stuff as read etc., the mails from Discourse has a lot of cruft (buttons/links) and the threading/replying inline doesn't work well. Also, if I reply to a thread via the web UI, it'll show up as unread in my inbox (naturally), which is annoying because I use that to keep an eye on topics I follow. Also can't catch up on stuff while offline, which occasionally do happen. Wait, now I started a rambling when I promised myself not to do it :) It's a community decision and I accept that. Perhaps the mail integration will improve. Elvis > > - Cory > > > > > Elvis > > > > Den tis 22 jan. 2019 kl 19:28 skrev Andras Lasso : > > > > > > A soft transition worked quite nicely for both Slicer and ITK. For a while, questions sent to the mailing list were still answered there but a users were reminded that further questions should be posted to the forum. Then we stopped responding on the mailing list but asked people to post messages to discourse. Finally, we disabled posting to the list and set an auto-response message that explained that questions should be now posted on the forum. This transition was completed in a few months. > > > > > > > > > > > > It took a couple of months for google to start indexing the forum with high frequency and about a year to reach the same number of registered members as on the old mailing list. > > > > > > > > > > > > Andras > > > > > > > > > > > > From: vtkusers On Behalf Of Jan Hardenbergh > > > Sent: Tuesday, January 22, 2019 12:48 PM > > > To: vtkusers at vtk.org > > > Subject: [vtkusers] Transition to Discourse - thoughts from lurker > > > > > > > > > > > > There is a question here that has not really been addressed in the Welcome To Discourse page: > > > > > > https://discourse.vtk.org/t/welcome-to-discourse/8 > > > > > > > > > > > > Why should they come here? > > > > > > > > > > > > What is the motivation for the switch? > > > > > > > > > > > > If this will make it easier to provide support, that?s a good reason. A good transition strategy might be to reply to questions that are asked on the mailing list in Discourse, and then reply to the mailing list with the link. > > > > > > > > > > > > Another transition strategy would be to post the Topics Titles active for the past week to get people to go to Discourse if they are interested in that topic. > > > > > > > > > > > > Back to lurking? > > > > > > YON ? Jan C. Hardenbergh, VolumePro SW Eng. Mgr. Terarecon, 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: > > > https://vtk.org/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: > > https://vtk.org/mailman/listinfo/vtkusers > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. From dan.lipsa at kitware.com Wed Jan 23 14:17:18 2019 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Wed, 23 Jan 2019 14:17:18 -0500 Subject: [vtkusers] Transition to Discourse - thoughts from lurker In-Reply-To: References: Message-ID: Elvis, We transition to Discourse for ParaView and I still receive and reply to emails the same way as for mailing lists. https://discourse.paraview.org/t/using-discourse-as-a-mailing-list/64 On Wed, Jan 23, 2019 at 2:05 PM Elvis Stansvik wrote: > Den ons 23 jan. 2019 kl 19:50 skrev Cory Quammen >: > > > > On Wed, Jan 23, 2019 at 1:46 PM Elvis Stansvik > > wrote: > > > > > > Meanwhile I see that discussion is still active on the dev mailing > > > list. Shouldn't the VTK developers dogfood and use the Development > > > category on Discourse now? :) > > > > Yep, that's the idea for new developer topics. I think it makes sense > > for existing discussions to be wrapped up on the mailing list for > > archival purposes. > > > > > Sorry, mostly joking. I'm one of the ones who are sad to see the > > > mailing lists go, and the greater transition to Discourse, as my life > > > is sort of built around my inbox :p I'll grudgingly accept defeat and > > > register of course. > > > > You can still use email! Albeit with some of the caveats mentioned in > > the discussion leading up to this transition. > > Yep, threw in some thoughts in that that thread (I think). I > participate some in other communities that have transitioned to > Discourse (e.g. HDF5), and it's a pain.. I can't collect all my > correspondence in one place anymore, marking/unmarking of stuff as > read etc., the mails from Discourse has a lot of cruft (buttons/links) > and the threading/replying inline doesn't work well. Also, if I reply > to a thread via the web UI, it'll show up as unread in my inbox > (naturally), which is annoying because I use that to keep an eye on > topics I follow. Also can't catch up on stuff while offline, which > occasionally do happen. > > Wait, now I started a rambling when I promised myself not to do it :) > It's a community decision and I accept that. Perhaps the mail > integration will improve. > > Elvis > > > > > - Cory > > > > > > > > Elvis > > > > > > Den tis 22 jan. 2019 kl 19:28 skrev Andras Lasso : > > > > > > > > A soft transition worked quite nicely for both Slicer and ITK. For a > while, questions sent to the mailing list were still answered there but a > users were reminded that further questions should be posted to the forum. > Then we stopped responding on the mailing list but asked people to post > messages to discourse. Finally, we disabled posting to the list and set an > auto-response message that explained that questions should be now posted on > the forum. This transition was completed in a few months. > > > > > > > > > > > > > > > > It took a couple of months for google to start indexing the forum > with high frequency and about a year to reach the same number of registered > members as on the old mailing list. > > > > > > > > > > > > > > > > Andras > > > > > > > > > > > > > > > > From: vtkusers On Behalf Of Jan > Hardenbergh > > > > Sent: Tuesday, January 22, 2019 12:48 PM > > > > To: vtkusers at vtk.org > > > > Subject: [vtkusers] Transition to Discourse - thoughts from lurker > > > > > > > > > > > > > > > > There is a question here that has not really been addressed in the > Welcome To Discourse page: > > > > > > > > https://discourse.vtk.org/t/welcome-to-discourse/8 > > > > > > > > > > > > > > > > Why should they come here? > > > > > > > > > > > > > > > > What is the motivation for the switch? > > > > > > > > > > > > > > > > If this will make it easier to provide support, that?s a good > reason. A good transition strategy might be to reply to questions that are > asked on the mailing list in Discourse, and then reply to the mailing list > with the link. > > > > > > > > > > > > > > > > Another transition strategy would be to post the Topics Titles > active for the past week to get people to go to Discourse if they are > interested in that topic. > > > > > > > > > > > > > > > > Back to lurking? > > > > > > > > YON ? Jan C. Hardenbergh, VolumePro SW Eng. Mgr. Terarecon, 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: > > > > https://vtk.org/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: > > > https://vtk.org/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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Wed Jan 23 14:24:42 2019 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Wed, 23 Jan 2019 14:24:42 -0500 Subject: [vtkusers] Transition to Discourse - thoughts from lurker In-Reply-To: References: Message-ID: On Wed, Jan 23, 2019 at 2:05 PM Elvis Stansvik wrote: > Den ons 23 jan. 2019 kl 19:50 skrev Cory Quammen >: > > > > On Wed, Jan 23, 2019 at 1:46 PM Elvis Stansvik > > wrote: > > > > > > Meanwhile I see that discussion is still active on the dev mailing > > > list. Shouldn't the VTK developers dogfood and use the Development > > > category on Discourse now? :) > > > > Yep, that's the idea for new developer topics. I think it makes sense > > for existing discussions to be wrapped up on the mailing list for > > archival purposes. > > > > > Sorry, mostly joking. I'm one of the ones who are sad to see the > > > mailing lists go, and the greater transition to Discourse, as my life > > > is sort of built around my inbox :p I'll grudgingly accept defeat and > > > register of course. > > > > You can still use email! Albeit with some of the caveats mentioned in > > the discussion leading up to this transition. > > Yep, threw in some thoughts in that that thread (I think). I > participate some in other communities that have transitioned to > Discourse (e.g. HDF5), and it's a pain.. I can't collect all my > correspondence in one place anymore, marking/unmarking of stuff as > read etc., the mails from Discourse has a lot of cruft (buttons/links) > and the threading/replying inline doesn't work well. Also, if I reply > to a thread via the web UI, it'll show up as unread in my inbox > (naturally), which is annoying because I use that to keep an eye on > topics I follow. Also can't catch up on stuff while offline, which > occasionally do happen. > > Wait, now I started a rambling when I promised myself not to do it :) > It's a community decision and I accept that. Perhaps the mail > integration will improve. > I am trying to finish up some writing, and so procrastination made me check the lists. I love and hate Discourse, there, I said it! The interface is nice, and I think you can express more, fix typos, have richer interactions, and provide a better thing to be indexed/viewed by others. Discourse is still a pain for people that participate in many communities, email is hard to beat for using the client you prefer, threading support, having layers of communities you work with. I have a chemistry folder with chemistry lists I am on within, a Kitware folder with Kitware related communities, general lists folder for all the others. Each of those subfolders is starting to become their own Discourse instance, and it makes it harder for me to keep track of all of them, and view them all from my mail client, replying with ease. I get the impression that mailing lists are going the way of IRC :-) I am trying to adapt my habits, but often miss notifications on threads I am taking part in, and don't reply for weeks or more. I suspect I need to develop new habits, spending a little time checking in on Discourse instances I interact with every now and then, possibly tweaking the notifications, and how I filter them in my email folder. I genuinely prefer the added richness in discussion threads, I haven't tried replying to Discourse stuff through email. Attending open source conferences/workshops Discourse is improving engagement with newer community members. I think on balance it is a great step forward, but when something works well for you (and me) it can feel like a waste of time changing it up. It does us all good to learn new things, tangentially it has been fun to watch the evolution of static web site, to server side includes, to Dreamweaver et al, to PHP/MySQL content managers, to template-based static web sites. I am a huge fan of Hugo, you can use GitHub for review, Travis to deploy, ... I really should get back to writing ;-) Sad to see the demise of the lists, and need to spend a little time retooling my habits around communication with communities. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Wed Jan 23 14:27:03 2019 From: sean at rogue-research.com (Sean McBride) Date: Wed, 23 Jan 2019 14:27:03 -0500 Subject: [vtkusers] Transition to Discourse - thoughts from lurker In-Reply-To: References: Message-ID: <20190123192703.240096085@mail.rogue-research.com> On Wed, 23 Jan 2019 20:05:17 +0100, Elvis Stansvik said: >> You can still use email! Albeit with some of the caveats mentioned in >> the discussion leading up to this transition. > >Yep, threw in some thoughts in that that thread (I think). I >participate some in other communities that have transitioned to >Discourse (e.g. HDF5), and it's a pain. Yup, it's quite a lot worse. :( Alas, I expect my participation will decrease because of it. Sean From lasso at queensu.ca Wed Jan 23 14:42:30 2019 From: lasso at queensu.ca (Andras Lasso) Date: Wed, 23 Jan 2019 19:42:30 +0000 Subject: [vtkusers] [vtk-developers] Transition to Discourse - thoughts from lurker In-Reply-To: <20190123192703.240096085@mail.rogue-research.com> References: <20190123192703.240096085@mail.rogue-research.com> Message-ID: > the mails from Discourse has a lot of cruft (buttons/links) The email template is fully configurable. Post your suggestions here: https://discourse.vtk.org/c/site-feedback > I expect my participation will decrease because of it. My experience is just the opposite. By setting up notifications properly, I only get emails about categories, topics, and keywords that I'm interested in, so I can follow activities of more communities. Andras -----Original Message----- From: vtk-developers On Behalf Of Sean McBride Sent: Wednesday, January 23, 2019 2:27 PM To: Elvis Stansvik ; Cory Quammen Cc: VTK Developers ; vtkusers at vtk.org; Jan Hardenbergh Subject: Re: [vtk-developers] [vtkusers] Transition to Discourse - thoughts from lurker On Wed, 23 Jan 2019 20:05:17 +0100, Elvis Stansvik said: >> You can still use email! Albeit with some of the caveats mentioned in >> the discussion leading up to this transition. > >Yep, threw in some thoughts in that that thread (I think). I >participate some in other communities that have transitioned to >Discourse (e.g. HDF5), and it's a pain. Yup, it's quite a lot worse. :( Alas, I expect my participation will decrease because of it. Sean _______________________________________________ Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C549da3416ccb44ea4e3e08d68168c516%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636838684322414316&sdata=Kk8du8Cl39%2BGubUpTrXB3LBnlPx%2FtlbgATXyk4U84Wg%3D&reserved=0 Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C549da3416ccb44ea4e3e08d68168c516%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636838684322414316&sdata=koBd7KQC2j8eXxwntmwO0pAjm%2FIuYngjJHb6rzI1XJQ%3D&reserved=0 Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtk-developers&data=02%7C01%7Classo%40queensu.ca%7C549da3416ccb44ea4e3e08d68168c516%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636838684322414316&sdata=vpPnvKyh90yr5UAO9vp%2FGY81eXuQCHfb8w0LnJ78rBk%3D&reserved=0 Follow this link to subscribe/unsubscribe: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtk-developers&data=02%7C01%7Classo%40queensu.ca%7C549da3416ccb44ea4e3e08d68168c516%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636838684322414316&sdata=FzonF%2FzS%2Bkl8ihwKcHnsKCfSeGpVw2GwuMB%2FvsDUoLM%3D&reserved=0 From bill.lorensen at gmail.com Wed Jan 23 14:49:46 2019 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 23 Jan 2019 11:49:46 -0800 Subject: [vtkusers] Transition to Discourse - thoughts from lurker In-Reply-To: References: Message-ID: I'm sorry but I just use the email on discourse. Much easier to respond. I do the same on slicer. On Wed, Jan 23, 2019, 10:46 AM Elvis Stansvik Meanwhile I see that discussion is still active on the dev mailing > list. Shouldn't the VTK developers dogfood and use the Development > category on Discourse now? :) > > Sorry, mostly joking. I'm one of the ones who are sad to see the > mailing lists go, and the greater transition to Discourse, as my life > is sort of built around my inbox :p I'll grudgingly accept defeat and > register of course. > > Elvis > > Den tis 22 jan. 2019 kl 19:28 skrev Andras Lasso : > > > > A soft transition worked quite nicely for both Slicer and ITK. For a > while, questions sent to the mailing list were still answered there but a > users were reminded that further questions should be posted to the forum. > Then we stopped responding on the mailing list but asked people to post > messages to discourse. Finally, we disabled posting to the list and set an > auto-response message that explained that questions should be now posted on > the forum. This transition was completed in a few months. > > > > > > > > It took a couple of months for google to start indexing the forum with > high frequency and about a year to reach the same number of registered > members as on the old mailing list. > > > > > > > > Andras > > > > > > > > From: vtkusers On Behalf Of Jan Hardenbergh > > Sent: Tuesday, January 22, 2019 12:48 PM > > To: vtkusers at vtk.org > > Subject: [vtkusers] Transition to Discourse - thoughts from lurker > > > > > > > > There is a question here that has not really been addressed in the > Welcome To Discourse page: > > > > https://discourse.vtk.org/t/welcome-to-discourse/8 > > > > > > > > Why should they come here? > > > > > > > > What is the motivation for the switch? > > > > > > > > If this will make it easier to provide support, that?s a good reason. A > good transition strategy might be to reply to questions that are asked on > the mailing list in Discourse, and then reply to the mailing list with the > link. > > > > > > > > Another transition strategy would be to post the Topics Titles active > for the past week to get people to go to Discourse if they are interested > in that topic. > > > > > > > > Back to lurking? > > > > YON ? Jan C. Hardenbergh, VolumePro SW Eng. Mgr. Terarecon, 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: > > https://vtk.org/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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Wed Jan 23 14:50:26 2019 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 23 Jan 2019 11:50:26 -0800 Subject: [vtkusers] Transition to Discourse - thoughts from lurker In-Reply-To: References: Message-ID: I agree. On Wed, Jan 23, 2019, 11:05 AM Elvis Stansvik Den ons 23 jan. 2019 kl 19:50 skrev Cory Quammen >: > > > > On Wed, Jan 23, 2019 at 1:46 PM Elvis Stansvik > > wrote: > > > > > > Meanwhile I see that discussion is still active on the dev mailing > > > list. Shouldn't the VTK developers dogfood and use the Development > > > category on Discourse now? :) > > > > Yep, that's the idea for new developer topics. I think it makes sense > > for existing discussions to be wrapped up on the mailing list for > > archival purposes. > > > > > Sorry, mostly joking. I'm one of the ones who are sad to see the > > > mailing lists go, and the greater transition to Discourse, as my life > > > is sort of built around my inbox :p I'll grudgingly accept defeat and > > > register of course. > > > > You can still use email! Albeit with some of the caveats mentioned in > > the discussion leading up to this transition. > > Yep, threw in some thoughts in that that thread (I think). I > participate some in other communities that have transitioned to > Discourse (e.g. HDF5), and it's a pain.. I can't collect all my > correspondence in one place anymore, marking/unmarking of stuff as > read etc., the mails from Discourse has a lot of cruft (buttons/links) > and the threading/replying inline doesn't work well. Also, if I reply > to a thread via the web UI, it'll show up as unread in my inbox > (naturally), which is annoying because I use that to keep an eye on > topics I follow. Also can't catch up on stuff while offline, which > occasionally do happen. > > Wait, now I started a rambling when I promised myself not to do it :) > It's a community decision and I accept that. Perhaps the mail > integration will improve. > > Elvis > > > > > - Cory > > > > > > > > Elvis > > > > > > Den tis 22 jan. 2019 kl 19:28 skrev Andras Lasso : > > > > > > > > A soft transition worked quite nicely for both Slicer and ITK. For a > while, questions sent to the mailing list were still answered there but a > users were reminded that further questions should be posted to the forum. > Then we stopped responding on the mailing list but asked people to post > messages to discourse. Finally, we disabled posting to the list and set an > auto-response message that explained that questions should be now posted on > the forum. This transition was completed in a few months. > > > > > > > > > > > > > > > > It took a couple of months for google to start indexing the forum > with high frequency and about a year to reach the same number of registered > members as on the old mailing list. > > > > > > > > > > > > > > > > Andras > > > > > > > > > > > > > > > > From: vtkusers On Behalf Of Jan > Hardenbergh > > > > Sent: Tuesday, January 22, 2019 12:48 PM > > > > To: vtkusers at vtk.org > > > > Subject: [vtkusers] Transition to Discourse - thoughts from lurker > > > > > > > > > > > > > > > > There is a question here that has not really been addressed in the > Welcome To Discourse page: > > > > > > > > https://discourse.vtk.org/t/welcome-to-discourse/8 > > > > > > > > > > > > > > > > Why should they come here? > > > > > > > > > > > > > > > > What is the motivation for the switch? > > > > > > > > > > > > > > > > If this will make it easier to provide support, that?s a good > reason. A good transition strategy might be to reply to questions that are > asked on the mailing list in Discourse, and then reply to the mailing list > with the link. > > > > > > > > > > > > > > > > Another transition strategy would be to post the Topics Titles > active for the past week to get people to go to Discourse if they are > interested in that topic. > > > > > > > > > > > > > > > > Back to lurking? > > > > > > > > YON ? Jan C. Hardenbergh, VolumePro SW Eng. Mgr. Terarecon, 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: > > > > https://vtk.org/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: > > > https://vtk.org/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: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Wed Jan 23 14:52:26 2019 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 23 Jan 2019 11:52:26 -0800 Subject: [vtkusers] [vtk-developers] Transition to Discourse - thoughts from lurker In-Reply-To: <20190123192703.240096085@mail.rogue-research.com> References: <20190123192703.240096085@mail.rogue-research.com> Message-ID: Sean, Email works for me vis discourse. Please don't reduce your participation. We need you. Bill On Wed, Jan 23, 2019, 11:27 AM Sean McBride On Wed, 23 Jan 2019 20:05:17 +0100, Elvis Stansvik said: > > >> You can still use email! Albeit with some of the caveats mentioned in > >> the discussion leading up to this transition. > > > >Yep, threw in some thoughts in that that thread (I think). I > >participate some in other communities that have transitioned to > >Discourse (e.g. HDF5), and it's a pain. > > Yup, it's quite a lot worse. :( Alas, I expect my participation will > decrease because of it. > > Sean > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Jan 23 15:15:43 2019 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 23 Jan 2019 21:15:43 +0100 Subject: [vtkusers] Transition to Discourse - thoughts from lurker In-Reply-To: References: Message-ID: Den ons 23 jan. 2019 kl 20:24 skrev Marcus D. Hanwell : > > On Wed, Jan 23, 2019 at 2:05 PM Elvis Stansvik wrote: >> >> Den ons 23 jan. 2019 kl 19:50 skrev Cory Quammen : >> > >> > On Wed, Jan 23, 2019 at 1:46 PM Elvis Stansvik >> > wrote: >> > > >> > > Meanwhile I see that discussion is still active on the dev mailing >> > > list. Shouldn't the VTK developers dogfood and use the Development >> > > category on Discourse now? :) >> > >> > Yep, that's the idea for new developer topics. I think it makes sense >> > for existing discussions to be wrapped up on the mailing list for >> > archival purposes. >> > >> > > Sorry, mostly joking. I'm one of the ones who are sad to see the >> > > mailing lists go, and the greater transition to Discourse, as my life >> > > is sort of built around my inbox :p I'll grudgingly accept defeat and >> > > register of course. >> > >> > You can still use email! Albeit with some of the caveats mentioned in >> > the discussion leading up to this transition. >> >> Yep, threw in some thoughts in that that thread (I think). I >> participate some in other communities that have transitioned to >> Discourse (e.g. HDF5), and it's a pain.. I can't collect all my >> correspondence in one place anymore, marking/unmarking of stuff as >> read etc., the mails from Discourse has a lot of cruft (buttons/links) >> and the threading/replying inline doesn't work well. Also, if I reply >> to a thread via the web UI, it'll show up as unread in my inbox >> (naturally), which is annoying because I use that to keep an eye on >> topics I follow. Also can't catch up on stuff while offline, which >> occasionally do happen. >> >> Wait, now I started a rambling when I promised myself not to do it :) >> It's a community decision and I accept that. Perhaps the mail >> integration will improve. > > > I am trying to finish up some writing, and so procrastination made me check the lists. I love and hate Discourse, there, I said it! The interface is nice, and I think you can express more, fix typos, have richer interactions, and provide a better thing to be indexed/viewed by others. > > Discourse is still a pain for people that participate in many communities, email is hard to beat for using the client you prefer, threading support, having layers of communities you work with. I have a chemistry folder with chemistry lists I am on within, a Kitware folder with Kitware related communities, general lists folder for all the others. > > Each of those subfolders is starting to become their own Discourse instance, and it makes it harder for me to keep track of all of them, and view them all from my mail client, replying with ease. I get the impression that mailing lists are going the way of IRC :-) I am trying to adapt my habits, but often miss notifications on threads I am taking part in, and don't reply for weeks or more. > > I suspect I need to develop new habits, spending a little time checking in on Discourse instances I interact with every now and then, possibly tweaking the notifications, and how I filter them in my email folder. I genuinely prefer the added richness in discussion threads, I haven't tried replying to Discourse stuff through email. Attending open source conferences/workshops Discourse is improving engagement with newer community members. > > I think on balance it is a great step forward, but when something works well for you (and me) it can feel like a waste of time changing it up. It does us all good to learn new things, tangentially it has been fun to watch the evolution of static web site, to server side includes, to Dreamweaver et al, to PHP/MySQL content managers, to template-based static web sites. I am a huge fan of Hugo, you can use GitHub for review, Travis to deploy, ... > > I really should get back to writing ;-) Sad to see the demise of the lists, and need to spend a little time retooling my habits around communication with communities. Yes, all good thoughts Marcus. I feel much the same. Elvis From elvis.stansvik at orexplore.com Wed Jan 23 15:45:33 2019 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 23 Jan 2019 21:45:33 +0100 Subject: [vtkusers] [vtk-developers] Transition to Discourse - thoughts from lurker In-Reply-To: References: <20190123192703.240096085@mail.rogue-research.com> Message-ID: Den ons 23 jan. 2019 kl 20:42 skrev Andras Lasso : > > > the mails from Discourse has a lot of cruft (buttons/links) > > The email template is fully configurable. Post your suggestions here: https://discourse.vtk.org/c/site-feedback Ah, great idea, I made a post: https://discourse.vtk.org/t/customize-the-e-mail-template/109 Elvis > > > I expect my participation will decrease because of it. > > My experience is just the opposite. By setting up notifications properly, I only get emails about categories, topics, and keywords that I'm interested in, so I can follow activities of more communities. > > Andras > > -----Original Message----- > From: vtk-developers On Behalf Of Sean McBride > Sent: Wednesday, January 23, 2019 2:27 PM > To: Elvis Stansvik ; Cory Quammen > Cc: VTK Developers ; vtkusers at vtk.org; Jan Hardenbergh > Subject: Re: [vtk-developers] [vtkusers] Transition to Discourse - thoughts from lurker > > On Wed, 23 Jan 2019 20:05:17 +0100, Elvis Stansvik said: > > >> You can still use email! Albeit with some of the caveats mentioned in > >> the discussion leading up to this transition. > > > >Yep, threw in some thoughts in that that thread (I think). I > >participate some in other communities that have transitioned to > >Discourse (e.g. HDF5), and it's a pain. > > Yup, it's quite a lot worse. :( Alas, I expect my participation will decrease because of it. > > Sean > > > _______________________________________________ > Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C549da3416ccb44ea4e3e08d68168c516%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636838684322414316&sdata=Kk8du8Cl39%2BGubUpTrXB3LBnlPx%2FtlbgATXyk4U84Wg%3D&reserved=0 > > Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C549da3416ccb44ea4e3e08d68168c516%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636838684322414316&sdata=koBd7KQC2j8eXxwntmwO0pAjm%2FIuYngjJHb6rzI1XJQ%3D&reserved=0 > > Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtk-developers&data=02%7C01%7Classo%40queensu.ca%7C549da3416ccb44ea4e3e08d68168c516%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636838684322414316&sdata=vpPnvKyh90yr5UAO9vp%2FGY81eXuQCHfb8w0LnJ78rBk%3D&reserved=0 > > Follow this link to subscribe/unsubscribe: > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtk-developers&data=02%7C01%7Classo%40queensu.ca%7C549da3416ccb44ea4e3e08d68168c516%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636838684322414316&sdata=FzonF%2FzS%2Bkl8ihwKcHnsKCfSeGpVw2GwuMB%2FvsDUoLM%3D&reserved=0 > From pdhahn at compintensehpc.com Wed Jan 23 15:43:28 2019 From: pdhahn at compintensehpc.com (Paul Douglas Hahn) Date: Wed, 23 Jan 2019 14:43:28 -0600 Subject: [vtkusers] [vtk-developers] Transition to Discourse - thoughts from lurker In-Reply-To: <20190123192703.240096085@mail.rogue-research.com> References: <20190123192703.240096085@mail.rogue-research.com> Message-ID: <476a00e8-69b6-c209-dd65-7edc3820b035@compintensehpc.com> I realize I am not an important voice for this topic, but with Discourse, I can say that I anticipate termination of "real-time" monitoring of VTK issues that I now do with the mailing lists. I do not want to be on a "free" community site that is or might become oriented to make money of me one way or another (hidden), tracking me, etc. etc. Hmmm ... so how long will it take Microsoft to come in and buy Discourse just like they did with Github? And what is the relationship (if any) between Bloomberg's Discourse Analytics (www.discourseanalytics.com) and Discourse.org? They both have similar logos. Just wondering. Bye, Paul On 1/23/19 1:27 PM, Sean McBride wrote: > On Wed, 23 Jan 2019 20:05:17 +0100, Elvis Stansvik said: > >>> You can still use email! Albeit with some of the caveats mentioned in >>> the discussion leading up to this transition. >> Yep, threw in some thoughts in that that thread (I think). I >> participate some in other communities that have transitioned to >> Discourse (e.g. HDF5), and it's a pain. > Yup, it's quite a lot worse. :( Alas, I expect my participation will decrease because of it. > > Sean > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtk-developers > > -- From david.gobbi at gmail.com Wed Jan 23 17:03:03 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 23 Jan 2019 15:03:03 -0700 Subject: [vtkusers] [vtk-developers] Transition to Discourse - thoughts from lurker In-Reply-To: <476a00e8-69b6-c209-dd65-7edc3820b035@compintensehpc.com> References: <20190123192703.240096085@mail.rogue-research.com> <476a00e8-69b6-c209-dd65-7edc3820b035@compintensehpc.com> Message-ID: Hi Paul, As far as I understand, Kitware is running Discourse on their own server. So even if it is bought out, Kitware can continue to use the version that they currently have and fork/patch it as necessary. And I'm sure that if anyone audits the Discourse code base and finds that it is leaking analytics to someone, Kitware would be happy to plug the leak. In any case, there's plenty of analytics that companies can do based on public mailing lists, and I don't think a public forum is any different in that regard unless you include confidential info in your profile. David On Wed, Jan 23, 2019 at 2:25 PM Paul Douglas Hahn wrote: > I realize I am not an important voice for this topic, but with > Discourse, I can say that I anticipate termination of "real-time" > monitoring of VTK issues that I now do with the mailing lists. I do not > want to be on a "free" community site that is or might become oriented > to make money of me one way or another (hidden), tracking me, etc. etc. > > Hmmm ... so how long will it take Microsoft to come in and buy Discourse > just like they did with Github? And what is the relationship (if any) > between Bloomberg's Discourse Analytics (www.discourseanalytics.com) and > Discourse.org? They both have similar logos. Just wondering. > > Bye, > Paul > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Wed Jan 23 17:17:13 2019 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Wed, 23 Jan 2019 17:17:13 -0500 Subject: [vtkusers] [vtk-developers] Transition to Discourse - thoughts from lurker In-Reply-To: <476a00e8-69b6-c209-dd65-7edc3820b035@compintensehpc.com> References: <20190123192703.240096085@mail.rogue-research.com> <476a00e8-69b6-c209-dd65-7edc3820b035@compintensehpc.com> Message-ID: <20190123221713.GB28532@megas.kitware.com> On Wed, Jan 23, 2019 at 14:43:28 -0600, Paul Douglas Hahn wrote: > I realize I am not an important voice for this topic, but with > Discourse, I can say that I anticipate termination of "real-time" > monitoring of VTK issues that I now do with the mailing lists. I do not > want to be on a "free" community site that is or might become oriented > to make money of me one way or another (hidden), tracking me, etc. etc. Off topic, but I recommend an adblocker since much of the Web is doing that. However... > Hmmm ... so how long will it take Microsoft to come in and buy Discourse > just like they did with Github? And what is the relationship (if any) > between Bloomberg's Discourse Analytics (www.discourseanalytics.com) and > Discourse.org? They both have similar logos. Just wondering. we use our own Discourse hosting; it isn't on discourse.org, so Microsoft buying it wouldn't affect our deployment (directly). --Ben From pdhahn at compintensehpc.com Wed Jan 23 17:22:25 2019 From: pdhahn at compintensehpc.com (Paul Douglas Hahn) Date: Wed, 23 Jan 2019 16:22:25 -0600 Subject: [vtkusers] [vtk-developers] Transition to Discourse - thoughts from lurker In-Reply-To: References: <20190123192703.240096085@mail.rogue-research.com> <476a00e8-69b6-c209-dd65-7edc3820b035@compintensehpc.com> Message-ID: OK, thanks for that. Sounds more innocuous. As a remark, I believe that the quality of analytic products done on mailing lists is far less than that which can be done on community sites with engines in the middle, especially for one reason: the latter allows tracking message /reads/ in detail, and moreover, /who/ does the reads (vs. who does not), and what are the characteristics. All this to formulate rich feature vectors for ANN training. I believe that that is not feasible with mailing lists, but I may be wrong. And of course, it's easy enough to correlate names to confidential info already snarfed into the world of databases out there. - Paul On 1/23/19 4:03 PM, David Gobbi wrote: > Hi Paul, > > As far as I understand, Kitware is running Discourse on their own > server.? So even if it is bought out, Kitware can continue to use the > version that they currently have and fork/patch it as necessary.? And > I'm sure that if anyone audits the Discourse code base and finds that > it is leaking analytics to someone, Kitware would be happy to plug the > leak. > > In any case, there's plenty of analytics that companies can do based > on public mailing lists, and I don't think a public forum is any > different in that regard unless you include confidential info in your > profile. > > ? David > > > On Wed, Jan 23, 2019 at 2:25 PM Paul Douglas Hahn > > wrote: > > I realize I am not an important voice for this topic, but with > Discourse, I can say that I anticipate termination of "real-time" > monitoring of VTK issues that I now do with the mailing lists. I > do not > want to be on a "free" community site that is or might become > oriented > to make money of me one way or another (hidden), tracking me, etc. > etc. > > Hmmm ... so how long will it take Microsoft to come in and buy > Discourse > just like they did with Github? And what is the relationship (if any) > between Bloomberg's Discourse Analytics > (www.discourseanalytics.com ) and > Discourse.org? They both have similar logos. Just wondering. > > Bye, > Paul > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From lasso at queensu.ca Wed Jan 23 17:55:13 2019 From: lasso at queensu.ca (Andras Lasso) Date: Wed, 23 Jan 2019 22:55:13 +0000 Subject: [vtkusers] [vtk-developers] Transition to Discourse - thoughts from lurker In-Reply-To: References: <20190123192703.240096085@mail.rogue-research.com> <476a00e8-69b6-c209-dd65-7edc3820b035@compintensehpc.com> Message-ID: Full content of VTK mailing lists, names, email addresses have been already publicly available on the web (http://vtk.1045678.n5.nabble.com/, https://vtk.org/pipermail/vtkusers/, etc). However, spammers don?t even need to harvest email addresses one by one. It is enough if a spammer subscribes to any of the VTK mailing list (there is no sophisticated anti-spam measures) and he gets access to email addresses of all the other subscribers. See for example the 3000+ email addresses listed at https://vtk.org/mailman/roster/vtkusers: [cid:image001.png at 01D4B342.4BFD6C60] On discourse your email address is never publicly disclosed and many spam countermeasures are implemented. If you have privacy or security concerns then you should welcome the switch to discourse. Andras From: vtkusers On Behalf Of Paul Douglas Hahn Sent: Wednesday, January 23, 2019 5:22 PM To: David Gobbi Cc: VTK Developers ; VTK Users Subject: Re: [vtkusers] [vtk-developers] Transition to Discourse - thoughts from lurker OK, thanks for that. Sounds more innocuous. As a remark, I believe that the quality of analytic products done on mailing lists is far less than that which can be done on community sites with engines in the middle, especially for one reason: the latter allows tracking message reads in detail, and moreover, who does the reads (vs. who does not), and what are the characteristics. All this to formulate rich feature vectors for ANN training. I believe that that is not feasible with mailing lists, but I may be wrong. And of course, it's easy enough to correlate names to confidential info already snarfed into the world of databases out there. - Paul On 1/23/19 4:03 PM, David Gobbi wrote: Hi Paul, As far as I understand, Kitware is running Discourse on their own server. So even if it is bought out, Kitware can continue to use the version that they currently have and fork/patch it as necessary. And I'm sure that if anyone audits the Discourse code base and finds that it is leaking analytics to someone, Kitware would be happy to plug the leak. In any case, there's plenty of analytics that companies can do based on public mailing lists, and I don't think a public forum is any different in that regard unless you include confidential info in your profile. David On Wed, Jan 23, 2019 at 2:25 PM Paul Douglas Hahn > wrote: I realize I am not an important voice for this topic, but with Discourse, I can say that I anticipate termination of "real-time" monitoring of VTK issues that I now do with the mailing lists. I do not want to be on a "free" community site that is or might become oriented to make money of me one way or another (hidden), tracking me, etc. etc. Hmmm ... so how long will it take Microsoft to come in and buy Discourse just like they did with Github? And what is the relationship (if any) between Bloomberg's Discourse Analytics (www.discourseanalytics.com) and Discourse.org? They both have similar logos. Just wondering. Bye, Paul -- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 106194 bytes Desc: image001.png URL: From tigarmo at gmail.com Thu Jan 24 07:28:07 2019 From: tigarmo at gmail.com (Tiago Nobrega) Date: Thu, 24 Jan 2019 10:28:07 -0200 Subject: [vtkusers] Problem with polydatas sharing vtkPoints in vtk8 Message-ID: Hi, I'm trying to update from vtk 7.0 and I'm having an issue with a particular setup of polydatas. In my case I have a single vtkPoints that is shared by multiple vtkPolydatas, where each polydata renders a different set of cells. I can't get the rendering to show more than one polydata at a time in vtk 8.0 and up, but it works as expected in vtk 7.1. In all cases I am using the new OpenGL2 backend. I created a minimal example that reproduces the issue for me: https://gist.github.com/tigarmo/c90ff07a1b63bbcf396fa4aaf1e824a9 . It tries to show 2 quads, where each quad is a cell in a different polydata, but both polydatas share the same vtkPoints. This shows 2 quads as expected (by me) in vtk 7.1 but only 1 quad in vtk 8.0.1, 8.1.0 and 8.1.1. A surprising detail is that which quad is shown varies depending on the run. Sometimes it's the left one, sometimes the right one. Does anyone have any suggestions? Is this a bug? Could it be related to improvements in VBO caching that I saw in 8.0's changelog? Thank you for your time, Tiago Nobrega -------------- next part -------------- An HTML attachment was scrubbed... URL: From manu.desh at gmail.com Fri Jan 25 00:38:11 2019 From: manu.desh at gmail.com (manasid) Date: Thu, 24 Jan 2019 22:38:11 -0700 (MST) Subject: [vtkusers] SeedWidget: How to update points with latest seedposition after move and after delete Message-ID: <1548394691233-0.post@n5.nabble.com> I am using SeedWidget to draw points on the viewer. I am able to render the points, drag them and delete. But after moving the seed points, however I do not get the updated position. I need these positions for further processing. Attaching the code MultiPoints.cs for reference. In the code when I do GetPoints, I need to get latest position of seed points. Please help. Thanking in advance Regards, Manasi -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From ken.martin at kitware.com Fri Jan 25 10:26:15 2019 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 25 Jan 2019 10:26:15 -0500 Subject: [vtkusers] vtkTestOpenGLVersion header not installed? In-Reply-To: <0da45091d8864d7c8ea02f4f95d3dff9@dianafea.com> References: <0da45091d8864d7c8ea02f4f95d3dff9@dianafea.com> Message-ID: Thanks, I've added the header to the list of headers to be installed. I suspect the 8.1.1 version should be fine to use as well. - Ken On Wed, Dec 12, 2018 at 10:01 AM Andreas Buykx wrote: > I would like to use the new delayed loading of OpenGL, but found that even > when I build VTK with the VTK_USE_OPENGL_DELAYED_LOAD flag the header is > not installed in the include directory even though the > vtkTestOpenGLVersion.exe is built, so I have to pull it in from the source > tree I suppose. Is this intentional? > > > > Also I found that it was already available in the 8.1.1 release, but only > for the 8.2 release candidate it has been explicitly mentioned. Is the > 8.1.1 version OK to use? > > > > Thanks! > > Andreas > > > > *DIANA FEA BV * > > *Software Developers and Analysis Consultants for Civil and Geotechnical > Engineering * > > > > Delftechpark 19a, 2628XJ, Delft, The Netherlands > > Tel: +31 88 34262 15 (Direct) ? Tel: +31 88 34262 00 (Switchboard) ? Fax: > +31 88 34262 99 > > http://dianafea.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: > https://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 101 East Weaver Street Carrboro, North Carolina 27510 USA 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 cory.quammen at kitware.com Fri Jan 25 16:24:19 2019 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 25 Jan 2019 16:24:19 -0500 Subject: [vtkusers] Top VTK Discourse topics for the past week Message-ID: If you haven't registered for VTK's Discourse forum yet, here's a summary of this week's top topics posted on https://discourse.vtk.org: demystifiying color discretization Proposal to add orientation to vtkImageData- Feedback Wanted Customize the e-mail template? Using Discourse as a mailing list Unable to build INSTALL using VTK master on Visual Studio 2015 vtkIOGDAL and vtkIOGeoJSON Interpolating points and direction along a path in 3D space Modularization dashboard cleanup Scaling tube radius by distance to camera Free Biomedical Image Analysis and Visualization 3-day Course segfault for python importing vtk but not for vtkpython Arbitary Order Lagrange Hexahedron Connectivity Scroll through 2d slices of 3d volume - ultrasound .mhd file Unable to build vtkAcceleratorsVTKm with CUDA using VTK Release on Visual Studio 2015 / Windows 10 A good strategy to label a particular point of a vtkPolyData (or display a something near it) Point data from `vtkProbeFilter` lost after `vtkSelectEnclosedPoints` removing added texture from actor How to let vtkScalarBar showing marks for Text Annotation? -------------- next part -------------- An HTML attachment was scrubbed... URL: From nfoudilbey at gmail.com Fri Jan 25 16:58:41 2019 From: nfoudilbey at gmail.com (cimo) Date: Fri, 25 Jan 2019 14:58:41 -0700 (MST) Subject: [vtkusers] Sclicer for Unstructured Grid (Volumetric mesh clipping) Message-ID: <1548453521812-0.post@n5.nabble.com> Hi everybody, someone has the solution to generate this kind of interactive slicer on tetrahedral mesh like this eample thank you Hth -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From lasso at queensu.ca Sat Jan 26 14:42:58 2019 From: lasso at queensu.ca (Andras Lasso) Date: Sat, 26 Jan 2019 19:42:58 +0000 Subject: [vtkusers] Sclicer for Unstructured Grid (Volumetric mesh clipping) In-Reply-To: <1548453521812-0.post@n5.nabble.com> References: <1548453521812-0.post@n5.nabble.com> Message-ID: You can have a look at the mesh display pipeline of 3D Slicer: Few screenshots showing various visualization options: https://blog.kitware.com/updates-to-3d-slicer-volumetric-mesh-support/ Implementation: https://github.com/Slicer/Slicer/blob/master/Libs/MRML/DisplayableManager/vtkMRMLModelDisplayableManager.cxx Please post further questions to https://discourse.vtk.org/. Andras -----Original Message----- From: vtkusers On Behalf Of cimo Sent: Friday, January 25, 2019 4:59 PM To: vtkusers at vtk.org Subject: [vtkusers] Sclicer for Unstructured Grid (Volumetric mesh clipping) Hi everybody, someone has the solution to generate this kind of interactive slicer on tetrahedral mesh like this eample thank you Hth -- Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Classo%40queensu.ca%7Ca676831d65394fc5a4ee08d683106a65%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636840503867742411&sdata=JW41gmWIZSiAUAkA2NOVZ808CoRWm1JQMZKNtYbmhbw%3D&reserved=0 _______________________________________________ Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Ca676831d65394fc5a4ee08d683106a65%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636840503867742411&sdata=%2Bh5tChA1I5y%2BL8qnefwJm%2BWfwjsoH6u2oF23nbQajpk%3D&reserved=0 Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7Ca676831d65394fc5a4ee08d683106a65%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636840503867742411&sdata=Zu46J9Nkqwl61VrygLn7SXgxMT%2B5PdVlqde12PFelqQ%3D&reserved=0 Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7Ca676831d65394fc5a4ee08d683106a65%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636840503867742411&sdata=dqtUG9Hlw%2BfoChcwrdXEEI7VpsI3qyDC9s8YjLQIs5Y%3D&reserved=0 Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7Ca676831d65394fc5a4ee08d683106a65%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636840503867742411&sdata=Asq6L3nrG3x9%2FWw4r6s22NXxwVHvXvvNPDNEwTZq0Jc%3D&reserved=0 Follow this link to subscribe/unsubscribe: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7Ca676831d65394fc5a4ee08d683106a65%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636840503867742411&sdata=unf96Sd8dkI7qkmZB%2FqrTFUxI5bSq9IdhSlyaxkjp7I%3D&reserved=0 From Andx_roo at live.com Tue Jan 29 12:36:24 2019 From: Andx_roo at live.com (Andaharoo) Date: Tue, 29 Jan 2019 10:36:24 -0700 (MST) Subject: [vtkusers] Exporting Instanced Data Message-ID: <1548783384672-0.post@n5.nabble.com> Does VTK have anything to easily export instanced geometry? IE: Exporting only the source and some instance data like translations and colors. If so how would I do it? I'm using vtkOpenGLGlyph3DMapper. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From Gerald.Lodron at joanneum.at Wed Jan 30 02:51:08 2019 From: Gerald.Lodron at joanneum.at (Lodron, Gerald) Date: Wed, 30 Jan 2019 07:51:08 +0000 Subject: [vtkusers] pipeline question Message-ID: <57588cb3c13a415caea9d04e4cb28b5a@RZJMBX2.jr1.local> Hi I made a vtk source with 5 outputs and time data. I am getting the requested time from output 0. I included the source into paraview. The problem is that the request Data function gets called 5 times (because of 5 outputs). Is there a way to get the output port index of the requested data function call? Also the requested time is only valid from those which are currently needed (visible in paraview), so I really need the requested port.... best regards.... -- Gerald Lodron Machine Vision Applications DIGITAL - Institute of Information and Communication Technologies JOANNEUM RESEARCH Forschungsgesellschaft mbH Steyrergasse 17, 8010 Graz, AUSTRIA phone: +43-316-876-1751 mobile: +43-650-9792458 general fax: +43-316-876-1751 web: http://www.joanneum.at/digital e-mail: gerald.lodron at joanneum.at -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Jan 30 08:19:49 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 30 Jan 2019 06:19:49 -0700 Subject: [vtkusers] pipeline question In-Reply-To: <57588cb3c13a415caea9d04e4cb28b5a@RZJMBX2.jr1.local> References: <57588cb3c13a415caea9d04e4cb28b5a@RZJMBX2.jr1.local> Message-ID: On Wed, Jan 30, 2019 at 12:58 AM Lodron, Gerald wrote: > > > I made a vtk source with 5 outputs and time data. I am getting the > requested time from output 0. I included the source into paraview. The > problem is that the request Data function gets called 5 times (because of 5 > outputs). Is there a way to get the output port index of the requested data > function call? > int outputPort = request->Get(vtkDemandDrivenPipeline::FROM_OUTPUT_PORT()); if outputPort has the special value -1, then all outputs should be generated. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gerald.Lodron at joanneum.at Wed Jan 30 08:26:41 2019 From: Gerald.Lodron at joanneum.at (Lodron, Gerald) Date: Wed, 30 Jan 2019 13:26:41 +0000 Subject: [vtkusers] pipeline question In-Reply-To: References: <57588cb3c13a415caea9d04e4cb28b5a@RZJMBX2.jr1.local> Message-ID: <882e5b04a59843adbc7856ef29e96fb5@RZJMBX2.jr1.local> ah, ok, great. i already found that FROM_OUTPUT_PORT after parsing many examples. But did not check for -1. Thanks? I also noticed a starnge behaviour in time: When I use TIME_STEPS in RequestInformation with a double array of descrete (e.g.1,2,3,4) values, shouldn?t I get only those requests from paraview (so that i do not need to recompute e.g. requests of 1.1 and 1.2 which will be both 1 from TIME_STEPS)? I still get continues values from UPDATE_TIME_STEP, e.g. 1.1 and 1.2. Is that behaviour a bug or a feature? best regards Gerald Von: David Gobbi Gesendet: Mittwoch, 30. Januar 2019 14:20 An: Lodron, Gerald Cc: (vtkusers at vtk.org) Betreff: Re: [vtkusers] pipeline question On Wed, Jan 30, 2019 at 12:58 AM Lodron, Gerald > wrote: I made a vtk source with 5 outputs and time data. I am getting the requested time from output 0. I included the source into paraview. The problem is that the request Data function gets called 5 times (because of 5 outputs). Is there a way to get the output port index of the requested data function call? int outputPort = request->Get(vtkDemandDrivenPipeline::FROM_OUTPUT_PORT()); if outputPort has the special value -1, then all outputs should be generated. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Wed Jan 30 12:20:34 2019 From: sean at rogue-research.com (Sean McBride) Date: Wed, 30 Jan 2019 12:20:34 -0500 Subject: [vtkusers] Problem with polydatas sharing vtkPoints in vtk8 In-Reply-To: References: Message-ID: <20190130172034.155222645@mail.rogue-research.com> On Thu, 24 Jan 2019 10:28:07 -0200, Tiago Nobrega said: >I'm trying to update from vtk 7.0 and I'm having an issue with a particular >setup of polydatas. In my case I have a single vtkPoints that is shared by >multiple vtkPolydatas, where each polydata renders a different set of >cells. I can't get the rendering to show more than one polydata at a time >in vtk 8.0 and up, but it works as expected in vtk 7.1. In all cases I am >using the new OpenGL2 backend. > >I created a minimal example that reproduces the issue for me: >https://gist.github.com/tigarmo/c90ff07a1b63bbcf396fa4aaf1e824a9 . It tries >to show 2 quads, where each quad is a cell in a different polydata, but >both polydatas share the same vtkPoints. This shows 2 quads as expected (by >me) in vtk 7.1 but only 1 quad in vtk 8.0.1, 8.1.0 and 8.1.1. A surprising >detail is that which quad is shown varies depending on the run. Sometimes >it's the left one, sometimes the right one. > >Does anyone have any suggestions? Is this a bug? Could it be related to >improvements in VBO caching that I saw in 8.0's changelog? Tiago, Since no one seems to have a better answer for you, what you could do is use 'git bisect' to find exactly which commit between 7.1 and 8.0 caused this change in behaviour. The commit message will hopefully shed light on the cause and whether it's a bug or not. 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 aminemzoughi at febus-optics.com Wed Jan 30 08:41:57 2019 From: aminemzoughi at febus-optics.com (Mohamed Amine Mzoughi) Date: Wed, 30 Jan 2019 14:41:57 +0100 Subject: [vtkusers] pipeline question In-Reply-To: <882e5b04a59843adbc7856ef29e96fb5@RZJMBX2.jr1.local> References: <57588cb3c13a415caea9d04e4cb28b5a@RZJMBX2.jr1.local> <882e5b04a59843adbc7856ef29e96fb5@RZJMBX2.jr1.local> Message-ID: Hello Gerald, I also noticed that in Catalyst (look at my last message here : https://discourse.paraview.org/t/is-it-possible-to-add-new-connections-to-a-fitler-port-via-the-pipeline-browser/1149/7) : I have a vtk HDF writer in which I tested adding a second connection in Port 0, but with 2 connections, vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP doesn't contain an epoch anymore but incremental reals in both connections (2 filters output). So, if someone can give us an explanation and a fix that would be great ? I wish there's a good resource explaining and demystifying VTK pipeline architecture. Regards. Le 30/01/2019 ? 14:26, Lodron, Gerald a ?crit?: > > ah, ok, great. i already found that FROM_OUTPUT_PORT after parsing > many examples. But did not check for -1. Thanks? > > I also noticed a starnge behaviour in time: > > When I use TIME_STEPS in RequestInformation with a double array of > descrete (e.g.1,2,3,4) values, shouldn?t I get only those requests > from paraview (so that i do not need to recompute e.g. requests of 1.1 > and 1.2 which will be both 1 from TIME_STEPS)? > > I still get continues values from UPDATE_TIME_STEP, e.g. 1.1 and 1.2. > Is that behaviour a bug or a feature? > > best regards > > Gerald > > *Von:*David Gobbi > *Gesendet:* Mittwoch, 30. Januar 2019 14:20 > *An:* Lodron, Gerald > *Cc:* (vtkusers at vtk.org) > *Betreff:* Re: [vtkusers] pipeline question > > On Wed, Jan 30, 2019 at 12:58 AM Lodron, Gerald > > wrote: > > I made a vtk source with 5 outputs and time data. I am getting the > requested time from output 0. I included the source into paraview. > The problem is that the request Data function gets called 5 times > (because of 5 outputs). Is there a way to get the output port > index of the requested data function call? > > int outputPort = > request->Get(vtkDemandDrivenPipeline::FROM_OUTPUT_PORT()); > > if outputPort has the special value -1, then all outputs should be > generated. > > ? ?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: > https://vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From alekseev at rambler.ru Wed Jan 30 23:54:14 2019 From: alekseev at rambler.ru (Andrey) Date: Wed, 30 Jan 2019 21:54:14 -0700 (MST) Subject: [vtkusers] vtkResliceImageViewer image quality problem Message-ID: <1548910454890-0.post@n5.nabble.com> I run into strange issue with vtkResliceImageViewer in VTK 8.1.0. I use vtkResliceImageViewer for showing MPR image reconstruction from DICOM CT scan. And with particular scan I have artifacts on axial projection as you can see on the first image. The same scan in another 3DViewer has no such artifacts (the second image). The artifacts are exist on all projections I only choose here the one most obvious. There is no artifacts on oblique projections. There is no artifacts on 3D image (vtkImagePlaneWidget). I have not seen such artifacts before on another images. Have you any ideas what is it? What can be done to improve situaion? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From srbn.ghosh99 at gmail.com Thu Jan 31 12:52:39 2019 From: srbn.ghosh99 at gmail.com (Shrabani Ghosh) Date: Thu, 31 Jan 2019 10:52:39 -0700 (MST) Subject: [vtkusers] Visualization of simplex mesh with label or coordinate Message-ID: <1548957159187-0.post@n5.nabble.com> After writing the .vtk file, I want see with visualization and if I hover my mouse on it, is it possible to get any information of simplex cell or coordinate points? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From david.gobbi at gmail.com Thu Jan 31 13:02:56 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 31 Jan 2019 11:02:56 -0700 Subject: [vtkusers] vtkResliceImageViewer image quality problem In-Reply-To: <1548910454890-0.post@n5.nabble.com> References: <1548910454890-0.post@n5.nabble.com> Message-ID: On Wed, Jan 30, 2019 at 9:55 PM Andrey wrote: > I run into strange issue with vtkResliceImageViewer in VTK 8.1.0. I use > vtkResliceImageViewer for showing MPR image reconstruction from DICOM CT > scan. And with particular scan I have artifacts on axial projection as you > can see on the first image. The same scan in another 3DViewer has no such > artifacts (the second image). The artifacts are exist on all projections I > only choose here the one most obvious. There is no artifacts on oblique > projections. There is no artifacts on 3D image (vtkImagePlaneWidget). I > have > not seen such artifacts before on another images. Have you any ideas what > is > it? What can be done to improve situaion? > > > Do the artifacts in vtkResliceImageViewer move around when you zoom in and out? If so, there is something strange happening with the texture mapping. If not, the problem is with the how VTK is processing the image. What are the dimensions of the image? Pixel spacing? Since vtkResliceImageViewer uses vtkImageActor, you could try using vtkImageActor directly to see if it produces the same artifacts. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From alekseev at rambler.ru Thu Jan 31 13:27:55 2019 From: alekseev at rambler.ru (Andrey) Date: Thu, 31 Jan 2019 11:27:55 -0700 (MST) Subject: [vtkusers] vtkResliceImageViewer image quality problem In-Reply-To: References: <1548910454890-0.post@n5.nabble.com> Message-ID: <1548959275184-0.post@n5.nabble.com> Thank you for your answer. No artifacts don't move around when I change zoom. But the changing when I move reslice coursor on this view (not on another view only on the same). Image size 477x477 px, pixel spacing 0.25 mm. May be it's not so obvious on the uploaded images but seems that artifacts are edges of cells of grid. I've tried to show them with blue line on image. I'm not very strong in VTK what can you recomend? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From alekseev at rambler.ru Thu Jan 31 13:38:50 2019 From: alekseev at rambler.ru (Andrey) Date: Thu, 31 Jan 2019 11:38:50 -0700 (MST) Subject: [vtkusers] vtkResliceImageViewer image quality problem In-Reply-To: References: <1548910454890-0.post@n5.nabble.com> Message-ID: <1548959930132-0.post@n5.nabble.com> Thank you for your answer. No artifacts not moving aroung with zoom changing but they moving around when I move resclice cursor on the same view. Image size 477x477 px, pixel spasing 0.25 mm. Artifacts looks like edges of some kind of grid cells. I've added the blue lines on image to illustrate it. May be it can say something? I'm not very good at VTK may be you can give me more detailed description what I can do to understand and solve the problem? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Jan 31 13:48:35 2019 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 31 Jan 2019 11:48:35 -0700 Subject: [vtkusers] vtkResliceImageViewer image quality problem In-Reply-To: <1548959275184-0.post@n5.nabble.com> References: <1548910454890-0.post@n5.nabble.com> <1548959275184-0.post@n5.nabble.com> Message-ID: On Thu, Jan 31, 2019 at 11:29 AM Andrey wrote: > Thank you for your answer. No artifacts don't move around when I change > zoom. > But the changing when I move reslice coursor on this view (not on another > view only on the same). Image size 477x477 px, pixel spacing 0.25 mm. May > be > it's not so obvious on the uploaded images but seems that artifacts are > edges of cells of grid. I've tried to show them with blue line on image. > I'm > not very strong in VTK what can you recomend? > > It looks to me like the image is being stretched using nearest-neighbor interpolation before it is going into the input of the vtkImageActor. The number of dislocations is the number of pixels by which the image is stretched, and the dislocations would be expected to be evenly spaced, just as we see in your screenshot. The texture interpolation is then blurring the dislocations so that they look the way they do. My suspicion is that vtkImageResliceMapper is doing some incorrect calculations. It should not be stretching the image when you do an orthogonal view, it should simply pass the image slices directly to vtkImageActor. It is also possible (but less likely) that vtkImageActor is stretching the image before generating the texture that is used to display it on the screen. I can try testing with a similarly sized image (probably not today, but soon). Was this just a 2D slice, or was it a stack? If a stack, what was the size and spacing? If the math in vtkImageResliceMapper is bad, then certain image sizes probably trigger the error. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From alekseev at rambler.ru Thu Jan 31 13:54:42 2019 From: alekseev at rambler.ru (Andrey) Date: Thu, 31 Jan 2019 11:54:42 -0700 (MST) Subject: [vtkusers] vtkResliceImageViewer image quality problem In-Reply-To: References: <1548910454890-0.post@n5.nabble.com> Message-ID: <1548960882977-0.post@n5.nabble.com> It's a stack. I can share it with you https://www.dropbox.com/s/0u7j03j7v4mulnu/Results_30.01.2019_13_57%20good.zip?dl=0 (125 Mb) if you'd like emulate it, each image size 477x477, pixel spacing 0.25 number of images 800. And one more: I see this artifacts on each projection (XY, XZ, YZ) but when I change ResliceMode to 0 there is no artifacts. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From sean at rogue-research.com Thu Jan 31 14:14:41 2019 From: sean at rogue-research.com (Sean McBride) Date: Thu, 31 Jan 2019 14:14:41 -0500 Subject: [vtkusers] vtkResliceImageViewer image quality problem In-Reply-To: <1548960882977-0.post@n5.nabble.com> References: <1548910454890-0.post@n5.nabble.com> <1548960882977-0.post@n5.nabble.com> Message-ID: <20190131191441.1840657920@mail.rogue-research.com> On Thu, 31 Jan 2019 11:54:42 -0700, Andrey said: >It's a stack. I can share it with you >https://www.dropbox.com/s/0u7j03j7v4mulnu/ >Results_30.01.2019_13_57%20good.zip?dl=0 >(125 Mb) if you'd like emulate it, each image size 477x477, pixel spacing FWIW, I tried it with my app and don't see those artifacts. I use VTK for visualization, but I use ITK (which uses GDCM) to actually load DICOM files. Cheers, Sean From alekseev at rambler.ru Thu Jan 31 14:19:11 2019 From: alekseev at rambler.ru (Andrey) Date: Thu, 31 Jan 2019 12:19:11 -0700 (MST) Subject: [vtkusers] vtkResliceImageViewer image quality problem In-Reply-To: <20190131191441.1840657920@mail.rogue-research.com> References: <1548910454890-0.post@n5.nabble.com> <1548960882977-0.post@n5.nabble.com> <20190131191441.1840657920@mail.rogue-research.com> Message-ID: <1548962351464-0.post@n5.nabble.com> Thank you for information I use VTK only. But I'll keep it in mind. I have not any problems with images until yesterday then I run in this image series. After reproducing the artifacts with VTK example I decided to ask for help. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From tigarmo at gmail.com Thu Jan 31 15:40:15 2019 From: tigarmo at gmail.com (Tiago Nobrega) Date: Thu, 31 Jan 2019 18:40:15 -0200 Subject: [vtkusers] Problem with polydatas sharing vtkPoints in vtk8 In-Reply-To: <20190130172034.155222645@mail.rogue-research.com> References: <20190130172034.155222645@mail.rogue-research.com> Message-ID: Hi Sean, Thanks for the reply. I'll try bisecting once I get some free time, for now I suppose I'll just stay with 7.1. I've also reported this bug on Gitlab: https://gitlab.kitware.com/vtk/vtk/issues/17508 . I'll update the report if I get any progress. Tiago On Wed, Jan 30, 2019 at 3:20 PM Sean McBride wrote: > On Thu, 24 Jan 2019 10:28:07 -0200, Tiago Nobrega said: > > >I'm trying to update from vtk 7.0 and I'm having an issue with a > particular > >setup of polydatas. In my case I have a single vtkPoints that is shared by > >multiple vtkPolydatas, where each polydata renders a different set of > >cells. I can't get the rendering to show more than one polydata at a time > >in vtk 8.0 and up, but it works as expected in vtk 7.1. In all cases I am > >using the new OpenGL2 backend. > > > >I created a minimal example that reproduces the issue for me: > >https://gist.github.com/tigarmo/c90ff07a1b63bbcf396fa4aaf1e824a9 . It > tries > >to show 2 quads, where each quad is a cell in a different polydata, but > >both polydatas share the same vtkPoints. This shows 2 quads as expected > (by > >me) in vtk 7.1 but only 1 quad in vtk 8.0.1, 8.1.0 and 8.1.1. A surprising > >detail is that which quad is shown varies depending on the run. Sometimes > >it's the left one, sometimes the right one. > > > >Does anyone have any suggestions? Is this a bug? Could it be related to > >improvements in VBO caching that I saw in 8.0's changelog? > > Tiago, > > Since no one seems to have a better answer for you, what you could do is > use 'git bisect' to find exactly which commit between 7.1 and 8.0 caused > this change in behaviour. The commit message will hopefully shed light on > the cause and whether it's a bug or not. > > 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: